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: i18next
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
Language detection in the path and query string works incorrectly on AWS s3 bucket
I am working on React web app and I use i18n and i18next-browser-languagedetector for translation the app. On my local all works fine, even on server all is works in the same way. But I have a problem on aws s3 bucket. After I build my react project and upload it to s3 bucket i18n stop working correctly. I am
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
Configure i18next to use warning logs instead of default info level
Currently I have many logs by i18next that make difficult to use the console: I need i18next to use warning level instead of default info level, in order to be able to filter them. Im checking docs but I dont see any option. My current configuration is: Answer You can disable debug: false, which will disable the default console.log stuff.
Language getting detected but translation not working with i18n
I have set up the i18n middleware in my Express Node js server like this: Here is the translation test file: The value of title in English is title and for Malaysian, it’s tajuk As per the express middleware documentation, I’m passing my as the accept-language header , and console.log(req.i18n.language) is correctly printing it. However, console.log(t(‘title’)) is still printing title
I18N change language in Next.JS
I have some problems with I18N and NextJS. So I configured my I18N, everything works with default locale, but everything crashes if I want to change locale from local storage. In _app.js I tried to use this function: I have imported: When app is loaded it crashes and give error: I’m using the newest Next.js and I18N What I found
HTML tags in i18next translation
I’m using i18next to power i18n for my weblog. It works great on text-only content, but when I try to translate content that includes HTML markup, it is displaying the raw markup when I translate the text. As an example, here is a snippet of the markup from a post that is not working as expected: The translation code looks