on 05-12-2021 9:10 AM
Hi Community!
I am trying to externalize my texts to text bundles in a CAP Java application.
Therefore I followed this guide: https://cap.cloud.sap/docs/guides/i18n
I placed the text bundles like this within the project:
_i18n/i18n.properties
db/model.cds
srv/cds/annotations.cds
srv/cds/my-service.cds
...
However the generated Fiori Elements UI does not seem to recognize any of the texts. Is the i18n file in the wrong place or is there something else that needs to be added?
Thanks.
Solved my issue by adjusting the additional cds compile command that is needed for the oData v2 Adapter. Adding the language option -l all solved the problem.
<command>compile ${project.basedir} -s all -2 edmx-v2 -l all -o ${project.basedir}/src/main/resources/edmx/v2</command>
This way not only the default language is available, but all the languages, which is need for the Fiori Elements UI.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.