Skip to Content

i18n globalization and formatter.js in SAPUI5

Hi all,

Using formatter and grouper function in SAPUI5 :


Create Mobile Application project in SAPUI5

Create one i18n folder inside webContent :

    • Inside i18n Folder put Message.bundle properties file// it should be in a form of property file
    • Put Some Variable name
    • for Ex:

                                2.PNG


Bind this variables to Views:

    • Go to Component.js file

                                              3.PNG  

    • Create one view and i18nModel variiable.
    • Bind that messagebundle to “i18n”
    • Go to First view,
    • /wp-content/uploads/2014/04/6_437184.png
    • Here i am using {i18n>ApplicationName},
    • Once you declare this, it will go to component.js, check that bundel and go to Messagebundle
    • Flow:
      • Flow to bind from view, component,message,outputscreen

                        /wp-content/uploads/2014/04/7_437185.png

Formatter:

/wp-content/uploads/2014/04/12_437186.png

Thanks,

Karthik A

3 Comments
You must be Logged on to comment or reply to a post.