I’m new to React Native and I’m trying to add translation in my navigation. In any other page it goes fine but not in my navigation. My i18n.js My StackNavigators.js What I’m trying to do is to add translation in BottomTabBar as title of each BottomNavigationTab and when I add const { t, i18n } = useTranslation(); I get Invalid
Tag: react-i18next
How to put html code inside react18next json translation file?
I have blog page on multiple languages and I use react-i18next library for translation. I have one component called BlogPostPage where I show each post when it’s opened, inside the component there is part for showing blog text like this: and my json translation file looks like this So I want to put html code inside translation text since different
react-i18next ignores options parameter
I wanted to organize better the language translation files of my project having to nest objects in the language file. Without nesting everything works fine Even nesting objects I can access them by passing the attribute directory in the t() function (ie: t(‘section.subsection.text’) Documentation’s solution doesn’t work for me and I don’t know why I already tried printing the useTranslation
Change localization directory base on local storage item
In a particular step in the React stepper component, I have to change the directory based on a steps language. Unfortunately in one of the steps, the text is hardcoded into the images which requires me to make this change. The app uses i18next for localization. Currently, all images for this step are rendered with this code: There is an