[BUG] Internationalization not working
See original GitHub issueDescribe the bug When changing the locale config from English to Chinese in the opensearch_dashboards.yml file, the application does not change language to Chinese but still showing the default language English.
To Reproduce Steps to reproduce the behavior:
- Go to opensearch_dashboards.yml file
- Scroll down to ‘i18n.locale’
- Input “zh-CN”
- Restart server and refresh the browser
Expected behavior Language for the Opensearch Dashboard should be changed from the default language English to Chinese as the comments saying “supported languages are the following: English - en, by default, Chinese -zh-CN” in the yml file.
Screenshots
Additional context Legacy application includes the supported translation functions in the X-pack folder, so we do not have access to it.
request:
curl 'http://localhost:5603/uev/translations/zh-cn.json' -H 'Accept: */*' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: http://localhost:5603/uev/app/discover' -H 'Connection: keep-alive' -H 'Cookie:xxxxx' -H 'Pragma: no-cache' -H 'Cache-Control: no-cache'
resp:
{"locale":"zh-CN","messages":{}}
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Internationalization - Troubleshooting Guide for Java SE 7 ...
This chapter provides information and guidance on troubleshooting issues that might be found in the area of internationalization support.
Read more >Why is internationalization not working properly? JSF
I'd recommend you not doing that, because the translation is sometimes related to its context. You need to translate the keys manually, ...
Read more >Guidelines for filing Internationalization and Localization bugs
The issue normally arises because the source code has not been internationalized (externalized for localization).
Read more >244278 – internationalization does not work in Runtime with ... - Bugs
Bugzilla – Bug 244278 internationalization does not work in Runtime with different language in client explorer Last modified: 2008-11-05 04:52:31 EST.
Read more >Revisiting i18n Gremlins and How to Handle Them - Lingoport
i18n for legacy issues – burning down the bugs; i18n impacts on localization files; Making testing and Localization QA continuous and in-context. Lingoport ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
One possible solution is to create a translation plugin.
We’ve created the i18n OpenSearch Dashboards plugin to provide this functionality.