|
| 1 | +export default { |
| 2 | + input: [ |
| 3 | + "src/**/*.{js,ts,jsx,tsx,astro}", |
| 4 | + ], |
| 5 | + contextSeparator: ":", |
| 6 | + // Key separator used in your translation keys |
| 7 | + createOldCatalogs: false, |
| 8 | + // Save the \_old files |
| 9 | + defaultNamespace: "translation", |
| 10 | + // Default namespace used in your i18next config |
| 11 | + defaultValue: "__NOT_TRANSLATED__", |
| 12 | + // Default value to give to empty keys |
| 13 | + indentation: 4, |
| 14 | + // Indentation of the catalog files |
| 15 | + keepRemoved: false, |
| 16 | + // Keep keys from the catalog that are no longer in code |
| 17 | + keySeparator: ".", |
| 18 | + // Key separator used in your translation keys |
| 19 | + // If you want to use plain english keys, separators such as `.` and `:` will conflict. You might want to set `keySeparator: false` and `namespaceSeparator: false`. That way, `t('Status: Loading...')` will not think that there are a namespace and three separator dots for instance. |
| 20 | + // see below for more details |
| 21 | + lexers: { |
| 22 | + ts: ["JavascriptLexer"], |
| 23 | + tsx: ["JsxLexer"], |
| 24 | + astro: [ |
| 25 | + { |
| 26 | + lexer: "JavascriptLexer", |
| 27 | + functions: ["t"] |
| 28 | + } |
| 29 | + ], |
| 30 | + default: ["JavascriptLexer"], |
| 31 | + }, |
| 32 | + lineEnding: "auto", |
| 33 | + // Control the line ending. See options at https://github.com/ryanve/eol |
| 34 | + locales: ["en", "pl", "de"], |
| 35 | + // An array of the locales in your applications |
| 36 | + namespaceSeparator: ":", |
| 37 | + // Namespace separator used in your translation keys |
| 38 | + // If you want to use plain english keys, separators such as `.` and `:` will conflict. You might want to set `keySeparator: false` and `namespaceSeparator: false`. That way, `t('Status: Loading...')` will not think that there are a namespace and three separator dots for instance. |
| 39 | + output: "public/static/locales/$LOCALE.json", |
| 40 | + // Supports $LOCALE and $NAMESPACE injection |
| 41 | + // Supports JSON (.json) and YAML (.yml) file formats |
| 42 | + // Where to write the locale files relative to process.cwd() |
| 43 | + // An array of globs that describe where to look for source files |
| 44 | + // relative to the location of the configuration file |
| 45 | + sort: true, |
| 46 | + // Whether or not to sort the catalog |
| 47 | + skipDefaultValues: false, |
| 48 | + // Whether to ignore default values. |
| 49 | + useKeysAsDefaultValue: false, |
| 50 | + // Whether to use the keys as the default value; ex. "Hello": "Hello", "World": "World" |
| 51 | + // This option takes precedence over the `defaultValue` and `skipDefaultValues` options |
| 52 | + verbose: false, |
| 53 | + // Display info about the parsing including some stats |
| 54 | + failOnWarnings: false, |
| 55 | + // Exit with an exit code of 1 on warnings |
| 56 | + customValueTemplate: null, |
| 57 | + // If you wish to customize the value output the value as an object, you can set your own format. |
| 58 | + // ${defaultValue} is the default value you set in your translation function. |
| 59 | + // Any other custom property will be automatically extracted. |
| 60 | + // |
| 61 | + // Example: |
| 62 | + // { |
| 63 | + // message: "${defaultValue}", |
| 64 | + // description: "${maxLength}", // t('my-key', {maxLength: 150}) |
| 65 | + // } |
| 66 | +}; |
0 commit comments