feat(localization): add i18next configuration and CLI commands for localization management

This commit is contained in:
PiR1
2026-05-09 18:23:11 +02:00
parent a5db4bd46e
commit 74e87b968b
4 changed files with 2085 additions and 603 deletions
+23
View File
@@ -0,0 +1,23 @@
import { defineConfig } from 'i18next-cli';
export default defineConfig({
locales: ['en', 'de', 'nl', 'pt', 'ru', 'fr'],
extract: {
input: ['src/**/*.{ts,tsx,js,jsx}', '!src/**/*.{test,spec,d}.{ts,tsx}'],
output: 'src/i18n/locales/{{language}}.json',
defaultNS: false,
primaryLanguage: 'en',
removeUnusedKeys: true,
// Dynamic keys to preserve (e.g.: t(`errors.${code}`))
preservePatterns: [],
preserveContextVariants: true,
indentation: 2,
sort:false
},
});