Answers for "react navigation expo multpale languages"

0

react navigation expo multpale languages

One of the best soluation is 


Source :
https://github.com/afifahsalimi/react-native-multi-language


Example:
https://reactnavigation.org/docs/localization/


this my also help for redux api users

https://github.com/appfoundry/react-native-multi-language-sample


for various screen in en.json file add content acording to your appp
example


{
    "home": {
        "welcome": "Welcome",
        "go_to": "Go to",
        "instruction": "This app is meant as an example of how you can change the language as a setting. The app remembers the language setting and uses the same language when the app restarts later."
    },
    "settings": {
        "title": "Settings",
        "language": "Language:"
    },
    "about":{
        "title": "Additional screen",
        "info": "Information:",
        "explanation": "This screen uses no redux and is not connected to the 'settings store'. It just listens to the I18n plugin and its 'locale' parameter. We can do this here because this screen is not rendered on startup (unlike the Welcome screen) and not shown when switching languages (unlike the Settings screen)."
    }
}


you can fetch like 

t(home.welocme);


what is t function check the example url on top

line no 8
Posted by: Guest on May-03-2021

Code answers related to "react navigation expo multpale languages"

Code answers related to "Javascript"

Browse Popular Code Answers by Language