Skip to content

Commit

Permalink
fix: config stub to use correct property names and reference URL
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Oct 7, 2021
1 parent ec83993 commit f2a6c48
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,12 @@
"i18n.txt"
]
},
"metaFiles": [
{
"pattern": "resources/lang/**/*.json",
"reloadServer": true
}
],
"types": "@adonisjs/i18n",
"providers": [
"@adonisjs/i18n"
Expand Down
12 changes: 6 additions & 6 deletions templates/i18n.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Config source: https://git.io/JeYHp
* Config source: https://git.io/Jw53K
*
* Feel free to let us know via PR, if you find something broken in this config
* file.
Expand All @@ -11,15 +11,15 @@ import { I18nConfig } from '@ioc:Adonis/Addons/I18n'
const i18nConfig: I18nConfig = {
/*
|--------------------------------------------------------------------------
| Messages format
| Translations format
|--------------------------------------------------------------------------
|
| The format in which the translation messages are written. By default
| only the ICU messages syntax is supported. However, you can register
| custom formatters too and please reference the documentation for that.
| The format in which the translation are written. By default only the
| ICU message syntax is supported. However, you can register custom
| formatters too and please reference the documentation for that.
|
*/
messagesFormat: 'icu',
translationsFormat: 'icu',

/*
|--------------------------------------------------------------------------
Expand Down

0 comments on commit f2a6c48

Please sign in to comment.