3.3 Application Language Configuration - mmig/mmir GitHub Wiki

Application Language Configuration (www/config/languages)

MMIR is designed to provide an easy-to-use and extensible framework for localizing your application for languages other than English/German or for providing multi-language support in your application. In the following, we refer to this process also as "internationalization".

In MMIR, support for internationalization is provided by a mechanism for abstracting all string-messages, static text in your views, etc. – i.e. separating it from your application code. This is done by creating dictionaries for the targeted languages. For example, if you want to support French in your application, you should define a folder fr in config/languages where you create your French dictionary. Dictionaries are well-formatted JSON-Files. The MMIR StarterKit has two example dictionaries for English and German. For more details on creating a new dictionary and using it in your application see section Add a new Dictionary.

The language directories also hold the grammar definitions for parsing speech input: grammar.json.

The grammar file contain the speech grammar in a well-formed JSON format. If you intent to use speech recognition in your application, you should also provide a grammar file for each language. For more details see Add a new Grammar.

The file speaker.json contains the configuration for the text-to-speech (TTS) component, e.g. which voice should be used when synthesizing to text to audio-output.

NOTE: the details for this configuration may be subject to change.


< previous: "Application Configuration" | next: "Application State Definitions" >