Lightning SDK 1.1.1
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}