Guidance for Linguists

Linguists are HabitRPG contributors who help translate the site into different languages. The following article offers a series of tips, tricks, and basic information that will help linguists bring HabitRPG to new users from nations around the globe.

How to add a new language

 * Move all the old files from the /locales folders to the /locales_old folder.


 * New files must have a languageName property (translated or not in english? Italian or Italiano?) and might have a stringNotFound property.


 * The language folder under /locales must be named with a two letters code (en, es... not en_US or similar) and the code must match the one passed by the browser (we should find a table for that...)

How to translate a string

 * If the string is in a .jade file it can be accessed with


 * If the string is in a .js file it can be accessed with