Skip to Content
avatar image
Former Member

What is the right approach for a client side json model which supports multiple languages?

Hello everyone,

I'm currently working on a SAPUI5 application which is holding its application data in client side json files (just like in the SAP Fiori webshop reference application).Now I plan to support different languages for the data in this json file. So what am i supposed to do on a best practice perspective?

Do I have to make a separate json file for each language? If yes, how do I load the right json file according to the current language?

Is this the point where I have to use a database instead of a json model?

In general: What is the right approach for this purpose?

I hope my question is comprehensible and could be answered. Thank you in advance!

regards,

Marvin

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Oct 24, 2017 at 11:54 AM

    Hi,

    You're running that app on Fiori Launchpad?

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 24, 2017 at 01:28 PM

    If the data is for labels for the app, then you should use the i18n framework of UI5. If it is actually app data, then you should use a database and service to provide the data in different languages.

    Regards,

    Jamie

    Add comment
    10|10000 characters needed characters exceeded