Since the current BrowserNX sample app supports just English and Japanese, here is some information that you can use to support other languages:
The sample app utilizes "i18next" for multi-languages support. You can add another language by adding locales file and deploying the file to the specific directory.
Please try the following steps:
- Copy sample-app\src\main\webapp\js\locales\dapi.en.json to \sample-app\src\main\webapp\js\locales\dapi.fr.js
- Translate the message parts in dapi.fr.js (Never modify the keys definitions)
- Change "lng" value to support multi languages in the scanner_app.html:
<Before> lng: ( ricoh.dapi.navigator.language === "ja" ) ? "ja" : "en",
<After> lng: ricoh.dapi.navigator.language,
Keep in mind that some of the text on the screen like "Sample Scanner Application : Email", *Enter mail address", etc. is hard coded in English. Please review the scanner.html code. If you need to support fully language support, you'll need to modify the hard coded portion with an i18n base implementation.