sinamics/ztnet

[Support]: Modify the default user language

seocgr opened this issue ยท 5 comments

๐Ÿ“ Inquiry

After the user logs in, the default language is set to Chinese, and the next time you log in or change the browser, it will become the default English, how to fix the default language of all users to Chinese?

๐Ÿ”– Version

0.70

๐Ÿ”ง Deployment Type

  • Docker
  • Standalone

๐Ÿ’ป Operating System

Debian

๐ŸŒ Browser

Firefox

๐Ÿ“š Any Other Information That May Be Helpful

No response

By default, ZTNet uses the language configured in the browser. If the selected language is not supported by ZTNet, the fallback will be English.

By default, ZTNet uses the language configured in the browser. If the selected language is not supported by ZTNet, the fallback will be English.

  1. Can I modify the configuration file to let the user log in to the Chinese language by default.
  2. I manually changed to Chinese language, and re-login will return to English, my browser is Chinese.

Can I modify the configuration file to let the user log in to the Chinese language by default.

No, that is not supported.

I manually changed to Chinese language, and re-login will return to English, my browser is Chinese.

When you change language, it will be stored in the browser localstorage. Next time you login, ztnet will use the ztnet-language.
image

If this is not working, make sure this property is set in localstorage. Developer Tools => Application => localstorage.

This issue is stale because it has been open for 30 days with no activity.