@umituz/react-native-localization 1.3.2 → 1.3.4
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/lib/infrastructure/config/i18n.d.ts.map +1 -1
- package/lib/infrastructure/config/i18n.js +3 -1
- package/lib/infrastructure/config/i18n.js.map +1 -1
- package/lib/infrastructure/locales/ar-SA/index.d.ts +10 -754
- package/lib/infrastructure/locales/ar-SA/index.d.ts.map +1 -1
- package/lib/infrastructure/locales/ar-SA/index.js +11 -10
- package/lib/infrastructure/locales/ar-SA/index.js.map +1 -1
- package/lib/infrastructure/locales/bg-BG/index.d.ts +10 -754
- package/lib/infrastructure/locales/bg-BG/index.d.ts.map +1 -1
- package/lib/infrastructure/locales/bg-BG/index.js +11 -10
- package/lib/infrastructure/locales/bg-BG/index.js.map +1 -1
- package/lib/infrastructure/locales/cs-CZ/index.d.ts +11 -722
- package/lib/infrastructure/locales/cs-CZ/index.d.ts.map +1 -1
- package/lib/infrastructure/locales/cs-CZ/index.js +13 -9
- package/lib/infrastructure/locales/cs-CZ/index.js.map +1 -1
- package/lib/infrastructure/locales/da-DK/index.d.ts +11 -722
- package/lib/infrastructure/locales/da-DK/index.d.ts.map +1 -1
- package/lib/infrastructure/locales/da-DK/index.js +13 -9
- package/lib/infrastructure/locales/da-DK/index.js.map +1 -1
- package/lib/infrastructure/locales/de-DE/index.d.ts +11 -722
- package/lib/infrastructure/locales/de-DE/index.d.ts.map +1 -1
- package/lib/infrastructure/locales/de-DE/index.js +13 -9
- package/lib/infrastructure/locales/de-DE/index.js.map +1 -1
- package/lib/infrastructure/locales/el-GR/index.d.ts +11 -722
- package/lib/infrastructure/locales/el-GR/index.d.ts.map +1 -1
- package/lib/infrastructure/locales/el-GR/index.js +13 -9
- package/lib/infrastructure/locales/el-GR/index.js.map +1 -1
- package/lib/infrastructure/locales/en-AU/index.d.ts +9 -512
- package/lib/infrastructure/locales/en-AU/index.d.ts.map +1 -1
- package/lib/infrastructure/locales/en-AU/index.js +10 -9
- package/lib/infrastructure/locales/en-AU/index.js.map +1 -1
- package/lib/infrastructure/locales/en-CA/index.d.ts +9 -512
- package/lib/infrastructure/locales/en-CA/index.d.ts.map +1 -1
- package/lib/infrastructure/locales/en-CA/index.js +10 -9
- package/lib/infrastructure/locales/en-CA/index.js.map +1 -1
- package/lib/infrastructure/locales/en-GB/index.d.ts +9 -512
- package/lib/infrastructure/locales/en-GB/index.d.ts.map +1 -1
- package/lib/infrastructure/locales/en-GB/index.js +10 -9
- package/lib/infrastructure/locales/en-GB/index.js.map +1 -1
- package/lib/infrastructure/locales/en-US/index.d.ts +10 -751
- package/lib/infrastructure/locales/en-US/index.d.ts.map +1 -1
- package/lib/infrastructure/locales/en-US/index.js +11 -10
- package/lib/infrastructure/locales/en-US/index.js.map +1 -1
- package/lib/infrastructure/locales/es-ES/index.d.ts +11 -722
- package/lib/infrastructure/locales/es-ES/index.d.ts.map +1 -1
- package/lib/infrastructure/locales/es-ES/index.js +13 -9
- package/lib/infrastructure/locales/es-ES/index.js.map +1 -1
- package/lib/infrastructure/locales/es-MX/index.d.ts +11 -711
- package/lib/infrastructure/locales/es-MX/index.d.ts.map +1 -1
- package/lib/infrastructure/locales/es-MX/index.js +13 -9
- package/lib/infrastructure/locales/es-MX/index.js.map +1 -1
- package/lib/infrastructure/locales/fi-FI/index.d.ts +11 -722
- package/lib/infrastructure/locales/fi-FI/index.d.ts.map +1 -1
- package/lib/infrastructure/locales/fi-FI/index.js +13 -9
- package/lib/infrastructure/locales/fi-FI/index.js.map +1 -1
- package/lib/infrastructure/locales/fr-CA/index.d.ts +11 -722
- package/lib/infrastructure/locales/fr-CA/index.d.ts.map +1 -1
- package/lib/infrastructure/locales/fr-CA/index.js +13 -9
- package/lib/infrastructure/locales/fr-CA/index.js.map +1 -1
- package/lib/infrastructure/locales/fr-FR/index.d.ts +11 -722
- package/lib/infrastructure/locales/fr-FR/index.d.ts.map +1 -1
- package/lib/infrastructure/locales/fr-FR/index.js +13 -9
- package/lib/infrastructure/locales/fr-FR/index.js.map +1 -1
- package/lib/infrastructure/locales/hi-IN/index.d.ts +11 -722
- package/lib/infrastructure/locales/hi-IN/index.d.ts.map +1 -1
- package/lib/infrastructure/locales/hi-IN/index.js +13 -9
- package/lib/infrastructure/locales/hi-IN/index.js.map +1 -1
- package/lib/infrastructure/locales/hr-HR/index.d.ts +11 -711
- package/lib/infrastructure/locales/hr-HR/index.d.ts.map +1 -1
- package/lib/infrastructure/locales/hr-HR/index.js +13 -9
- package/lib/infrastructure/locales/hr-HR/index.js.map +1 -1
- package/lib/infrastructure/locales/hu-HU/index.d.ts +11 -722
- package/lib/infrastructure/locales/hu-HU/index.d.ts.map +1 -1
- package/lib/infrastructure/locales/hu-HU/index.js +13 -9
- package/lib/infrastructure/locales/hu-HU/index.js.map +1 -1
- package/lib/infrastructure/locales/id-ID/index.d.ts +11 -722
- package/lib/infrastructure/locales/id-ID/index.d.ts.map +1 -1
- package/lib/infrastructure/locales/id-ID/index.js +13 -9
- package/lib/infrastructure/locales/id-ID/index.js.map +1 -1
- package/lib/infrastructure/locales/it-IT/index.d.ts +11 -722
- package/lib/infrastructure/locales/it-IT/index.d.ts.map +1 -1
- package/lib/infrastructure/locales/it-IT/index.js +13 -9
- package/lib/infrastructure/locales/it-IT/index.js.map +1 -1
- package/lib/infrastructure/locales/ja-JP/index.d.ts +11 -722
- package/lib/infrastructure/locales/ja-JP/index.d.ts.map +1 -1
- package/lib/infrastructure/locales/ja-JP/index.js +13 -9
- package/lib/infrastructure/locales/ja-JP/index.js.map +1 -1
- package/lib/infrastructure/locales/ko-KR/index.d.ts +11 -722
- package/lib/infrastructure/locales/ko-KR/index.d.ts.map +1 -1
- package/lib/infrastructure/locales/ko-KR/index.js +13 -9
- package/lib/infrastructure/locales/ko-KR/index.js.map +1 -1
- package/lib/infrastructure/locales/ms-MY/index.d.ts +11 -722
- package/lib/infrastructure/locales/ms-MY/index.d.ts.map +1 -1
- package/lib/infrastructure/locales/ms-MY/index.js +13 -9
- package/lib/infrastructure/locales/ms-MY/index.js.map +1 -1
- package/lib/infrastructure/locales/nl-NL/index.d.ts +11 -722
- package/lib/infrastructure/locales/nl-NL/index.d.ts.map +1 -1
- package/lib/infrastructure/locales/nl-NL/index.js +13 -9
- package/lib/infrastructure/locales/nl-NL/index.js.map +1 -1
- package/lib/infrastructure/locales/no-NO/index.d.ts +11 -722
- package/lib/infrastructure/locales/no-NO/index.d.ts.map +1 -1
- package/lib/infrastructure/locales/no-NO/index.js +13 -9
- package/lib/infrastructure/locales/no-NO/index.js.map +1 -1
- package/lib/infrastructure/locales/pl-PL/index.d.ts +11 -722
- package/lib/infrastructure/locales/pl-PL/index.d.ts.map +1 -1
- package/lib/infrastructure/locales/pl-PL/index.js +13 -9
- package/lib/infrastructure/locales/pl-PL/index.js.map +1 -1
- package/lib/infrastructure/locales/pt-BR/index.d.ts +11 -722
- package/lib/infrastructure/locales/pt-BR/index.d.ts.map +1 -1
- package/lib/infrastructure/locales/pt-BR/index.js +13 -9
- package/lib/infrastructure/locales/pt-BR/index.js.map +1 -1
- package/lib/infrastructure/locales/pt-PT/index.d.ts +11 -722
- package/lib/infrastructure/locales/pt-PT/index.d.ts.map +1 -1
- package/lib/infrastructure/locales/pt-PT/index.js +13 -9
- package/lib/infrastructure/locales/pt-PT/index.js.map +1 -1
- package/lib/infrastructure/locales/ro-RO/index.d.ts +11 -722
- package/lib/infrastructure/locales/ro-RO/index.d.ts.map +1 -1
- package/lib/infrastructure/locales/ro-RO/index.js +13 -9
- package/lib/infrastructure/locales/ro-RO/index.js.map +1 -1
- package/lib/infrastructure/locales/ru-RU/index.d.ts +11 -711
- package/lib/infrastructure/locales/ru-RU/index.d.ts.map +1 -1
- package/lib/infrastructure/locales/ru-RU/index.js +13 -9
- package/lib/infrastructure/locales/ru-RU/index.js.map +1 -1
- package/lib/infrastructure/locales/sk-SK/index.d.ts +11 -722
- package/lib/infrastructure/locales/sk-SK/index.d.ts.map +1 -1
- package/lib/infrastructure/locales/sk-SK/index.js +13 -9
- package/lib/infrastructure/locales/sk-SK/index.js.map +1 -1
- package/lib/infrastructure/locales/sv-SE/index.d.ts +11 -722
- package/lib/infrastructure/locales/sv-SE/index.d.ts.map +1 -1
- package/lib/infrastructure/locales/sv-SE/index.js +13 -9
- package/lib/infrastructure/locales/sv-SE/index.js.map +1 -1
- package/lib/infrastructure/locales/th-TH/index.d.ts +11 -722
- package/lib/infrastructure/locales/th-TH/index.d.ts.map +1 -1
- package/lib/infrastructure/locales/th-TH/index.js +13 -9
- package/lib/infrastructure/locales/th-TH/index.js.map +1 -1
- package/lib/infrastructure/locales/tl-PH/index.d.ts +11 -722
- package/lib/infrastructure/locales/tl-PH/index.d.ts.map +1 -1
- package/lib/infrastructure/locales/tl-PH/index.js +13 -9
- package/lib/infrastructure/locales/tl-PH/index.js.map +1 -1
- package/lib/infrastructure/locales/tr-TR/index.d.ts +11 -722
- package/lib/infrastructure/locales/tr-TR/index.d.ts.map +1 -1
- package/lib/infrastructure/locales/tr-TR/index.js +13 -9
- package/lib/infrastructure/locales/tr-TR/index.js.map +1 -1
- package/lib/infrastructure/locales/uk-UA/index.d.ts +11 -722
- package/lib/infrastructure/locales/uk-UA/index.d.ts.map +1 -1
- package/lib/infrastructure/locales/uk-UA/index.js +13 -9
- package/lib/infrastructure/locales/uk-UA/index.js.map +1 -1
- package/lib/infrastructure/locales/vi-VN/index.d.ts +11 -722
- package/lib/infrastructure/locales/vi-VN/index.d.ts.map +1 -1
- package/lib/infrastructure/locales/vi-VN/index.js +13 -9
- package/lib/infrastructure/locales/vi-VN/index.js.map +1 -1
- package/lib/infrastructure/locales/zh-CN/index.d.ts +11 -722
- package/lib/infrastructure/locales/zh-CN/index.d.ts.map +1 -1
- package/lib/infrastructure/locales/zh-CN/index.js +13 -9
- package/lib/infrastructure/locales/zh-CN/index.js.map +1 -1
- package/lib/infrastructure/locales/zh-TW/index.d.ts +11 -722
- package/lib/infrastructure/locales/zh-TW/index.d.ts.map +1 -1
- package/lib/infrastructure/locales/zh-TW/index.js +13 -9
- package/lib/infrastructure/locales/zh-TW/index.js.map +1 -1
- package/package.json +1 -1
- package/scripts/createLocaleLoaders.js +6 -4
- package/scripts/setup-languages.js +4 -34
- package/scripts/utils/findLocalesDir.js +12 -9
- package/src/infrastructure/config/i18n.ts +3 -1
- package/src/infrastructure/locales/ar-SA/index.ts +11 -10
- package/src/infrastructure/locales/bg-BG/index.ts +11 -10
- package/src/infrastructure/locales/cs-CZ/index.ts +13 -9
- package/src/infrastructure/locales/da-DK/index.ts +13 -9
- package/src/infrastructure/locales/de-DE/index.ts +13 -9
- package/src/infrastructure/locales/el-GR/index.ts +13 -9
- package/src/infrastructure/locales/en-AU/index.ts +10 -9
- package/src/infrastructure/locales/en-CA/index.ts +10 -9
- package/src/infrastructure/locales/en-GB/index.ts +10 -9
- package/src/infrastructure/locales/en-US/index.ts +11 -10
- package/src/infrastructure/locales/es-ES/index.ts +13 -9
- package/src/infrastructure/locales/es-MX/index.ts +13 -9
- package/src/infrastructure/locales/fi-FI/index.ts +13 -9
- package/src/infrastructure/locales/fr-CA/index.ts +13 -9
- package/src/infrastructure/locales/fr-FR/index.ts +13 -9
- package/src/infrastructure/locales/hi-IN/index.ts +13 -9
- package/src/infrastructure/locales/hr-HR/index.ts +13 -9
- package/src/infrastructure/locales/hu-HU/index.ts +13 -9
- package/src/infrastructure/locales/id-ID/index.ts +13 -9
- package/src/infrastructure/locales/it-IT/index.ts +13 -9
- package/src/infrastructure/locales/ja-JP/index.ts +13 -9
- package/src/infrastructure/locales/ko-KR/index.ts +13 -9
- package/src/infrastructure/locales/ms-MY/index.ts +13 -9
- package/src/infrastructure/locales/nl-NL/index.ts +13 -9
- package/src/infrastructure/locales/no-NO/index.ts +13 -9
- package/src/infrastructure/locales/pl-PL/index.ts +13 -9
- package/src/infrastructure/locales/pt-BR/index.ts +13 -9
- package/src/infrastructure/locales/pt-PT/index.ts +13 -9
- package/src/infrastructure/locales/ro-RO/index.ts +13 -9
- package/src/infrastructure/locales/ru-RU/index.ts +13 -9
- package/src/infrastructure/locales/sk-SK/index.ts +13 -9
- package/src/infrastructure/locales/sv-SE/index.ts +13 -9
- package/src/infrastructure/locales/th-TH/index.ts +13 -9
- package/src/infrastructure/locales/tl-PH/index.ts +13 -9
- package/src/infrastructure/locales/tr-TR/index.ts +13 -9
- package/src/infrastructure/locales/uk-UA/index.ts +13 -9
- package/src/infrastructure/locales/vi-VN/index.ts +13 -9
- package/src/infrastructure/locales/zh-CN/index.ts +13 -9
- package/src/infrastructure/locales/zh-TW/index.ts +13 -9
- package/lib/infrastructure/locales/ar-SA/auth.json +0 -32
- package/lib/infrastructure/locales/ar-SA/branding.json +0 -9
- package/lib/infrastructure/locales/ar-SA/datetime.json +0 -140
- package/lib/infrastructure/locales/ar-SA/errors.json +0 -43
- package/lib/infrastructure/locales/ar-SA/flashcards.json +0 -287
- package/lib/infrastructure/locales/ar-SA/general.json +0 -61
- package/lib/infrastructure/locales/ar-SA/navigation.json +0 -58
- package/lib/infrastructure/locales/ar-SA/onboarding.json +0 -76
- package/lib/infrastructure/locales/ar-SA/settings.json +0 -53
- package/lib/infrastructure/locales/bg-BG/auth.json +0 -32
- package/lib/infrastructure/locales/bg-BG/branding.json +0 -9
- package/lib/infrastructure/locales/bg-BG/datetime.json +0 -140
- package/lib/infrastructure/locales/bg-BG/errors.json +0 -43
- package/lib/infrastructure/locales/bg-BG/flashcards.json +0 -287
- package/lib/infrastructure/locales/bg-BG/general.json +0 -61
- package/lib/infrastructure/locales/bg-BG/navigation.json +0 -58
- package/lib/infrastructure/locales/bg-BG/onboarding.json +0 -76
- package/lib/infrastructure/locales/bg-BG/settings.json +0 -53
- package/lib/infrastructure/locales/cs-CZ/branding.json +0 -9
- package/lib/infrastructure/locales/cs-CZ/datetime.json +0 -140
- package/lib/infrastructure/locales/cs-CZ/errors.json +0 -43
- package/lib/infrastructure/locales/cs-CZ/flashcards.json +0 -287
- package/lib/infrastructure/locales/cs-CZ/general.json +0 -61
- package/lib/infrastructure/locales/cs-CZ/navigation.json +0 -58
- package/lib/infrastructure/locales/cs-CZ/onboarding.json +0 -76
- package/lib/infrastructure/locales/cs-CZ/settings.json +0 -53
- package/lib/infrastructure/locales/da-DK/branding.json +0 -9
- package/lib/infrastructure/locales/da-DK/datetime.json +0 -140
- package/lib/infrastructure/locales/da-DK/errors.json +0 -43
- package/lib/infrastructure/locales/da-DK/flashcards.json +0 -287
- package/lib/infrastructure/locales/da-DK/general.json +0 -61
- package/lib/infrastructure/locales/da-DK/navigation.json +0 -58
- package/lib/infrastructure/locales/da-DK/onboarding.json +0 -76
- package/lib/infrastructure/locales/da-DK/settings.json +0 -53
- package/lib/infrastructure/locales/de-DE/branding.json +0 -9
- package/lib/infrastructure/locales/de-DE/datetime.json +0 -140
- package/lib/infrastructure/locales/de-DE/errors.json +0 -43
- package/lib/infrastructure/locales/de-DE/flashcards.json +0 -287
- package/lib/infrastructure/locales/de-DE/general.json +0 -61
- package/lib/infrastructure/locales/de-DE/navigation.json +0 -58
- package/lib/infrastructure/locales/de-DE/onboarding.json +0 -76
- package/lib/infrastructure/locales/de-DE/settings.json +0 -53
- package/lib/infrastructure/locales/el-GR/branding.json +0 -9
- package/lib/infrastructure/locales/el-GR/datetime.json +0 -140
- package/lib/infrastructure/locales/el-GR/errors.json +0 -43
- package/lib/infrastructure/locales/el-GR/flashcards.json +0 -287
- package/lib/infrastructure/locales/el-GR/general.json +0 -61
- package/lib/infrastructure/locales/el-GR/navigation.json +0 -58
- package/lib/infrastructure/locales/el-GR/onboarding.json +0 -76
- package/lib/infrastructure/locales/el-GR/settings.json +0 -53
- package/lib/infrastructure/locales/en-AU/branding.json +0 -9
- package/lib/infrastructure/locales/en-AU/datetime.json +0 -140
- package/lib/infrastructure/locales/en-AU/errors.json +0 -43
- package/lib/infrastructure/locales/en-AU/flashcards.json +0 -77
- package/lib/infrastructure/locales/en-AU/general.json +0 -61
- package/lib/infrastructure/locales/en-AU/navigation.json +0 -58
- package/lib/infrastructure/locales/en-AU/onboarding.json +0 -76
- package/lib/infrastructure/locales/en-AU/settings.json +0 -53
- package/lib/infrastructure/locales/en-CA/branding.json +0 -9
- package/lib/infrastructure/locales/en-CA/datetime.json +0 -140
- package/lib/infrastructure/locales/en-CA/errors.json +0 -43
- package/lib/infrastructure/locales/en-CA/flashcards.json +0 -77
- package/lib/infrastructure/locales/en-CA/general.json +0 -61
- package/lib/infrastructure/locales/en-CA/navigation.json +0 -58
- package/lib/infrastructure/locales/en-CA/onboarding.json +0 -76
- package/lib/infrastructure/locales/en-CA/settings.json +0 -53
- package/lib/infrastructure/locales/en-GB/branding.json +0 -9
- package/lib/infrastructure/locales/en-GB/datetime.json +0 -140
- package/lib/infrastructure/locales/en-GB/errors.json +0 -43
- package/lib/infrastructure/locales/en-GB/flashcards.json +0 -77
- package/lib/infrastructure/locales/en-GB/general.json +0 -61
- package/lib/infrastructure/locales/en-GB/navigation.json +0 -58
- package/lib/infrastructure/locales/en-GB/onboarding.json +0 -76
- package/lib/infrastructure/locales/en-GB/settings.json +0 -53
- package/lib/infrastructure/locales/en-US/auth.json +0 -32
- package/lib/infrastructure/locales/en-US/branding.json +0 -9
- package/lib/infrastructure/locales/en-US/datetime.json +0 -140
- package/lib/infrastructure/locales/en-US/errors.json +0 -43
- package/lib/infrastructure/locales/en-US/flashcards.json +0 -310
- package/lib/infrastructure/locales/en-US/general.json +0 -61
- package/lib/infrastructure/locales/en-US/navigation.json +0 -55
- package/lib/infrastructure/locales/en-US/onboarding.json +0 -76
- package/lib/infrastructure/locales/en-US/settings.json +0 -53
- package/lib/infrastructure/locales/es-ES/branding.json +0 -9
- package/lib/infrastructure/locales/es-ES/datetime.json +0 -140
- package/lib/infrastructure/locales/es-ES/errors.json +0 -43
- package/lib/infrastructure/locales/es-ES/flashcards.json +0 -287
- package/lib/infrastructure/locales/es-ES/general.json +0 -61
- package/lib/infrastructure/locales/es-ES/navigation.json +0 -58
- package/lib/infrastructure/locales/es-ES/onboarding.json +0 -76
- package/lib/infrastructure/locales/es-ES/settings.json +0 -53
- package/lib/infrastructure/locales/es-MX/branding.json +0 -9
- package/lib/infrastructure/locales/es-MX/datetime.json +0 -140
- package/lib/infrastructure/locales/es-MX/errors.json +0 -43
- package/lib/infrastructure/locales/es-MX/flashcards.json +0 -276
- package/lib/infrastructure/locales/es-MX/general.json +0 -61
- package/lib/infrastructure/locales/es-MX/navigation.json +0 -58
- package/lib/infrastructure/locales/es-MX/onboarding.json +0 -76
- package/lib/infrastructure/locales/es-MX/settings.json +0 -53
- package/lib/infrastructure/locales/fi-FI/branding.json +0 -9
- package/lib/infrastructure/locales/fi-FI/datetime.json +0 -140
- package/lib/infrastructure/locales/fi-FI/errors.json +0 -43
- package/lib/infrastructure/locales/fi-FI/flashcards.json +0 -287
- package/lib/infrastructure/locales/fi-FI/general.json +0 -61
- package/lib/infrastructure/locales/fi-FI/navigation.json +0 -58
- package/lib/infrastructure/locales/fi-FI/onboarding.json +0 -76
- package/lib/infrastructure/locales/fi-FI/settings.json +0 -53
- package/lib/infrastructure/locales/fr-CA/branding.json +0 -9
- package/lib/infrastructure/locales/fr-CA/datetime.json +0 -140
- package/lib/infrastructure/locales/fr-CA/errors.json +0 -43
- package/lib/infrastructure/locales/fr-CA/flashcards.json +0 -287
- package/lib/infrastructure/locales/fr-CA/general.json +0 -61
- package/lib/infrastructure/locales/fr-CA/navigation.json +0 -58
- package/lib/infrastructure/locales/fr-CA/onboarding.json +0 -76
- package/lib/infrastructure/locales/fr-CA/settings.json +0 -53
- package/lib/infrastructure/locales/fr-FR/branding.json +0 -9
- package/lib/infrastructure/locales/fr-FR/datetime.json +0 -140
- package/lib/infrastructure/locales/fr-FR/errors.json +0 -43
- package/lib/infrastructure/locales/fr-FR/flashcards.json +0 -287
- package/lib/infrastructure/locales/fr-FR/general.json +0 -61
- package/lib/infrastructure/locales/fr-FR/navigation.json +0 -58
- package/lib/infrastructure/locales/fr-FR/onboarding.json +0 -76
- package/lib/infrastructure/locales/fr-FR/settings.json +0 -53
- package/lib/infrastructure/locales/hi-IN/branding.json +0 -9
- package/lib/infrastructure/locales/hi-IN/datetime.json +0 -140
- package/lib/infrastructure/locales/hi-IN/errors.json +0 -43
- package/lib/infrastructure/locales/hi-IN/flashcards.json +0 -287
- package/lib/infrastructure/locales/hi-IN/general.json +0 -61
- package/lib/infrastructure/locales/hi-IN/navigation.json +0 -58
- package/lib/infrastructure/locales/hi-IN/onboarding.json +0 -76
- package/lib/infrastructure/locales/hi-IN/settings.json +0 -53
- package/lib/infrastructure/locales/hr-HR/branding.json +0 -9
- package/lib/infrastructure/locales/hr-HR/datetime.json +0 -140
- package/lib/infrastructure/locales/hr-HR/errors.json +0 -43
- package/lib/infrastructure/locales/hr-HR/flashcards.json +0 -276
- package/lib/infrastructure/locales/hr-HR/general.json +0 -61
- package/lib/infrastructure/locales/hr-HR/navigation.json +0 -58
- package/lib/infrastructure/locales/hr-HR/onboarding.json +0 -76
- package/lib/infrastructure/locales/hr-HR/settings.json +0 -53
- package/lib/infrastructure/locales/hu-HU/branding.json +0 -9
- package/lib/infrastructure/locales/hu-HU/datetime.json +0 -140
- package/lib/infrastructure/locales/hu-HU/errors.json +0 -43
- package/lib/infrastructure/locales/hu-HU/flashcards.json +0 -287
- package/lib/infrastructure/locales/hu-HU/general.json +0 -61
- package/lib/infrastructure/locales/hu-HU/navigation.json +0 -58
- package/lib/infrastructure/locales/hu-HU/onboarding.json +0 -76
- package/lib/infrastructure/locales/hu-HU/settings.json +0 -53
- package/lib/infrastructure/locales/id-ID/branding.json +0 -9
- package/lib/infrastructure/locales/id-ID/datetime.json +0 -140
- package/lib/infrastructure/locales/id-ID/errors.json +0 -43
- package/lib/infrastructure/locales/id-ID/flashcards.json +0 -287
- package/lib/infrastructure/locales/id-ID/general.json +0 -61
- package/lib/infrastructure/locales/id-ID/navigation.json +0 -58
- package/lib/infrastructure/locales/id-ID/onboarding.json +0 -76
- package/lib/infrastructure/locales/id-ID/settings.json +0 -53
- package/lib/infrastructure/locales/it-IT/branding.json +0 -9
- package/lib/infrastructure/locales/it-IT/datetime.json +0 -140
- package/lib/infrastructure/locales/it-IT/errors.json +0 -43
- package/lib/infrastructure/locales/it-IT/flashcards.json +0 -287
- package/lib/infrastructure/locales/it-IT/general.json +0 -61
- package/lib/infrastructure/locales/it-IT/navigation.json +0 -58
- package/lib/infrastructure/locales/it-IT/onboarding.json +0 -76
- package/lib/infrastructure/locales/it-IT/settings.json +0 -53
- package/lib/infrastructure/locales/ja-JP/branding.json +0 -9
- package/lib/infrastructure/locales/ja-JP/datetime.json +0 -140
- package/lib/infrastructure/locales/ja-JP/errors.json +0 -43
- package/lib/infrastructure/locales/ja-JP/flashcards.json +0 -287
- package/lib/infrastructure/locales/ja-JP/general.json +0 -61
- package/lib/infrastructure/locales/ja-JP/navigation.json +0 -58
- package/lib/infrastructure/locales/ja-JP/onboarding.json +0 -76
- package/lib/infrastructure/locales/ja-JP/settings.json +0 -53
- package/lib/infrastructure/locales/ko-KR/branding.json +0 -9
- package/lib/infrastructure/locales/ko-KR/datetime.json +0 -140
- package/lib/infrastructure/locales/ko-KR/errors.json +0 -43
- package/lib/infrastructure/locales/ko-KR/flashcards.json +0 -287
- package/lib/infrastructure/locales/ko-KR/general.json +0 -61
- package/lib/infrastructure/locales/ko-KR/navigation.json +0 -58
- package/lib/infrastructure/locales/ko-KR/onboarding.json +0 -76
- package/lib/infrastructure/locales/ko-KR/settings.json +0 -53
- package/lib/infrastructure/locales/ms-MY/branding.json +0 -9
- package/lib/infrastructure/locales/ms-MY/datetime.json +0 -140
- package/lib/infrastructure/locales/ms-MY/errors.json +0 -43
- package/lib/infrastructure/locales/ms-MY/flashcards.json +0 -287
- package/lib/infrastructure/locales/ms-MY/general.json +0 -61
- package/lib/infrastructure/locales/ms-MY/navigation.json +0 -58
- package/lib/infrastructure/locales/ms-MY/onboarding.json +0 -76
- package/lib/infrastructure/locales/ms-MY/settings.json +0 -53
- package/lib/infrastructure/locales/nl-NL/branding.json +0 -9
- package/lib/infrastructure/locales/nl-NL/datetime.json +0 -140
- package/lib/infrastructure/locales/nl-NL/errors.json +0 -43
- package/lib/infrastructure/locales/nl-NL/flashcards.json +0 -287
- package/lib/infrastructure/locales/nl-NL/general.json +0 -61
- package/lib/infrastructure/locales/nl-NL/navigation.json +0 -58
- package/lib/infrastructure/locales/nl-NL/onboarding.json +0 -76
- package/lib/infrastructure/locales/nl-NL/settings.json +0 -53
- package/lib/infrastructure/locales/no-NO/branding.json +0 -9
- package/lib/infrastructure/locales/no-NO/datetime.json +0 -140
- package/lib/infrastructure/locales/no-NO/errors.json +0 -43
- package/lib/infrastructure/locales/no-NO/flashcards.json +0 -287
- package/lib/infrastructure/locales/no-NO/general.json +0 -61
- package/lib/infrastructure/locales/no-NO/navigation.json +0 -58
- package/lib/infrastructure/locales/no-NO/onboarding.json +0 -76
- package/lib/infrastructure/locales/no-NO/settings.json +0 -53
- package/lib/infrastructure/locales/pl-PL/branding.json +0 -9
- package/lib/infrastructure/locales/pl-PL/datetime.json +0 -140
- package/lib/infrastructure/locales/pl-PL/errors.json +0 -43
- package/lib/infrastructure/locales/pl-PL/flashcards.json +0 -287
- package/lib/infrastructure/locales/pl-PL/general.json +0 -61
- package/lib/infrastructure/locales/pl-PL/navigation.json +0 -58
- package/lib/infrastructure/locales/pl-PL/onboarding.json +0 -76
- package/lib/infrastructure/locales/pl-PL/settings.json +0 -53
- package/lib/infrastructure/locales/pt-BR/branding.json +0 -9
- package/lib/infrastructure/locales/pt-BR/datetime.json +0 -140
- package/lib/infrastructure/locales/pt-BR/errors.json +0 -43
- package/lib/infrastructure/locales/pt-BR/flashcards.json +0 -287
- package/lib/infrastructure/locales/pt-BR/general.json +0 -61
- package/lib/infrastructure/locales/pt-BR/navigation.json +0 -58
- package/lib/infrastructure/locales/pt-BR/onboarding.json +0 -76
- package/lib/infrastructure/locales/pt-BR/settings.json +0 -53
- package/lib/infrastructure/locales/pt-PT/branding.json +0 -9
- package/lib/infrastructure/locales/pt-PT/datetime.json +0 -140
- package/lib/infrastructure/locales/pt-PT/errors.json +0 -43
- package/lib/infrastructure/locales/pt-PT/flashcards.json +0 -287
- package/lib/infrastructure/locales/pt-PT/general.json +0 -61
- package/lib/infrastructure/locales/pt-PT/navigation.json +0 -58
- package/lib/infrastructure/locales/pt-PT/onboarding.json +0 -76
- package/lib/infrastructure/locales/pt-PT/settings.json +0 -53
- package/lib/infrastructure/locales/ro-RO/branding.json +0 -9
- package/lib/infrastructure/locales/ro-RO/datetime.json +0 -140
- package/lib/infrastructure/locales/ro-RO/errors.json +0 -43
- package/lib/infrastructure/locales/ro-RO/flashcards.json +0 -287
- package/lib/infrastructure/locales/ro-RO/general.json +0 -61
- package/lib/infrastructure/locales/ro-RO/navigation.json +0 -58
- package/lib/infrastructure/locales/ro-RO/onboarding.json +0 -76
- package/lib/infrastructure/locales/ro-RO/settings.json +0 -53
- package/lib/infrastructure/locales/ru-RU/branding.json +0 -9
- package/lib/infrastructure/locales/ru-RU/datetime.json +0 -140
- package/lib/infrastructure/locales/ru-RU/errors.json +0 -43
- package/lib/infrastructure/locales/ru-RU/flashcards.json +0 -276
- package/lib/infrastructure/locales/ru-RU/general.json +0 -61
- package/lib/infrastructure/locales/ru-RU/navigation.json +0 -58
- package/lib/infrastructure/locales/ru-RU/onboarding.json +0 -76
- package/lib/infrastructure/locales/ru-RU/settings.json +0 -53
- package/lib/infrastructure/locales/sk-SK/branding.json +0 -9
- package/lib/infrastructure/locales/sk-SK/datetime.json +0 -140
- package/lib/infrastructure/locales/sk-SK/errors.json +0 -43
- package/lib/infrastructure/locales/sk-SK/flashcards.json +0 -287
- package/lib/infrastructure/locales/sk-SK/general.json +0 -61
- package/lib/infrastructure/locales/sk-SK/navigation.json +0 -58
- package/lib/infrastructure/locales/sk-SK/onboarding.json +0 -76
- package/lib/infrastructure/locales/sk-SK/settings.json +0 -53
- package/lib/infrastructure/locales/sv-SE/branding.json +0 -9
- package/lib/infrastructure/locales/sv-SE/datetime.json +0 -140
- package/lib/infrastructure/locales/sv-SE/errors.json +0 -43
- package/lib/infrastructure/locales/sv-SE/flashcards.json +0 -287
- package/lib/infrastructure/locales/sv-SE/general.json +0 -61
- package/lib/infrastructure/locales/sv-SE/navigation.json +0 -58
- package/lib/infrastructure/locales/sv-SE/onboarding.json +0 -76
- package/lib/infrastructure/locales/sv-SE/settings.json +0 -53
- package/lib/infrastructure/locales/th-TH/branding.json +0 -9
- package/lib/infrastructure/locales/th-TH/datetime.json +0 -140
- package/lib/infrastructure/locales/th-TH/errors.json +0 -43
- package/lib/infrastructure/locales/th-TH/flashcards.json +0 -287
- package/lib/infrastructure/locales/th-TH/general.json +0 -61
- package/lib/infrastructure/locales/th-TH/navigation.json +0 -58
- package/lib/infrastructure/locales/th-TH/onboarding.json +0 -76
- package/lib/infrastructure/locales/th-TH/settings.json +0 -53
- package/lib/infrastructure/locales/tl-PH/branding.json +0 -9
- package/lib/infrastructure/locales/tl-PH/datetime.json +0 -140
- package/lib/infrastructure/locales/tl-PH/errors.json +0 -43
- package/lib/infrastructure/locales/tl-PH/flashcards.json +0 -287
- package/lib/infrastructure/locales/tl-PH/general.json +0 -61
- package/lib/infrastructure/locales/tl-PH/navigation.json +0 -58
- package/lib/infrastructure/locales/tl-PH/onboarding.json +0 -76
- package/lib/infrastructure/locales/tl-PH/settings.json +0 -53
- package/lib/infrastructure/locales/tr-TR/branding.json +0 -9
- package/lib/infrastructure/locales/tr-TR/datetime.json +0 -140
- package/lib/infrastructure/locales/tr-TR/errors.json +0 -43
- package/lib/infrastructure/locales/tr-TR/flashcards.json +0 -287
- package/lib/infrastructure/locales/tr-TR/general.json +0 -61
- package/lib/infrastructure/locales/tr-TR/navigation.json +0 -58
- package/lib/infrastructure/locales/tr-TR/onboarding.json +0 -76
- package/lib/infrastructure/locales/tr-TR/settings.json +0 -53
- package/lib/infrastructure/locales/uk-UA/branding.json +0 -9
- package/lib/infrastructure/locales/uk-UA/datetime.json +0 -140
- package/lib/infrastructure/locales/uk-UA/errors.json +0 -43
- package/lib/infrastructure/locales/uk-UA/flashcards.json +0 -287
- package/lib/infrastructure/locales/uk-UA/general.json +0 -61
- package/lib/infrastructure/locales/uk-UA/navigation.json +0 -58
- package/lib/infrastructure/locales/uk-UA/onboarding.json +0 -76
- package/lib/infrastructure/locales/uk-UA/settings.json +0 -53
- package/lib/infrastructure/locales/vi-VN/branding.json +0 -9
- package/lib/infrastructure/locales/vi-VN/datetime.json +0 -140
- package/lib/infrastructure/locales/vi-VN/errors.json +0 -43
- package/lib/infrastructure/locales/vi-VN/flashcards.json +0 -287
- package/lib/infrastructure/locales/vi-VN/general.json +0 -61
- package/lib/infrastructure/locales/vi-VN/navigation.json +0 -58
- package/lib/infrastructure/locales/vi-VN/onboarding.json +0 -76
- package/lib/infrastructure/locales/vi-VN/settings.json +0 -53
- package/lib/infrastructure/locales/zh-CN/branding.json +0 -9
- package/lib/infrastructure/locales/zh-CN/datetime.json +0 -140
- package/lib/infrastructure/locales/zh-CN/errors.json +0 -43
- package/lib/infrastructure/locales/zh-CN/flashcards.json +0 -287
- package/lib/infrastructure/locales/zh-CN/general.json +0 -61
- package/lib/infrastructure/locales/zh-CN/navigation.json +0 -58
- package/lib/infrastructure/locales/zh-CN/onboarding.json +0 -76
- package/lib/infrastructure/locales/zh-CN/settings.json +0 -53
- package/lib/infrastructure/locales/zh-TW/branding.json +0 -9
- package/lib/infrastructure/locales/zh-TW/datetime.json +0 -140
- package/lib/infrastructure/locales/zh-TW/errors.json +0 -43
- package/lib/infrastructure/locales/zh-TW/flashcards.json +0 -287
- package/lib/infrastructure/locales/zh-TW/general.json +0 -61
- package/lib/infrastructure/locales/zh-TW/navigation.json +0 -58
- package/lib/infrastructure/locales/zh-TW/onboarding.json +0 -76
- package/lib/infrastructure/locales/zh-TW/settings.json +0 -53
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/infrastructure/locales/zh-TW/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/infrastructure/locales/zh-TW/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAgBH,QAAA,MAAM,YAAY;;;;;;;;;;CAUjB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
* DO NOT EDIT THIS FILE MANUALLY!
|
|
8
8
|
*
|
|
9
9
|
* Translation Modules:
|
|
10
|
+
* - auth: auth.json
|
|
10
11
|
* - branding: branding.json
|
|
11
12
|
* - datetime: datetime.json
|
|
12
13
|
* - errors: errors.json
|
|
@@ -16,20 +17,23 @@
|
|
|
16
17
|
* - onboarding: onboarding.json
|
|
17
18
|
* - settings: settings.json
|
|
18
19
|
*
|
|
19
|
-
* Generated: 2025-11-
|
|
20
|
+
* Generated: 2025-11-06T20:57:31.293Z
|
|
20
21
|
*/
|
|
21
22
|
// Import all translation modules
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
23
|
+
// Use require for JSON files to ensure proper Metro bundler handling
|
|
24
|
+
const auth = require('./auth.json');
|
|
25
|
+
const branding = require('./branding.json');
|
|
26
|
+
const datetime = require('./datetime.json');
|
|
27
|
+
const errors = require('./errors.json');
|
|
28
|
+
const flashcards = require('./flashcards.json');
|
|
29
|
+
const general = require('./general.json');
|
|
30
|
+
const navigation = require('./navigation.json');
|
|
31
|
+
const onboarding = require('./onboarding.json');
|
|
32
|
+
const settings = require('./settings.json');
|
|
30
33
|
// Merge all modules into a single translation object
|
|
31
34
|
// Using nested structure for better namespace organization
|
|
32
35
|
const translations = {
|
|
36
|
+
auth,
|
|
33
37
|
branding,
|
|
34
38
|
datetime,
|
|
35
39
|
errors,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/infrastructure/locales/zh-TW/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/infrastructure/locales/zh-TW/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,iCAAiC;AACjC,qEAAqE;AACrE,MAAM,IAAI,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;AACpC,MAAM,QAAQ,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAC5C,MAAM,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;AACxC,MAAM,UAAU,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;AAChD,MAAM,OAAO,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AAC1C,MAAM,UAAU,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;AAChD,MAAM,UAAU,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;AAChD,MAAM,QAAQ,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAE5C,qDAAqD;AACrD,2DAA2D;AAC3D,MAAM,YAAY,GAAG;IACnB,IAAI;IACJ,QAAQ;IACR,QAAQ;IACR,MAAM;IACN,UAAU;IACV,OAAO;IACP,UAAU;IACV,UAAU;IACV,QAAQ;CACT,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
package/package.json
CHANGED
|
@@ -81,14 +81,15 @@ function createAutoLoader(languageCode) {
|
|
|
81
81
|
return false;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
// Create
|
|
85
|
-
|
|
84
|
+
// Create require statements and namespace mapping
|
|
85
|
+
// Use require instead of import for JSON files to ensure proper Metro bundler handling
|
|
86
|
+
const requires = [];
|
|
86
87
|
const namespaces = [];
|
|
87
88
|
const descriptions = [];
|
|
88
89
|
|
|
89
90
|
files.forEach(file => {
|
|
90
91
|
const moduleName = file.replace('.json', '');
|
|
91
|
-
|
|
92
|
+
requires.push(`const ${moduleName} = require('./${file}');`);
|
|
92
93
|
namespaces.push(moduleName);
|
|
93
94
|
descriptions.push(` * - ${moduleName}: ${file}`);
|
|
94
95
|
});
|
|
@@ -109,7 +110,8 @@ ${descriptions.join('\n')}
|
|
|
109
110
|
*/
|
|
110
111
|
|
|
111
112
|
// Import all translation modules
|
|
112
|
-
|
|
113
|
+
// Use require for JSON files to ensure proper Metro bundler handling
|
|
114
|
+
${requires.join('\n')}
|
|
113
115
|
|
|
114
116
|
// Merge all modules into a single translation object
|
|
115
117
|
// Using nested structure for better namespace organization
|
|
@@ -54,40 +54,11 @@ async function setupLanguages() {
|
|
|
54
54
|
|
|
55
55
|
console.log("🚀 Setting up language directories and files...\n");
|
|
56
56
|
|
|
57
|
-
//
|
|
57
|
+
// Check if en-US directory exists
|
|
58
58
|
if (!fs.existsSync(enUSDir)) {
|
|
59
|
-
|
|
60
|
-
console.
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
// Get default files from localization package
|
|
64
|
-
const packageRoot = path.dirname(require.resolve('@umituz/react-native-localization/package.json'));
|
|
65
|
-
const packageEnUSDir = path.join(packageRoot, 'src/infrastructure/locales/en-US');
|
|
66
|
-
const defaultFiles = [
|
|
67
|
-
'auth.json',
|
|
68
|
-
'branding.json',
|
|
69
|
-
'datetime.json',
|
|
70
|
-
'errors.json',
|
|
71
|
-
'general.json',
|
|
72
|
-
'navigation.json',
|
|
73
|
-
'onboarding.json',
|
|
74
|
-
'settings.json',
|
|
75
|
-
];
|
|
76
|
-
|
|
77
|
-
// Copy default files from package if they don't exist in project
|
|
78
|
-
let copiedFiles = 0;
|
|
79
|
-
if (fs.existsSync(packageEnUSDir)) {
|
|
80
|
-
for (const file of defaultFiles) {
|
|
81
|
-
const packageFile = path.join(packageEnUSDir, file);
|
|
82
|
-
const projectFile = path.join(enUSDir, file);
|
|
83
|
-
|
|
84
|
-
if (fs.existsSync(packageFile) && !fs.existsSync(projectFile)) {
|
|
85
|
-
const content = fs.readFileSync(packageFile, "utf8");
|
|
86
|
-
fs.writeFileSync(projectFile, content);
|
|
87
|
-
console.log(`📄 Copied default file: en-US/${file}`);
|
|
88
|
-
copiedFiles++;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
59
|
+
console.error("❌ en-US directory not found!");
|
|
60
|
+
console.error(" Expected path:", enUSDir);
|
|
61
|
+
process.exit(1);
|
|
91
62
|
}
|
|
92
63
|
|
|
93
64
|
// Automatically discover all JSON files in en-US directory
|
|
@@ -98,7 +69,6 @@ async function setupLanguages() {
|
|
|
98
69
|
|
|
99
70
|
if (files.length === 0) {
|
|
100
71
|
console.error("❌ No JSON files found in en-US directory!");
|
|
101
|
-
console.error(" Please add translation files to:", enUSDir);
|
|
102
72
|
process.exit(1);
|
|
103
73
|
}
|
|
104
74
|
|
|
@@ -14,16 +14,16 @@ const path = require('path');
|
|
|
14
14
|
function findLocalesDir() {
|
|
15
15
|
const projectRoot = process.cwd();
|
|
16
16
|
|
|
17
|
-
// Common paths to search
|
|
17
|
+
// Common paths to search
|
|
18
18
|
const possiblePaths = [
|
|
19
|
-
// Simple structure (preferred)
|
|
20
|
-
path.join(projectRoot, 'src/locales'),
|
|
21
|
-
path.join(projectRoot, 'locales'),
|
|
22
|
-
path.join(projectRoot, 'translations'),
|
|
23
19
|
// DDD structure
|
|
24
20
|
path.join(projectRoot, 'src/domains/localization/infrastructure/locales'),
|
|
25
21
|
path.join(projectRoot, 'src/domains/i18n/infrastructure/locales'),
|
|
26
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
27
|
// Alternative DDD
|
|
28
28
|
path.join(projectRoot, 'src/features/localization/locales'),
|
|
29
29
|
];
|
|
@@ -49,22 +49,25 @@ function getLocalesDir(createIfNotExists = false) {
|
|
|
49
49
|
|
|
50
50
|
if (!localesDir) {
|
|
51
51
|
if (createIfNotExists) {
|
|
52
|
-
// Try to create in most common location
|
|
52
|
+
// Try to create in most common location
|
|
53
53
|
const projectRoot = process.cwd();
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
localesDir = path.join(projectRoot, 'src/domains/localization/infrastructure/locales');
|
|
55
|
+
const enUSDir = path.join(localesDir, 'en-US');
|
|
56
|
+
|
|
56
57
|
if (!fs.existsSync(localesDir)) {
|
|
57
58
|
fs.mkdirSync(localesDir, { recursive: true });
|
|
59
|
+
fs.mkdirSync(enUSDir, { recursive: true });
|
|
58
60
|
console.log(`✅ Created locales directory: ${localesDir}`);
|
|
59
61
|
}
|
|
62
|
+
|
|
60
63
|
return localesDir;
|
|
61
64
|
}
|
|
62
65
|
|
|
63
66
|
console.error('❌ Locales directory not found!');
|
|
64
67
|
console.error('\nPlease create a locales directory in one of these locations:');
|
|
68
|
+
console.error(' - src/domains/localization/infrastructure/locales');
|
|
65
69
|
console.error(' - src/locales');
|
|
66
70
|
console.error(' - locales');
|
|
67
|
-
console.error(' - src/domains/localization/infrastructure/locales');
|
|
68
71
|
console.error('\nOr run: npm run i18n:setup');
|
|
69
72
|
process.exit(1);
|
|
70
73
|
}
|
|
@@ -69,7 +69,9 @@ const initializeI18n = () => {
|
|
|
69
69
|
useSuspense: false, // Disable suspense for React Native
|
|
70
70
|
},
|
|
71
71
|
|
|
72
|
-
compatibilityJSON: '
|
|
72
|
+
compatibilityJSON: 'v3', // Use v3 format for React Native (no Intl.PluralRules support)
|
|
73
|
+
pluralSeparator: '_', // Use underscore separator for plural keys
|
|
74
|
+
keySeparator: '.', // Use dot separator for nested keys
|
|
73
75
|
});
|
|
74
76
|
|
|
75
77
|
isInitialized = true;
|
|
@@ -17,19 +17,20 @@
|
|
|
17
17
|
* - onboarding: onboarding.json
|
|
18
18
|
* - settings: settings.json
|
|
19
19
|
*
|
|
20
|
-
* Generated: 2025-11-
|
|
20
|
+
* Generated: 2025-11-06T20:57:31.286Z
|
|
21
21
|
*/
|
|
22
22
|
|
|
23
23
|
// Import all translation modules
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
24
|
+
// Use require for JSON files to ensure proper Metro bundler handling
|
|
25
|
+
const auth = require('./auth.json');
|
|
26
|
+
const branding = require('./branding.json');
|
|
27
|
+
const datetime = require('./datetime.json');
|
|
28
|
+
const errors = require('./errors.json');
|
|
29
|
+
const flashcards = require('./flashcards.json');
|
|
30
|
+
const general = require('./general.json');
|
|
31
|
+
const navigation = require('./navigation.json');
|
|
32
|
+
const onboarding = require('./onboarding.json');
|
|
33
|
+
const settings = require('./settings.json');
|
|
33
34
|
|
|
34
35
|
// Merge all modules into a single translation object
|
|
35
36
|
// Using nested structure for better namespace organization
|
|
@@ -17,19 +17,20 @@
|
|
|
17
17
|
* - onboarding: onboarding.json
|
|
18
18
|
* - settings: settings.json
|
|
19
19
|
*
|
|
20
|
-
* Generated: 2025-11-
|
|
20
|
+
* Generated: 2025-11-06T20:57:31.287Z
|
|
21
21
|
*/
|
|
22
22
|
|
|
23
23
|
// Import all translation modules
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
24
|
+
// Use require for JSON files to ensure proper Metro bundler handling
|
|
25
|
+
const auth = require('./auth.json');
|
|
26
|
+
const branding = require('./branding.json');
|
|
27
|
+
const datetime = require('./datetime.json');
|
|
28
|
+
const errors = require('./errors.json');
|
|
29
|
+
const flashcards = require('./flashcards.json');
|
|
30
|
+
const general = require('./general.json');
|
|
31
|
+
const navigation = require('./navigation.json');
|
|
32
|
+
const onboarding = require('./onboarding.json');
|
|
33
|
+
const settings = require('./settings.json');
|
|
33
34
|
|
|
34
35
|
// Merge all modules into a single translation object
|
|
35
36
|
// Using nested structure for better namespace organization
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
* DO NOT EDIT THIS FILE MANUALLY!
|
|
8
8
|
*
|
|
9
9
|
* Translation Modules:
|
|
10
|
+
* - auth: auth.json
|
|
10
11
|
* - branding: branding.json
|
|
11
12
|
* - datetime: datetime.json
|
|
12
13
|
* - errors: errors.json
|
|
@@ -16,22 +17,25 @@
|
|
|
16
17
|
* - onboarding: onboarding.json
|
|
17
18
|
* - settings: settings.json
|
|
18
19
|
*
|
|
19
|
-
* Generated: 2025-11-
|
|
20
|
+
* Generated: 2025-11-06T20:57:31.288Z
|
|
20
21
|
*/
|
|
21
22
|
|
|
22
23
|
// Import all translation modules
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
// Use require for JSON files to ensure proper Metro bundler handling
|
|
25
|
+
const auth = require('./auth.json');
|
|
26
|
+
const branding = require('./branding.json');
|
|
27
|
+
const datetime = require('./datetime.json');
|
|
28
|
+
const errors = require('./errors.json');
|
|
29
|
+
const flashcards = require('./flashcards.json');
|
|
30
|
+
const general = require('./general.json');
|
|
31
|
+
const navigation = require('./navigation.json');
|
|
32
|
+
const onboarding = require('./onboarding.json');
|
|
33
|
+
const settings = require('./settings.json');
|
|
31
34
|
|
|
32
35
|
// Merge all modules into a single translation object
|
|
33
36
|
// Using nested structure for better namespace organization
|
|
34
37
|
const translations = {
|
|
38
|
+
auth,
|
|
35
39
|
branding,
|
|
36
40
|
datetime,
|
|
37
41
|
errors,
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
* DO NOT EDIT THIS FILE MANUALLY!
|
|
8
8
|
*
|
|
9
9
|
* Translation Modules:
|
|
10
|
+
* - auth: auth.json
|
|
10
11
|
* - branding: branding.json
|
|
11
12
|
* - datetime: datetime.json
|
|
12
13
|
* - errors: errors.json
|
|
@@ -16,22 +17,25 @@
|
|
|
16
17
|
* - onboarding: onboarding.json
|
|
17
18
|
* - settings: settings.json
|
|
18
19
|
*
|
|
19
|
-
* Generated: 2025-11-
|
|
20
|
+
* Generated: 2025-11-06T20:57:31.288Z
|
|
20
21
|
*/
|
|
21
22
|
|
|
22
23
|
// Import all translation modules
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
// Use require for JSON files to ensure proper Metro bundler handling
|
|
25
|
+
const auth = require('./auth.json');
|
|
26
|
+
const branding = require('./branding.json');
|
|
27
|
+
const datetime = require('./datetime.json');
|
|
28
|
+
const errors = require('./errors.json');
|
|
29
|
+
const flashcards = require('./flashcards.json');
|
|
30
|
+
const general = require('./general.json');
|
|
31
|
+
const navigation = require('./navigation.json');
|
|
32
|
+
const onboarding = require('./onboarding.json');
|
|
33
|
+
const settings = require('./settings.json');
|
|
31
34
|
|
|
32
35
|
// Merge all modules into a single translation object
|
|
33
36
|
// Using nested structure for better namespace organization
|
|
34
37
|
const translations = {
|
|
38
|
+
auth,
|
|
35
39
|
branding,
|
|
36
40
|
datetime,
|
|
37
41
|
errors,
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
* DO NOT EDIT THIS FILE MANUALLY!
|
|
8
8
|
*
|
|
9
9
|
* Translation Modules:
|
|
10
|
+
* - auth: auth.json
|
|
10
11
|
* - branding: branding.json
|
|
11
12
|
* - datetime: datetime.json
|
|
12
13
|
* - errors: errors.json
|
|
@@ -16,22 +17,25 @@
|
|
|
16
17
|
* - onboarding: onboarding.json
|
|
17
18
|
* - settings: settings.json
|
|
18
19
|
*
|
|
19
|
-
* Generated: 2025-11-
|
|
20
|
+
* Generated: 2025-11-06T20:57:31.288Z
|
|
20
21
|
*/
|
|
21
22
|
|
|
22
23
|
// Import all translation modules
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
// Use require for JSON files to ensure proper Metro bundler handling
|
|
25
|
+
const auth = require('./auth.json');
|
|
26
|
+
const branding = require('./branding.json');
|
|
27
|
+
const datetime = require('./datetime.json');
|
|
28
|
+
const errors = require('./errors.json');
|
|
29
|
+
const flashcards = require('./flashcards.json');
|
|
30
|
+
const general = require('./general.json');
|
|
31
|
+
const navigation = require('./navigation.json');
|
|
32
|
+
const onboarding = require('./onboarding.json');
|
|
33
|
+
const settings = require('./settings.json');
|
|
31
34
|
|
|
32
35
|
// Merge all modules into a single translation object
|
|
33
36
|
// Using nested structure for better namespace organization
|
|
34
37
|
const translations = {
|
|
38
|
+
auth,
|
|
35
39
|
branding,
|
|
36
40
|
datetime,
|
|
37
41
|
errors,
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
* DO NOT EDIT THIS FILE MANUALLY!
|
|
8
8
|
*
|
|
9
9
|
* Translation Modules:
|
|
10
|
+
* - auth: auth.json
|
|
10
11
|
* - branding: branding.json
|
|
11
12
|
* - datetime: datetime.json
|
|
12
13
|
* - errors: errors.json
|
|
@@ -16,22 +17,25 @@
|
|
|
16
17
|
* - onboarding: onboarding.json
|
|
17
18
|
* - settings: settings.json
|
|
18
19
|
*
|
|
19
|
-
* Generated: 2025-11-
|
|
20
|
+
* Generated: 2025-11-06T20:57:31.289Z
|
|
20
21
|
*/
|
|
21
22
|
|
|
22
23
|
// Import all translation modules
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
// Use require for JSON files to ensure proper Metro bundler handling
|
|
25
|
+
const auth = require('./auth.json');
|
|
26
|
+
const branding = require('./branding.json');
|
|
27
|
+
const datetime = require('./datetime.json');
|
|
28
|
+
const errors = require('./errors.json');
|
|
29
|
+
const flashcards = require('./flashcards.json');
|
|
30
|
+
const general = require('./general.json');
|
|
31
|
+
const navigation = require('./navigation.json');
|
|
32
|
+
const onboarding = require('./onboarding.json');
|
|
33
|
+
const settings = require('./settings.json');
|
|
31
34
|
|
|
32
35
|
// Merge all modules into a single translation object
|
|
33
36
|
// Using nested structure for better namespace organization
|
|
34
37
|
const translations = {
|
|
38
|
+
auth,
|
|
35
39
|
branding,
|
|
36
40
|
datetime,
|
|
37
41
|
errors,
|
|
@@ -16,18 +16,19 @@
|
|
|
16
16
|
* - onboarding: onboarding.json
|
|
17
17
|
* - settings: settings.json
|
|
18
18
|
*
|
|
19
|
-
* Generated: 2025-11-
|
|
19
|
+
* Generated: 2025-11-06T20:57:31.289Z
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
22
|
// Import all translation modules
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
23
|
+
// Use require for JSON files to ensure proper Metro bundler handling
|
|
24
|
+
const branding = require('./branding.json');
|
|
25
|
+
const datetime = require('./datetime.json');
|
|
26
|
+
const errors = require('./errors.json');
|
|
27
|
+
const flashcards = require('./flashcards.json');
|
|
28
|
+
const general = require('./general.json');
|
|
29
|
+
const navigation = require('./navigation.json');
|
|
30
|
+
const onboarding = require('./onboarding.json');
|
|
31
|
+
const settings = require('./settings.json');
|
|
31
32
|
|
|
32
33
|
// Merge all modules into a single translation object
|
|
33
34
|
// Using nested structure for better namespace organization
|
|
@@ -16,18 +16,19 @@
|
|
|
16
16
|
* - onboarding: onboarding.json
|
|
17
17
|
* - settings: settings.json
|
|
18
18
|
*
|
|
19
|
-
* Generated: 2025-11-
|
|
19
|
+
* Generated: 2025-11-06T20:57:31.289Z
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
22
|
// Import all translation modules
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
23
|
+
// Use require for JSON files to ensure proper Metro bundler handling
|
|
24
|
+
const branding = require('./branding.json');
|
|
25
|
+
const datetime = require('./datetime.json');
|
|
26
|
+
const errors = require('./errors.json');
|
|
27
|
+
const flashcards = require('./flashcards.json');
|
|
28
|
+
const general = require('./general.json');
|
|
29
|
+
const navigation = require('./navigation.json');
|
|
30
|
+
const onboarding = require('./onboarding.json');
|
|
31
|
+
const settings = require('./settings.json');
|
|
31
32
|
|
|
32
33
|
// Merge all modules into a single translation object
|
|
33
34
|
// Using nested structure for better namespace organization
|
|
@@ -16,18 +16,19 @@
|
|
|
16
16
|
* - onboarding: onboarding.json
|
|
17
17
|
* - settings: settings.json
|
|
18
18
|
*
|
|
19
|
-
* Generated: 2025-11-
|
|
19
|
+
* Generated: 2025-11-06T20:57:31.289Z
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
22
|
// Import all translation modules
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
23
|
+
// Use require for JSON files to ensure proper Metro bundler handling
|
|
24
|
+
const branding = require('./branding.json');
|
|
25
|
+
const datetime = require('./datetime.json');
|
|
26
|
+
const errors = require('./errors.json');
|
|
27
|
+
const flashcards = require('./flashcards.json');
|
|
28
|
+
const general = require('./general.json');
|
|
29
|
+
const navigation = require('./navigation.json');
|
|
30
|
+
const onboarding = require('./onboarding.json');
|
|
31
|
+
const settings = require('./settings.json');
|
|
31
32
|
|
|
32
33
|
// Merge all modules into a single translation object
|
|
33
34
|
// Using nested structure for better namespace organization
|
|
@@ -17,19 +17,20 @@
|
|
|
17
17
|
* - onboarding: onboarding.json
|
|
18
18
|
* - settings: settings.json
|
|
19
19
|
*
|
|
20
|
-
* Generated: 2025-11-
|
|
20
|
+
* Generated: 2025-11-06T20:57:31.290Z
|
|
21
21
|
*/
|
|
22
22
|
|
|
23
23
|
// Import all translation modules
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
24
|
+
// Use require for JSON files to ensure proper Metro bundler handling
|
|
25
|
+
const auth = require('./auth.json');
|
|
26
|
+
const branding = require('./branding.json');
|
|
27
|
+
const datetime = require('./datetime.json');
|
|
28
|
+
const errors = require('./errors.json');
|
|
29
|
+
const flashcards = require('./flashcards.json');
|
|
30
|
+
const general = require('./general.json');
|
|
31
|
+
const navigation = require('./navigation.json');
|
|
32
|
+
const onboarding = require('./onboarding.json');
|
|
33
|
+
const settings = require('./settings.json');
|
|
33
34
|
|
|
34
35
|
// Merge all modules into a single translation object
|
|
35
36
|
// Using nested structure for better namespace organization
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
* DO NOT EDIT THIS FILE MANUALLY!
|
|
8
8
|
*
|
|
9
9
|
* Translation Modules:
|
|
10
|
+
* - auth: auth.json
|
|
10
11
|
* - branding: branding.json
|
|
11
12
|
* - datetime: datetime.json
|
|
12
13
|
* - errors: errors.json
|
|
@@ -16,22 +17,25 @@
|
|
|
16
17
|
* - onboarding: onboarding.json
|
|
17
18
|
* - settings: settings.json
|
|
18
19
|
*
|
|
19
|
-
* Generated: 2025-11-
|
|
20
|
+
* Generated: 2025-11-06T20:57:31.290Z
|
|
20
21
|
*/
|
|
21
22
|
|
|
22
23
|
// Import all translation modules
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
// Use require for JSON files to ensure proper Metro bundler handling
|
|
25
|
+
const auth = require('./auth.json');
|
|
26
|
+
const branding = require('./branding.json');
|
|
27
|
+
const datetime = require('./datetime.json');
|
|
28
|
+
const errors = require('./errors.json');
|
|
29
|
+
const flashcards = require('./flashcards.json');
|
|
30
|
+
const general = require('./general.json');
|
|
31
|
+
const navigation = require('./navigation.json');
|
|
32
|
+
const onboarding = require('./onboarding.json');
|
|
33
|
+
const settings = require('./settings.json');
|
|
31
34
|
|
|
32
35
|
// Merge all modules into a single translation object
|
|
33
36
|
// Using nested structure for better namespace organization
|
|
34
37
|
const translations = {
|
|
38
|
+
auth,
|
|
35
39
|
branding,
|
|
36
40
|
datetime,
|
|
37
41
|
errors,
|