SAP / ui5-webcomponents

UI5 Web Components - the enterprise-flavored sugar on top of native APIs! Build SAP Fiori user interfaces with the technology of your choice.
https://sap.github.io/ui5-webcomponents/
Apache License 2.0
1.5k stars 260 forks source link

How to setup internationalisation files #1128

Closed mehdijouan closed 4 years ago

mehdijouan commented 4 years ago

Describe the documentation issue

Description of the issue I found a documentation on how to import your i18n module but, I didn't found where to put my properties files and what is the expected format.

Could you help me on that ?

ilhan007 commented 4 years ago

Hello @mehdijouan

Do you have "slack" to discuss your issue?

We have a slack channel, called "webcomponents" and there is a link to slack at the bottom of the project readme(link).

ilhan007 commented 4 years ago

Hello @mehdijouan

You can find out text entries (for example for package "main") here: https://github.com/SAP/ui5-webcomponents/tree/master/packages/main/src/i18n

All the text entries, that need translations, are listed in the messagebundle.properties file. We need this format, because the translation setup we use rely on this file and based on it generates messagebundle_{languagecode}.properties for each language we support with all the texts translated (these files you can find in the same folder).

I assume you are developing you own web component(s) extending the base UI5Element class (or some of the rest)? Are you using our build tooling?

Best, ilhan

ilhan007 commented 4 years ago

Hello @mehdijouan I am closing the issue due to inactivity, if you are still interested in the i18n, reopen the issue any time and please answer the questions above in order to help you.