Cadaxo UI5 Snippets #2 – i18n with parameters in XML View

Internationalization in UI5 – using i18n properties files – is the way to translate text into other languages. In this blog post I will share you the way, how to use i18n text with parameters in XML Views. Define i18n File /webapp/i18n/i18n.properties Using in XML View To display defined text with parameters you can use following snippet Set parameters in Controller Define JSON Model in manifest.json file Do not forget to define ‚myModel‘ as it […]

Weiter lesen

Cadaxo UI5 Snippets #1 – How to define constants

During the work on some Freestyle UI5 Apps I always look for a way how to save constants in Frontend. I would like to share following practice with you, which I use currently. Define JSON File with Constants I am going to create a new File in my project root folder. In this file all constant and values will be stored as a JSON Object. /webapp/model/constants.json     Define JSON Model in manifest.json file I […]

Weiter lesen