Skip to content

Releases: adonisjs/i18n

Support Vine 3.0

10 Dec 16:01
Compare
Choose a tag to compare

Features

  • updated locale method to use default locale when none is provided (#136) (5ca9c6d)

Full Changelog: v2.1.1...v2.2.0

Fix broken subpath to types

01 Aug 06:05
Compare
Choose a tag to compare
  • 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

15 Apr 04:43
Compare
Choose a tag to compare
  • chore: update peer dependencies d419610
  • chore: update dependencies 64d8e1d

Full Changelog: v2.0.1...v2.1.0

Properly copy translations when building in production

08 Mar 23:15
Compare
Choose a tag to compare
  • feat(configure): also copy yaml & yml files 23a191a
  • fix(configure): add entry to metaFiles (#132) df1bb7a
  • chore: update dependencies b616ced
  • chore(release): 2.0.0 79fab82
  • chore: publish under latest tag bd8dc90

v2.0.0...v2.0.1

Stable major release

09 Jan 06:03
c0e4b0f
Compare
Choose a tag to compare

Please consult the following releases for list of breaking changes and new additions

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

Full Changelog: 1.6.0...v2.0.0

Organize stubs

24 Dec 09:52
Compare
Choose a tag to compare
Organize stubs Pre-release
Pre-release

Full Changelog: v2.0.0-8...v2.0.0-9

Bundle using tsup and export factories for testing

27 Nov 09:14
Compare
Choose a tag to compare
  • feat: export factories for testing 7fc0e90
  • chore: use tsup for bundling 05148bb

Full Changelog: v2.0.0-7...v2.0.0-8

Update dependencies

27 Nov 08:22
Compare
Choose a tag to compare
Update dependencies Pre-release
Pre-release
  • 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

20 Oct 05:57
Compare
Choose a tag to compare
Fix config stub Pre-release
Pre-release

Full Changelog: v2.0.0-5...v2.0.0-6

Use config provider

20 Oct 05:45
Compare
Choose a tag to compare
Use config provider Pre-release
Pre-release

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