Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No support for upgrading platform to new languages #530

Open
Aayush-1999 opened this issue Mar 13, 2020 · 2 comments
Open

No support for upgrading platform to new languages #530

Aayush-1999 opened this issue Mar 13, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@Aayush-1999
Copy link

Expected Behavior

The platform should be able to display data in multiple languages based on user's geographical location. This can be done by including Internationalization bundles from where the text on all the pages should be coming from.

Current Behavior

There is no support for multiple languages. All the text is in English.

@Anmolbansal1
Copy link
Collaborator

Anmolbansal1 commented Mar 16, 2020

@Aayush-1999 I think it is a beneficial feature, but can you share your workflow and changes you are planning to achieve this. Then you may start to work on it 😃

@Anmolbansal1 Anmolbansal1 added the enhancement New feature or request label Mar 16, 2020
@Aayush-1999
Copy link
Author

I will use react-i18next for implementing this feature. A folder name locales needs to be created inside the public directory which contains json files ,one for each language, For e.g. en (English), chi(Chinese). These json files will contain all the static data of the app in different languages but referenced to same object name.

Then every component or page needs to be updated to use the data from these json files by replacing the data value by their object name specified in json file. A javascript function to capture user's language from their browser will also be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants