Skip to content
Discussion options

You must be logged in to vote

The expo-app-template comes with working locale switch functionality, see https://github.com/nkzw-tech/expo-app-template/blob/main/src/app/_layout.tsx

Just double checking, are you loading your compiled translations, or the input translations that were created by prepare-translations? In the app, you need to load the former, not the latter. Just mentioning it because you do ../../translations/de_DE.json, so maybe you are going one folder too far?

If you are setting the locale to de_DE on load and it is not the default locale, then it is expected that you will manually load it. loadLocale is not called for the initial locale. Please see #35 (comment) for the explanation.

We prefer leaving …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@compojoom
Comment options

@cpojer
Comment options

@compojoom
Comment options

Answer selected by cpojer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants