Current language: English
Hello world!
PETER
Hi, I heard that you have developed an app that supports internationalization?
JESSY
That's right, the "Hello World!" text above is displayed in the current language.
PETER
Cool! How can I test it?
JESSY
You just need to go to the "Settings" app to the "Language and input" section. Then relaunch application.
PETER
Works well. How did you do it?
JESSY
It’s very easy in Tizen... In short, all you need is to create „locales” directory with subdirectories for each supported language. Inside subdirectories create language.js file with definitions for localized strings (key-value pairs). That’s all... web runtime will load the proper language.js file for the current locale. Oh... and in your app files you should use LANG_JSON_DATA global object to get the translation.
PETER
You were right, It’s really simple. Good Job!