Support reading translations from YAML files

Translations are loaded in JSON of YAML format, depending on the file extensions.