Revision as of 23:31, May 1, 2018 by Tsnarski (talk | contribs)
Jump to: navigation, search

Localization

Important
Offers plugin is defferent from other plugins because all the strings dispalyed in the UI are not hard coded and passed in via the Open command. Thus you will have to learn how localization works under the hood to get it working with offers.

Offers Localization Overview

Localization works by looking for specific strings containing @18n and replacing them with strings defined in your predefined localization JSON file. There are 2 things that you will need to set up to get everything working:

1) Pass in the appropriate @18n string to the open command 
2) Update your JSON internatianilization files. 

Open Command Usage

There are 3 ways you can pass in a @18n string into the open command.

1)Fast and simple - '@i18n:title' This way you dont have to specify the plugin name and the widgets framework will automtically check the Offers plugin JSON file for a string with appropriate name.

2) Proper way - '@i18n:offers.title'

bla bla 

3) Advanced and Flexible - '@i18n:offers.offer1A.title'

nested json structures bla bla bla.

JSON definition

how to define variables in your JSON internatianilization file

Comments or questions about this documentation? Contact us for support!