Skip to content

Instantly share code, notes, and snippets.

@Olical
Created January 19, 2014 14:31
Show Gist options
  • Select an option

  • Save Olical/8505704 to your computer and use it in GitHub Desktop.

Select an option

Save Olical/8505704 to your computer and use it in GitHub Desktop.
How to add a language to the trillek UI

First copy an existing language file, such as en.js from src/assets/js/trillek/i18n/. Rename and translate as you see fit.

Then open up src/assets/js/trillek/i18n/main.js and copy an existing config line, for example: .translations('en', require('./en')). Change the language code to point at your new file.

Now open up src/assets/js/trillek/config/default.js and add your new language code and translated label to the availableLanguages object. The full name should be written in the actual language it is for, so when it shows up in the selection list the user can actually find their language.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment