mxp.plugins.LanguageSelector - geosolutions-it/MapStore GitHub Wiki
Needed Files
In order to use this plugin you need to include this files in the build.cfg:
src/mxp/plugins/LanguageSelector.js
NOTE: In the default configuration this is already done.
Plugin description
This plugin allow change the application's language.
Configuration Example
You can configure it adding this plugin with this configuration:
{
"ptype": "mxp_languageselector",
"actionTarget":{
"target": "north.tbar",
"index": 7
}
}
Languages Configuration
The default list of available languages is:
- English
- Français
- Italiano
- Deutsch
- Español
Languages can be configured using the 'data' object.
If no 'data' object is configured, the default settings are equals to the following configuration
{
"ptype": "mxp_languageselector",
"actionTarget":{
"target": "north.tbar",
"index": 7
},
"data":[
["en","English","","en","English language"],
["fr","Français","","fr","Franch language"],
["it","Italiano","","it","Italian language"],
["de","Deutsch","","de","Deutsch language"],
["es","Español","","es","Spanish language"]
]
}
For the languages to work they must be available in MapStore