For now Datafari is preconfigured for English, French, Italian, Arabic and , Brazilian Portuguese and Russian. Still, its aim is to have a global reach, so the steps to enable additional languages is rather straightforward and can be found here. In case you did it, please contact us so that we can integrate it in the next releases of Datafari !
...
- The folder to store the i18n config files is here : datafari/WebContent/js/AjaxFranceLabs/locale. Just open it and add your new language. For example if you add German translation, put here a file named de.json.
Add the new langage in the Java class com.francelabs.datafari.utils.LanguageUtils.java :
Code Block public static final List<String> availableLanguages = Arrays.asList("en", "fr", "it", "ar", "ru");
Add the new language in WebContent/js/AjaxFranceLabs/i18njs.js :
Code Block availableLanguages : [ 'en', 'fr', 'it', 'ar', 'ru' ],
Add the new language in WebContent/js/parameters.js :
Code Block availableLanguages : [ 'en', 'fr', 'it', 'ar', 'ru' ],
Finally launch the ant script datafari-dev.xml to take into Datafari the modifications (if you are in development mode).
For the internationalization of the language detection, indexing and search by the Datafari Solr engine, follow these steps:
...