Skip to Content

How to call multiple i18n files dynamically based on user action in UI5?

Hi all,

As, you all know Internationalization (i18n) files help us adapt our running application to our desired local language in UI5. Now, I have a UI5 application which consists of two i18n files (one for English & the other for Arabic). I also have a switch control which on turning to 'EN' should display the application in English language and if to 'AR' should display the application in Arabic Language. Initially, all the fields and their values get displayed in English. Now if I switch to Arabic, it doesn't get displayed in Arabic.Can someone help me with this?

You can download the sample code here in this link:

Sample code for i18n

i18nfile.png (17.5 kB)
Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    Apr 10, 2018 at 10:23 AM

    Hi Ramya,

    There are two changes you need to make:

    1. Change your file name to i18n_arproperties.

    2. In your state validation please use below code:

    if (state) {


    language: "en" });

    } else {


    language: "ar" });


    As it is arabic language screen will turn to right to left.

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Kiran,

      I misunderstood the file name to be i18n_arproperties since you mentioned like that in your previous comment.When I changed it to I was able to get it in Arabic Language.

      Thanks for your reply. It was really helpful.