Internationalization is not working

According to the official website to the document was written, the function did not take effect.


What seems to be the problem?

@Dennis you will likely see the issue in your backend log. The nls.en.json and nls.zh-cn.json will not successfully resolve, since they are in the src folder of your app, while the compiled ts files are actually in the lib folder. You should move them to a common folder to improve maintainability, see theia/packages/core/i18n at master · eclipse-theia/theia · GitHub

Oh, there’s also another issue, the LocalizationContribution should be bound in the node part of your server, not in the browser.

@msujew Thank you very much for your explanation. The problem has been solved