mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-04-14 19:56:23 +00:00
fix(readme): remove text about translations wip
This commit is contained in:
parent
2b17b041ca
commit
f2bb1fd26e
1 changed files with 0 additions and 12 deletions
12
README.md
12
README.md
|
|
@ -1,15 +1,3 @@
|
|||
# Translations - WIP
|
||||
|
||||
## How to add a new language
|
||||
- All the old files in `/locales` has been moved to `/locales_old`.
|
||||
- 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 `env.t('string name here')`
|
||||
- If the string is in a `.js` file it can be accessed with `window.env.t('string name here')`
|
||||
|
||||
HabitRPG [](https://travis-ci.org/HabitRPG/habitrpg)
|
||||
===============
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue