I am trying to get localization enabled in a tizen web application for wearables. I am following https://developer.tizen.org/ko/development/guides/web-application/localization to get localization.
I have language.js set up for languages inside locales and a default one. The contents are generated by tizen studio and look like
TIZEN_L10N=
{
"todays_food_intake" : "Today's food intake",
"todays_water_intake" : "Today's water intake"
};
In my index.html, I have put <script src="language.js"></script>
inside the <head>
.
and trying to use it in divs as <h4 class="some-class">TIZEN_L10N['todays_food_intake']</h4>
But it does not seem to be working.
In the wearable app I am getting TIZEN_L10N['todays_food_intake'] and not the localized string.
What may I be missing.
PS: I am an Android dev.