mycroft.conffile. Using the Configuration Manager we can set the language by running:
locale. Within these directories is a directory for each of the languages the Skill supports, named after the BCP-47 language code for the language - such as
en-usfor American English and
pt-brfor Brazilian Portuguese.
vocabfiles on the Mycroft Translate platform. When significant progress has been made on a language in Mycroft Translate, the translations are automatically added to Skills.
vocabfiles for a Skill on your own device if you need to. Each Skill is in it's own directory on your device at
mycroft-corealso requires localization, in particular to extract dates and numbers.
parse_LANG.py- this file parses large numbers, extracts dates and times in formats specific to the language, and handles definite articles such as 'a, an' etc.
format_LANG.py- this file formats cardinal and ordinal numbers, and helps to handle pronunciation of complex phrases involving decimals and fractions. Depending on the language, this file will also help format days of the week and other complex date and time phrasing.
mycroft.conffile for Italian users might look like: