Releases: adonisjs/i18n
Releases · adonisjs/i18n
Support Vine 3.0
Features
Full Changelog: v2.1.1...v2.2.0
Fix broken subpath to types
- fix: make useGrouping option optional 6e665be
- chore: update repo info in package.json file 3c4fa0f
- refactor: update number formatting types 7e6ae81
- chore: update dependencies 7cac44a
- fix: subpath to types file beaee6e
- Merge pull request #133 from mateus4k/patch-1 43693c5
- fix stub b0f403f
- fix: comment typo 129c691
What's Changed
New Contributors
Full Changelog: v2.1.0...v2.1.1
Upgrade to VineJS 2.0
Full Changelog: v2.0.1...v2.1.0
Properly copy translations when building in production
Stable major release
Please consult the following releases for list of breaking changes and new additions
- Breaking changes - https://github.com/adonisjs/i18n/releases/tag/v2.0.0-2
- New additions - https://github.com/adonisjs/i18n/releases/tag/v2.0.0-3
- Breaking changes - https://github.com/adonisjs/i18n/releases/tag/v2.0.0-5
Commits
- chore: publish under latest tag bd8dc90
- Merge pull request #130 from adonisjs/next c0e4b0f
- test: simplify tests 0cfc07f
- chore: bundle types.ts file via tsup as well 60a9868
- refactor: export stubsRoot 86a1c1c
- chore: update dependencies 517a0a1
What's Changed
- Merge to develop for final release by @thetutlage in #130
Full Changelog: 1.6.0...v2.0.0
Organize stubs
Full Changelog: v2.0.0-8...v2.0.0-9
Bundle using tsup and export factories for testing
Full Changelog: v2.0.0-7...v2.0.0-8
Update dependencies
- test: fix breaking test dbc3396
- refactor: make i18n.config a public property cb51a2c
- chore: add missing peer dependencies 80a289e
- chore: update dependencies c4be116
Full Changelog: v2.0.0-6...v2.0.0-7
Fix config stub
- fix: config stub f37d2f1
Full Changelog: v2.0.0-5...v2.0.0-6
Use config provider
The config/i18n.ts
file must be upgraded as follows
import app from '@adonisjs/core/services/app'
import {
defineConfig,
+ formatters,
+ loaders
} from '@adonisjs/i18n'
export default defineConfig({
defaultLocale: 'en',
- formatter: 'icu',
+ formatter: formatters.icu(),
loaders: [
- {
- driver: 'fs',
- location: app.languageFilesPath(),
- }
+ loaders.fs({
+ location: app.languageFilesPath(),
+ }),
],
})
Commits
- refactor: export formatters and loaders from the main entrypoint 34b92c8
- style: format source code ff059b8
- test: improve coverage 6543eec
- refactor: internals 34da2bc
- refactor: use config providers for resolving config 377daaa
- chore: update dependencies 8628f89
Full Changelog: v2.0.0-4...v2.0.0-5