Stackoverflow-Clone-Frontend icon indicating copy to clipboard operation
Stackoverflow-Clone-Frontend copied to clipboard

[Frontend]: Add Text Localization To All The Pages

Open Mayank0255 opened this issue 3 years ago • 3 comments

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like A clear and concise description of what you want to happen.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

Mayank0255 avatar Jul 01 '22 19:07 Mayank0255

@Mayank0255

Do you have any plan how it should be done?

growupanand avatar Oct 02 '23 09:10 growupanand

@Mayank0255

Do you have any plan how it should be done?

While inserting to db, the language should be english, so that in our db we have data in one language. Then, while fetching the data, it should be localized based on the users location (if possible, otherwise by default english is fine). Then give them a dropdown inside the profile section to change the language.

Two ways,

  1. We will keep the language preference in our db, then while returning the response of the APIs, we will convert. This will though induce some added time to the response time.
  2. We keep the language preference, then on frontend we convert the text through some library.

Mayank0255 avatar Oct 02 '23 12:10 Mayank0255

@Mayank0255 Do you have any plan how it should be done?

While inserting to db, the language should be english, so that in our db we have data in one language. Then, while fetching the data, it should be localized based on the users location (if possible, otherwise by default english is fine). Then give them a dropdown inside the profile section to change the language.

Two ways,

  1. We will keep the language preference in our db, then while returning the response of the APIs, we will convert. This will though induce some added time to the response time.
  2. We keep the language preference, then on frontend we convert the text through some library.

This looks like you want localization to all user data also or can you clear if you want to localize the frontend UI only.

growupanand avatar Oct 02 '23 13:10 growupanand