question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Internationalization not working

See original GitHub issue

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

  1. Go to opensearch_dashboards.yml file
  2. Scroll down to ‘i18n.locale’
  3. Input “zh-CN”
  4. 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 Screen Shot 2021-09-08 at 4 49 36 PM

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:open
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
abbyhu2000commented, Sep 8, 2021

One possible solution is to create a translation plugin.

0reactions
joshuarrrrcommented, Oct 4, 2022

We’ve created the i18n OpenSearch Dashboards plugin to provide this functionality.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found