@tracearr/translations 0.1.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/LICENSE +661 -0
- package/README.md +116 -0
- package/dist/config.d.ts +4510 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +164 -0
- package/dist/config.js.map +1 -0
- package/dist/config.mobile.d.ts +4511 -0
- package/dist/config.mobile.d.ts.map +1 -0
- package/dist/config.mobile.js +587 -0
- package/dist/config.mobile.js.map +1 -0
- package/dist/formatting.d.ts +120 -0
- package/dist/formatting.d.ts.map +1 -0
- package/dist/formatting.js +265 -0
- package/dist/formatting.js.map +1 -0
- package/dist/index.d.ts +46 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +49 -0
- package/dist/index.js.map +1 -0
- package/dist/language.d.ts +101 -0
- package/dist/language.d.ts.map +1 -0
- package/dist/language.js +241 -0
- package/dist/language.js.map +1 -0
- package/dist/locales/af/common.json +276 -0
- package/dist/locales/af/mobile.json +60 -0
- package/dist/locales/af/nav.json +22 -0
- package/dist/locales/af/notifications.json +262 -0
- package/dist/locales/af/pages.json +324 -0
- package/dist/locales/af/settings.json +243 -0
- package/dist/locales/af-ZA/common.json +308 -0
- package/dist/locales/af-ZA/mobile.json +178 -0
- package/dist/locales/af-ZA/nav.json +28 -0
- package/dist/locales/af-ZA/notifications.json +279 -0
- package/dist/locales/af-ZA/pages.json +953 -0
- package/dist/locales/af-ZA/settings.json +487 -0
- package/dist/locales/ar/common.json +276 -0
- package/dist/locales/ar/mobile.json +60 -0
- package/dist/locales/ar/nav.json +22 -0
- package/dist/locales/ar/notifications.json +262 -0
- package/dist/locales/ar/pages.json +324 -0
- package/dist/locales/ar/settings.json +243 -0
- package/dist/locales/ar-SA/common.json +308 -0
- package/dist/locales/ar-SA/mobile.json +178 -0
- package/dist/locales/ar-SA/nav.json +28 -0
- package/dist/locales/ar-SA/notifications.json +279 -0
- package/dist/locales/ar-SA/pages.json +953 -0
- package/dist/locales/ar-SA/settings.json +487 -0
- package/dist/locales/ca/common.json +276 -0
- package/dist/locales/ca/mobile.json +60 -0
- package/dist/locales/ca/nav.json +22 -0
- package/dist/locales/ca/notifications.json +262 -0
- package/dist/locales/ca/pages.json +324 -0
- package/dist/locales/ca/settings.json +243 -0
- package/dist/locales/ca-ES/common.json +308 -0
- package/dist/locales/ca-ES/mobile.json +178 -0
- package/dist/locales/ca-ES/nav.json +28 -0
- package/dist/locales/ca-ES/notifications.json +279 -0
- package/dist/locales/ca-ES/pages.json +953 -0
- package/dist/locales/ca-ES/settings.json +487 -0
- package/dist/locales/cs/common.json +276 -0
- package/dist/locales/cs/mobile.json +60 -0
- package/dist/locales/cs/nav.json +22 -0
- package/dist/locales/cs/notifications.json +262 -0
- package/dist/locales/cs/pages.json +324 -0
- package/dist/locales/cs/settings.json +243 -0
- package/dist/locales/cs-CZ/common.json +308 -0
- package/dist/locales/cs-CZ/mobile.json +178 -0
- package/dist/locales/cs-CZ/nav.json +28 -0
- package/dist/locales/cs-CZ/notifications.json +279 -0
- package/dist/locales/cs-CZ/pages.json +953 -0
- package/dist/locales/cs-CZ/settings.json +487 -0
- package/dist/locales/da/common.json +276 -0
- package/dist/locales/da/mobile.json +60 -0
- package/dist/locales/da/nav.json +22 -0
- package/dist/locales/da/notifications.json +262 -0
- package/dist/locales/da/pages.json +324 -0
- package/dist/locales/da/settings.json +243 -0
- package/dist/locales/da-DK/common.json +308 -0
- package/dist/locales/da-DK/mobile.json +178 -0
- package/dist/locales/da-DK/nav.json +28 -0
- package/dist/locales/da-DK/notifications.json +279 -0
- package/dist/locales/da-DK/pages.json +953 -0
- package/dist/locales/da-DK/settings.json +487 -0
- package/dist/locales/de/common.json +276 -0
- package/dist/locales/de/mobile.json +60 -0
- package/dist/locales/de/nav.json +22 -0
- package/dist/locales/de/notifications.json +262 -0
- package/dist/locales/de/pages.json +324 -0
- package/dist/locales/de/settings.json +243 -0
- package/dist/locales/de-DE/common.json +308 -0
- package/dist/locales/de-DE/mobile.json +178 -0
- package/dist/locales/de-DE/nav.json +28 -0
- package/dist/locales/de-DE/notifications.json +279 -0
- package/dist/locales/de-DE/pages.json +953 -0
- package/dist/locales/de-DE/settings.json +487 -0
- package/dist/locales/el/common.json +276 -0
- package/dist/locales/el/mobile.json +60 -0
- package/dist/locales/el/nav.json +22 -0
- package/dist/locales/el/notifications.json +262 -0
- package/dist/locales/el/pages.json +324 -0
- package/dist/locales/el/settings.json +243 -0
- package/dist/locales/el-GR/common.json +308 -0
- package/dist/locales/el-GR/mobile.json +178 -0
- package/dist/locales/el-GR/nav.json +28 -0
- package/dist/locales/el-GR/notifications.json +279 -0
- package/dist/locales/el-GR/pages.json +953 -0
- package/dist/locales/el-GR/settings.json +487 -0
- package/dist/locales/en/common.json +308 -0
- package/dist/locales/en/mobile.json +178 -0
- package/dist/locales/en/nav.json +28 -0
- package/dist/locales/en/notifications.json +279 -0
- package/dist/locales/en/pages.json +953 -0
- package/dist/locales/en/settings.json +487 -0
- package/dist/locales/en-US/common.json +308 -0
- package/dist/locales/en-US/mobile.json +178 -0
- package/dist/locales/en-US/nav.json +28 -0
- package/dist/locales/en-US/notifications.json +279 -0
- package/dist/locales/en-US/pages.json +953 -0
- package/dist/locales/en-US/settings.json +487 -0
- package/dist/locales/es/common.json +276 -0
- package/dist/locales/es/mobile.json +60 -0
- package/dist/locales/es/nav.json +22 -0
- package/dist/locales/es/notifications.json +262 -0
- package/dist/locales/es/pages.json +324 -0
- package/dist/locales/es/settings.json +243 -0
- package/dist/locales/es-ES/common.json +308 -0
- package/dist/locales/es-ES/mobile.json +178 -0
- package/dist/locales/es-ES/nav.json +28 -0
- package/dist/locales/es-ES/notifications.json +279 -0
- package/dist/locales/es-ES/pages.json +953 -0
- package/dist/locales/es-ES/settings.json +487 -0
- package/dist/locales/fi/common.json +276 -0
- package/dist/locales/fi/mobile.json +60 -0
- package/dist/locales/fi/nav.json +22 -0
- package/dist/locales/fi/notifications.json +262 -0
- package/dist/locales/fi/pages.json +324 -0
- package/dist/locales/fi/settings.json +243 -0
- package/dist/locales/fi-FI/common.json +308 -0
- package/dist/locales/fi-FI/mobile.json +178 -0
- package/dist/locales/fi-FI/nav.json +28 -0
- package/dist/locales/fi-FI/notifications.json +279 -0
- package/dist/locales/fi-FI/pages.json +953 -0
- package/dist/locales/fi-FI/settings.json +487 -0
- package/dist/locales/fr/common.json +276 -0
- package/dist/locales/fr/mobile.json +60 -0
- package/dist/locales/fr/nav.json +22 -0
- package/dist/locales/fr/notifications.json +262 -0
- package/dist/locales/fr/pages.json +324 -0
- package/dist/locales/fr/settings.json +243 -0
- package/dist/locales/fr-FR/common.json +308 -0
- package/dist/locales/fr-FR/mobile.json +178 -0
- package/dist/locales/fr-FR/nav.json +28 -0
- package/dist/locales/fr-FR/notifications.json +279 -0
- package/dist/locales/fr-FR/pages.json +953 -0
- package/dist/locales/fr-FR/settings.json +487 -0
- package/dist/locales/he/common.json +276 -0
- package/dist/locales/he/mobile.json +60 -0
- package/dist/locales/he/nav.json +22 -0
- package/dist/locales/he/notifications.json +262 -0
- package/dist/locales/he/pages.json +324 -0
- package/dist/locales/he/settings.json +243 -0
- package/dist/locales/he-IL/common.json +308 -0
- package/dist/locales/he-IL/mobile.json +178 -0
- package/dist/locales/he-IL/nav.json +28 -0
- package/dist/locales/he-IL/notifications.json +279 -0
- package/dist/locales/he-IL/pages.json +953 -0
- package/dist/locales/he-IL/settings.json +487 -0
- package/dist/locales/hu/common.json +276 -0
- package/dist/locales/hu/mobile.json +60 -0
- package/dist/locales/hu/nav.json +22 -0
- package/dist/locales/hu/notifications.json +262 -0
- package/dist/locales/hu/pages.json +324 -0
- package/dist/locales/hu/settings.json +243 -0
- package/dist/locales/hu-HU/common.json +308 -0
- package/dist/locales/hu-HU/mobile.json +178 -0
- package/dist/locales/hu-HU/nav.json +28 -0
- package/dist/locales/hu-HU/notifications.json +279 -0
- package/dist/locales/hu-HU/pages.json +953 -0
- package/dist/locales/hu-HU/settings.json +487 -0
- package/dist/locales/it/common.json +276 -0
- package/dist/locales/it/mobile.json +60 -0
- package/dist/locales/it/nav.json +22 -0
- package/dist/locales/it/notifications.json +262 -0
- package/dist/locales/it/pages.json +324 -0
- package/dist/locales/it/settings.json +243 -0
- package/dist/locales/it-IT/common.json +308 -0
- package/dist/locales/it-IT/mobile.json +178 -0
- package/dist/locales/it-IT/nav.json +28 -0
- package/dist/locales/it-IT/notifications.json +279 -0
- package/dist/locales/it-IT/pages.json +953 -0
- package/dist/locales/it-IT/settings.json +487 -0
- package/dist/locales/ja/common.json +276 -0
- package/dist/locales/ja/mobile.json +60 -0
- package/dist/locales/ja/nav.json +22 -0
- package/dist/locales/ja/notifications.json +262 -0
- package/dist/locales/ja/pages.json +324 -0
- package/dist/locales/ja/settings.json +243 -0
- package/dist/locales/ja-JP/common.json +308 -0
- package/dist/locales/ja-JP/mobile.json +178 -0
- package/dist/locales/ja-JP/nav.json +28 -0
- package/dist/locales/ja-JP/notifications.json +279 -0
- package/dist/locales/ja-JP/pages.json +953 -0
- package/dist/locales/ja-JP/settings.json +487 -0
- package/dist/locales/ko/common.json +276 -0
- package/dist/locales/ko/mobile.json +60 -0
- package/dist/locales/ko/nav.json +22 -0
- package/dist/locales/ko/notifications.json +262 -0
- package/dist/locales/ko/pages.json +324 -0
- package/dist/locales/ko/settings.json +243 -0
- package/dist/locales/ko-KR/common.json +308 -0
- package/dist/locales/ko-KR/mobile.json +178 -0
- package/dist/locales/ko-KR/nav.json +28 -0
- package/dist/locales/ko-KR/notifications.json +279 -0
- package/dist/locales/ko-KR/pages.json +953 -0
- package/dist/locales/ko-KR/settings.json +487 -0
- package/dist/locales/nl/common.json +276 -0
- package/dist/locales/nl/mobile.json +60 -0
- package/dist/locales/nl/nav.json +22 -0
- package/dist/locales/nl/notifications.json +262 -0
- package/dist/locales/nl/pages.json +324 -0
- package/dist/locales/nl/settings.json +243 -0
- package/dist/locales/nl-NL/common.json +308 -0
- package/dist/locales/nl-NL/mobile.json +178 -0
- package/dist/locales/nl-NL/nav.json +28 -0
- package/dist/locales/nl-NL/notifications.json +279 -0
- package/dist/locales/nl-NL/pages.json +953 -0
- package/dist/locales/nl-NL/settings.json +487 -0
- package/dist/locales/no/common.json +276 -0
- package/dist/locales/no/mobile.json +60 -0
- package/dist/locales/no/nav.json +22 -0
- package/dist/locales/no/notifications.json +262 -0
- package/dist/locales/no/pages.json +324 -0
- package/dist/locales/no/settings.json +243 -0
- package/dist/locales/no-NO/common.json +308 -0
- package/dist/locales/no-NO/mobile.json +178 -0
- package/dist/locales/no-NO/nav.json +28 -0
- package/dist/locales/no-NO/notifications.json +279 -0
- package/dist/locales/no-NO/pages.json +953 -0
- package/dist/locales/no-NO/settings.json +487 -0
- package/dist/locales/pl/common.json +276 -0
- package/dist/locales/pl/mobile.json +60 -0
- package/dist/locales/pl/nav.json +22 -0
- package/dist/locales/pl/notifications.json +262 -0
- package/dist/locales/pl/pages.json +324 -0
- package/dist/locales/pl/settings.json +243 -0
- package/dist/locales/pl-PL/common.json +308 -0
- package/dist/locales/pl-PL/mobile.json +178 -0
- package/dist/locales/pl-PL/nav.json +28 -0
- package/dist/locales/pl-PL/notifications.json +279 -0
- package/dist/locales/pl-PL/pages.json +953 -0
- package/dist/locales/pl-PL/settings.json +487 -0
- package/dist/locales/pt/common.json +276 -0
- package/dist/locales/pt/mobile.json +60 -0
- package/dist/locales/pt/nav.json +22 -0
- package/dist/locales/pt/notifications.json +262 -0
- package/dist/locales/pt/pages.json +324 -0
- package/dist/locales/pt/settings.json +243 -0
- package/dist/locales/pt-BR/common.json +308 -0
- package/dist/locales/pt-BR/mobile.json +178 -0
- package/dist/locales/pt-BR/nav.json +28 -0
- package/dist/locales/pt-BR/notifications.json +279 -0
- package/dist/locales/pt-BR/pages.json +953 -0
- package/dist/locales/pt-BR/settings.json +487 -0
- package/dist/locales/pt-PT/common.json +308 -0
- package/dist/locales/pt-PT/mobile.json +178 -0
- package/dist/locales/pt-PT/nav.json +28 -0
- package/dist/locales/pt-PT/notifications.json +279 -0
- package/dist/locales/pt-PT/pages.json +953 -0
- package/dist/locales/pt-PT/settings.json +487 -0
- package/dist/locales/ro/common.json +276 -0
- package/dist/locales/ro/mobile.json +60 -0
- package/dist/locales/ro/nav.json +22 -0
- package/dist/locales/ro/notifications.json +262 -0
- package/dist/locales/ro/pages.json +324 -0
- package/dist/locales/ro/settings.json +243 -0
- package/dist/locales/ro-RO/common.json +308 -0
- package/dist/locales/ro-RO/mobile.json +178 -0
- package/dist/locales/ro-RO/nav.json +28 -0
- package/dist/locales/ro-RO/notifications.json +279 -0
- package/dist/locales/ro-RO/pages.json +953 -0
- package/dist/locales/ro-RO/settings.json +487 -0
- package/dist/locales/ru/common.json +276 -0
- package/dist/locales/ru/mobile.json +60 -0
- package/dist/locales/ru/nav.json +22 -0
- package/dist/locales/ru/notifications.json +262 -0
- package/dist/locales/ru/pages.json +324 -0
- package/dist/locales/ru/settings.json +243 -0
- package/dist/locales/ru-RU/common.json +308 -0
- package/dist/locales/ru-RU/mobile.json +178 -0
- package/dist/locales/ru-RU/nav.json +28 -0
- package/dist/locales/ru-RU/notifications.json +279 -0
- package/dist/locales/ru-RU/pages.json +953 -0
- package/dist/locales/ru-RU/settings.json +487 -0
- package/dist/locales/sr/common.json +276 -0
- package/dist/locales/sr/mobile.json +60 -0
- package/dist/locales/sr/nav.json +22 -0
- package/dist/locales/sr/notifications.json +262 -0
- package/dist/locales/sr/pages.json +324 -0
- package/dist/locales/sr/settings.json +243 -0
- package/dist/locales/sr-SP/common.json +308 -0
- package/dist/locales/sr-SP/mobile.json +178 -0
- package/dist/locales/sr-SP/nav.json +28 -0
- package/dist/locales/sr-SP/notifications.json +279 -0
- package/dist/locales/sr-SP/pages.json +953 -0
- package/dist/locales/sr-SP/settings.json +487 -0
- package/dist/locales/sv/common.json +276 -0
- package/dist/locales/sv/mobile.json +60 -0
- package/dist/locales/sv/nav.json +22 -0
- package/dist/locales/sv/notifications.json +262 -0
- package/dist/locales/sv/pages.json +324 -0
- package/dist/locales/sv/settings.json +243 -0
- package/dist/locales/sv-SE/common.json +308 -0
- package/dist/locales/sv-SE/mobile.json +178 -0
- package/dist/locales/sv-SE/nav.json +28 -0
- package/dist/locales/sv-SE/notifications.json +279 -0
- package/dist/locales/sv-SE/pages.json +953 -0
- package/dist/locales/sv-SE/settings.json +487 -0
- package/dist/locales/tr/common.json +276 -0
- package/dist/locales/tr/mobile.json +60 -0
- package/dist/locales/tr/nav.json +22 -0
- package/dist/locales/tr/notifications.json +262 -0
- package/dist/locales/tr/pages.json +324 -0
- package/dist/locales/tr/settings.json +243 -0
- package/dist/locales/tr-TR/common.json +308 -0
- package/dist/locales/tr-TR/mobile.json +178 -0
- package/dist/locales/tr-TR/nav.json +28 -0
- package/dist/locales/tr-TR/notifications.json +279 -0
- package/dist/locales/tr-TR/pages.json +953 -0
- package/dist/locales/tr-TR/settings.json +487 -0
- package/dist/locales/uk/common.json +276 -0
- package/dist/locales/uk/mobile.json +60 -0
- package/dist/locales/uk/nav.json +22 -0
- package/dist/locales/uk/notifications.json +262 -0
- package/dist/locales/uk/pages.json +324 -0
- package/dist/locales/uk/settings.json +243 -0
- package/dist/locales/uk-UA/common.json +308 -0
- package/dist/locales/uk-UA/mobile.json +178 -0
- package/dist/locales/uk-UA/nav.json +28 -0
- package/dist/locales/uk-UA/notifications.json +279 -0
- package/dist/locales/uk-UA/pages.json +953 -0
- package/dist/locales/uk-UA/settings.json +487 -0
- package/dist/locales/vi/common.json +276 -0
- package/dist/locales/vi/mobile.json +60 -0
- package/dist/locales/vi/nav.json +22 -0
- package/dist/locales/vi/notifications.json +262 -0
- package/dist/locales/vi/pages.json +324 -0
- package/dist/locales/vi/settings.json +243 -0
- package/dist/locales/vi-VN/common.json +308 -0
- package/dist/locales/vi-VN/mobile.json +178 -0
- package/dist/locales/vi-VN/nav.json +28 -0
- package/dist/locales/vi-VN/notifications.json +279 -0
- package/dist/locales/vi-VN/pages.json +953 -0
- package/dist/locales/vi-VN/settings.json +487 -0
- package/dist/locales/zh/common.json +276 -0
- package/dist/locales/zh/mobile.json +60 -0
- package/dist/locales/zh/nav.json +22 -0
- package/dist/locales/zh/notifications.json +262 -0
- package/dist/locales/zh/pages.json +324 -0
- package/dist/locales/zh/settings.json +243 -0
- package/dist/locales/zh-CN/common.json +308 -0
- package/dist/locales/zh-CN/mobile.json +178 -0
- package/dist/locales/zh-CN/nav.json +28 -0
- package/dist/locales/zh-CN/notifications.json +279 -0
- package/dist/locales/zh-CN/pages.json +953 -0
- package/dist/locales/zh-CN/settings.json +487 -0
- package/dist/locales/zh-TW/common.json +308 -0
- package/dist/locales/zh-TW/mobile.json +178 -0
- package/dist/locales/zh-TW/nav.json +28 -0
- package/dist/locales/zh-TW/notifications.json +279 -0
- package/dist/locales/zh-TW/pages.json +953 -0
- package/dist/locales/zh-TW/settings.json +487 -0
- package/dist/mobile.d.ts +11 -0
- package/dist/mobile.d.ts.map +1 -0
- package/dist/mobile.js +14 -0
- package/dist/mobile.js.map +1 -0
- package/dist/types.d.ts +54 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +5 -0
- package/dist/types.js.map +1 -0
- package/package.json +57 -0
- package/src/config.mobile.ts +647 -0
- package/src/config.ts +209 -0
- package/src/formatting.ts +297 -0
- package/src/index.ts +105 -0
- package/src/language.ts +270 -0
- package/src/locales/af-ZA/common.json +308 -0
- package/src/locales/af-ZA/mobile.json +178 -0
- package/src/locales/af-ZA/nav.json +28 -0
- package/src/locales/af-ZA/notifications.json +279 -0
- package/src/locales/af-ZA/pages.json +953 -0
- package/src/locales/af-ZA/settings.json +487 -0
- package/src/locales/ar-SA/common.json +308 -0
- package/src/locales/ar-SA/mobile.json +178 -0
- package/src/locales/ar-SA/nav.json +28 -0
- package/src/locales/ar-SA/notifications.json +279 -0
- package/src/locales/ar-SA/pages.json +953 -0
- package/src/locales/ar-SA/settings.json +487 -0
- package/src/locales/ca-ES/common.json +308 -0
- package/src/locales/ca-ES/mobile.json +178 -0
- package/src/locales/ca-ES/nav.json +28 -0
- package/src/locales/ca-ES/notifications.json +279 -0
- package/src/locales/ca-ES/pages.json +953 -0
- package/src/locales/ca-ES/settings.json +487 -0
- package/src/locales/cs-CZ/common.json +308 -0
- package/src/locales/cs-CZ/mobile.json +178 -0
- package/src/locales/cs-CZ/nav.json +28 -0
- package/src/locales/cs-CZ/notifications.json +279 -0
- package/src/locales/cs-CZ/pages.json +953 -0
- package/src/locales/cs-CZ/settings.json +487 -0
- package/src/locales/da-DK/common.json +308 -0
- package/src/locales/da-DK/mobile.json +178 -0
- package/src/locales/da-DK/nav.json +28 -0
- package/src/locales/da-DK/notifications.json +279 -0
- package/src/locales/da-DK/pages.json +953 -0
- package/src/locales/da-DK/settings.json +487 -0
- package/src/locales/de-DE/common.json +308 -0
- package/src/locales/de-DE/mobile.json +178 -0
- package/src/locales/de-DE/nav.json +28 -0
- package/src/locales/de-DE/notifications.json +279 -0
- package/src/locales/de-DE/pages.json +953 -0
- package/src/locales/de-DE/settings.json +487 -0
- package/src/locales/el-GR/common.json +308 -0
- package/src/locales/el-GR/mobile.json +178 -0
- package/src/locales/el-GR/nav.json +28 -0
- package/src/locales/el-GR/notifications.json +279 -0
- package/src/locales/el-GR/pages.json +953 -0
- package/src/locales/el-GR/settings.json +487 -0
- package/src/locales/en/common.json +308 -0
- package/src/locales/en/mobile.json +178 -0
- package/src/locales/en/nav.json +28 -0
- package/src/locales/en/notifications.json +279 -0
- package/src/locales/en/pages.json +953 -0
- package/src/locales/en/settings.json +487 -0
- package/src/locales/en-US/common.json +308 -0
- package/src/locales/en-US/mobile.json +178 -0
- package/src/locales/en-US/nav.json +28 -0
- package/src/locales/en-US/notifications.json +279 -0
- package/src/locales/en-US/pages.json +953 -0
- package/src/locales/en-US/settings.json +487 -0
- package/src/locales/es-ES/common.json +308 -0
- package/src/locales/es-ES/mobile.json +178 -0
- package/src/locales/es-ES/nav.json +28 -0
- package/src/locales/es-ES/notifications.json +279 -0
- package/src/locales/es-ES/pages.json +953 -0
- package/src/locales/es-ES/settings.json +487 -0
- package/src/locales/fi-FI/common.json +308 -0
- package/src/locales/fi-FI/mobile.json +178 -0
- package/src/locales/fi-FI/nav.json +28 -0
- package/src/locales/fi-FI/notifications.json +279 -0
- package/src/locales/fi-FI/pages.json +953 -0
- package/src/locales/fi-FI/settings.json +487 -0
- package/src/locales/fr-FR/common.json +308 -0
- package/src/locales/fr-FR/mobile.json +178 -0
- package/src/locales/fr-FR/nav.json +28 -0
- package/src/locales/fr-FR/notifications.json +279 -0
- package/src/locales/fr-FR/pages.json +953 -0
- package/src/locales/fr-FR/settings.json +487 -0
- package/src/locales/he-IL/common.json +308 -0
- package/src/locales/he-IL/mobile.json +178 -0
- package/src/locales/he-IL/nav.json +28 -0
- package/src/locales/he-IL/notifications.json +279 -0
- package/src/locales/he-IL/pages.json +953 -0
- package/src/locales/he-IL/settings.json +487 -0
- package/src/locales/hu-HU/common.json +308 -0
- package/src/locales/hu-HU/mobile.json +178 -0
- package/src/locales/hu-HU/nav.json +28 -0
- package/src/locales/hu-HU/notifications.json +279 -0
- package/src/locales/hu-HU/pages.json +953 -0
- package/src/locales/hu-HU/settings.json +487 -0
- package/src/locales/it-IT/common.json +308 -0
- package/src/locales/it-IT/mobile.json +178 -0
- package/src/locales/it-IT/nav.json +28 -0
- package/src/locales/it-IT/notifications.json +279 -0
- package/src/locales/it-IT/pages.json +953 -0
- package/src/locales/it-IT/settings.json +487 -0
- package/src/locales/ja-JP/common.json +308 -0
- package/src/locales/ja-JP/mobile.json +178 -0
- package/src/locales/ja-JP/nav.json +28 -0
- package/src/locales/ja-JP/notifications.json +279 -0
- package/src/locales/ja-JP/pages.json +953 -0
- package/src/locales/ja-JP/settings.json +487 -0
- package/src/locales/ko-KR/common.json +308 -0
- package/src/locales/ko-KR/mobile.json +178 -0
- package/src/locales/ko-KR/nav.json +28 -0
- package/src/locales/ko-KR/notifications.json +279 -0
- package/src/locales/ko-KR/pages.json +953 -0
- package/src/locales/ko-KR/settings.json +487 -0
- package/src/locales/nl-NL/common.json +308 -0
- package/src/locales/nl-NL/mobile.json +178 -0
- package/src/locales/nl-NL/nav.json +28 -0
- package/src/locales/nl-NL/notifications.json +279 -0
- package/src/locales/nl-NL/pages.json +953 -0
- package/src/locales/nl-NL/settings.json +487 -0
- package/src/locales/no-NO/common.json +308 -0
- package/src/locales/no-NO/mobile.json +178 -0
- package/src/locales/no-NO/nav.json +28 -0
- package/src/locales/no-NO/notifications.json +279 -0
- package/src/locales/no-NO/pages.json +953 -0
- package/src/locales/no-NO/settings.json +487 -0
- package/src/locales/pl-PL/common.json +308 -0
- package/src/locales/pl-PL/mobile.json +178 -0
- package/src/locales/pl-PL/nav.json +28 -0
- package/src/locales/pl-PL/notifications.json +279 -0
- package/src/locales/pl-PL/pages.json +953 -0
- package/src/locales/pl-PL/settings.json +487 -0
- package/src/locales/pt-BR/common.json +308 -0
- package/src/locales/pt-BR/mobile.json +178 -0
- package/src/locales/pt-BR/nav.json +28 -0
- package/src/locales/pt-BR/notifications.json +279 -0
- package/src/locales/pt-BR/pages.json +953 -0
- package/src/locales/pt-BR/settings.json +487 -0
- package/src/locales/pt-PT/common.json +308 -0
- package/src/locales/pt-PT/mobile.json +178 -0
- package/src/locales/pt-PT/nav.json +28 -0
- package/src/locales/pt-PT/notifications.json +279 -0
- package/src/locales/pt-PT/pages.json +953 -0
- package/src/locales/pt-PT/settings.json +487 -0
- package/src/locales/ro-RO/common.json +308 -0
- package/src/locales/ro-RO/mobile.json +178 -0
- package/src/locales/ro-RO/nav.json +28 -0
- package/src/locales/ro-RO/notifications.json +279 -0
- package/src/locales/ro-RO/pages.json +953 -0
- package/src/locales/ro-RO/settings.json +487 -0
- package/src/locales/ru-RU/common.json +308 -0
- package/src/locales/ru-RU/mobile.json +178 -0
- package/src/locales/ru-RU/nav.json +28 -0
- package/src/locales/ru-RU/notifications.json +279 -0
- package/src/locales/ru-RU/pages.json +953 -0
- package/src/locales/ru-RU/settings.json +487 -0
- package/src/locales/sr-SP/common.json +308 -0
- package/src/locales/sr-SP/mobile.json +178 -0
- package/src/locales/sr-SP/nav.json +28 -0
- package/src/locales/sr-SP/notifications.json +279 -0
- package/src/locales/sr-SP/pages.json +953 -0
- package/src/locales/sr-SP/settings.json +487 -0
- package/src/locales/sv-SE/common.json +308 -0
- package/src/locales/sv-SE/mobile.json +178 -0
- package/src/locales/sv-SE/nav.json +28 -0
- package/src/locales/sv-SE/notifications.json +279 -0
- package/src/locales/sv-SE/pages.json +953 -0
- package/src/locales/sv-SE/settings.json +487 -0
- package/src/locales/tr-TR/common.json +308 -0
- package/src/locales/tr-TR/mobile.json +178 -0
- package/src/locales/tr-TR/nav.json +28 -0
- package/src/locales/tr-TR/notifications.json +279 -0
- package/src/locales/tr-TR/pages.json +953 -0
- package/src/locales/tr-TR/settings.json +487 -0
- package/src/locales/uk-UA/common.json +308 -0
- package/src/locales/uk-UA/mobile.json +178 -0
- package/src/locales/uk-UA/nav.json +28 -0
- package/src/locales/uk-UA/notifications.json +279 -0
- package/src/locales/uk-UA/pages.json +953 -0
- package/src/locales/uk-UA/settings.json +487 -0
- package/src/locales/vi-VN/common.json +308 -0
- package/src/locales/vi-VN/mobile.json +178 -0
- package/src/locales/vi-VN/nav.json +28 -0
- package/src/locales/vi-VN/notifications.json +279 -0
- package/src/locales/vi-VN/pages.json +953 -0
- package/src/locales/vi-VN/settings.json +487 -0
- package/src/locales/zh-CN/common.json +308 -0
- package/src/locales/zh-CN/mobile.json +178 -0
- package/src/locales/zh-CN/nav.json +28 -0
- package/src/locales/zh-CN/notifications.json +279 -0
- package/src/locales/zh-CN/pages.json +953 -0
- package/src/locales/zh-CN/settings.json +487 -0
- package/src/locales/zh-TW/common.json +308 -0
- package/src/locales/zh-TW/mobile.json +178 -0
- package/src/locales/zh-TW/nav.json +28 -0
- package/src/locales/zh-TW/notifications.json +279 -0
- package/src/locales/zh-TW/pages.json +953 -0
- package/src/locales/zh-TW/settings.json +487 -0
- package/src/mobile.ts +69 -0
- package/src/types.ts +86 -0
|
@@ -0,0 +1,647 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mobile i18n config — statically imports all locales for Metro compatibility.
|
|
3
|
+
*/
|
|
4
|
+
import i18n from 'i18next';
|
|
5
|
+
import { initReactI18next } from 'react-i18next';
|
|
6
|
+
import { _registerLocaleLoader } from './language.js';
|
|
7
|
+
|
|
8
|
+
// ============================================================================
|
|
9
|
+
// English (base language)
|
|
10
|
+
// ============================================================================
|
|
11
|
+
import commonEn from './locales/en/common.json' with { type: 'json' };
|
|
12
|
+
import notificationsEn from './locales/en/notifications.json' with { type: 'json' };
|
|
13
|
+
import settingsEn from './locales/en/settings.json' with { type: 'json' };
|
|
14
|
+
import navEn from './locales/en/nav.json' with { type: 'json' };
|
|
15
|
+
import pagesEn from './locales/en/pages.json' with { type: 'json' };
|
|
16
|
+
import mobileEn from './locales/en/mobile.json' with { type: 'json' };
|
|
17
|
+
|
|
18
|
+
// ============================================================================
|
|
19
|
+
// All other locales (statically imported for Metro compatibility)
|
|
20
|
+
// ============================================================================
|
|
21
|
+
|
|
22
|
+
// af-ZA
|
|
23
|
+
import afZA_common from './locales/af-ZA/common.json' with { type: 'json' };
|
|
24
|
+
import afZA_notifications from './locales/af-ZA/notifications.json' with { type: 'json' };
|
|
25
|
+
import afZA_settings from './locales/af-ZA/settings.json' with { type: 'json' };
|
|
26
|
+
import afZA_nav from './locales/af-ZA/nav.json' with { type: 'json' };
|
|
27
|
+
import afZA_pages from './locales/af-ZA/pages.json' with { type: 'json' };
|
|
28
|
+
import afZA_mobile from './locales/af-ZA/mobile.json' with { type: 'json' };
|
|
29
|
+
|
|
30
|
+
// ar-SA
|
|
31
|
+
import arSA_common from './locales/ar-SA/common.json' with { type: 'json' };
|
|
32
|
+
import arSA_notifications from './locales/ar-SA/notifications.json' with { type: 'json' };
|
|
33
|
+
import arSA_settings from './locales/ar-SA/settings.json' with { type: 'json' };
|
|
34
|
+
import arSA_nav from './locales/ar-SA/nav.json' with { type: 'json' };
|
|
35
|
+
import arSA_pages from './locales/ar-SA/pages.json' with { type: 'json' };
|
|
36
|
+
import arSA_mobile from './locales/ar-SA/mobile.json' with { type: 'json' };
|
|
37
|
+
|
|
38
|
+
// ca-ES
|
|
39
|
+
import caES_common from './locales/ca-ES/common.json' with { type: 'json' };
|
|
40
|
+
import caES_notifications from './locales/ca-ES/notifications.json' with { type: 'json' };
|
|
41
|
+
import caES_settings from './locales/ca-ES/settings.json' with { type: 'json' };
|
|
42
|
+
import caES_nav from './locales/ca-ES/nav.json' with { type: 'json' };
|
|
43
|
+
import caES_pages from './locales/ca-ES/pages.json' with { type: 'json' };
|
|
44
|
+
import caES_mobile from './locales/ca-ES/mobile.json' with { type: 'json' };
|
|
45
|
+
|
|
46
|
+
// cs-CZ
|
|
47
|
+
import csCZ_common from './locales/cs-CZ/common.json' with { type: 'json' };
|
|
48
|
+
import csCZ_notifications from './locales/cs-CZ/notifications.json' with { type: 'json' };
|
|
49
|
+
import csCZ_settings from './locales/cs-CZ/settings.json' with { type: 'json' };
|
|
50
|
+
import csCZ_nav from './locales/cs-CZ/nav.json' with { type: 'json' };
|
|
51
|
+
import csCZ_pages from './locales/cs-CZ/pages.json' with { type: 'json' };
|
|
52
|
+
import csCZ_mobile from './locales/cs-CZ/mobile.json' with { type: 'json' };
|
|
53
|
+
|
|
54
|
+
// da-DK
|
|
55
|
+
import daDK_common from './locales/da-DK/common.json' with { type: 'json' };
|
|
56
|
+
import daDK_notifications from './locales/da-DK/notifications.json' with { type: 'json' };
|
|
57
|
+
import daDK_settings from './locales/da-DK/settings.json' with { type: 'json' };
|
|
58
|
+
import daDK_nav from './locales/da-DK/nav.json' with { type: 'json' };
|
|
59
|
+
import daDK_pages from './locales/da-DK/pages.json' with { type: 'json' };
|
|
60
|
+
import daDK_mobile from './locales/da-DK/mobile.json' with { type: 'json' };
|
|
61
|
+
|
|
62
|
+
// de-DE
|
|
63
|
+
import deDE_common from './locales/de-DE/common.json' with { type: 'json' };
|
|
64
|
+
import deDE_notifications from './locales/de-DE/notifications.json' with { type: 'json' };
|
|
65
|
+
import deDE_settings from './locales/de-DE/settings.json' with { type: 'json' };
|
|
66
|
+
import deDE_nav from './locales/de-DE/nav.json' with { type: 'json' };
|
|
67
|
+
import deDE_pages from './locales/de-DE/pages.json' with { type: 'json' };
|
|
68
|
+
import deDE_mobile from './locales/de-DE/mobile.json' with { type: 'json' };
|
|
69
|
+
|
|
70
|
+
// el-GR
|
|
71
|
+
import elGR_common from './locales/el-GR/common.json' with { type: 'json' };
|
|
72
|
+
import elGR_notifications from './locales/el-GR/notifications.json' with { type: 'json' };
|
|
73
|
+
import elGR_settings from './locales/el-GR/settings.json' with { type: 'json' };
|
|
74
|
+
import elGR_nav from './locales/el-GR/nav.json' with { type: 'json' };
|
|
75
|
+
import elGR_pages from './locales/el-GR/pages.json' with { type: 'json' };
|
|
76
|
+
import elGR_mobile from './locales/el-GR/mobile.json' with { type: 'json' };
|
|
77
|
+
|
|
78
|
+
// es-ES
|
|
79
|
+
import esES_common from './locales/es-ES/common.json' with { type: 'json' };
|
|
80
|
+
import esES_notifications from './locales/es-ES/notifications.json' with { type: 'json' };
|
|
81
|
+
import esES_settings from './locales/es-ES/settings.json' with { type: 'json' };
|
|
82
|
+
import esES_nav from './locales/es-ES/nav.json' with { type: 'json' };
|
|
83
|
+
import esES_pages from './locales/es-ES/pages.json' with { type: 'json' };
|
|
84
|
+
import esES_mobile from './locales/es-ES/mobile.json' with { type: 'json' };
|
|
85
|
+
|
|
86
|
+
// fi-FI
|
|
87
|
+
import fiFI_common from './locales/fi-FI/common.json' with { type: 'json' };
|
|
88
|
+
import fiFI_notifications from './locales/fi-FI/notifications.json' with { type: 'json' };
|
|
89
|
+
import fiFI_settings from './locales/fi-FI/settings.json' with { type: 'json' };
|
|
90
|
+
import fiFI_nav from './locales/fi-FI/nav.json' with { type: 'json' };
|
|
91
|
+
import fiFI_pages from './locales/fi-FI/pages.json' with { type: 'json' };
|
|
92
|
+
import fiFI_mobile from './locales/fi-FI/mobile.json' with { type: 'json' };
|
|
93
|
+
|
|
94
|
+
// fr-FR
|
|
95
|
+
import frFR_common from './locales/fr-FR/common.json' with { type: 'json' };
|
|
96
|
+
import frFR_notifications from './locales/fr-FR/notifications.json' with { type: 'json' };
|
|
97
|
+
import frFR_settings from './locales/fr-FR/settings.json' with { type: 'json' };
|
|
98
|
+
import frFR_nav from './locales/fr-FR/nav.json' with { type: 'json' };
|
|
99
|
+
import frFR_pages from './locales/fr-FR/pages.json' with { type: 'json' };
|
|
100
|
+
import frFR_mobile from './locales/fr-FR/mobile.json' with { type: 'json' };
|
|
101
|
+
|
|
102
|
+
// he-IL
|
|
103
|
+
import heIL_common from './locales/he-IL/common.json' with { type: 'json' };
|
|
104
|
+
import heIL_notifications from './locales/he-IL/notifications.json' with { type: 'json' };
|
|
105
|
+
import heIL_settings from './locales/he-IL/settings.json' with { type: 'json' };
|
|
106
|
+
import heIL_nav from './locales/he-IL/nav.json' with { type: 'json' };
|
|
107
|
+
import heIL_pages from './locales/he-IL/pages.json' with { type: 'json' };
|
|
108
|
+
import heIL_mobile from './locales/he-IL/mobile.json' with { type: 'json' };
|
|
109
|
+
|
|
110
|
+
// hu-HU
|
|
111
|
+
import huHU_common from './locales/hu-HU/common.json' with { type: 'json' };
|
|
112
|
+
import huHU_notifications from './locales/hu-HU/notifications.json' with { type: 'json' };
|
|
113
|
+
import huHU_settings from './locales/hu-HU/settings.json' with { type: 'json' };
|
|
114
|
+
import huHU_nav from './locales/hu-HU/nav.json' with { type: 'json' };
|
|
115
|
+
import huHU_pages from './locales/hu-HU/pages.json' with { type: 'json' };
|
|
116
|
+
import huHU_mobile from './locales/hu-HU/mobile.json' with { type: 'json' };
|
|
117
|
+
|
|
118
|
+
// it-IT
|
|
119
|
+
import itIT_common from './locales/it-IT/common.json' with { type: 'json' };
|
|
120
|
+
import itIT_notifications from './locales/it-IT/notifications.json' with { type: 'json' };
|
|
121
|
+
import itIT_settings from './locales/it-IT/settings.json' with { type: 'json' };
|
|
122
|
+
import itIT_nav from './locales/it-IT/nav.json' with { type: 'json' };
|
|
123
|
+
import itIT_pages from './locales/it-IT/pages.json' with { type: 'json' };
|
|
124
|
+
import itIT_mobile from './locales/it-IT/mobile.json' with { type: 'json' };
|
|
125
|
+
|
|
126
|
+
// ja-JP
|
|
127
|
+
import jaJP_common from './locales/ja-JP/common.json' with { type: 'json' };
|
|
128
|
+
import jaJP_notifications from './locales/ja-JP/notifications.json' with { type: 'json' };
|
|
129
|
+
import jaJP_settings from './locales/ja-JP/settings.json' with { type: 'json' };
|
|
130
|
+
import jaJP_nav from './locales/ja-JP/nav.json' with { type: 'json' };
|
|
131
|
+
import jaJP_pages from './locales/ja-JP/pages.json' with { type: 'json' };
|
|
132
|
+
import jaJP_mobile from './locales/ja-JP/mobile.json' with { type: 'json' };
|
|
133
|
+
|
|
134
|
+
// ko-KR
|
|
135
|
+
import koKR_common from './locales/ko-KR/common.json' with { type: 'json' };
|
|
136
|
+
import koKR_notifications from './locales/ko-KR/notifications.json' with { type: 'json' };
|
|
137
|
+
import koKR_settings from './locales/ko-KR/settings.json' with { type: 'json' };
|
|
138
|
+
import koKR_nav from './locales/ko-KR/nav.json' with { type: 'json' };
|
|
139
|
+
import koKR_pages from './locales/ko-KR/pages.json' with { type: 'json' };
|
|
140
|
+
import koKR_mobile from './locales/ko-KR/mobile.json' with { type: 'json' };
|
|
141
|
+
|
|
142
|
+
// nl-NL
|
|
143
|
+
import nlNL_common from './locales/nl-NL/common.json' with { type: 'json' };
|
|
144
|
+
import nlNL_notifications from './locales/nl-NL/notifications.json' with { type: 'json' };
|
|
145
|
+
import nlNL_settings from './locales/nl-NL/settings.json' with { type: 'json' };
|
|
146
|
+
import nlNL_nav from './locales/nl-NL/nav.json' with { type: 'json' };
|
|
147
|
+
import nlNL_pages from './locales/nl-NL/pages.json' with { type: 'json' };
|
|
148
|
+
import nlNL_mobile from './locales/nl-NL/mobile.json' with { type: 'json' };
|
|
149
|
+
|
|
150
|
+
// no-NO
|
|
151
|
+
import noNO_common from './locales/no-NO/common.json' with { type: 'json' };
|
|
152
|
+
import noNO_notifications from './locales/no-NO/notifications.json' with { type: 'json' };
|
|
153
|
+
import noNO_settings from './locales/no-NO/settings.json' with { type: 'json' };
|
|
154
|
+
import noNO_nav from './locales/no-NO/nav.json' with { type: 'json' };
|
|
155
|
+
import noNO_pages from './locales/no-NO/pages.json' with { type: 'json' };
|
|
156
|
+
import noNO_mobile from './locales/no-NO/mobile.json' with { type: 'json' };
|
|
157
|
+
|
|
158
|
+
// pl-PL
|
|
159
|
+
import plPL_common from './locales/pl-PL/common.json' with { type: 'json' };
|
|
160
|
+
import plPL_notifications from './locales/pl-PL/notifications.json' with { type: 'json' };
|
|
161
|
+
import plPL_settings from './locales/pl-PL/settings.json' with { type: 'json' };
|
|
162
|
+
import plPL_nav from './locales/pl-PL/nav.json' with { type: 'json' };
|
|
163
|
+
import plPL_pages from './locales/pl-PL/pages.json' with { type: 'json' };
|
|
164
|
+
import plPL_mobile from './locales/pl-PL/mobile.json' with { type: 'json' };
|
|
165
|
+
|
|
166
|
+
// pt-BR
|
|
167
|
+
import ptBR_common from './locales/pt-BR/common.json' with { type: 'json' };
|
|
168
|
+
import ptBR_notifications from './locales/pt-BR/notifications.json' with { type: 'json' };
|
|
169
|
+
import ptBR_settings from './locales/pt-BR/settings.json' with { type: 'json' };
|
|
170
|
+
import ptBR_nav from './locales/pt-BR/nav.json' with { type: 'json' };
|
|
171
|
+
import ptBR_pages from './locales/pt-BR/pages.json' with { type: 'json' };
|
|
172
|
+
import ptBR_mobile from './locales/pt-BR/mobile.json' with { type: 'json' };
|
|
173
|
+
|
|
174
|
+
// pt-PT
|
|
175
|
+
import ptPT_common from './locales/pt-PT/common.json' with { type: 'json' };
|
|
176
|
+
import ptPT_notifications from './locales/pt-PT/notifications.json' with { type: 'json' };
|
|
177
|
+
import ptPT_settings from './locales/pt-PT/settings.json' with { type: 'json' };
|
|
178
|
+
import ptPT_nav from './locales/pt-PT/nav.json' with { type: 'json' };
|
|
179
|
+
import ptPT_pages from './locales/pt-PT/pages.json' with { type: 'json' };
|
|
180
|
+
import ptPT_mobile from './locales/pt-PT/mobile.json' with { type: 'json' };
|
|
181
|
+
|
|
182
|
+
// ro-RO
|
|
183
|
+
import roRO_common from './locales/ro-RO/common.json' with { type: 'json' };
|
|
184
|
+
import roRO_notifications from './locales/ro-RO/notifications.json' with { type: 'json' };
|
|
185
|
+
import roRO_settings from './locales/ro-RO/settings.json' with { type: 'json' };
|
|
186
|
+
import roRO_nav from './locales/ro-RO/nav.json' with { type: 'json' };
|
|
187
|
+
import roRO_pages from './locales/ro-RO/pages.json' with { type: 'json' };
|
|
188
|
+
import roRO_mobile from './locales/ro-RO/mobile.json' with { type: 'json' };
|
|
189
|
+
|
|
190
|
+
// ru-RU
|
|
191
|
+
import ruRU_common from './locales/ru-RU/common.json' with { type: 'json' };
|
|
192
|
+
import ruRU_notifications from './locales/ru-RU/notifications.json' with { type: 'json' };
|
|
193
|
+
import ruRU_settings from './locales/ru-RU/settings.json' with { type: 'json' };
|
|
194
|
+
import ruRU_nav from './locales/ru-RU/nav.json' with { type: 'json' };
|
|
195
|
+
import ruRU_pages from './locales/ru-RU/pages.json' with { type: 'json' };
|
|
196
|
+
import ruRU_mobile from './locales/ru-RU/mobile.json' with { type: 'json' };
|
|
197
|
+
|
|
198
|
+
// sr-SP
|
|
199
|
+
import srSP_common from './locales/sr-SP/common.json' with { type: 'json' };
|
|
200
|
+
import srSP_notifications from './locales/sr-SP/notifications.json' with { type: 'json' };
|
|
201
|
+
import srSP_settings from './locales/sr-SP/settings.json' with { type: 'json' };
|
|
202
|
+
import srSP_nav from './locales/sr-SP/nav.json' with { type: 'json' };
|
|
203
|
+
import srSP_pages from './locales/sr-SP/pages.json' with { type: 'json' };
|
|
204
|
+
import srSP_mobile from './locales/sr-SP/mobile.json' with { type: 'json' };
|
|
205
|
+
|
|
206
|
+
// sv-SE
|
|
207
|
+
import svSE_common from './locales/sv-SE/common.json' with { type: 'json' };
|
|
208
|
+
import svSE_notifications from './locales/sv-SE/notifications.json' with { type: 'json' };
|
|
209
|
+
import svSE_settings from './locales/sv-SE/settings.json' with { type: 'json' };
|
|
210
|
+
import svSE_nav from './locales/sv-SE/nav.json' with { type: 'json' };
|
|
211
|
+
import svSE_pages from './locales/sv-SE/pages.json' with { type: 'json' };
|
|
212
|
+
import svSE_mobile from './locales/sv-SE/mobile.json' with { type: 'json' };
|
|
213
|
+
|
|
214
|
+
// tr-TR
|
|
215
|
+
import trTR_common from './locales/tr-TR/common.json' with { type: 'json' };
|
|
216
|
+
import trTR_notifications from './locales/tr-TR/notifications.json' with { type: 'json' };
|
|
217
|
+
import trTR_settings from './locales/tr-TR/settings.json' with { type: 'json' };
|
|
218
|
+
import trTR_nav from './locales/tr-TR/nav.json' with { type: 'json' };
|
|
219
|
+
import trTR_pages from './locales/tr-TR/pages.json' with { type: 'json' };
|
|
220
|
+
import trTR_mobile from './locales/tr-TR/mobile.json' with { type: 'json' };
|
|
221
|
+
|
|
222
|
+
// uk-UA
|
|
223
|
+
import ukUA_common from './locales/uk-UA/common.json' with { type: 'json' };
|
|
224
|
+
import ukUA_notifications from './locales/uk-UA/notifications.json' with { type: 'json' };
|
|
225
|
+
import ukUA_settings from './locales/uk-UA/settings.json' with { type: 'json' };
|
|
226
|
+
import ukUA_nav from './locales/uk-UA/nav.json' with { type: 'json' };
|
|
227
|
+
import ukUA_pages from './locales/uk-UA/pages.json' with { type: 'json' };
|
|
228
|
+
import ukUA_mobile from './locales/uk-UA/mobile.json' with { type: 'json' };
|
|
229
|
+
|
|
230
|
+
// vi-VN
|
|
231
|
+
import viVN_common from './locales/vi-VN/common.json' with { type: 'json' };
|
|
232
|
+
import viVN_notifications from './locales/vi-VN/notifications.json' with { type: 'json' };
|
|
233
|
+
import viVN_settings from './locales/vi-VN/settings.json' with { type: 'json' };
|
|
234
|
+
import viVN_nav from './locales/vi-VN/nav.json' with { type: 'json' };
|
|
235
|
+
import viVN_pages from './locales/vi-VN/pages.json' with { type: 'json' };
|
|
236
|
+
import viVN_mobile from './locales/vi-VN/mobile.json' with { type: 'json' };
|
|
237
|
+
|
|
238
|
+
// zh-CN
|
|
239
|
+
import zhCN_common from './locales/zh-CN/common.json' with { type: 'json' };
|
|
240
|
+
import zhCN_notifications from './locales/zh-CN/notifications.json' with { type: 'json' };
|
|
241
|
+
import zhCN_settings from './locales/zh-CN/settings.json' with { type: 'json' };
|
|
242
|
+
import zhCN_nav from './locales/zh-CN/nav.json' with { type: 'json' };
|
|
243
|
+
import zhCN_pages from './locales/zh-CN/pages.json' with { type: 'json' };
|
|
244
|
+
import zhCN_mobile from './locales/zh-CN/mobile.json' with { type: 'json' };
|
|
245
|
+
|
|
246
|
+
// zh-TW
|
|
247
|
+
import zhTW_common from './locales/zh-TW/common.json' with { type: 'json' };
|
|
248
|
+
import zhTW_notifications from './locales/zh-TW/notifications.json' with { type: 'json' };
|
|
249
|
+
import zhTW_settings from './locales/zh-TW/settings.json' with { type: 'json' };
|
|
250
|
+
import zhTW_nav from './locales/zh-TW/nav.json' with { type: 'json' };
|
|
251
|
+
import zhTW_pages from './locales/zh-TW/pages.json' with { type: 'json' };
|
|
252
|
+
import zhTW_mobile from './locales/zh-TW/mobile.json' with { type: 'json' };
|
|
253
|
+
|
|
254
|
+
// ============================================================================
|
|
255
|
+
// Shared constants (mirrors config.ts)
|
|
256
|
+
// ============================================================================
|
|
257
|
+
|
|
258
|
+
export const defaultNS = 'common';
|
|
259
|
+
export const namespaces = [
|
|
260
|
+
'common',
|
|
261
|
+
'notifications',
|
|
262
|
+
'settings',
|
|
263
|
+
'nav',
|
|
264
|
+
'pages',
|
|
265
|
+
'mobile',
|
|
266
|
+
] as const;
|
|
267
|
+
export type Namespace = (typeof namespaces)[number];
|
|
268
|
+
|
|
269
|
+
export const supportedLanguages = [
|
|
270
|
+
'en',
|
|
271
|
+
'af-ZA',
|
|
272
|
+
'ar-SA',
|
|
273
|
+
'ca-ES',
|
|
274
|
+
'cs-CZ',
|
|
275
|
+
'da-DK',
|
|
276
|
+
'de-DE',
|
|
277
|
+
'el-GR',
|
|
278
|
+
'es-ES',
|
|
279
|
+
'fi-FI',
|
|
280
|
+
'fr-FR',
|
|
281
|
+
'he-IL',
|
|
282
|
+
'hu-HU',
|
|
283
|
+
'it-IT',
|
|
284
|
+
'ja-JP',
|
|
285
|
+
'ko-KR',
|
|
286
|
+
'nl-NL',
|
|
287
|
+
'no-NO',
|
|
288
|
+
'pl-PL',
|
|
289
|
+
'pt-BR',
|
|
290
|
+
'pt-PT',
|
|
291
|
+
'ro-RO',
|
|
292
|
+
'ru-RU',
|
|
293
|
+
'sr-SP',
|
|
294
|
+
'sv-SE',
|
|
295
|
+
'tr-TR',
|
|
296
|
+
'uk-UA',
|
|
297
|
+
'vi-VN',
|
|
298
|
+
'zh-CN',
|
|
299
|
+
'zh-TW',
|
|
300
|
+
] as const;
|
|
301
|
+
export type SupportedLanguage = (typeof supportedLanguages)[number];
|
|
302
|
+
|
|
303
|
+
// English is always available statically
|
|
304
|
+
export const resources = {
|
|
305
|
+
en: {
|
|
306
|
+
common: commonEn,
|
|
307
|
+
notifications: notificationsEn,
|
|
308
|
+
settings: settingsEn,
|
|
309
|
+
nav: navEn,
|
|
310
|
+
pages: pagesEn,
|
|
311
|
+
mobile: mobileEn,
|
|
312
|
+
},
|
|
313
|
+
} as const;
|
|
314
|
+
|
|
315
|
+
// ============================================================================
|
|
316
|
+
// All locale resources (pre-built for mobile — no lazy loading needed)
|
|
317
|
+
// ============================================================================
|
|
318
|
+
|
|
319
|
+
type LocaleResources = Record<string, Record<string, unknown>>;
|
|
320
|
+
|
|
321
|
+
const allLocaleResources: Record<string, LocaleResources> = {
|
|
322
|
+
'af-ZA': {
|
|
323
|
+
common: afZA_common,
|
|
324
|
+
notifications: afZA_notifications,
|
|
325
|
+
settings: afZA_settings,
|
|
326
|
+
nav: afZA_nav,
|
|
327
|
+
pages: afZA_pages,
|
|
328
|
+
mobile: afZA_mobile,
|
|
329
|
+
},
|
|
330
|
+
'ar-SA': {
|
|
331
|
+
common: arSA_common,
|
|
332
|
+
notifications: arSA_notifications,
|
|
333
|
+
settings: arSA_settings,
|
|
334
|
+
nav: arSA_nav,
|
|
335
|
+
pages: arSA_pages,
|
|
336
|
+
mobile: arSA_mobile,
|
|
337
|
+
},
|
|
338
|
+
'ca-ES': {
|
|
339
|
+
common: caES_common,
|
|
340
|
+
notifications: caES_notifications,
|
|
341
|
+
settings: caES_settings,
|
|
342
|
+
nav: caES_nav,
|
|
343
|
+
pages: caES_pages,
|
|
344
|
+
mobile: caES_mobile,
|
|
345
|
+
},
|
|
346
|
+
'cs-CZ': {
|
|
347
|
+
common: csCZ_common,
|
|
348
|
+
notifications: csCZ_notifications,
|
|
349
|
+
settings: csCZ_settings,
|
|
350
|
+
nav: csCZ_nav,
|
|
351
|
+
pages: csCZ_pages,
|
|
352
|
+
mobile: csCZ_mobile,
|
|
353
|
+
},
|
|
354
|
+
'da-DK': {
|
|
355
|
+
common: daDK_common,
|
|
356
|
+
notifications: daDK_notifications,
|
|
357
|
+
settings: daDK_settings,
|
|
358
|
+
nav: daDK_nav,
|
|
359
|
+
pages: daDK_pages,
|
|
360
|
+
mobile: daDK_mobile,
|
|
361
|
+
},
|
|
362
|
+
'de-DE': {
|
|
363
|
+
common: deDE_common,
|
|
364
|
+
notifications: deDE_notifications,
|
|
365
|
+
settings: deDE_settings,
|
|
366
|
+
nav: deDE_nav,
|
|
367
|
+
pages: deDE_pages,
|
|
368
|
+
mobile: deDE_mobile,
|
|
369
|
+
},
|
|
370
|
+
'el-GR': {
|
|
371
|
+
common: elGR_common,
|
|
372
|
+
notifications: elGR_notifications,
|
|
373
|
+
settings: elGR_settings,
|
|
374
|
+
nav: elGR_nav,
|
|
375
|
+
pages: elGR_pages,
|
|
376
|
+
mobile: elGR_mobile,
|
|
377
|
+
},
|
|
378
|
+
'es-ES': {
|
|
379
|
+
common: esES_common,
|
|
380
|
+
notifications: esES_notifications,
|
|
381
|
+
settings: esES_settings,
|
|
382
|
+
nav: esES_nav,
|
|
383
|
+
pages: esES_pages,
|
|
384
|
+
mobile: esES_mobile,
|
|
385
|
+
},
|
|
386
|
+
'fi-FI': {
|
|
387
|
+
common: fiFI_common,
|
|
388
|
+
notifications: fiFI_notifications,
|
|
389
|
+
settings: fiFI_settings,
|
|
390
|
+
nav: fiFI_nav,
|
|
391
|
+
pages: fiFI_pages,
|
|
392
|
+
mobile: fiFI_mobile,
|
|
393
|
+
},
|
|
394
|
+
'fr-FR': {
|
|
395
|
+
common: frFR_common,
|
|
396
|
+
notifications: frFR_notifications,
|
|
397
|
+
settings: frFR_settings,
|
|
398
|
+
nav: frFR_nav,
|
|
399
|
+
pages: frFR_pages,
|
|
400
|
+
mobile: frFR_mobile,
|
|
401
|
+
},
|
|
402
|
+
'he-IL': {
|
|
403
|
+
common: heIL_common,
|
|
404
|
+
notifications: heIL_notifications,
|
|
405
|
+
settings: heIL_settings,
|
|
406
|
+
nav: heIL_nav,
|
|
407
|
+
pages: heIL_pages,
|
|
408
|
+
mobile: heIL_mobile,
|
|
409
|
+
},
|
|
410
|
+
'hu-HU': {
|
|
411
|
+
common: huHU_common,
|
|
412
|
+
notifications: huHU_notifications,
|
|
413
|
+
settings: huHU_settings,
|
|
414
|
+
nav: huHU_nav,
|
|
415
|
+
pages: huHU_pages,
|
|
416
|
+
mobile: huHU_mobile,
|
|
417
|
+
},
|
|
418
|
+
'it-IT': {
|
|
419
|
+
common: itIT_common,
|
|
420
|
+
notifications: itIT_notifications,
|
|
421
|
+
settings: itIT_settings,
|
|
422
|
+
nav: itIT_nav,
|
|
423
|
+
pages: itIT_pages,
|
|
424
|
+
mobile: itIT_mobile,
|
|
425
|
+
},
|
|
426
|
+
'ja-JP': {
|
|
427
|
+
common: jaJP_common,
|
|
428
|
+
notifications: jaJP_notifications,
|
|
429
|
+
settings: jaJP_settings,
|
|
430
|
+
nav: jaJP_nav,
|
|
431
|
+
pages: jaJP_pages,
|
|
432
|
+
mobile: jaJP_mobile,
|
|
433
|
+
},
|
|
434
|
+
'ko-KR': {
|
|
435
|
+
common: koKR_common,
|
|
436
|
+
notifications: koKR_notifications,
|
|
437
|
+
settings: koKR_settings,
|
|
438
|
+
nav: koKR_nav,
|
|
439
|
+
pages: koKR_pages,
|
|
440
|
+
mobile: koKR_mobile,
|
|
441
|
+
},
|
|
442
|
+
'nl-NL': {
|
|
443
|
+
common: nlNL_common,
|
|
444
|
+
notifications: nlNL_notifications,
|
|
445
|
+
settings: nlNL_settings,
|
|
446
|
+
nav: nlNL_nav,
|
|
447
|
+
pages: nlNL_pages,
|
|
448
|
+
mobile: nlNL_mobile,
|
|
449
|
+
},
|
|
450
|
+
'no-NO': {
|
|
451
|
+
common: noNO_common,
|
|
452
|
+
notifications: noNO_notifications,
|
|
453
|
+
settings: noNO_settings,
|
|
454
|
+
nav: noNO_nav,
|
|
455
|
+
pages: noNO_pages,
|
|
456
|
+
mobile: noNO_mobile,
|
|
457
|
+
},
|
|
458
|
+
'pl-PL': {
|
|
459
|
+
common: plPL_common,
|
|
460
|
+
notifications: plPL_notifications,
|
|
461
|
+
settings: plPL_settings,
|
|
462
|
+
nav: plPL_nav,
|
|
463
|
+
pages: plPL_pages,
|
|
464
|
+
mobile: plPL_mobile,
|
|
465
|
+
},
|
|
466
|
+
'pt-BR': {
|
|
467
|
+
common: ptBR_common,
|
|
468
|
+
notifications: ptBR_notifications,
|
|
469
|
+
settings: ptBR_settings,
|
|
470
|
+
nav: ptBR_nav,
|
|
471
|
+
pages: ptBR_pages,
|
|
472
|
+
mobile: ptBR_mobile,
|
|
473
|
+
},
|
|
474
|
+
'pt-PT': {
|
|
475
|
+
common: ptPT_common,
|
|
476
|
+
notifications: ptPT_notifications,
|
|
477
|
+
settings: ptPT_settings,
|
|
478
|
+
nav: ptPT_nav,
|
|
479
|
+
pages: ptPT_pages,
|
|
480
|
+
mobile: ptPT_mobile,
|
|
481
|
+
},
|
|
482
|
+
'ro-RO': {
|
|
483
|
+
common: roRO_common,
|
|
484
|
+
notifications: roRO_notifications,
|
|
485
|
+
settings: roRO_settings,
|
|
486
|
+
nav: roRO_nav,
|
|
487
|
+
pages: roRO_pages,
|
|
488
|
+
mobile: roRO_mobile,
|
|
489
|
+
},
|
|
490
|
+
'ru-RU': {
|
|
491
|
+
common: ruRU_common,
|
|
492
|
+
notifications: ruRU_notifications,
|
|
493
|
+
settings: ruRU_settings,
|
|
494
|
+
nav: ruRU_nav,
|
|
495
|
+
pages: ruRU_pages,
|
|
496
|
+
mobile: ruRU_mobile,
|
|
497
|
+
},
|
|
498
|
+
'sr-SP': {
|
|
499
|
+
common: srSP_common,
|
|
500
|
+
notifications: srSP_notifications,
|
|
501
|
+
settings: srSP_settings,
|
|
502
|
+
nav: srSP_nav,
|
|
503
|
+
pages: srSP_pages,
|
|
504
|
+
mobile: srSP_mobile,
|
|
505
|
+
},
|
|
506
|
+
'sv-SE': {
|
|
507
|
+
common: svSE_common,
|
|
508
|
+
notifications: svSE_notifications,
|
|
509
|
+
settings: svSE_settings,
|
|
510
|
+
nav: svSE_nav,
|
|
511
|
+
pages: svSE_pages,
|
|
512
|
+
mobile: svSE_mobile,
|
|
513
|
+
},
|
|
514
|
+
'tr-TR': {
|
|
515
|
+
common: trTR_common,
|
|
516
|
+
notifications: trTR_notifications,
|
|
517
|
+
settings: trTR_settings,
|
|
518
|
+
nav: trTR_nav,
|
|
519
|
+
pages: trTR_pages,
|
|
520
|
+
mobile: trTR_mobile,
|
|
521
|
+
},
|
|
522
|
+
'uk-UA': {
|
|
523
|
+
common: ukUA_common,
|
|
524
|
+
notifications: ukUA_notifications,
|
|
525
|
+
settings: ukUA_settings,
|
|
526
|
+
nav: ukUA_nav,
|
|
527
|
+
pages: ukUA_pages,
|
|
528
|
+
mobile: ukUA_mobile,
|
|
529
|
+
},
|
|
530
|
+
'vi-VN': {
|
|
531
|
+
common: viVN_common,
|
|
532
|
+
notifications: viVN_notifications,
|
|
533
|
+
settings: viVN_settings,
|
|
534
|
+
nav: viVN_nav,
|
|
535
|
+
pages: viVN_pages,
|
|
536
|
+
mobile: viVN_mobile,
|
|
537
|
+
},
|
|
538
|
+
'zh-CN': {
|
|
539
|
+
common: zhCN_common,
|
|
540
|
+
notifications: zhCN_notifications,
|
|
541
|
+
settings: zhCN_settings,
|
|
542
|
+
nav: zhCN_nav,
|
|
543
|
+
pages: zhCN_pages,
|
|
544
|
+
mobile: zhCN_mobile,
|
|
545
|
+
},
|
|
546
|
+
'zh-TW': {
|
|
547
|
+
common: zhTW_common,
|
|
548
|
+
notifications: zhTW_notifications,
|
|
549
|
+
settings: zhTW_settings,
|
|
550
|
+
nav: zhTW_nav,
|
|
551
|
+
pages: zhTW_pages,
|
|
552
|
+
mobile: zhTW_mobile,
|
|
553
|
+
},
|
|
554
|
+
};
|
|
555
|
+
|
|
556
|
+
// ============================================================================
|
|
557
|
+
// Locale Loading (synchronous — all data already imported)
|
|
558
|
+
// ============================================================================
|
|
559
|
+
|
|
560
|
+
const loadedLocales = new Set<string>(['en']);
|
|
561
|
+
|
|
562
|
+
/**
|
|
563
|
+
* Register a locale's translation data with i18next.
|
|
564
|
+
* Since all data is statically imported, this just calls addResourceBundle
|
|
565
|
+
* for each namespace (no async fetch needed).
|
|
566
|
+
*/
|
|
567
|
+
export async function loadLocale(lang: string): Promise<void> {
|
|
568
|
+
if (loadedLocales.has(lang)) return;
|
|
569
|
+
|
|
570
|
+
const bundles = allLocaleResources[lang];
|
|
571
|
+
if (!bundles) return;
|
|
572
|
+
|
|
573
|
+
for (const [ns, data] of Object.entries(bundles)) {
|
|
574
|
+
i18n.addResourceBundle(lang, ns, data, true, true);
|
|
575
|
+
}
|
|
576
|
+
loadedLocales.add(lang);
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
// Register the mobile locale loader with language.ts
|
|
580
|
+
_registerLocaleLoader(loadLocale);
|
|
581
|
+
|
|
582
|
+
// ============================================================================
|
|
583
|
+
// i18next Configuration
|
|
584
|
+
// ============================================================================
|
|
585
|
+
|
|
586
|
+
export const defaultI18nConfig = {
|
|
587
|
+
lng: 'en',
|
|
588
|
+
fallbackLng: 'en',
|
|
589
|
+
defaultNS,
|
|
590
|
+
ns: namespaces,
|
|
591
|
+
resources,
|
|
592
|
+
interpolation: {
|
|
593
|
+
escapeValue: false,
|
|
594
|
+
},
|
|
595
|
+
returnNull: false,
|
|
596
|
+
returnEmptyString: false,
|
|
597
|
+
} as const;
|
|
598
|
+
|
|
599
|
+
let initPromise: Promise<typeof i18n> | null = null;
|
|
600
|
+
|
|
601
|
+
export interface InitI18nOptions {
|
|
602
|
+
lng?: SupportedLanguage;
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* Initialize i18next for mobile. Registers only the requested language at
|
|
607
|
+
* startup for fast boot. Other locales are loaded on-demand when the user
|
|
608
|
+
* changes language — since all data is statically imported, this is instant.
|
|
609
|
+
*/
|
|
610
|
+
export async function initI18n(options?: InitI18nOptions): Promise<typeof i18n> {
|
|
611
|
+
if (i18n.isInitialized) {
|
|
612
|
+
const targetLng = options?.lng || 'en';
|
|
613
|
+
if (targetLng !== 'en') {
|
|
614
|
+
await loadLocale(targetLng);
|
|
615
|
+
}
|
|
616
|
+
return i18n;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
if (initPromise) {
|
|
620
|
+
return initPromise;
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
const targetLng = options?.lng || 'en';
|
|
624
|
+
|
|
625
|
+
initPromise = i18n
|
|
626
|
+
.use(initReactI18next)
|
|
627
|
+
.init({
|
|
628
|
+
...defaultI18nConfig,
|
|
629
|
+
...options,
|
|
630
|
+
})
|
|
631
|
+
.then(async () => {
|
|
632
|
+
// Only load the requested language at boot — others loaded on demand
|
|
633
|
+
if (targetLng !== 'en') {
|
|
634
|
+
await loadLocale(targetLng);
|
|
635
|
+
}
|
|
636
|
+
initPromise = null;
|
|
637
|
+
return i18n;
|
|
638
|
+
})
|
|
639
|
+
.catch((error: unknown) => {
|
|
640
|
+
initPromise = null;
|
|
641
|
+
throw error;
|
|
642
|
+
});
|
|
643
|
+
|
|
644
|
+
return initPromise;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
export { i18n };
|