jgraph/drawio-nextcloud

language is not set according to user interface

life-on-mars opened this issue · 4 comments

draw.io instances in Nextcloud are always in English and as it is embedded the language globe button to change the language does not appear.
The language can be set via URL with ?lang=lang_CODE. Again, as this is embedded, it's impossible to do so as a user.

Nextcloud version is 25.0.3
App version is 2.1.0

You can set the language from the app settings in Nextcloud

You can set the language from the app settings in Nextcloud

I assume that you mean the settings page under "administrative settings"?
That page is not available to users and I think this is a global setting. In my case that is set to auto but it's the same language regardless of the users' personal language settings.
I did not put it in "offline mode" btw. All settings are as they were at installation.

I've tried the auto language settings and it works, the editor language is changed based on the user personal settings -> Language:

Screenshot 2023-05-12 at 6 26 41 PM
Screenshot 2023-05-12 at 6 26 25 PM
Screenshot 2023-05-12 at 6 26 02 PM

This bug only exists with Simplified Chinese environment
The reason is that the language code provided by nextcloud is zh_CN
And drawio uses zh
Now I can only enable it globally Simplified Chinese
Above via Google Translate