Changing the locale of the viewerΒΆ
It is possible to change your application to be in a different language (locale). This example will change the application locale to be French (fr).
Open up app.js
and add the following dependencies:
* @require GeoExt/locale/GeoExt-fr.js
* @require locale/fr.js
Next, add the following inside the main Ext.onReady(function() {
code block:
GeoExt.Lang.set("fr");
Restart the web application and reload the browser:
This only translates the internal application strings. Any static strings provided in app.js
such as “Layers” and “Map” would need to be translated into French as well, but all the content which is being generated by the Boundless SDK will be in French, provided a French translation is available.