To simply get access to i18n texts, I useally add this helper function to my BaseController.js
1 2 3 4 | // helper for direct access to the ResourceBundle getText() function getText : function ( sTextKey , aParamter ) { return this . getOwnerComponent ( ) . getModel ( "i18n" ) . getResourceBundle ( ) . getText ( sTextKey , aParamter ) } |
Texts can then be read in every controller with
1 2 | // i18n: objects=Amount of objects: {0} this . getText ( "objects" , [ iLength ] ) |