Skip to content

Releases: rdkcentral/Lightning-SDK

Lightning SDK 1.1.1

21 Oct 12:51
Compare
Choose a tag to compare

Features

  • Added module for text localization (#16).

Example:

Create translation file for your application:
static/locale/locale.json

{
"en": {"hello": "Hello"},
"pl": {"hello": "Witaj"}
}

Use in your javascript application:

ux.locale.setLanguage('en');
...
text: {text: ux.locale.tr.hello}