I am trying to localize all the text of a web page using the i18npackage. My requirement is to convert all the text in to the selected locale.
Is it possible to localize dynamic text, such as user input, like name, designation in a form into the selected locale? If so, how can I do it?
Internationalization (sometimes shortened to "I18N , meaning "I - eighteen letters -N") is the process of planning and implementing products and services so that they can easily be adapted to specific local languages and cultures, a process called localization .
Internationalization or i18n is the design and development of a product, application, or document content that enables easy localization for target audiences that vary in culture, region, or language. Thus, React i18n is concerned with localizing React applications for different locales.
The idea of localization is to translate information text, input labels, and all the static texts so users from any part of the world can understand. In my opinion, we should not translate the input provided by the user.
You can try out here: https://www.w3schools.com/HOWTO/tryit.asp?filename=tryhow_google_translate
Add the input field like below. Even Google will not translate the input provided by the user.
<input type="text" value="HELLO" />
I have a system where I have applied localization. Users from Germany, Netherlands, India, and USA are using the website. We have translated only static text that helps users in understanding the information or labels of input.
Regarding user input, users can provide input in their preferred language. You can store them in the Database as it is using Unicode. So when you will fetch the data it will be the same. But the idea of translating user input is not good.
Let me know if this helps or do you still want to translate then I can provide you a function which will do the translation?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With