Closed Panicum closed 3 years ago
I don't have experience in React / React Native
I suggest in one of the places with translation missing (e.g. en.menu.home)
Print out the value fetched manually (i.e. i18n.translations["en"]["menu"]["home"]
)
If translation entry is absent, not library issue.
If translation entry is present, we can investigate further.
dont use "en". "common.menu" is enough
I am making React Native app using Expo and I need to make this app in few languages (for this moment in Polish and English). So I choose i18n-js to handle texts translations and I followed instructions from this tutorial, and it's works... But not for all strings.
Most of the texts are translated correctly by i18n-js, but I have two cases that are not working:
1) Translations in Navigation Drawer Menu
Fragment of Drawer.js code:
2) Translations in DropDown:
Sample dropdown code:
Translations handling file code:
I have all the necessary translations in both: en.json and pl.json
I would be very grateful for any ideas on how to solve this problem!