@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,500 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/* eslint-disable no-console */
|
|
3
|
+
|
|
4
|
+
const fs = require('fs');
|
|
5
|
+
const path = require('path');
|
|
6
|
+
const https = require('https');
|
|
7
|
+
const { getLocalesDir } = require('./utils/findLocalesDir');
|
|
8
|
+
|
|
9
|
+
// Parse command line arguments
|
|
10
|
+
const args = process.argv.slice(2);
|
|
11
|
+
const options = {
|
|
12
|
+
verbose: args.includes('--verbose') || args.includes('-v'),
|
|
13
|
+
force: args.includes('--force') || args.includes('-f'),
|
|
14
|
+
keysFilter: args.find(a => a.startsWith('--keys='))?.split('=')[1]?.split(','),
|
|
15
|
+
report: args.includes('--report') || args.includes('-r'),
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
// Statistics tracking
|
|
19
|
+
const stats = {
|
|
20
|
+
totalLanguages: 0,
|
|
21
|
+
totalFiles: 0,
|
|
22
|
+
totalKeys: 0,
|
|
23
|
+
translated: 0,
|
|
24
|
+
skipped: 0,
|
|
25
|
+
errors: 0,
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
// Language codes mapping for Google Translate API
|
|
29
|
+
const LANGUAGE_MAP = {
|
|
30
|
+
'ar-SA': 'ar', // Arabic
|
|
31
|
+
'bg-BG': 'bg', // Bulgarian
|
|
32
|
+
'cs-CZ': 'cs', // Czech
|
|
33
|
+
'da-DK': 'da', // Danish
|
|
34
|
+
'de-DE': 'de', // German (already complete)
|
|
35
|
+
'el-GR': 'el', // Greek
|
|
36
|
+
'en-AU': 'en', // English (skip)
|
|
37
|
+
'en-CA': 'en', // English (skip)
|
|
38
|
+
'en-GB': 'en', // English (skip)
|
|
39
|
+
'es-ES': 'es', // Spanish (already complete)
|
|
40
|
+
'es-MX': 'es', // Spanish (already complete)
|
|
41
|
+
'fi-FI': 'fi', // Finnish
|
|
42
|
+
'fr-CA': 'fr', // French
|
|
43
|
+
'fr-FR': 'fr', // French (already complete)
|
|
44
|
+
'hi-IN': 'hi', // Hindi
|
|
45
|
+
'hr-HR': 'hr', // Croatian
|
|
46
|
+
'hu-HU': 'hu', // Hungarian
|
|
47
|
+
'id-ID': 'id', // Indonesian
|
|
48
|
+
'it-IT': 'it', // Italian
|
|
49
|
+
'ja-JP': 'ja', // Japanese
|
|
50
|
+
'ko-KR': 'ko', // Korean
|
|
51
|
+
'ms-MY': 'ms', // Malay
|
|
52
|
+
'nl-NL': 'nl', // Dutch
|
|
53
|
+
'no-NO': 'no', // Norwegian
|
|
54
|
+
'pl-PL': 'pl', // Polish
|
|
55
|
+
'pt-BR': 'pt', // Portuguese
|
|
56
|
+
'pt-PT': 'pt', // Portuguese
|
|
57
|
+
'ro-RO': 'ro', // Romanian
|
|
58
|
+
'ru-RU': 'ru', // Russian
|
|
59
|
+
'sk-SK': 'sk', // Slovak
|
|
60
|
+
'sv-SE': 'sv', // Swedish
|
|
61
|
+
'th-TH': 'th', // Thai
|
|
62
|
+
'tl-PH': 'tl', // Tagalog
|
|
63
|
+
'tr-TR': 'tr', // Turkish (already complete)
|
|
64
|
+
'uk-UA': 'uk', // Ukrainian
|
|
65
|
+
'vi-VN': 'vi', // Vietnamese
|
|
66
|
+
'zh-CN': 'zh-CN', // Chinese Simplified
|
|
67
|
+
'zh-TW': 'zh-TW', // Chinese Traditional
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
// Only skip actual brand names - everything else should be translated
|
|
71
|
+
// Note: Even common words like "Email", "OK", "Premium" should be localized
|
|
72
|
+
const SKIP_WORDS = new Set([
|
|
73
|
+
'Google',
|
|
74
|
+
'Apple',
|
|
75
|
+
'Facebook',
|
|
76
|
+
'Instagram',
|
|
77
|
+
'Twitter',
|
|
78
|
+
'WhatsApp',
|
|
79
|
+
]);
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Simple Google Translate API call using free endpoint
|
|
83
|
+
* Note: This uses Google's unofficial API. For production, use official API with key.
|
|
84
|
+
*/
|
|
85
|
+
async function translateText(text, targetLang) {
|
|
86
|
+
return new Promise((resolve, _reject) => {
|
|
87
|
+
if (SKIP_WORDS.has(text)) {
|
|
88
|
+
resolve(text);
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
const encodedText = encodeURIComponent(text);
|
|
93
|
+
const url = `https://translate.googleapis.com/translate_a/single?client=gtx&sl=en&tl=${targetLang}&dt=t&q=${encodedText}`;
|
|
94
|
+
|
|
95
|
+
https
|
|
96
|
+
.get(url, res => {
|
|
97
|
+
let data = '';
|
|
98
|
+
res.on('data', chunk => {
|
|
99
|
+
data += chunk;
|
|
100
|
+
});
|
|
101
|
+
res.on('end', () => {
|
|
102
|
+
try {
|
|
103
|
+
const parsed = JSON.parse(data);
|
|
104
|
+
const translated = parsed[0]
|
|
105
|
+
.map(item => item[0])
|
|
106
|
+
.join('')
|
|
107
|
+
.trim();
|
|
108
|
+
resolve(translated || text);
|
|
109
|
+
} catch (error) {
|
|
110
|
+
console.warn(
|
|
111
|
+
`ā ļø Translation failed for "${text}" to ${targetLang}:`,
|
|
112
|
+
error.message
|
|
113
|
+
);
|
|
114
|
+
resolve(text); // Fallback to original
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
})
|
|
118
|
+
.on('error', err => {
|
|
119
|
+
console.warn(
|
|
120
|
+
`ā ļø Network error translating "${text}" to ${targetLang}:`,
|
|
121
|
+
err.message
|
|
122
|
+
);
|
|
123
|
+
resolve(text); // Fallback to original
|
|
124
|
+
});
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Add delay between API calls to avoid rate limiting
|
|
130
|
+
*/
|
|
131
|
+
function delay(ms) {
|
|
132
|
+
return new Promise(resolve => setTimeout(resolve, ms));
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Check if a value needs translation (is missing or undefined)
|
|
137
|
+
*
|
|
138
|
+
* IMPROVED DETECTION:
|
|
139
|
+
* - Respects --force flag to retranslate everything
|
|
140
|
+
* - Respects --keys filter for selective retranslation
|
|
141
|
+
* - Shows skip reasons in --verbose mode
|
|
142
|
+
* - Protects manual translations by default
|
|
143
|
+
*/
|
|
144
|
+
function needsTranslation(key, value, enValue) {
|
|
145
|
+
// --force mode: Always translate
|
|
146
|
+
if (options.force) {
|
|
147
|
+
if (options.verbose) {
|
|
148
|
+
console.log(` š Force mode: translating "${key}"`);
|
|
149
|
+
}
|
|
150
|
+
return true;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
// --keys filter: Only translate specified keys
|
|
154
|
+
if (options.keysFilter && !options.keysFilter.includes(key)) {
|
|
155
|
+
if (options.verbose) {
|
|
156
|
+
console.log(` āļø Skipping "${key}": not in --keys filter`);
|
|
157
|
+
}
|
|
158
|
+
stats.skipped++;
|
|
159
|
+
return false;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
// Translate if value is missing/undefined
|
|
163
|
+
if (value === undefined || value === null) {
|
|
164
|
+
if (options.verbose) {
|
|
165
|
+
console.log(` ā
Translating "${key}": missing value`);
|
|
166
|
+
}
|
|
167
|
+
return true;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
if (typeof value !== 'string') {
|
|
171
|
+
if (options.verbose) {
|
|
172
|
+
console.log(` āļø Skipping "${key}": non-string value`);
|
|
173
|
+
}
|
|
174
|
+
stats.skipped++;
|
|
175
|
+
return false;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
// Skip brand names only
|
|
179
|
+
if (SKIP_WORDS.has(value)) {
|
|
180
|
+
if (options.verbose) {
|
|
181
|
+
console.log(` āļø Skipping "${key}": brand name`);
|
|
182
|
+
}
|
|
183
|
+
stats.skipped++;
|
|
184
|
+
return false;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
// Skip numeric values and placeholders (0.00, phone numbers, etc.)
|
|
188
|
+
if (/^[\d\s.+()-]+$/.test(value)) {
|
|
189
|
+
if (options.verbose) {
|
|
190
|
+
console.log(` āļø Skipping "${key}": numeric value`);
|
|
191
|
+
}
|
|
192
|
+
stats.skipped++;
|
|
193
|
+
return false;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
// Skip email addresses
|
|
197
|
+
if (/^[\w.-]+@[\w.-]+\.\w+$/.test(value)) {
|
|
198
|
+
if (options.verbose) {
|
|
199
|
+
console.log(` āļø Skipping "${key}": email address`);
|
|
200
|
+
}
|
|
201
|
+
stats.skipped++;
|
|
202
|
+
return false;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
// Skip URLs
|
|
206
|
+
if (value.startsWith('http://') || value.startsWith('https://')) {
|
|
207
|
+
if (options.verbose) {
|
|
208
|
+
console.log(` āļø Skipping "${key}": URL`);
|
|
209
|
+
}
|
|
210
|
+
stats.skipped++;
|
|
211
|
+
return false;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
// Skip if already translated (value is different from English)
|
|
215
|
+
// This protects manual translations!
|
|
216
|
+
if (value !== enValue) {
|
|
217
|
+
if (options.verbose) {
|
|
218
|
+
console.log(` āļø Skipping "${key}": already translated (manual or previous auto)`);
|
|
219
|
+
}
|
|
220
|
+
stats.skipped++;
|
|
221
|
+
return false;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
// If we get here, value exists and equals enValue
|
|
225
|
+
// This means it hasn't been translated yet - TRANSLATE IT!
|
|
226
|
+
if (options.verbose) {
|
|
227
|
+
console.log(` ā
Translating "${key}": equals English source`);
|
|
228
|
+
}
|
|
229
|
+
return true;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Recursively find and translate missing values
|
|
234
|
+
*/
|
|
235
|
+
async function translateObject(enObj, targetObj, targetLang, path = '') {
|
|
236
|
+
let translatedCount = 0;
|
|
237
|
+
|
|
238
|
+
for (const key in enObj) {
|
|
239
|
+
const currentPath = path ? `${path}.${key}` : key;
|
|
240
|
+
stats.totalKeys++;
|
|
241
|
+
|
|
242
|
+
if (typeof enObj[key] === 'object' && enObj[key] !== null) {
|
|
243
|
+
if (!targetObj[key] || typeof targetObj[key] !== 'object') {
|
|
244
|
+
targetObj[key] = {};
|
|
245
|
+
}
|
|
246
|
+
translatedCount += await translateObject(
|
|
247
|
+
enObj[key],
|
|
248
|
+
targetObj[key],
|
|
249
|
+
targetLang,
|
|
250
|
+
currentPath
|
|
251
|
+
);
|
|
252
|
+
} else if (typeof enObj[key] === 'string') {
|
|
253
|
+
const originalValue = enObj[key];
|
|
254
|
+
|
|
255
|
+
// Skip placeholders like {{count}}, {{mood}}, etc.
|
|
256
|
+
if (originalValue.includes('{{') && originalValue.includes('}}')) {
|
|
257
|
+
if (options.verbose) {
|
|
258
|
+
console.log(
|
|
259
|
+
` āļø Skipping placeholder: ${currentPath} = "${originalValue}"`
|
|
260
|
+
);
|
|
261
|
+
}
|
|
262
|
+
stats.skipped++;
|
|
263
|
+
continue;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
// Check if needs translation
|
|
267
|
+
if (needsTranslation(key, targetObj[key], originalValue)) {
|
|
268
|
+
if (!options.verbose) {
|
|
269
|
+
// Only show in non-verbose mode (verbose already shows in needsTranslation)
|
|
270
|
+
console.log(` š Translating: ${currentPath} = "${originalValue}"`);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
try {
|
|
274
|
+
const translated = await translateText(originalValue, targetLang);
|
|
275
|
+
targetObj[key] = translated;
|
|
276
|
+
translatedCount++;
|
|
277
|
+
stats.translated++;
|
|
278
|
+
|
|
279
|
+
// Add delay to avoid rate limiting (200ms between requests)
|
|
280
|
+
await delay(200);
|
|
281
|
+
} catch (error) {
|
|
282
|
+
console.error(` ā Failed to translate "${currentPath}":`, error.message);
|
|
283
|
+
stats.errors++;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
return translatedCount;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* Translate missing strings for a single file
|
|
294
|
+
*/
|
|
295
|
+
async function translateFile(enUSFile, targetFile, langCode) {
|
|
296
|
+
const enUS = JSON.parse(fs.readFileSync(enUSFile, 'utf8'));
|
|
297
|
+
const target = JSON.parse(fs.readFileSync(targetFile, 'utf8'));
|
|
298
|
+
|
|
299
|
+
const targetLang = LANGUAGE_MAP[langCode];
|
|
300
|
+
if (!targetLang) {
|
|
301
|
+
console.log(` ā ļø No language mapping for ${langCode}, skipping`);
|
|
302
|
+
return 0;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
// Note: English variants (en-AU, en-CA, en-GB) will also be translated
|
|
306
|
+
// Google Translate may use regional variations and accents
|
|
307
|
+
|
|
308
|
+
const translatedCount = await translateObject(enUS, target, targetLang);
|
|
309
|
+
|
|
310
|
+
if (translatedCount > 0) {
|
|
311
|
+
// Ensure parent directory exists before writing
|
|
312
|
+
const targetDir = path.dirname(targetFile);
|
|
313
|
+
if (!fs.existsSync(targetDir)) {
|
|
314
|
+
fs.mkdirSync(targetDir, { recursive: true });
|
|
315
|
+
}
|
|
316
|
+
fs.writeFileSync(targetFile, JSON.stringify(target, null, 2) + '\n');
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
return translatedCount;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* Show usage information
|
|
324
|
+
*/
|
|
325
|
+
function showUsage() {
|
|
326
|
+
console.log(`
|
|
327
|
+
š Google Translate Auto-Translation Script
|
|
328
|
+
|
|
329
|
+
USAGE:
|
|
330
|
+
npm run i18n:translate [options]
|
|
331
|
+
|
|
332
|
+
OPTIONS:
|
|
333
|
+
--verbose, -v Show detailed translation decisions
|
|
334
|
+
--force, -f Force retranslate all keys (overwrite manual translations)
|
|
335
|
+
--keys=key1,key2 Only translate specific keys (comma-separated)
|
|
336
|
+
--report, -r Show detailed statistics report
|
|
337
|
+
|
|
338
|
+
EXAMPLES:
|
|
339
|
+
npm run i18n:translate
|
|
340
|
+
ā Translate only missing keys, skip manual translations
|
|
341
|
+
|
|
342
|
+
npm run i18n:translate --verbose
|
|
343
|
+
ā Show why each key is translated or skipped
|
|
344
|
+
|
|
345
|
+
npm run i18n:translate --force
|
|
346
|
+
ā Retranslate ALL keys, overwriting manual translations
|
|
347
|
+
|
|
348
|
+
npm run i18n:translate --keys=save,cancel,delete
|
|
349
|
+
ā Only retranslate these specific keys
|
|
350
|
+
|
|
351
|
+
npm run i18n:translate --verbose --keys=title
|
|
352
|
+
ā Verbose mode for specific key translation
|
|
353
|
+
|
|
354
|
+
BEHAVIOR:
|
|
355
|
+
ā
Protects manual translations by default
|
|
356
|
+
ā
Only translates missing keys or keys that equal English
|
|
357
|
+
ā
Use --force to override protection
|
|
358
|
+
ā
Use --keys to selectively retranslate specific keys
|
|
359
|
+
|
|
360
|
+
NOTE:
|
|
361
|
+
Scripts automatically find your project's locales directory.
|
|
362
|
+
Supported paths:
|
|
363
|
+
- src/domains/localization/infrastructure/locales
|
|
364
|
+
- src/locales
|
|
365
|
+
- locales
|
|
366
|
+
`);
|
|
367
|
+
process.exit(0);
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
// Show usage if --help
|
|
371
|
+
if (args.includes('--help') || args.includes('-h')) {
|
|
372
|
+
showUsage();
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* Main function to translate all missing strings
|
|
377
|
+
*/
|
|
378
|
+
async function translateAllLanguages() {
|
|
379
|
+
// Find project's locales directory
|
|
380
|
+
const localesDir = getLocalesDir();
|
|
381
|
+
const enUSDir = path.join(localesDir, 'en-US');
|
|
382
|
+
|
|
383
|
+
// Automatically discover all JSON files in en-US directory
|
|
384
|
+
const files = fs
|
|
385
|
+
.readdirSync(enUSDir)
|
|
386
|
+
.filter(file => file.endsWith('.json'))
|
|
387
|
+
.sort();
|
|
388
|
+
|
|
389
|
+
// Get languages that need translation (skip complete ones)
|
|
390
|
+
const skipLanguages = new Set([
|
|
391
|
+
'en-US', // Base language - skip translation
|
|
392
|
+
'en-AU', // English variant - copy from en-US
|
|
393
|
+
'en-CA', // English variant - copy from en-US
|
|
394
|
+
'en-GB', // English variant - copy from en-US
|
|
395
|
+
]);
|
|
396
|
+
|
|
397
|
+
const allLanguages = fs
|
|
398
|
+
.readdirSync(localesDir)
|
|
399
|
+
.filter(
|
|
400
|
+
dir =>
|
|
401
|
+
!skipLanguages.has(dir) &&
|
|
402
|
+
fs.statSync(path.join(localesDir, dir)).isDirectory()
|
|
403
|
+
)
|
|
404
|
+
.sort();
|
|
405
|
+
|
|
406
|
+
console.log('š Starting automatic translation...\n');
|
|
407
|
+
|
|
408
|
+
// Show options if any are active
|
|
409
|
+
if (options.verbose || options.force || options.keysFilter || options.report) {
|
|
410
|
+
console.log('āļø Active options:');
|
|
411
|
+
if (options.verbose) console.log(' ⢠Verbose mode: ON');
|
|
412
|
+
if (options.force) console.log(' ⢠Force retranslate: ON (ā ļø will overwrite manual translations)');
|
|
413
|
+
if (options.keysFilter) console.log(` ⢠Keys filter: ${options.keysFilter.join(', ')}`);
|
|
414
|
+
if (options.report) console.log(' ⢠Detailed report: ON');
|
|
415
|
+
console.log('');
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
console.log(`š Languages to translate: ${allLanguages.length}`);
|
|
419
|
+
console.log(`š Files per language: ${files.length}`);
|
|
420
|
+
console.log(
|
|
421
|
+
`ā±ļø Estimated time: ~${Math.ceil((allLanguages.length * files.length * 50 * 0.2) / 60)} minutes\n`
|
|
422
|
+
);
|
|
423
|
+
console.log(
|
|
424
|
+
'ā” Running with optimized speed (200ms delay between translations)\n'
|
|
425
|
+
);
|
|
426
|
+
|
|
427
|
+
stats.totalLanguages = allLanguages.length;
|
|
428
|
+
stats.totalFiles = files.length;
|
|
429
|
+
|
|
430
|
+
let totalTranslated = 0;
|
|
431
|
+
let totalLanguages = 0;
|
|
432
|
+
|
|
433
|
+
for (const langCode of allLanguages) {
|
|
434
|
+
console.log(`\nš Translating ${langCode}...`);
|
|
435
|
+
totalLanguages++;
|
|
436
|
+
|
|
437
|
+
let langTranslated = 0;
|
|
438
|
+
|
|
439
|
+
for (const file of files) {
|
|
440
|
+
const enUSFile = path.join(enUSDir, file);
|
|
441
|
+
const targetDir = path.join(localesDir, langCode);
|
|
442
|
+
const targetFile = path.join(targetDir, file);
|
|
443
|
+
|
|
444
|
+
// Ensure target directory exists
|
|
445
|
+
if (!fs.existsSync(targetDir)) {
|
|
446
|
+
fs.mkdirSync(targetDir, { recursive: true });
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
// Create target file if it doesn't exist (create empty structure)
|
|
450
|
+
if (!fs.existsSync(targetFile)) {
|
|
451
|
+
console.log(` š Creating ${file} (new file)`);
|
|
452
|
+
// Create empty object - translation will populate it
|
|
453
|
+
fs.writeFileSync(targetFile, JSON.stringify({}, null, 2) + '\n');
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
const count = await translateFile(enUSFile, targetFile, langCode);
|
|
457
|
+
langTranslated += count;
|
|
458
|
+
totalTranslated += count;
|
|
459
|
+
|
|
460
|
+
// Only log files that were actually translated
|
|
461
|
+
if (count > 0) {
|
|
462
|
+
console.log(` ā
${file}: ${count} strings translated`);
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
console.log(
|
|
467
|
+
` š ${langCode} summary: ${langTranslated} strings translated`
|
|
468
|
+
);
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
console.log(`\nā
Translation completed!`);
|
|
472
|
+
console.log(` Languages processed: ${totalLanguages}`);
|
|
473
|
+
console.log(` Total strings translated: ${totalTranslated}`);
|
|
474
|
+
|
|
475
|
+
// Show detailed statistics if --report or --verbose
|
|
476
|
+
if (options.report || options.verbose) {
|
|
477
|
+
console.log(`\nš DETAILED STATISTICS:`);
|
|
478
|
+
console.log(` Total keys processed: ${stats.totalKeys}`);
|
|
479
|
+
console.log(` Translated: ${stats.translated} (${((stats.translated / stats.totalKeys) * 100).toFixed(1)}%)`);
|
|
480
|
+
console.log(` Skipped: ${stats.skipped} (${((stats.skipped / stats.totalKeys) * 100).toFixed(1)}%)`);
|
|
481
|
+
if (stats.errors > 0) {
|
|
482
|
+
console.log(` Errors: ${stats.errors} ā`);
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
console.log(`\nš” TIPS:`);
|
|
486
|
+
console.log(` ⢠Manual translations are protected (skipped) by default`);
|
|
487
|
+
console.log(` ⢠Use --force to retranslate everything`);
|
|
488
|
+
console.log(` ⢠Use --keys=key1,key2 to retranslate specific keys`);
|
|
489
|
+
console.log(` ⢠Use --verbose to see why keys are skipped`);
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
console.log(
|
|
493
|
+
`\nš Next step: Run 'npm run i18n:check' to verify translations.`
|
|
494
|
+
);
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
translateAllLanguages().catch(error => {
|
|
498
|
+
console.error('ā Translation failed:', error);
|
|
499
|
+
process.exit(1);
|
|
500
|
+
});
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Utility to find project's locales directory
|
|
4
|
+
* Searches common paths for localization files
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
const fs = require('fs');
|
|
8
|
+
const path = require('path');
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Find locales directory in project
|
|
12
|
+
* @returns {string|null} Path to locales directory or null if not found
|
|
13
|
+
*/
|
|
14
|
+
function findLocalesDir() {
|
|
15
|
+
const projectRoot = process.cwd();
|
|
16
|
+
|
|
17
|
+
// Common paths to search
|
|
18
|
+
const possiblePaths = [
|
|
19
|
+
// DDD structure
|
|
20
|
+
path.join(projectRoot, 'src/domains/localization/infrastructure/locales'),
|
|
21
|
+
path.join(projectRoot, 'src/domains/i18n/infrastructure/locales'),
|
|
22
|
+
path.join(projectRoot, 'src/infrastructure/localization/locales'),
|
|
23
|
+
// Simple structure
|
|
24
|
+
path.join(projectRoot, 'src/locales'),
|
|
25
|
+
path.join(projectRoot, 'locales'),
|
|
26
|
+
path.join(projectRoot, 'translations'),
|
|
27
|
+
// Alternative DDD
|
|
28
|
+
path.join(projectRoot, 'src/features/localization/locales'),
|
|
29
|
+
];
|
|
30
|
+
|
|
31
|
+
// Find first existing path with en-US directory
|
|
32
|
+
for (const possiblePath of possiblePaths) {
|
|
33
|
+
const enUSPath = path.join(possiblePath, 'en-US');
|
|
34
|
+
if (fs.existsSync(possiblePath) && fs.existsSync(enUSPath)) {
|
|
35
|
+
return possiblePath;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Get or create locales directory
|
|
44
|
+
* @param {boolean} createIfNotExists - Create directory if it doesn't exist (for setup script)
|
|
45
|
+
* @returns {string} Path to locales directory
|
|
46
|
+
*/
|
|
47
|
+
function getLocalesDir(createIfNotExists = false) {
|
|
48
|
+
let localesDir = findLocalesDir();
|
|
49
|
+
|
|
50
|
+
if (!localesDir) {
|
|
51
|
+
if (createIfNotExists) {
|
|
52
|
+
// Try to create in most common location
|
|
53
|
+
const projectRoot = process.cwd();
|
|
54
|
+
localesDir = path.join(projectRoot, 'src/domains/localization/infrastructure/locales');
|
|
55
|
+
const enUSDir = path.join(localesDir, 'en-US');
|
|
56
|
+
|
|
57
|
+
if (!fs.existsSync(localesDir)) {
|
|
58
|
+
fs.mkdirSync(localesDir, { recursive: true });
|
|
59
|
+
fs.mkdirSync(enUSDir, { recursive: true });
|
|
60
|
+
console.log(`ā
Created locales directory: ${localesDir}`);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
return localesDir;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
console.error('ā Locales directory not found!');
|
|
67
|
+
console.error('\nPlease create a locales directory in one of these locations:');
|
|
68
|
+
console.error(' - src/domains/localization/infrastructure/locales');
|
|
69
|
+
console.error(' - src/locales');
|
|
70
|
+
console.error(' - locales');
|
|
71
|
+
console.error('\nOr run: npm run i18n:setup');
|
|
72
|
+
process.exit(1);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return localesDir;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
module.exports = { findLocalesDir, getLocalesDir };
|
|
79
|
+
|