Closed CharlyJazz closed 6 years ago
WinJS (I18N/L10N):
According to this, I think there is not a native WinJS way for localization and internalization available for web application.
@hectorerb @Gianfranco97 Do you know something about it?
@CharlyJazz it can be useful How to load string resources
@hectorerb The first paragraph is this:
[This article is for Windows 8.x and Windows Phone 8.x developers writing Windows Runtime apps. If you're developing for Windows 10, see the latest documentation]
:disappointed:
Observed Results:
The application does not support multiple languages
Expected behavior:
The application should have the functionality to change the language in which messages and and all static texts are rendered
It is necessary to investigate what is the best technology to implement multiple languages in the application
Options:
Testing and CI:
Libraries to test feasibility
Examples of implementation:
react-i18n-helper:
Example
This is a simple way to implement i18n in a React application using Redux and a High Order Component to wrap the entire application
The necessary libraries are:
Important:
The library https://github.com/JSxMachina/react-i18nify is not used directly, since the code is flawed and depends of libraries that are not necessary for our projects, such as
promise-polyfill
. Instead it was refactored and i created the HOC.The strings of each translation are not added to the bundle file of the application which prevents it from increasing its size:
react-i18nify:
In this example the library is used to enable i18n
Important: Is more complicated to use, and if it is used in the way you show in your documentation, all the strings of each language will be added in the bundle file of the application and will be heavie: