react-native-i18n icon indicating copy to clipboard operation
react-native-i18n copied to clipboard

createBottomTabNavigator gets route-name instead of tabBarLabel in some case (react-i18next)

Open HaJo10 opened this issue 6 years ago • 0 comments

Hi, having some troubles translating tabs using react-i18next I tested with the example at https://github.com/i18next/react-i18next/tree/master/example/react-native-expo I changed the stack used in wrappedStack (App.js) from StackNavigator to BottomTabNavigator using createBottomTabNavigator. As long as all routes are defined directly with screens all works as expected. When for example defining first route/tab using a stack (to navigate lets say from a settings tab to a screen changing language) and second route with screen then the "stack-route" is labeled with the route-name instead of using tabBarLabel or title at least. What I am doing wrong? Is there a way to change (translate) the route-name? I don't think so because of stack handling.

react-i18next saying: "overall i guess it's more a problem / limitation of react-navigation" (related to #484) so I opened this issue.

I made changes to app.js, i18n.js, Home.js, Page2.js and added Language.js. https://github.com/HaJo10/react-i18next

HaJo10 avatar Aug 07 '18 14:08 HaJo10