Skip to Content
Author's profile photo Karthik Arjun

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

Assigned Tags

      3 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Nabheet Madan
      Nabheet Madan

      Hi Karthik

      Thanks for writing. If you have a detailed look at 10 exercises provided by DJ Adams all these things have been covered in detail.

      What is the difference?

      Nabheet

      Author's profile photo Karthik Arjun
      Karthik Arjun
      Blog Post Author

      Hi nabheet madan,

      Can you please share that link to me???

      Karthik A

      Author's profile photo Nabheet Madan
      Nabheet Madan