react navigation expo multpale languages

Solutions on MaxInterview for react navigation expo multpale languages by the best coders in the world

showing results for - "react navigation expo multpale languages"
Sam
27 Sep 2020
1One of the best soluation is 
2
3
4Source :
5https://github.com/afifahsalimi/react-native-multi-language
6
7
8Example:
9https://reactnavigation.org/docs/localization/
10
11
12this my also help for redux api users
13
14https://github.com/appfoundry/react-native-multi-language-sample
15
16
17for various screen in en.json file add content acording to your appp
18example
19
20
21{
22    "home": {
23        "welcome": "Welcome",
24        "go_to": "Go to",
25        "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."
26    },
27    "settings": {
28        "title": "Settings",
29        "language": "Language:"
30    },
31    "about":{
32        "title": "Additional screen",
33        "info": "Information:",
34        "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)."
35    }
36}
37
38
39you can fetch like 
40
41t(home.welocme);
42
43
44what is t function check the example url on top
45
46line no 8