dosubot[bot] commented on issue #616:
URL: 
https://github.com/apache/incubator-hugegraph-toolchain/issues/616#issuecomment-2258451699

   <!-- Greeting -->
   Hello @sirine707 👋, I'm here to assist you with any bugs, questions, or 
contributions you may have for this repository.
   
   <!-- Answer -->
   The language change to English in HugeGraph Hubble when accessed via Docker 
might not be working because the Docker image of hugegraph-hubble is a 
convenience release for quick start and not an official distribution artifact. 
This could mean that certain features, such as language settings, might not be 
fully supported or properly configured in the Docker image 
<sup>[[1]](https://github.com/apache/incubator-hugegraph-doc/blob/master/content/en/docs/quickstart/hugegraph-hubble.md)</sup>.
   
   To manually set the default language to English, you can modify the 
`config.toml` file by setting the `defaultContentLanguage` parameter to `"en"`:
   
   ```toml
   # Language settings
   contentDir = "content/cn"
   defaultContentLanguage = "en"
   defaultContentLanguageInSubdir = false
   ```
   
   Additionally, ensure that the frontend language is set to English by 
modifying the `index.tsx` file. Set the `languageType` key in `localStorage` to 
`"en-US"`:
   
   ```javascript
   localStorage.setItem('languageType', 'en-US');
   ```
   
   This will ensure that the UI components use English as the default language 
<sup>[[2]](https://github.com/apache/incubator-hugegraph-doc/blob/master/config.toml)</sup><sup>[[3]](https://github.com/apache/incubator-hugegraph-toolchain/blob/master/hugegraph-hubble/hubble-fe/src/index.tsx)</sup>.
   
   
   <!-- Dosu Comment Footer -->
   *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to