flyve-mdm / web-mdm-dashboard

New generation of the Flyve MDM Dashboard
http://flyve.org/web-mdm-dashboard/
GNU General Public License v3.0
84 stars 50 forks source link

Translations and support to I18N/L10N #294

Closed CharlyJazz closed 6 years ago

CharlyJazz commented 6 years ago

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:

image

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:

image

CharlyJazz commented 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?

hectorerb commented 6 years ago

@CharlyJazz it can be useful How to load string resources

CharlyJazz commented 6 years ago

@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: