Skip to content

Commit

Permalink
fix: update missing translations
Browse files Browse the repository at this point in the history
  • Loading branch information
paulobernardoaf committed Sep 11, 2024
1 parent d007406 commit 6bbabf4
Show file tree
Hide file tree
Showing 19 changed files with 3,004 additions and 27,556 deletions.
21 changes: 13 additions & 8 deletions i18next-scanner.config.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
/* eslint-disable @typescript-eslint/no-var-requires */
var typescriptTransform = require('i18next-scanner-typescript');
const typescriptTransform = require('i18next-scanner-typescript');

// eslint-disable-next-line no-undef
module.exports = {
input: ['src/**/*.{js,jsx,ts,tsx}', '!src/**/*.test.*', '!src/i18n/**', '!**/node_modules/**'],
input: [
'src/**/*.{js,jsx,ts,tsx}',
'!src/**/*.test.*',
'!src/i18n/**',
'!**/node_modules/**',
],
output: './src/config/',
options: {
sort: true,
debug: true,
func: {
list: ['i18n.t'],
extensions: ['.js', '.ts', '.tsx']
extensions: ['.js', '.ts', '.tsx'],
},
removeUnusedKeys: true,
trans: {
component: 'Trans'
component: 'Trans',
},
lngs: ['dev'],
ns: ['defaults'],
Expand All @@ -24,12 +29,12 @@ module.exports = {
loadPath: 'i18n/[[ns]].json',
savePath: 'i18n/[[ns]].json',
jsonIndent: 2,
lineEnding: '\n'
lineEnding: '\n',
},
interpolation: {
prefix: '[[',
suffix: ']]'
}
suffix: ']]',
},
},
transform: typescriptTransform({ extensions: ['.tsx'] })
transform: typescriptTransform({ extensions: ['.tsx'] }),
};
Loading

0 comments on commit 6bbabf4

Please sign in to comment.