@umituz/react-native-localization 1.0.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +78 -15
- package/lib/infrastructure/config/i18n.d.ts +4 -1
- package/lib/infrastructure/config/i18n.d.ts.map +1 -1
- package/lib/infrastructure/config/i18n.js +204 -27
- package/lib/infrastructure/config/i18n.js.map +1 -1
- package/lib/infrastructure/config/languages.d.ts +1 -1
- package/lib/infrastructure/config/languages.d.ts.map +1 -1
- package/lib/infrastructure/config/languages.js +2 -2
- package/lib/infrastructure/config/languages.js.map +1 -1
- package/lib/infrastructure/config/languagesData.js +2 -2
- package/lib/infrastructure/config/languagesData.js.map +1 -1
- package/lib/infrastructure/locales/ar-SA/auth.json +32 -0
- package/lib/infrastructure/locales/ar-SA/branding.json +9 -0
- package/lib/infrastructure/locales/ar-SA/datetime.json +140 -0
- package/lib/infrastructure/locales/ar-SA/errors.json +43 -0
- package/lib/infrastructure/locales/ar-SA/flashcards.json +287 -0
- package/lib/infrastructure/locales/ar-SA/general.json +61 -0
- package/lib/infrastructure/locales/ar-SA/index.d.ts +778 -0
- package/lib/infrastructure/locales/ar-SA/index.d.ts.map +1 -0
- package/lib/infrastructure/locales/ar-SA/index.js +46 -0
- package/lib/infrastructure/locales/ar-SA/index.js.map +1 -0
- package/lib/infrastructure/locales/ar-SA/navigation.json +58 -0
- package/lib/infrastructure/locales/ar-SA/onboarding.json +76 -0
- package/lib/infrastructure/locales/ar-SA/settings.json +53 -0
- package/lib/infrastructure/locales/bg-BG/auth.json +32 -0
- package/lib/infrastructure/locales/bg-BG/branding.json +9 -0
- package/lib/infrastructure/locales/bg-BG/datetime.json +140 -0
- package/lib/infrastructure/locales/bg-BG/errors.json +43 -0
- package/lib/infrastructure/locales/bg-BG/flashcards.json +287 -0
- package/lib/infrastructure/locales/bg-BG/general.json +61 -0
- package/lib/infrastructure/locales/bg-BG/index.d.ts +778 -0
- package/lib/infrastructure/locales/bg-BG/index.d.ts.map +1 -0
- package/lib/infrastructure/locales/bg-BG/index.js +46 -0
- package/lib/infrastructure/locales/bg-BG/index.js.map +1 -0
- package/lib/infrastructure/locales/bg-BG/navigation.json +58 -0
- package/lib/infrastructure/locales/bg-BG/onboarding.json +76 -0
- package/lib/infrastructure/locales/bg-BG/settings.json +53 -0
- package/lib/infrastructure/locales/cs-CZ/branding.json +9 -0
- package/lib/infrastructure/locales/cs-CZ/datetime.json +140 -0
- package/lib/infrastructure/locales/cs-CZ/errors.json +43 -0
- package/lib/infrastructure/locales/cs-CZ/flashcards.json +287 -0
- package/lib/infrastructure/locales/cs-CZ/general.json +61 -0
- package/lib/infrastructure/locales/cs-CZ/index.d.ts +745 -0
- package/lib/infrastructure/locales/cs-CZ/index.d.ts.map +1 -0
- package/lib/infrastructure/locales/cs-CZ/index.js +43 -0
- package/lib/infrastructure/locales/cs-CZ/index.js.map +1 -0
- package/lib/infrastructure/locales/cs-CZ/navigation.json +58 -0
- package/lib/infrastructure/locales/cs-CZ/onboarding.json +76 -0
- package/lib/infrastructure/locales/cs-CZ/settings.json +53 -0
- package/lib/infrastructure/locales/da-DK/branding.json +9 -0
- package/lib/infrastructure/locales/da-DK/datetime.json +140 -0
- package/lib/infrastructure/locales/da-DK/errors.json +43 -0
- package/lib/infrastructure/locales/da-DK/flashcards.json +287 -0
- package/lib/infrastructure/locales/da-DK/general.json +61 -0
- package/lib/infrastructure/locales/da-DK/index.d.ts +745 -0
- package/lib/infrastructure/locales/da-DK/index.d.ts.map +1 -0
- package/lib/infrastructure/locales/da-DK/index.js +43 -0
- package/lib/infrastructure/locales/da-DK/index.js.map +1 -0
- package/lib/infrastructure/locales/da-DK/navigation.json +58 -0
- package/lib/infrastructure/locales/da-DK/onboarding.json +76 -0
- package/lib/infrastructure/locales/da-DK/settings.json +53 -0
- package/lib/infrastructure/locales/de-DE/branding.json +9 -0
- package/lib/infrastructure/locales/de-DE/datetime.json +140 -0
- package/lib/infrastructure/locales/de-DE/errors.json +43 -0
- package/lib/infrastructure/locales/de-DE/flashcards.json +287 -0
- package/lib/infrastructure/locales/de-DE/general.json +61 -0
- package/lib/infrastructure/locales/de-DE/index.d.ts +745 -0
- package/lib/infrastructure/locales/de-DE/index.d.ts.map +1 -0
- package/lib/infrastructure/locales/de-DE/index.js +43 -0
- package/lib/infrastructure/locales/de-DE/index.js.map +1 -0
- package/lib/infrastructure/locales/de-DE/navigation.json +58 -0
- package/lib/infrastructure/locales/de-DE/onboarding.json +76 -0
- package/lib/infrastructure/locales/de-DE/settings.json +53 -0
- package/lib/infrastructure/locales/el-GR/branding.json +9 -0
- package/lib/infrastructure/locales/el-GR/datetime.json +140 -0
- package/lib/infrastructure/locales/el-GR/errors.json +43 -0
- package/lib/infrastructure/locales/el-GR/flashcards.json +287 -0
- package/lib/infrastructure/locales/el-GR/general.json +61 -0
- package/lib/infrastructure/locales/el-GR/index.d.ts +745 -0
- package/lib/infrastructure/locales/el-GR/index.d.ts.map +1 -0
- package/lib/infrastructure/locales/el-GR/index.js +43 -0
- package/lib/infrastructure/locales/el-GR/index.js.map +1 -0
- package/lib/infrastructure/locales/el-GR/navigation.json +58 -0
- package/lib/infrastructure/locales/el-GR/onboarding.json +76 -0
- package/lib/infrastructure/locales/el-GR/settings.json +53 -0
- package/lib/infrastructure/locales/en-AU/branding.json +9 -0
- package/lib/infrastructure/locales/en-AU/datetime.json +140 -0
- package/lib/infrastructure/locales/en-AU/errors.json +43 -0
- package/lib/infrastructure/locales/en-AU/flashcards.json +77 -0
- package/lib/infrastructure/locales/en-AU/general.json +61 -0
- package/lib/infrastructure/locales/en-AU/index.d.ts +535 -0
- package/lib/infrastructure/locales/en-AU/index.d.ts.map +1 -0
- package/lib/infrastructure/locales/en-AU/index.js +43 -0
- package/lib/infrastructure/locales/en-AU/index.js.map +1 -0
- package/lib/infrastructure/locales/en-AU/navigation.json +58 -0
- package/lib/infrastructure/locales/en-AU/onboarding.json +76 -0
- package/lib/infrastructure/locales/en-AU/settings.json +53 -0
- package/lib/infrastructure/locales/en-CA/branding.json +9 -0
- package/lib/infrastructure/locales/en-CA/datetime.json +140 -0
- package/lib/infrastructure/locales/en-CA/errors.json +43 -0
- package/lib/infrastructure/locales/en-CA/flashcards.json +77 -0
- package/lib/infrastructure/locales/en-CA/general.json +61 -0
- package/lib/infrastructure/locales/en-CA/index.d.ts +535 -0
- package/lib/infrastructure/locales/en-CA/index.d.ts.map +1 -0
- package/lib/infrastructure/locales/en-CA/index.js +43 -0
- package/lib/infrastructure/locales/en-CA/index.js.map +1 -0
- package/lib/infrastructure/locales/en-CA/navigation.json +58 -0
- package/lib/infrastructure/locales/en-CA/onboarding.json +76 -0
- package/lib/infrastructure/locales/en-CA/settings.json +53 -0
- package/lib/infrastructure/locales/en-GB/branding.json +9 -0
- package/lib/infrastructure/locales/en-GB/datetime.json +140 -0
- package/lib/infrastructure/locales/en-GB/errors.json +43 -0
- package/lib/infrastructure/locales/en-GB/flashcards.json +77 -0
- package/lib/infrastructure/locales/en-GB/general.json +61 -0
- package/lib/infrastructure/locales/en-GB/index.d.ts +535 -0
- package/lib/infrastructure/locales/en-GB/index.d.ts.map +1 -0
- package/lib/infrastructure/locales/en-GB/index.js +43 -0
- package/lib/infrastructure/locales/en-GB/index.js.map +1 -0
- package/lib/infrastructure/locales/en-GB/navigation.json +58 -0
- package/lib/infrastructure/locales/en-GB/onboarding.json +76 -0
- package/lib/infrastructure/locales/en-GB/settings.json +53 -0
- package/lib/infrastructure/locales/en-US/auth.json +32 -0
- package/lib/infrastructure/locales/en-US/branding.json +9 -0
- package/lib/infrastructure/locales/en-US/flashcards.json +310 -0
- package/lib/infrastructure/locales/en-US/general.json +6 -1
- package/lib/infrastructure/locales/en-US/index.d.ts +350 -332
- package/lib/infrastructure/locales/en-US/index.d.ts.map +1 -1
- package/lib/infrastructure/locales/en-US/index.js +30 -19
- package/lib/infrastructure/locales/en-US/index.js.map +1 -1
- package/lib/infrastructure/locales/en-US/navigation.json +4 -1
- package/lib/infrastructure/locales/en-US/settings.json +0 -12
- package/lib/infrastructure/locales/es-ES/branding.json +9 -0
- package/lib/infrastructure/locales/es-ES/datetime.json +140 -0
- package/lib/infrastructure/locales/es-ES/errors.json +43 -0
- package/lib/infrastructure/locales/es-ES/flashcards.json +287 -0
- package/lib/infrastructure/locales/es-ES/general.json +61 -0
- package/lib/infrastructure/locales/es-ES/index.d.ts +745 -0
- package/lib/infrastructure/locales/es-ES/index.d.ts.map +1 -0
- package/lib/infrastructure/locales/es-ES/index.js +43 -0
- package/lib/infrastructure/locales/es-ES/index.js.map +1 -0
- package/lib/infrastructure/locales/es-ES/navigation.json +58 -0
- package/lib/infrastructure/locales/es-ES/onboarding.json +76 -0
- package/lib/infrastructure/locales/es-ES/settings.json +53 -0
- package/lib/infrastructure/locales/es-MX/branding.json +9 -0
- package/lib/infrastructure/locales/es-MX/datetime.json +140 -0
- package/lib/infrastructure/locales/es-MX/errors.json +43 -0
- package/lib/infrastructure/locales/es-MX/flashcards.json +276 -0
- package/lib/infrastructure/locales/es-MX/general.json +61 -0
- package/lib/infrastructure/locales/es-MX/index.d.ts +734 -0
- package/lib/infrastructure/locales/es-MX/index.d.ts.map +1 -0
- package/lib/infrastructure/locales/es-MX/index.js +43 -0
- package/lib/infrastructure/locales/es-MX/index.js.map +1 -0
- package/lib/infrastructure/locales/es-MX/navigation.json +58 -0
- package/lib/infrastructure/locales/es-MX/onboarding.json +76 -0
- package/lib/infrastructure/locales/es-MX/settings.json +53 -0
- package/lib/infrastructure/locales/fi-FI/branding.json +9 -0
- package/lib/infrastructure/locales/fi-FI/datetime.json +140 -0
- package/lib/infrastructure/locales/fi-FI/errors.json +43 -0
- package/lib/infrastructure/locales/fi-FI/flashcards.json +287 -0
- package/lib/infrastructure/locales/fi-FI/general.json +61 -0
- package/lib/infrastructure/locales/fi-FI/index.d.ts +745 -0
- package/lib/infrastructure/locales/fi-FI/index.d.ts.map +1 -0
- package/lib/infrastructure/locales/fi-FI/index.js +43 -0
- package/lib/infrastructure/locales/fi-FI/index.js.map +1 -0
- package/lib/infrastructure/locales/fi-FI/navigation.json +58 -0
- package/lib/infrastructure/locales/fi-FI/onboarding.json +76 -0
- package/lib/infrastructure/locales/fi-FI/settings.json +53 -0
- package/lib/infrastructure/locales/fr-CA/branding.json +9 -0
- package/lib/infrastructure/locales/fr-CA/datetime.json +140 -0
- package/lib/infrastructure/locales/fr-CA/errors.json +43 -0
- package/lib/infrastructure/locales/fr-CA/flashcards.json +287 -0
- package/lib/infrastructure/locales/fr-CA/general.json +61 -0
- package/lib/infrastructure/locales/fr-CA/index.d.ts +745 -0
- package/lib/infrastructure/locales/fr-CA/index.d.ts.map +1 -0
- package/lib/infrastructure/locales/fr-CA/index.js +43 -0
- package/lib/infrastructure/locales/fr-CA/index.js.map +1 -0
- package/lib/infrastructure/locales/fr-CA/navigation.json +58 -0
- package/lib/infrastructure/locales/fr-CA/onboarding.json +76 -0
- package/lib/infrastructure/locales/fr-CA/settings.json +53 -0
- package/lib/infrastructure/locales/fr-FR/branding.json +9 -0
- package/lib/infrastructure/locales/fr-FR/datetime.json +140 -0
- package/lib/infrastructure/locales/fr-FR/errors.json +43 -0
- package/lib/infrastructure/locales/fr-FR/flashcards.json +287 -0
- package/lib/infrastructure/locales/fr-FR/general.json +61 -0
- package/lib/infrastructure/locales/fr-FR/index.d.ts +745 -0
- package/lib/infrastructure/locales/fr-FR/index.d.ts.map +1 -0
- package/lib/infrastructure/locales/fr-FR/index.js +43 -0
- package/lib/infrastructure/locales/fr-FR/index.js.map +1 -0
- package/lib/infrastructure/locales/fr-FR/navigation.json +58 -0
- package/lib/infrastructure/locales/fr-FR/onboarding.json +76 -0
- package/lib/infrastructure/locales/fr-FR/settings.json +53 -0
- package/lib/infrastructure/locales/hi-IN/branding.json +9 -0
- package/lib/infrastructure/locales/hi-IN/datetime.json +140 -0
- package/lib/infrastructure/locales/hi-IN/errors.json +43 -0
- package/lib/infrastructure/locales/hi-IN/flashcards.json +287 -0
- package/lib/infrastructure/locales/hi-IN/general.json +61 -0
- package/lib/infrastructure/locales/hi-IN/index.d.ts +745 -0
- package/lib/infrastructure/locales/hi-IN/index.d.ts.map +1 -0
- package/lib/infrastructure/locales/hi-IN/index.js +43 -0
- package/lib/infrastructure/locales/hi-IN/index.js.map +1 -0
- package/lib/infrastructure/locales/hi-IN/navigation.json +58 -0
- package/lib/infrastructure/locales/hi-IN/onboarding.json +76 -0
- package/lib/infrastructure/locales/hi-IN/settings.json +53 -0
- package/lib/infrastructure/locales/hr-HR/branding.json +9 -0
- package/lib/infrastructure/locales/hr-HR/datetime.json +140 -0
- package/lib/infrastructure/locales/hr-HR/errors.json +43 -0
- package/lib/infrastructure/locales/hr-HR/flashcards.json +276 -0
- package/lib/infrastructure/locales/hr-HR/general.json +61 -0
- package/lib/infrastructure/locales/hr-HR/index.d.ts +734 -0
- package/lib/infrastructure/locales/hr-HR/index.d.ts.map +1 -0
- package/lib/infrastructure/locales/hr-HR/index.js +43 -0
- package/lib/infrastructure/locales/hr-HR/index.js.map +1 -0
- package/lib/infrastructure/locales/hr-HR/navigation.json +58 -0
- package/lib/infrastructure/locales/hr-HR/onboarding.json +76 -0
- package/lib/infrastructure/locales/hr-HR/settings.json +53 -0
- package/lib/infrastructure/locales/hu-HU/branding.json +9 -0
- package/lib/infrastructure/locales/hu-HU/datetime.json +140 -0
- package/lib/infrastructure/locales/hu-HU/errors.json +43 -0
- package/lib/infrastructure/locales/hu-HU/flashcards.json +287 -0
- package/lib/infrastructure/locales/hu-HU/general.json +61 -0
- package/lib/infrastructure/locales/hu-HU/index.d.ts +745 -0
- package/lib/infrastructure/locales/hu-HU/index.d.ts.map +1 -0
- package/lib/infrastructure/locales/hu-HU/index.js +43 -0
- package/lib/infrastructure/locales/hu-HU/index.js.map +1 -0
- package/lib/infrastructure/locales/hu-HU/navigation.json +58 -0
- package/lib/infrastructure/locales/hu-HU/onboarding.json +76 -0
- package/lib/infrastructure/locales/hu-HU/settings.json +53 -0
- package/lib/infrastructure/locales/id-ID/branding.json +9 -0
- package/lib/infrastructure/locales/id-ID/datetime.json +140 -0
- package/lib/infrastructure/locales/id-ID/errors.json +43 -0
- package/lib/infrastructure/locales/id-ID/flashcards.json +287 -0
- package/lib/infrastructure/locales/id-ID/general.json +61 -0
- package/lib/infrastructure/locales/id-ID/index.d.ts +745 -0
- package/lib/infrastructure/locales/id-ID/index.d.ts.map +1 -0
- package/lib/infrastructure/locales/id-ID/index.js +43 -0
- package/lib/infrastructure/locales/id-ID/index.js.map +1 -0
- package/lib/infrastructure/locales/id-ID/navigation.json +58 -0
- package/lib/infrastructure/locales/id-ID/onboarding.json +76 -0
- package/lib/infrastructure/locales/id-ID/settings.json +53 -0
- package/lib/infrastructure/locales/it-IT/branding.json +9 -0
- package/lib/infrastructure/locales/it-IT/datetime.json +140 -0
- package/lib/infrastructure/locales/it-IT/errors.json +43 -0
- package/lib/infrastructure/locales/it-IT/flashcards.json +287 -0
- package/lib/infrastructure/locales/it-IT/general.json +61 -0
- package/lib/infrastructure/locales/it-IT/index.d.ts +745 -0
- package/lib/infrastructure/locales/it-IT/index.d.ts.map +1 -0
- package/lib/infrastructure/locales/it-IT/index.js +43 -0
- package/lib/infrastructure/locales/it-IT/index.js.map +1 -0
- package/lib/infrastructure/locales/it-IT/navigation.json +58 -0
- package/lib/infrastructure/locales/it-IT/onboarding.json +76 -0
- package/lib/infrastructure/locales/it-IT/settings.json +53 -0
- package/lib/infrastructure/locales/ja-JP/branding.json +9 -0
- package/lib/infrastructure/locales/ja-JP/datetime.json +140 -0
- package/lib/infrastructure/locales/ja-JP/errors.json +43 -0
- package/lib/infrastructure/locales/ja-JP/flashcards.json +287 -0
- package/lib/infrastructure/locales/ja-JP/general.json +61 -0
- package/lib/infrastructure/locales/ja-JP/index.d.ts +745 -0
- package/lib/infrastructure/locales/ja-JP/index.d.ts.map +1 -0
- package/lib/infrastructure/locales/ja-JP/index.js +43 -0
- package/lib/infrastructure/locales/ja-JP/index.js.map +1 -0
- package/lib/infrastructure/locales/ja-JP/navigation.json +58 -0
- package/lib/infrastructure/locales/ja-JP/onboarding.json +76 -0
- package/lib/infrastructure/locales/ja-JP/settings.json +53 -0
- package/lib/infrastructure/locales/ko-KR/branding.json +9 -0
- package/lib/infrastructure/locales/ko-KR/datetime.json +140 -0
- package/lib/infrastructure/locales/ko-KR/errors.json +43 -0
- package/lib/infrastructure/locales/ko-KR/flashcards.json +287 -0
- package/lib/infrastructure/locales/ko-KR/general.json +61 -0
- package/lib/infrastructure/locales/ko-KR/index.d.ts +745 -0
- package/lib/infrastructure/locales/ko-KR/index.d.ts.map +1 -0
- package/lib/infrastructure/locales/ko-KR/index.js +43 -0
- package/lib/infrastructure/locales/ko-KR/index.js.map +1 -0
- package/lib/infrastructure/locales/ko-KR/navigation.json +58 -0
- package/lib/infrastructure/locales/ko-KR/onboarding.json +76 -0
- package/lib/infrastructure/locales/ko-KR/settings.json +53 -0
- package/lib/infrastructure/locales/ms-MY/branding.json +9 -0
- package/lib/infrastructure/locales/ms-MY/datetime.json +140 -0
- package/lib/infrastructure/locales/ms-MY/errors.json +43 -0
- package/lib/infrastructure/locales/ms-MY/flashcards.json +287 -0
- package/lib/infrastructure/locales/ms-MY/general.json +61 -0
- package/lib/infrastructure/locales/ms-MY/index.d.ts +745 -0
- package/lib/infrastructure/locales/ms-MY/index.d.ts.map +1 -0
- package/lib/infrastructure/locales/ms-MY/index.js +43 -0
- package/lib/infrastructure/locales/ms-MY/index.js.map +1 -0
- package/lib/infrastructure/locales/ms-MY/navigation.json +58 -0
- package/lib/infrastructure/locales/ms-MY/onboarding.json +76 -0
- package/lib/infrastructure/locales/ms-MY/settings.json +53 -0
- package/lib/infrastructure/locales/nl-NL/branding.json +9 -0
- package/lib/infrastructure/locales/nl-NL/datetime.json +140 -0
- package/lib/infrastructure/locales/nl-NL/errors.json +43 -0
- package/lib/infrastructure/locales/nl-NL/flashcards.json +287 -0
- package/lib/infrastructure/locales/nl-NL/general.json +61 -0
- package/lib/infrastructure/locales/nl-NL/index.d.ts +745 -0
- package/lib/infrastructure/locales/nl-NL/index.d.ts.map +1 -0
- package/lib/infrastructure/locales/nl-NL/index.js +43 -0
- package/lib/infrastructure/locales/nl-NL/index.js.map +1 -0
- package/lib/infrastructure/locales/nl-NL/navigation.json +58 -0
- package/lib/infrastructure/locales/nl-NL/onboarding.json +76 -0
- package/lib/infrastructure/locales/nl-NL/settings.json +53 -0
- package/lib/infrastructure/locales/no-NO/branding.json +9 -0
- package/lib/infrastructure/locales/no-NO/datetime.json +140 -0
- package/lib/infrastructure/locales/no-NO/errors.json +43 -0
- package/lib/infrastructure/locales/no-NO/flashcards.json +287 -0
- package/lib/infrastructure/locales/no-NO/general.json +61 -0
- package/lib/infrastructure/locales/no-NO/index.d.ts +745 -0
- package/lib/infrastructure/locales/no-NO/index.d.ts.map +1 -0
- package/lib/infrastructure/locales/no-NO/index.js +43 -0
- package/lib/infrastructure/locales/no-NO/index.js.map +1 -0
- package/lib/infrastructure/locales/no-NO/navigation.json +58 -0
- package/lib/infrastructure/locales/no-NO/onboarding.json +76 -0
- package/lib/infrastructure/locales/no-NO/settings.json +53 -0
- package/lib/infrastructure/locales/pl-PL/branding.json +9 -0
- package/lib/infrastructure/locales/pl-PL/datetime.json +140 -0
- package/lib/infrastructure/locales/pl-PL/errors.json +43 -0
- package/lib/infrastructure/locales/pl-PL/flashcards.json +287 -0
- package/lib/infrastructure/locales/pl-PL/general.json +61 -0
- package/lib/infrastructure/locales/pl-PL/index.d.ts +745 -0
- package/lib/infrastructure/locales/pl-PL/index.d.ts.map +1 -0
- package/lib/infrastructure/locales/pl-PL/index.js +43 -0
- package/lib/infrastructure/locales/pl-PL/index.js.map +1 -0
- package/lib/infrastructure/locales/pl-PL/navigation.json +58 -0
- package/lib/infrastructure/locales/pl-PL/onboarding.json +76 -0
- package/lib/infrastructure/locales/pl-PL/settings.json +53 -0
- package/lib/infrastructure/locales/pt-BR/branding.json +9 -0
- package/lib/infrastructure/locales/pt-BR/datetime.json +140 -0
- package/lib/infrastructure/locales/pt-BR/errors.json +43 -0
- package/lib/infrastructure/locales/pt-BR/flashcards.json +287 -0
- package/lib/infrastructure/locales/pt-BR/general.json +61 -0
- package/lib/infrastructure/locales/pt-BR/index.d.ts +745 -0
- package/lib/infrastructure/locales/pt-BR/index.d.ts.map +1 -0
- package/lib/infrastructure/locales/pt-BR/index.js +43 -0
- package/lib/infrastructure/locales/pt-BR/index.js.map +1 -0
- package/lib/infrastructure/locales/pt-BR/navigation.json +58 -0
- package/lib/infrastructure/locales/pt-BR/onboarding.json +76 -0
- package/lib/infrastructure/locales/pt-BR/settings.json +53 -0
- package/lib/infrastructure/locales/pt-PT/branding.json +9 -0
- package/lib/infrastructure/locales/pt-PT/datetime.json +140 -0
- package/lib/infrastructure/locales/pt-PT/errors.json +43 -0
- package/lib/infrastructure/locales/pt-PT/flashcards.json +287 -0
- package/lib/infrastructure/locales/pt-PT/general.json +61 -0
- package/lib/infrastructure/locales/pt-PT/index.d.ts +745 -0
- package/lib/infrastructure/locales/pt-PT/index.d.ts.map +1 -0
- package/lib/infrastructure/locales/pt-PT/index.js +43 -0
- package/lib/infrastructure/locales/pt-PT/index.js.map +1 -0
- package/lib/infrastructure/locales/pt-PT/navigation.json +58 -0
- package/lib/infrastructure/locales/pt-PT/onboarding.json +76 -0
- package/lib/infrastructure/locales/pt-PT/settings.json +53 -0
- package/lib/infrastructure/locales/ro-RO/branding.json +9 -0
- package/lib/infrastructure/locales/ro-RO/datetime.json +140 -0
- package/lib/infrastructure/locales/ro-RO/errors.json +43 -0
- package/lib/infrastructure/locales/ro-RO/flashcards.json +287 -0
- package/lib/infrastructure/locales/ro-RO/general.json +61 -0
- package/lib/infrastructure/locales/ro-RO/index.d.ts +745 -0
- package/lib/infrastructure/locales/ro-RO/index.d.ts.map +1 -0
- package/lib/infrastructure/locales/ro-RO/index.js +43 -0
- package/lib/infrastructure/locales/ro-RO/index.js.map +1 -0
- package/lib/infrastructure/locales/ro-RO/navigation.json +58 -0
- package/lib/infrastructure/locales/ro-RO/onboarding.json +76 -0
- package/lib/infrastructure/locales/ro-RO/settings.json +53 -0
- package/lib/infrastructure/locales/ru-RU/branding.json +9 -0
- package/lib/infrastructure/locales/ru-RU/datetime.json +140 -0
- package/lib/infrastructure/locales/ru-RU/errors.json +43 -0
- package/lib/infrastructure/locales/ru-RU/flashcards.json +276 -0
- package/lib/infrastructure/locales/ru-RU/general.json +61 -0
- package/lib/infrastructure/locales/ru-RU/index.d.ts +734 -0
- package/lib/infrastructure/locales/ru-RU/index.d.ts.map +1 -0
- package/lib/infrastructure/locales/ru-RU/index.js +43 -0
- package/lib/infrastructure/locales/ru-RU/index.js.map +1 -0
- package/lib/infrastructure/locales/ru-RU/navigation.json +58 -0
- package/lib/infrastructure/locales/ru-RU/onboarding.json +76 -0
- package/lib/infrastructure/locales/ru-RU/settings.json +53 -0
- package/lib/infrastructure/locales/sk-SK/branding.json +9 -0
- package/lib/infrastructure/locales/sk-SK/datetime.json +140 -0
- package/lib/infrastructure/locales/sk-SK/errors.json +43 -0
- package/lib/infrastructure/locales/sk-SK/flashcards.json +287 -0
- package/lib/infrastructure/locales/sk-SK/general.json +61 -0
- package/lib/infrastructure/locales/sk-SK/index.d.ts +745 -0
- package/lib/infrastructure/locales/sk-SK/index.d.ts.map +1 -0
- package/lib/infrastructure/locales/sk-SK/index.js +43 -0
- package/lib/infrastructure/locales/sk-SK/index.js.map +1 -0
- package/lib/infrastructure/locales/sk-SK/navigation.json +58 -0
- package/lib/infrastructure/locales/sk-SK/onboarding.json +76 -0
- package/lib/infrastructure/locales/sk-SK/settings.json +53 -0
- package/lib/infrastructure/locales/sv-SE/branding.json +9 -0
- package/lib/infrastructure/locales/sv-SE/datetime.json +140 -0
- package/lib/infrastructure/locales/sv-SE/errors.json +43 -0
- package/lib/infrastructure/locales/sv-SE/flashcards.json +287 -0
- package/lib/infrastructure/locales/sv-SE/general.json +61 -0
- package/lib/infrastructure/locales/sv-SE/index.d.ts +745 -0
- package/lib/infrastructure/locales/sv-SE/index.d.ts.map +1 -0
- package/lib/infrastructure/locales/sv-SE/index.js +43 -0
- package/lib/infrastructure/locales/sv-SE/index.js.map +1 -0
- package/lib/infrastructure/locales/sv-SE/navigation.json +58 -0
- package/lib/infrastructure/locales/sv-SE/onboarding.json +76 -0
- package/lib/infrastructure/locales/sv-SE/settings.json +53 -0
- package/lib/infrastructure/locales/th-TH/branding.json +9 -0
- package/lib/infrastructure/locales/th-TH/datetime.json +140 -0
- package/lib/infrastructure/locales/th-TH/errors.json +43 -0
- package/lib/infrastructure/locales/th-TH/flashcards.json +287 -0
- package/lib/infrastructure/locales/th-TH/general.json +61 -0
- package/lib/infrastructure/locales/th-TH/index.d.ts +745 -0
- package/lib/infrastructure/locales/th-TH/index.d.ts.map +1 -0
- package/lib/infrastructure/locales/th-TH/index.js +43 -0
- package/lib/infrastructure/locales/th-TH/index.js.map +1 -0
- package/lib/infrastructure/locales/th-TH/navigation.json +58 -0
- package/lib/infrastructure/locales/th-TH/onboarding.json +76 -0
- package/lib/infrastructure/locales/th-TH/settings.json +53 -0
- package/lib/infrastructure/locales/tl-PH/branding.json +9 -0
- package/lib/infrastructure/locales/tl-PH/datetime.json +140 -0
- package/lib/infrastructure/locales/tl-PH/errors.json +43 -0
- package/lib/infrastructure/locales/tl-PH/flashcards.json +287 -0
- package/lib/infrastructure/locales/tl-PH/general.json +61 -0
- package/lib/infrastructure/locales/tl-PH/index.d.ts +745 -0
- package/lib/infrastructure/locales/tl-PH/index.d.ts.map +1 -0
- package/lib/infrastructure/locales/tl-PH/index.js +43 -0
- package/lib/infrastructure/locales/tl-PH/index.js.map +1 -0
- package/lib/infrastructure/locales/tl-PH/navigation.json +58 -0
- package/lib/infrastructure/locales/tl-PH/onboarding.json +76 -0
- package/lib/infrastructure/locales/tl-PH/settings.json +53 -0
- package/lib/infrastructure/locales/tr-TR/branding.json +9 -0
- package/lib/infrastructure/locales/tr-TR/datetime.json +140 -0
- package/lib/infrastructure/locales/tr-TR/errors.json +43 -0
- package/lib/infrastructure/locales/tr-TR/flashcards.json +287 -0
- package/lib/infrastructure/locales/tr-TR/general.json +61 -0
- package/lib/infrastructure/locales/tr-TR/index.d.ts +745 -0
- package/lib/infrastructure/locales/tr-TR/index.d.ts.map +1 -0
- package/lib/infrastructure/locales/tr-TR/index.js +43 -0
- package/lib/infrastructure/locales/tr-TR/index.js.map +1 -0
- package/lib/infrastructure/locales/tr-TR/navigation.json +58 -0
- package/lib/infrastructure/locales/tr-TR/onboarding.json +76 -0
- package/lib/infrastructure/locales/tr-TR/settings.json +53 -0
- package/lib/infrastructure/locales/uk-UA/branding.json +9 -0
- package/lib/infrastructure/locales/uk-UA/datetime.json +140 -0
- package/lib/infrastructure/locales/uk-UA/errors.json +43 -0
- package/lib/infrastructure/locales/uk-UA/flashcards.json +287 -0
- package/lib/infrastructure/locales/uk-UA/general.json +61 -0
- package/lib/infrastructure/locales/uk-UA/index.d.ts +745 -0
- package/lib/infrastructure/locales/uk-UA/index.d.ts.map +1 -0
- package/lib/infrastructure/locales/uk-UA/index.js +43 -0
- package/lib/infrastructure/locales/uk-UA/index.js.map +1 -0
- package/lib/infrastructure/locales/uk-UA/navigation.json +58 -0
- package/lib/infrastructure/locales/uk-UA/onboarding.json +76 -0
- package/lib/infrastructure/locales/uk-UA/settings.json +53 -0
- package/lib/infrastructure/locales/vi-VN/branding.json +9 -0
- package/lib/infrastructure/locales/vi-VN/datetime.json +140 -0
- package/lib/infrastructure/locales/vi-VN/errors.json +43 -0
- package/lib/infrastructure/locales/vi-VN/flashcards.json +287 -0
- package/lib/infrastructure/locales/vi-VN/general.json +61 -0
- package/lib/infrastructure/locales/vi-VN/index.d.ts +745 -0
- package/lib/infrastructure/locales/vi-VN/index.d.ts.map +1 -0
- package/lib/infrastructure/locales/vi-VN/index.js +43 -0
- package/lib/infrastructure/locales/vi-VN/index.js.map +1 -0
- package/lib/infrastructure/locales/vi-VN/navigation.json +58 -0
- package/lib/infrastructure/locales/vi-VN/onboarding.json +76 -0
- package/lib/infrastructure/locales/vi-VN/settings.json +53 -0
- package/lib/infrastructure/locales/zh-CN/branding.json +9 -0
- package/lib/infrastructure/locales/zh-CN/datetime.json +140 -0
- package/lib/infrastructure/locales/zh-CN/errors.json +43 -0
- package/lib/infrastructure/locales/zh-CN/flashcards.json +287 -0
- package/lib/infrastructure/locales/zh-CN/general.json +61 -0
- package/lib/infrastructure/locales/zh-CN/index.d.ts +745 -0
- package/lib/infrastructure/locales/zh-CN/index.d.ts.map +1 -0
- package/lib/infrastructure/locales/zh-CN/index.js +43 -0
- package/lib/infrastructure/locales/zh-CN/index.js.map +1 -0
- package/lib/infrastructure/locales/zh-CN/navigation.json +58 -0
- package/lib/infrastructure/locales/zh-CN/onboarding.json +76 -0
- package/lib/infrastructure/locales/zh-CN/settings.json +53 -0
- package/lib/infrastructure/locales/zh-TW/branding.json +9 -0
- package/lib/infrastructure/locales/zh-TW/datetime.json +140 -0
- package/lib/infrastructure/locales/zh-TW/errors.json +43 -0
- package/lib/infrastructure/locales/zh-TW/flashcards.json +287 -0
- package/lib/infrastructure/locales/zh-TW/general.json +61 -0
- package/lib/infrastructure/locales/zh-TW/index.d.ts +745 -0
- package/lib/infrastructure/locales/zh-TW/index.d.ts.map +1 -0
- package/lib/infrastructure/locales/zh-TW/index.js +43 -0
- package/lib/infrastructure/locales/zh-TW/index.js.map +1 -0
- package/lib/infrastructure/locales/zh-TW/navigation.json +58 -0
- package/lib/infrastructure/locales/zh-TW/onboarding.json +76 -0
- package/lib/infrastructure/locales/zh-TW/settings.json +53 -0
- package/lib/infrastructure/storage/AsyncStorageWrapper.d.ts.map +1 -1
- package/lib/infrastructure/storage/AsyncStorageWrapper.js +6 -2
- package/lib/infrastructure/storage/AsyncStorageWrapper.js.map +1 -1
- package/lib/infrastructure/storage/LocalizationStore.d.ts +7 -2
- package/lib/infrastructure/storage/LocalizationStore.d.ts.map +1 -1
- package/lib/infrastructure/storage/LocalizationStore.js +116 -35
- package/lib/infrastructure/storage/LocalizationStore.js.map +1 -1
- package/package.json +9 -2
- package/scripts/check-translations.js +354 -0
- package/scripts/createLocaleLoaders.js +178 -0
- package/scripts/remove-unused-keys.js +216 -0
- package/scripts/setup-languages.js +122 -0
- package/scripts/translate-missing.js +500 -0
- package/scripts/utils/findLocalesDir.js +79 -0
- package/src/infrastructure/config/i18n.ts +195 -27
- package/src/infrastructure/config/languages.ts +3 -3
- package/src/infrastructure/config/languagesData.ts +3 -2
- package/src/infrastructure/locales/ar-SA/auth.json +32 -0
- package/src/infrastructure/locales/ar-SA/branding.json +9 -0
- package/src/infrastructure/locales/ar-SA/datetime.json +140 -0
- package/src/infrastructure/locales/ar-SA/errors.json +43 -0
- package/src/infrastructure/locales/ar-SA/flashcards.json +287 -0
- package/src/infrastructure/locales/ar-SA/general.json +61 -0
- package/src/infrastructure/locales/ar-SA/index.ts +48 -0
- package/src/infrastructure/locales/ar-SA/navigation.json +58 -0
- package/src/infrastructure/locales/ar-SA/onboarding.json +76 -0
- package/src/infrastructure/locales/ar-SA/settings.json +53 -0
- package/src/infrastructure/locales/bg-BG/auth.json +32 -0
- package/src/infrastructure/locales/bg-BG/branding.json +9 -0
- package/src/infrastructure/locales/bg-BG/datetime.json +140 -0
- package/src/infrastructure/locales/bg-BG/errors.json +43 -0
- package/src/infrastructure/locales/bg-BG/flashcards.json +287 -0
- package/src/infrastructure/locales/bg-BG/general.json +61 -0
- package/src/infrastructure/locales/bg-BG/index.ts +48 -0
- package/src/infrastructure/locales/bg-BG/navigation.json +58 -0
- package/src/infrastructure/locales/bg-BG/onboarding.json +76 -0
- package/src/infrastructure/locales/bg-BG/settings.json +53 -0
- package/src/infrastructure/locales/cs-CZ/auth.json +32 -0
- package/src/infrastructure/locales/cs-CZ/branding.json +9 -0
- package/src/infrastructure/locales/cs-CZ/datetime.json +140 -0
- package/src/infrastructure/locales/cs-CZ/errors.json +43 -0
- package/src/infrastructure/locales/cs-CZ/flashcards.json +287 -0
- package/src/infrastructure/locales/cs-CZ/general.json +61 -0
- package/src/infrastructure/locales/cs-CZ/index.ts +45 -0
- package/src/infrastructure/locales/cs-CZ/navigation.json +58 -0
- package/src/infrastructure/locales/cs-CZ/onboarding.json +76 -0
- package/src/infrastructure/locales/cs-CZ/settings.json +53 -0
- package/src/infrastructure/locales/da-DK/auth.json +32 -0
- package/src/infrastructure/locales/da-DK/branding.json +9 -0
- package/src/infrastructure/locales/da-DK/datetime.json +140 -0
- package/src/infrastructure/locales/da-DK/errors.json +43 -0
- package/src/infrastructure/locales/da-DK/flashcards.json +287 -0
- package/src/infrastructure/locales/da-DK/general.json +61 -0
- package/src/infrastructure/locales/da-DK/index.ts +45 -0
- package/src/infrastructure/locales/da-DK/navigation.json +58 -0
- package/src/infrastructure/locales/da-DK/onboarding.json +76 -0
- package/src/infrastructure/locales/da-DK/settings.json +53 -0
- package/src/infrastructure/locales/de-DE/auth.json +32 -0
- package/src/infrastructure/locales/de-DE/branding.json +9 -0
- package/src/infrastructure/locales/de-DE/datetime.json +140 -0
- package/src/infrastructure/locales/de-DE/errors.json +43 -0
- package/src/infrastructure/locales/de-DE/flashcards.json +287 -0
- package/src/infrastructure/locales/de-DE/general.json +61 -0
- package/src/infrastructure/locales/de-DE/index.ts +45 -0
- package/src/infrastructure/locales/de-DE/navigation.json +58 -0
- package/src/infrastructure/locales/de-DE/onboarding.json +76 -0
- package/src/infrastructure/locales/de-DE/settings.json +53 -0
- package/src/infrastructure/locales/el-GR/auth.json +32 -0
- package/src/infrastructure/locales/el-GR/branding.json +9 -0
- package/src/infrastructure/locales/el-GR/datetime.json +140 -0
- package/src/infrastructure/locales/el-GR/errors.json +43 -0
- package/src/infrastructure/locales/el-GR/flashcards.json +287 -0
- package/src/infrastructure/locales/el-GR/general.json +61 -0
- package/src/infrastructure/locales/el-GR/index.ts +45 -0
- package/src/infrastructure/locales/el-GR/navigation.json +58 -0
- package/src/infrastructure/locales/el-GR/onboarding.json +76 -0
- package/src/infrastructure/locales/el-GR/settings.json +53 -0
- package/src/infrastructure/locales/en-AU/branding.json +11 -0
- package/src/infrastructure/locales/en-AU/datetime.json +140 -0
- package/src/infrastructure/locales/en-AU/errors.json +43 -0
- package/src/infrastructure/locales/en-AU/flashcards.json +83 -0
- package/src/infrastructure/locales/en-AU/general.json +61 -0
- package/src/infrastructure/locales/en-AU/index.ts +45 -0
- package/src/infrastructure/locales/en-AU/navigation.json +58 -0
- package/src/infrastructure/locales/en-AU/onboarding.json +76 -0
- package/src/infrastructure/locales/en-AU/settings.json +53 -0
- package/src/infrastructure/locales/en-CA/branding.json +11 -0
- package/src/infrastructure/locales/en-CA/datetime.json +140 -0
- package/src/infrastructure/locales/en-CA/errors.json +43 -0
- package/src/infrastructure/locales/en-CA/flashcards.json +83 -0
- package/src/infrastructure/locales/en-CA/general.json +61 -0
- package/src/infrastructure/locales/en-CA/index.ts +45 -0
- package/src/infrastructure/locales/en-CA/navigation.json +58 -0
- package/src/infrastructure/locales/en-CA/onboarding.json +76 -0
- package/src/infrastructure/locales/en-CA/settings.json +53 -0
- package/src/infrastructure/locales/en-GB/branding.json +11 -0
- package/src/infrastructure/locales/en-GB/datetime.json +140 -0
- package/src/infrastructure/locales/en-GB/errors.json +43 -0
- package/src/infrastructure/locales/en-GB/flashcards.json +83 -0
- package/src/infrastructure/locales/en-GB/general.json +61 -0
- package/src/infrastructure/locales/en-GB/index.ts +45 -0
- package/src/infrastructure/locales/en-GB/navigation.json +58 -0
- package/src/infrastructure/locales/en-GB/onboarding.json +76 -0
- package/src/infrastructure/locales/en-GB/settings.json +53 -0
- package/src/infrastructure/locales/en-US/auth.json +32 -0
- package/src/infrastructure/locales/en-US/branding.json +11 -0
- package/src/infrastructure/locales/en-US/flashcards.json +310 -0
- package/src/infrastructure/locales/en-US/general.json +6 -1
- package/src/infrastructure/locales/en-US/index.ts +31 -19
- package/src/infrastructure/locales/en-US/navigation.json +4 -1
- package/src/infrastructure/locales/en-US/settings.json +0 -12
- package/src/infrastructure/locales/es-ES/auth.json +32 -0
- package/src/infrastructure/locales/es-ES/branding.json +9 -0
- package/src/infrastructure/locales/es-ES/datetime.json +140 -0
- package/src/infrastructure/locales/es-ES/errors.json +43 -0
- package/src/infrastructure/locales/es-ES/flashcards.json +287 -0
- package/src/infrastructure/locales/es-ES/general.json +61 -0
- package/src/infrastructure/locales/es-ES/index.ts +45 -0
- package/src/infrastructure/locales/es-ES/navigation.json +58 -0
- package/src/infrastructure/locales/es-ES/onboarding.json +76 -0
- package/src/infrastructure/locales/es-ES/settings.json +53 -0
- package/src/infrastructure/locales/es-MX/auth.json +32 -0
- package/src/infrastructure/locales/es-MX/branding.json +9 -0
- package/src/infrastructure/locales/es-MX/datetime.json +140 -0
- package/src/infrastructure/locales/es-MX/errors.json +43 -0
- package/src/infrastructure/locales/es-MX/flashcards.json +276 -0
- package/src/infrastructure/locales/es-MX/general.json +61 -0
- package/src/infrastructure/locales/es-MX/index.ts +45 -0
- package/src/infrastructure/locales/es-MX/navigation.json +58 -0
- package/src/infrastructure/locales/es-MX/onboarding.json +76 -0
- package/src/infrastructure/locales/es-MX/settings.json +53 -0
- package/src/infrastructure/locales/fi-FI/auth.json +32 -0
- package/src/infrastructure/locales/fi-FI/branding.json +9 -0
- package/src/infrastructure/locales/fi-FI/datetime.json +140 -0
- package/src/infrastructure/locales/fi-FI/errors.json +43 -0
- package/src/infrastructure/locales/fi-FI/flashcards.json +287 -0
- package/src/infrastructure/locales/fi-FI/general.json +61 -0
- package/src/infrastructure/locales/fi-FI/index.ts +45 -0
- package/src/infrastructure/locales/fi-FI/navigation.json +58 -0
- package/src/infrastructure/locales/fi-FI/onboarding.json +76 -0
- package/src/infrastructure/locales/fi-FI/settings.json +53 -0
- package/src/infrastructure/locales/fr-CA/auth.json +32 -0
- package/src/infrastructure/locales/fr-CA/branding.json +9 -0
- package/src/infrastructure/locales/fr-CA/datetime.json +140 -0
- package/src/infrastructure/locales/fr-CA/errors.json +43 -0
- package/src/infrastructure/locales/fr-CA/flashcards.json +287 -0
- package/src/infrastructure/locales/fr-CA/general.json +61 -0
- package/src/infrastructure/locales/fr-CA/index.ts +45 -0
- package/src/infrastructure/locales/fr-CA/navigation.json +58 -0
- package/src/infrastructure/locales/fr-CA/onboarding.json +76 -0
- package/src/infrastructure/locales/fr-CA/settings.json +53 -0
- package/src/infrastructure/locales/fr-FR/auth.json +32 -0
- package/src/infrastructure/locales/fr-FR/branding.json +9 -0
- package/src/infrastructure/locales/fr-FR/datetime.json +140 -0
- package/src/infrastructure/locales/fr-FR/errors.json +43 -0
- package/src/infrastructure/locales/fr-FR/flashcards.json +287 -0
- package/src/infrastructure/locales/fr-FR/general.json +61 -0
- package/src/infrastructure/locales/fr-FR/index.ts +45 -0
- package/src/infrastructure/locales/fr-FR/navigation.json +58 -0
- package/src/infrastructure/locales/fr-FR/onboarding.json +76 -0
- package/src/infrastructure/locales/fr-FR/settings.json +53 -0
- package/src/infrastructure/locales/hi-IN/auth.json +32 -0
- package/src/infrastructure/locales/hi-IN/branding.json +9 -0
- package/src/infrastructure/locales/hi-IN/datetime.json +140 -0
- package/src/infrastructure/locales/hi-IN/errors.json +43 -0
- package/src/infrastructure/locales/hi-IN/flashcards.json +287 -0
- package/src/infrastructure/locales/hi-IN/general.json +61 -0
- package/src/infrastructure/locales/hi-IN/index.ts +45 -0
- package/src/infrastructure/locales/hi-IN/navigation.json +58 -0
- package/src/infrastructure/locales/hi-IN/onboarding.json +76 -0
- package/src/infrastructure/locales/hi-IN/settings.json +53 -0
- package/src/infrastructure/locales/hr-HR/auth.json +32 -0
- package/src/infrastructure/locales/hr-HR/branding.json +9 -0
- package/src/infrastructure/locales/hr-HR/datetime.json +140 -0
- package/src/infrastructure/locales/hr-HR/errors.json +43 -0
- package/src/infrastructure/locales/hr-HR/flashcards.json +276 -0
- package/src/infrastructure/locales/hr-HR/general.json +61 -0
- package/src/infrastructure/locales/hr-HR/index.ts +45 -0
- package/src/infrastructure/locales/hr-HR/navigation.json +58 -0
- package/src/infrastructure/locales/hr-HR/onboarding.json +76 -0
- package/src/infrastructure/locales/hr-HR/settings.json +53 -0
- package/src/infrastructure/locales/hu-HU/auth.json +32 -0
- package/src/infrastructure/locales/hu-HU/branding.json +9 -0
- package/src/infrastructure/locales/hu-HU/datetime.json +140 -0
- package/src/infrastructure/locales/hu-HU/errors.json +43 -0
- package/src/infrastructure/locales/hu-HU/flashcards.json +287 -0
- package/src/infrastructure/locales/hu-HU/general.json +61 -0
- package/src/infrastructure/locales/hu-HU/index.ts +45 -0
- package/src/infrastructure/locales/hu-HU/navigation.json +58 -0
- package/src/infrastructure/locales/hu-HU/onboarding.json +76 -0
- package/src/infrastructure/locales/hu-HU/settings.json +53 -0
- package/src/infrastructure/locales/id-ID/auth.json +32 -0
- package/src/infrastructure/locales/id-ID/branding.json +9 -0
- package/src/infrastructure/locales/id-ID/datetime.json +140 -0
- package/src/infrastructure/locales/id-ID/errors.json +43 -0
- package/src/infrastructure/locales/id-ID/flashcards.json +287 -0
- package/src/infrastructure/locales/id-ID/general.json +61 -0
- package/src/infrastructure/locales/id-ID/index.ts +45 -0
- package/src/infrastructure/locales/id-ID/navigation.json +58 -0
- package/src/infrastructure/locales/id-ID/onboarding.json +76 -0
- package/src/infrastructure/locales/id-ID/settings.json +53 -0
- package/src/infrastructure/locales/it-IT/auth.json +32 -0
- package/src/infrastructure/locales/it-IT/branding.json +9 -0
- package/src/infrastructure/locales/it-IT/datetime.json +140 -0
- package/src/infrastructure/locales/it-IT/errors.json +43 -0
- package/src/infrastructure/locales/it-IT/flashcards.json +287 -0
- package/src/infrastructure/locales/it-IT/general.json +61 -0
- package/src/infrastructure/locales/it-IT/index.ts +45 -0
- package/src/infrastructure/locales/it-IT/navigation.json +58 -0
- package/src/infrastructure/locales/it-IT/onboarding.json +76 -0
- package/src/infrastructure/locales/it-IT/settings.json +53 -0
- package/src/infrastructure/locales/ja-JP/auth.json +32 -0
- package/src/infrastructure/locales/ja-JP/branding.json +9 -0
- package/src/infrastructure/locales/ja-JP/datetime.json +140 -0
- package/src/infrastructure/locales/ja-JP/errors.json +43 -0
- package/src/infrastructure/locales/ja-JP/flashcards.json +287 -0
- package/src/infrastructure/locales/ja-JP/general.json +61 -0
- package/src/infrastructure/locales/ja-JP/index.ts +45 -0
- package/src/infrastructure/locales/ja-JP/navigation.json +58 -0
- package/src/infrastructure/locales/ja-JP/onboarding.json +76 -0
- package/src/infrastructure/locales/ja-JP/settings.json +53 -0
- package/src/infrastructure/locales/ko-KR/auth.json +32 -0
- package/src/infrastructure/locales/ko-KR/branding.json +9 -0
- package/src/infrastructure/locales/ko-KR/datetime.json +140 -0
- package/src/infrastructure/locales/ko-KR/errors.json +43 -0
- package/src/infrastructure/locales/ko-KR/flashcards.json +287 -0
- package/src/infrastructure/locales/ko-KR/general.json +61 -0
- package/src/infrastructure/locales/ko-KR/index.ts +45 -0
- package/src/infrastructure/locales/ko-KR/navigation.json +58 -0
- package/src/infrastructure/locales/ko-KR/onboarding.json +76 -0
- package/src/infrastructure/locales/ko-KR/settings.json +53 -0
- package/src/infrastructure/locales/ms-MY/auth.json +32 -0
- package/src/infrastructure/locales/ms-MY/branding.json +9 -0
- package/src/infrastructure/locales/ms-MY/datetime.json +140 -0
- package/src/infrastructure/locales/ms-MY/errors.json +43 -0
- package/src/infrastructure/locales/ms-MY/flashcards.json +287 -0
- package/src/infrastructure/locales/ms-MY/general.json +61 -0
- package/src/infrastructure/locales/ms-MY/index.ts +45 -0
- package/src/infrastructure/locales/ms-MY/navigation.json +58 -0
- package/src/infrastructure/locales/ms-MY/onboarding.json +76 -0
- package/src/infrastructure/locales/ms-MY/settings.json +53 -0
- package/src/infrastructure/locales/nl-NL/auth.json +32 -0
- package/src/infrastructure/locales/nl-NL/branding.json +9 -0
- package/src/infrastructure/locales/nl-NL/datetime.json +140 -0
- package/src/infrastructure/locales/nl-NL/errors.json +43 -0
- package/src/infrastructure/locales/nl-NL/flashcards.json +287 -0
- package/src/infrastructure/locales/nl-NL/general.json +61 -0
- package/src/infrastructure/locales/nl-NL/index.ts +45 -0
- package/src/infrastructure/locales/nl-NL/navigation.json +58 -0
- package/src/infrastructure/locales/nl-NL/onboarding.json +76 -0
- package/src/infrastructure/locales/nl-NL/settings.json +53 -0
- package/src/infrastructure/locales/no-NO/auth.json +32 -0
- package/src/infrastructure/locales/no-NO/branding.json +9 -0
- package/src/infrastructure/locales/no-NO/datetime.json +140 -0
- package/src/infrastructure/locales/no-NO/errors.json +43 -0
- package/src/infrastructure/locales/no-NO/flashcards.json +287 -0
- package/src/infrastructure/locales/no-NO/general.json +61 -0
- package/src/infrastructure/locales/no-NO/index.ts +45 -0
- package/src/infrastructure/locales/no-NO/navigation.json +58 -0
- package/src/infrastructure/locales/no-NO/onboarding.json +76 -0
- package/src/infrastructure/locales/no-NO/settings.json +53 -0
- package/src/infrastructure/locales/pl-PL/auth.json +32 -0
- package/src/infrastructure/locales/pl-PL/branding.json +9 -0
- package/src/infrastructure/locales/pl-PL/datetime.json +140 -0
- package/src/infrastructure/locales/pl-PL/errors.json +43 -0
- package/src/infrastructure/locales/pl-PL/flashcards.json +287 -0
- package/src/infrastructure/locales/pl-PL/general.json +61 -0
- package/src/infrastructure/locales/pl-PL/index.ts +45 -0
- package/src/infrastructure/locales/pl-PL/navigation.json +58 -0
- package/src/infrastructure/locales/pl-PL/onboarding.json +76 -0
- package/src/infrastructure/locales/pl-PL/settings.json +53 -0
- package/src/infrastructure/locales/pt-BR/auth.json +32 -0
- package/src/infrastructure/locales/pt-BR/branding.json +9 -0
- package/src/infrastructure/locales/pt-BR/datetime.json +140 -0
- package/src/infrastructure/locales/pt-BR/errors.json +43 -0
- package/src/infrastructure/locales/pt-BR/flashcards.json +287 -0
- package/src/infrastructure/locales/pt-BR/general.json +61 -0
- package/src/infrastructure/locales/pt-BR/index.ts +45 -0
- package/src/infrastructure/locales/pt-BR/navigation.json +58 -0
- package/src/infrastructure/locales/pt-BR/onboarding.json +76 -0
- package/src/infrastructure/locales/pt-BR/settings.json +53 -0
- package/src/infrastructure/locales/pt-PT/auth.json +32 -0
- package/src/infrastructure/locales/pt-PT/branding.json +9 -0
- package/src/infrastructure/locales/pt-PT/datetime.json +140 -0
- package/src/infrastructure/locales/pt-PT/errors.json +43 -0
- package/src/infrastructure/locales/pt-PT/flashcards.json +287 -0
- package/src/infrastructure/locales/pt-PT/general.json +61 -0
- package/src/infrastructure/locales/pt-PT/index.ts +45 -0
- package/src/infrastructure/locales/pt-PT/navigation.json +58 -0
- package/src/infrastructure/locales/pt-PT/onboarding.json +76 -0
- package/src/infrastructure/locales/pt-PT/settings.json +53 -0
- package/src/infrastructure/locales/ro-RO/auth.json +32 -0
- package/src/infrastructure/locales/ro-RO/branding.json +9 -0
- package/src/infrastructure/locales/ro-RO/datetime.json +140 -0
- package/src/infrastructure/locales/ro-RO/errors.json +43 -0
- package/src/infrastructure/locales/ro-RO/flashcards.json +287 -0
- package/src/infrastructure/locales/ro-RO/general.json +61 -0
- package/src/infrastructure/locales/ro-RO/index.ts +45 -0
- package/src/infrastructure/locales/ro-RO/navigation.json +58 -0
- package/src/infrastructure/locales/ro-RO/onboarding.json +76 -0
- package/src/infrastructure/locales/ro-RO/settings.json +53 -0
- package/src/infrastructure/locales/ru-RU/auth.json +32 -0
- package/src/infrastructure/locales/ru-RU/branding.json +9 -0
- package/src/infrastructure/locales/ru-RU/datetime.json +140 -0
- package/src/infrastructure/locales/ru-RU/errors.json +43 -0
- package/src/infrastructure/locales/ru-RU/flashcards.json +276 -0
- package/src/infrastructure/locales/ru-RU/general.json +61 -0
- package/src/infrastructure/locales/ru-RU/index.ts +45 -0
- package/src/infrastructure/locales/ru-RU/navigation.json +58 -0
- package/src/infrastructure/locales/ru-RU/onboarding.json +76 -0
- package/src/infrastructure/locales/ru-RU/settings.json +53 -0
- package/src/infrastructure/locales/sk-SK/auth.json +32 -0
- package/src/infrastructure/locales/sk-SK/branding.json +9 -0
- package/src/infrastructure/locales/sk-SK/datetime.json +140 -0
- package/src/infrastructure/locales/sk-SK/errors.json +43 -0
- package/src/infrastructure/locales/sk-SK/flashcards.json +287 -0
- package/src/infrastructure/locales/sk-SK/general.json +61 -0
- package/src/infrastructure/locales/sk-SK/index.ts +45 -0
- package/src/infrastructure/locales/sk-SK/navigation.json +58 -0
- package/src/infrastructure/locales/sk-SK/onboarding.json +76 -0
- package/src/infrastructure/locales/sk-SK/settings.json +53 -0
- package/src/infrastructure/locales/sv-SE/auth.json +32 -0
- package/src/infrastructure/locales/sv-SE/branding.json +9 -0
- package/src/infrastructure/locales/sv-SE/datetime.json +140 -0
- package/src/infrastructure/locales/sv-SE/errors.json +43 -0
- package/src/infrastructure/locales/sv-SE/flashcards.json +287 -0
- package/src/infrastructure/locales/sv-SE/general.json +61 -0
- package/src/infrastructure/locales/sv-SE/index.ts +45 -0
- package/src/infrastructure/locales/sv-SE/navigation.json +58 -0
- package/src/infrastructure/locales/sv-SE/onboarding.json +76 -0
- package/src/infrastructure/locales/sv-SE/settings.json +53 -0
- package/src/infrastructure/locales/th-TH/auth.json +32 -0
- package/src/infrastructure/locales/th-TH/branding.json +9 -0
- package/src/infrastructure/locales/th-TH/datetime.json +140 -0
- package/src/infrastructure/locales/th-TH/errors.json +43 -0
- package/src/infrastructure/locales/th-TH/flashcards.json +287 -0
- package/src/infrastructure/locales/th-TH/general.json +61 -0
- package/src/infrastructure/locales/th-TH/index.ts +45 -0
- package/src/infrastructure/locales/th-TH/navigation.json +58 -0
- package/src/infrastructure/locales/th-TH/onboarding.json +76 -0
- package/src/infrastructure/locales/th-TH/settings.json +53 -0
- package/src/infrastructure/locales/tl-PH/auth.json +32 -0
- package/src/infrastructure/locales/tl-PH/branding.json +9 -0
- package/src/infrastructure/locales/tl-PH/datetime.json +140 -0
- package/src/infrastructure/locales/tl-PH/errors.json +43 -0
- package/src/infrastructure/locales/tl-PH/flashcards.json +287 -0
- package/src/infrastructure/locales/tl-PH/general.json +61 -0
- package/src/infrastructure/locales/tl-PH/index.ts +45 -0
- package/src/infrastructure/locales/tl-PH/navigation.json +58 -0
- package/src/infrastructure/locales/tl-PH/onboarding.json +76 -0
- package/src/infrastructure/locales/tl-PH/settings.json +53 -0
- package/src/infrastructure/locales/tr-TR/auth.json +32 -0
- package/src/infrastructure/locales/tr-TR/branding.json +9 -0
- package/src/infrastructure/locales/tr-TR/datetime.json +140 -0
- package/src/infrastructure/locales/tr-TR/errors.json +43 -0
- package/src/infrastructure/locales/tr-TR/flashcards.json +287 -0
- package/src/infrastructure/locales/tr-TR/general.json +61 -0
- package/src/infrastructure/locales/tr-TR/index.ts +45 -0
- package/src/infrastructure/locales/tr-TR/navigation.json +58 -0
- package/src/infrastructure/locales/tr-TR/onboarding.json +76 -0
- package/src/infrastructure/locales/tr-TR/settings.json +53 -0
- package/src/infrastructure/locales/uk-UA/auth.json +32 -0
- package/src/infrastructure/locales/uk-UA/branding.json +9 -0
- package/src/infrastructure/locales/uk-UA/datetime.json +140 -0
- package/src/infrastructure/locales/uk-UA/errors.json +43 -0
- package/src/infrastructure/locales/uk-UA/flashcards.json +287 -0
- package/src/infrastructure/locales/uk-UA/general.json +61 -0
- package/src/infrastructure/locales/uk-UA/index.ts +45 -0
- package/src/infrastructure/locales/uk-UA/navigation.json +58 -0
- package/src/infrastructure/locales/uk-UA/onboarding.json +76 -0
- package/src/infrastructure/locales/uk-UA/settings.json +53 -0
- package/src/infrastructure/locales/vi-VN/auth.json +32 -0
- package/src/infrastructure/locales/vi-VN/branding.json +9 -0
- package/src/infrastructure/locales/vi-VN/datetime.json +140 -0
- package/src/infrastructure/locales/vi-VN/errors.json +43 -0
- package/src/infrastructure/locales/vi-VN/flashcards.json +287 -0
- package/src/infrastructure/locales/vi-VN/general.json +61 -0
- package/src/infrastructure/locales/vi-VN/index.ts +45 -0
- package/src/infrastructure/locales/vi-VN/navigation.json +58 -0
- package/src/infrastructure/locales/vi-VN/onboarding.json +76 -0
- package/src/infrastructure/locales/vi-VN/settings.json +53 -0
- package/src/infrastructure/locales/zh-CN/auth.json +32 -0
- package/src/infrastructure/locales/zh-CN/branding.json +9 -0
- package/src/infrastructure/locales/zh-CN/datetime.json +140 -0
- package/src/infrastructure/locales/zh-CN/errors.json +43 -0
- package/src/infrastructure/locales/zh-CN/flashcards.json +287 -0
- package/src/infrastructure/locales/zh-CN/general.json +61 -0
- package/src/infrastructure/locales/zh-CN/index.ts +45 -0
- package/src/infrastructure/locales/zh-CN/navigation.json +58 -0
- package/src/infrastructure/locales/zh-CN/onboarding.json +76 -0
- package/src/infrastructure/locales/zh-CN/settings.json +53 -0
- package/src/infrastructure/locales/zh-TW/auth.json +32 -0
- package/src/infrastructure/locales/zh-TW/branding.json +9 -0
- package/src/infrastructure/locales/zh-TW/datetime.json +140 -0
- package/src/infrastructure/locales/zh-TW/errors.json +43 -0
- package/src/infrastructure/locales/zh-TW/flashcards.json +287 -0
- package/src/infrastructure/locales/zh-TW/general.json +61 -0
- package/src/infrastructure/locales/zh-TW/index.ts +45 -0
- package/src/infrastructure/locales/zh-TW/navigation.json +58 -0
- package/src/infrastructure/locales/zh-TW/onboarding.json +76 -0
- package/src/infrastructure/locales/zh-TW/settings.json +53 -0
- package/src/infrastructure/scripts/createLocaleLoaders.js +177 -0
- package/src/infrastructure/storage/AsyncStorageWrapper.ts +4 -2
- package/src/infrastructure/storage/LocalizationStore.ts +140 -39
- package/lib/infrastructure/locales/en-US/animation.json +0 -30
- package/lib/infrastructure/locales/en-US/audio.json +0 -56
- package/lib/infrastructure/locales/en-US/emoji.json +0 -29
- package/lib/infrastructure/locales/en-US/forms.json +0 -38
- package/lib/infrastructure/locales/en-US/icons.json +0 -34
- package/lib/infrastructure/locales/en-US/location.json +0 -49
- package/lib/infrastructure/locales/en-US/media.json +0 -49
- package/lib/infrastructure/locales/en-US/toast.json +0 -38
- package/src/infrastructure/locales/en-US/animation.json +0 -30
- package/src/infrastructure/locales/en-US/audio.json +0 -56
- package/src/infrastructure/locales/en-US/emoji.json +0 -29
- package/src/infrastructure/locales/en-US/forms.json +0 -38
- package/src/infrastructure/locales/en-US/icons.json +0 -34
- package/src/infrastructure/locales/en-US/location.json +0 -49
- package/src/infrastructure/locales/en-US/media.json +0 -49
- package/src/infrastructure/locales/en-US/toast.json +0 -38
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/* eslint-disable no-console */
|
|
3
|
+
|
|
4
|
+
const fs = require('fs');
|
|
5
|
+
const path = require('path');
|
|
6
|
+
const { getLocalesDir } = require('./utils/findLocalesDir');
|
|
7
|
+
|
|
8
|
+
// Function to get all keys from an object recursively
|
|
9
|
+
function getAllKeys(obj, prefix = '') {
|
|
10
|
+
let keys = [];
|
|
11
|
+
for (const key in obj) {
|
|
12
|
+
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
13
|
+
const fullKey = prefix ? `${prefix}.${key}` : key;
|
|
14
|
+
if (
|
|
15
|
+
typeof obj[key] === 'object' &&
|
|
16
|
+
obj[key] !== null &&
|
|
17
|
+
!Array.isArray(obj[key])
|
|
18
|
+
) {
|
|
19
|
+
keys = keys.concat(getAllKeys(obj[key], fullKey));
|
|
20
|
+
} else {
|
|
21
|
+
keys.push(fullKey);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
return keys;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// Function to remove a key from an object by path
|
|
29
|
+
function removeKeyByPath(obj, keyPath) {
|
|
30
|
+
const keys = keyPath.split('.');
|
|
31
|
+
let current = obj;
|
|
32
|
+
|
|
33
|
+
for (let i = 0; i < keys.length - 1; i++) {
|
|
34
|
+
if (!current[keys[i]] || typeof current[keys[i]] !== 'object') {
|
|
35
|
+
return false; // Path doesn't exist
|
|
36
|
+
}
|
|
37
|
+
current = current[keys[i]];
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
const lastKey = keys[keys.length - 1];
|
|
41
|
+
if (current.hasOwnProperty(lastKey)) {
|
|
42
|
+
delete current[keys[keys.length - 1]];
|
|
43
|
+
|
|
44
|
+
// Clean up empty parent objects
|
|
45
|
+
if (keys.length > 1) {
|
|
46
|
+
let parent = obj;
|
|
47
|
+
for (let i = 0; i < keys.length - 2; i++) {
|
|
48
|
+
parent = parent[keys[i]];
|
|
49
|
+
}
|
|
50
|
+
const parentKey = keys[keys.length - 2];
|
|
51
|
+
if (Object.keys(parent[parentKey]).length === 0) {
|
|
52
|
+
delete parent[parentKey];
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
return false;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// Function to remove unused keys from a translation file
|
|
62
|
+
function removeUnusedKeys(enUS, targetLang, filePath, langCode, dryRun = false) {
|
|
63
|
+
const enKeys = getAllKeys(enUS);
|
|
64
|
+
const targetKeys = getAllKeys(targetLang);
|
|
65
|
+
|
|
66
|
+
const extraKeys = targetKeys.filter(key => !enKeys.includes(key));
|
|
67
|
+
|
|
68
|
+
if (extraKeys.length === 0) {
|
|
69
|
+
return { removed: 0, keys: [] };
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// Create a deep copy to modify
|
|
73
|
+
const cleanedLang = JSON.parse(JSON.stringify(targetLang));
|
|
74
|
+
|
|
75
|
+
let removedCount = 0;
|
|
76
|
+
for (const key of extraKeys) {
|
|
77
|
+
if (removeKeyByPath(cleanedLang, key)) {
|
|
78
|
+
removedCount++;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
if (!dryRun && removedCount > 0) {
|
|
83
|
+
// Write cleaned file
|
|
84
|
+
const targetFile = filePath;
|
|
85
|
+
fs.writeFileSync(targetFile, JSON.stringify(cleanedLang, null, 2) + '\n', 'utf8');
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
return { removed: removedCount, keys: extraKeys };
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// Main function
|
|
92
|
+
function main() {
|
|
93
|
+
const args = process.argv.slice(2);
|
|
94
|
+
const targetLanguage = args.find(arg => !arg.startsWith('--'));
|
|
95
|
+
const dryRun = args.includes('--dry-run') || args.includes('-d');
|
|
96
|
+
const allLanguages = args.includes('--all') || args.includes('-a');
|
|
97
|
+
|
|
98
|
+
if (!targetLanguage && !allLanguages) {
|
|
99
|
+
console.log('Usage: npm run i18n:remove-unused <language-code> [--dry-run]');
|
|
100
|
+
console.log('Example: npm run i18n:remove-unused tr-TR');
|
|
101
|
+
console.log('Example: npm run i18n:remove-unused tr-TR --dry-run (preview only, no removal)');
|
|
102
|
+
console.log('Example: npm run i18n:remove-unused --all (all languages)');
|
|
103
|
+
process.exit(1);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
// Find project's locales directory
|
|
107
|
+
const localesDir = getLocalesDir();
|
|
108
|
+
const enUSDir = path.join(localesDir, 'en-US');
|
|
109
|
+
|
|
110
|
+
// Auto-discover all JSON files
|
|
111
|
+
const files = fs
|
|
112
|
+
.readdirSync(enUSDir)
|
|
113
|
+
.filter(file => file.endsWith('.json'))
|
|
114
|
+
.sort();
|
|
115
|
+
|
|
116
|
+
if (files.length === 0) {
|
|
117
|
+
console.error('❌ No JSON files found in en-US directory!');
|
|
118
|
+
process.exit(1);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// Get language directories
|
|
122
|
+
const allLanguageDirs = fs
|
|
123
|
+
.readdirSync(localesDir)
|
|
124
|
+
.filter(dir => {
|
|
125
|
+
const fullPath = path.join(localesDir, dir);
|
|
126
|
+
return fs.statSync(fullPath).isDirectory() && dir !== 'en-US';
|
|
127
|
+
})
|
|
128
|
+
.sort();
|
|
129
|
+
|
|
130
|
+
// Determine which languages to process
|
|
131
|
+
let languageDirs = allLanguageDirs;
|
|
132
|
+
if (!allLanguages) {
|
|
133
|
+
if (targetLanguage === 'spanish' || targetLanguage === 'es') {
|
|
134
|
+
languageDirs = allLanguageDirs.filter(dir => dir.startsWith('es-'));
|
|
135
|
+
} else if (allLanguageDirs.includes(targetLanguage)) {
|
|
136
|
+
languageDirs = [targetLanguage];
|
|
137
|
+
} else {
|
|
138
|
+
console.log(`❌ Language ${targetLanguage} not found. Available: ${allLanguageDirs.join(', ')}`);
|
|
139
|
+
process.exit(1);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
if (dryRun) {
|
|
144
|
+
console.log('🔍 DRY RUN MODE - No files will be modified\n');
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
let totalRemoved = 0;
|
|
148
|
+
let totalFiles = 0;
|
|
149
|
+
|
|
150
|
+
console.log(`🧹 Removing unused keys from ${languageDirs.length} language(s)...\n`);
|
|
151
|
+
|
|
152
|
+
languageDirs.forEach(langCode => {
|
|
153
|
+
const langDir = path.join(localesDir, langCode);
|
|
154
|
+
let langRemoved = 0;
|
|
155
|
+
let langFiles = 0;
|
|
156
|
+
|
|
157
|
+
console.log(`\n🌍 Processing ${langCode}...`);
|
|
158
|
+
|
|
159
|
+
files.forEach(file => {
|
|
160
|
+
const enUSPath = path.join(enUSDir, file);
|
|
161
|
+
const langPath = path.join(langDir, file);
|
|
162
|
+
|
|
163
|
+
if (!fs.existsSync(enUSPath)) {
|
|
164
|
+
return;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
if (!fs.existsSync(langPath)) {
|
|
168
|
+
return;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
try {
|
|
172
|
+
const enUS = JSON.parse(fs.readFileSync(enUSPath, 'utf8'));
|
|
173
|
+
const langData = JSON.parse(fs.readFileSync(langPath, 'utf8'));
|
|
174
|
+
|
|
175
|
+
const result = removeUnusedKeys(enUS, langData, langPath, langCode, dryRun);
|
|
176
|
+
|
|
177
|
+
if (result.removed > 0) {
|
|
178
|
+
langRemoved += result.removed;
|
|
179
|
+
langFiles++;
|
|
180
|
+
totalRemoved += result.removed;
|
|
181
|
+
totalFiles++;
|
|
182
|
+
|
|
183
|
+
if (dryRun) {
|
|
184
|
+
console.log(` 🔍 ${file}: Would remove ${result.removed} key(s): ${result.keys.slice(0, 5).join(', ')}${result.keys.length > 5 ? '...' : ''}`);
|
|
185
|
+
} else {
|
|
186
|
+
console.log(` ✅ ${file}: Removed ${result.removed} unused key(s): ${result.keys.slice(0, 5).join(', ')}${result.keys.length > 5 ? '...' : ''}`);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
} catch (error) {
|
|
190
|
+
console.log(` ❌ Error processing ${file}: ${error.message}`);
|
|
191
|
+
}
|
|
192
|
+
});
|
|
193
|
+
|
|
194
|
+
if (langRemoved === 0) {
|
|
195
|
+
console.log(` ✅ ${langCode}: No unused keys found`);
|
|
196
|
+
} else {
|
|
197
|
+
console.log(` 📊 ${langCode}: Removed ${langRemoved} unused key(s) from ${langFiles} file(s)`);
|
|
198
|
+
}
|
|
199
|
+
});
|
|
200
|
+
|
|
201
|
+
console.log('\n📊 Summary:');
|
|
202
|
+
console.log(` Languages processed: ${languageDirs.length}`);
|
|
203
|
+
console.log(` Files modified: ${totalFiles}`);
|
|
204
|
+
console.log(` Total keys removed: ${totalRemoved}`);
|
|
205
|
+
|
|
206
|
+
if (dryRun) {
|
|
207
|
+
console.log('\n💡 Run without --dry-run to actually remove the keys.');
|
|
208
|
+
} else if (totalRemoved > 0) {
|
|
209
|
+
console.log('\n✅ Unused keys removed successfully!');
|
|
210
|
+
} else {
|
|
211
|
+
console.log('\n✅ No unused keys found!');
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
main();
|
|
216
|
+
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/* eslint-disable no-console */
|
|
3
|
+
|
|
4
|
+
const fs = require("fs");
|
|
5
|
+
const path = require("path");
|
|
6
|
+
const { getLocalesDir } = require('./utils/findLocalesDir');
|
|
7
|
+
|
|
8
|
+
// All 38 languages (excluding en-US)
|
|
9
|
+
const LANGUAGES = [
|
|
10
|
+
"ar-SA", // Arabic
|
|
11
|
+
"bg-BG", // Bulgarian
|
|
12
|
+
"cs-CZ", // Czech
|
|
13
|
+
"da-DK", // Danish
|
|
14
|
+
"de-DE", // German
|
|
15
|
+
"el-GR", // Greek
|
|
16
|
+
"en-AU", // English (Australia)
|
|
17
|
+
"en-CA", // English (Canada)
|
|
18
|
+
"en-GB", // English (UK)
|
|
19
|
+
"es-ES", // Spanish (Spain)
|
|
20
|
+
"es-MX", // Spanish (Mexico)
|
|
21
|
+
"fi-FI", // Finnish
|
|
22
|
+
"fr-CA", // French (Canada)
|
|
23
|
+
"fr-FR", // French (France)
|
|
24
|
+
"hi-IN", // Hindi
|
|
25
|
+
"hr-HR", // Croatian
|
|
26
|
+
"hu-HU", // Hungarian
|
|
27
|
+
"id-ID", // Indonesian
|
|
28
|
+
"it-IT", // Italian
|
|
29
|
+
"ja-JP", // Japanese
|
|
30
|
+
"ko-KR", // Korean
|
|
31
|
+
"ms-MY", // Malay
|
|
32
|
+
"nl-NL", // Dutch
|
|
33
|
+
"no-NO", // Norwegian
|
|
34
|
+
"pl-PL", // Polish
|
|
35
|
+
"pt-BR", // Portuguese (Brazil)
|
|
36
|
+
"pt-PT", // Portuguese (Portugal)
|
|
37
|
+
"ro-RO", // Romanian
|
|
38
|
+
"ru-RU", // Russian
|
|
39
|
+
"sk-SK", // Slovak
|
|
40
|
+
"sv-SE", // Swedish
|
|
41
|
+
"th-TH", // Thai
|
|
42
|
+
"tl-PH", // Tagalog
|
|
43
|
+
"tr-TR", // Turkish
|
|
44
|
+
"uk-UA", // Ukrainian
|
|
45
|
+
"vi-VN", // Vietnamese
|
|
46
|
+
"zh-CN", // Chinese Simplified
|
|
47
|
+
"zh-TW", // Chinese Traditional
|
|
48
|
+
];
|
|
49
|
+
|
|
50
|
+
async function setupLanguages() {
|
|
51
|
+
// Find or create project's locales directory
|
|
52
|
+
const localesDir = getLocalesDir(true); // Create if not exists
|
|
53
|
+
const enUSDir = path.join(localesDir, "en-US");
|
|
54
|
+
|
|
55
|
+
console.log("🚀 Setting up language directories and files...\n");
|
|
56
|
+
|
|
57
|
+
// Check if en-US directory exists
|
|
58
|
+
if (!fs.existsSync(enUSDir)) {
|
|
59
|
+
console.error("❌ en-US directory not found!");
|
|
60
|
+
console.error(" Expected path:", enUSDir);
|
|
61
|
+
process.exit(1);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// Automatically discover all JSON files in en-US directory
|
|
65
|
+
const files = fs
|
|
66
|
+
.readdirSync(enUSDir)
|
|
67
|
+
.filter((file) => file.endsWith(".json"))
|
|
68
|
+
.sort();
|
|
69
|
+
|
|
70
|
+
if (files.length === 0) {
|
|
71
|
+
console.error("❌ No JSON files found in en-US directory!");
|
|
72
|
+
process.exit(1);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
console.log(`📄 Found ${files.length} translation files in en-US:`);
|
|
76
|
+
files.forEach((file) => console.log(` - ${file}`));
|
|
77
|
+
console.log("");
|
|
78
|
+
|
|
79
|
+
let createdDirs = 0;
|
|
80
|
+
let createdFiles = 0;
|
|
81
|
+
|
|
82
|
+
for (const langCode of LANGUAGES) {
|
|
83
|
+
const langDir = path.join(localesDir, langCode);
|
|
84
|
+
|
|
85
|
+
// Create language directory if it doesn't exist
|
|
86
|
+
if (!fs.existsSync(langDir)) {
|
|
87
|
+
fs.mkdirSync(langDir, { recursive: true });
|
|
88
|
+
console.log(`📁 Created directory: ${langCode}/`);
|
|
89
|
+
createdDirs++;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// Copy each file from en-US
|
|
93
|
+
for (const file of files) {
|
|
94
|
+
const enUSFile = path.join(enUSDir, file);
|
|
95
|
+
const targetFile = path.join(langDir, file);
|
|
96
|
+
|
|
97
|
+
if (!fs.existsSync(targetFile)) {
|
|
98
|
+
// Copy the en-US file as a starting point
|
|
99
|
+
const content = fs.readFileSync(enUSFile, "utf8");
|
|
100
|
+
fs.writeFileSync(targetFile, content);
|
|
101
|
+
console.log(` 📄 Created: ${langCode}/${file}`);
|
|
102
|
+
createdFiles++;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
console.log(`\n✅ Setup completed!`);
|
|
108
|
+
console.log(` Directories created: ${createdDirs}`);
|
|
109
|
+
console.log(` Files created: ${createdFiles}`);
|
|
110
|
+
console.log(` Total languages: ${LANGUAGES.length + 1} (including en-US)`);
|
|
111
|
+
console.log(
|
|
112
|
+
`\n📝 Next steps:`,
|
|
113
|
+
);
|
|
114
|
+
console.log(` 1. Add your translation keys to en-US/*.json files`);
|
|
115
|
+
console.log(` 2. Run 'npm run i18n:translate' to auto-translate all languages`);
|
|
116
|
+
console.log(` 3. Run 'npm run i18n:check all' to verify completeness`);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
setupLanguages().catch((error) => {
|
|
120
|
+
console.error("❌ Setup failed:", error);
|
|
121
|
+
process.exit(1);
|
|
122
|
+
});
|