ui/translations
loganhz 37a9458a06 Add missing gce-pd fileds 2019-09-19 09:10:20 +08:00
..
README.md Load IntlPolyfill for Safari (rancher/rancher#5058, rancher/rancher#5092) 2016-06-17 01:02:04 -07:00
ar-sa.yaml Fix broken translation 2019-06-17 10:16:00 -07:00
de-de.yaml Add more context to the title of deletion modals 2019-09-13 12:47:38 -07:00
en-us.yaml Add missing gce-pd fileds 2019-09-19 09:10:20 +08:00
es-es.yaml Add more context to the title of deletion modals 2019-09-13 12:47:38 -07:00
fa-ir.yaml Fix broken translation 2019-06-17 10:16:00 -07:00
fr-fr.yaml Add more context to the title of deletion modals 2019-09-13 12:47:38 -07:00
hu-hu.yaml Add more context to the title of deletion modals 2019-09-13 12:47:38 -07:00
it-it.yaml Fix broken translation 2019-06-17 10:16:00 -07:00
ja-jp.yaml Add more context to the title of deletion modals 2019-09-13 12:47:38 -07:00
ko-kr.yaml Add more context to the title of deletion modals 2019-09-13 12:47:38 -07:00
nb-no.yaml Add more context to the title of deletion modals 2019-09-13 12:47:38 -07:00
nl-nl.yaml Fix broken translation 2019-06-17 10:16:00 -07:00
none.yaml Lang, header, merge fixes (#632) 2016-05-02 17:36:17 -07:00
pt-br.yaml Add more context to the title of deletion modals 2019-09-13 12:47:38 -07:00
ru-ru.yaml Add more context to the title of deletion modals 2019-09-13 12:47:38 -07:00
sh-hr.yaml Fix broken translation 2019-06-17 10:16:00 -07:00
sv-se.yaml Fix broken translation 2019-06-17 10:16:00 -07:00
tr-tr.yaml Add more context to the title of deletion modals 2019-09-13 12:47:38 -07:00
uk-ua.yaml Add more context to the title of deletion modals 2019-09-13 12:47:38 -07:00
vi-vn.yaml Fix broken translation 2019-06-17 10:16:00 -07:00
zh-hans.yaml update zh-hans 2019-09-15 19:56:39 +08:00
zh-hant.yaml Add more context to the title of deletion modals 2019-09-13 12:47:38 -07:00

README.md

Internationalization

Every piece of localizable text is put into the translation files here.

  • Files must be named matching a locale in the list at https://github.com/andyearnshaw/Intl.js/tree/master/locale-data/jsonp (with a .yaml extension).`
  • The code refers to the appropriate key and it is looked up for the current language to get the string to be displayed.
  • If the key does not exist in the current language, the English value is used as a fallback.
  • If there is no English value either, the un-translated key is shown

Pluralization

Variables can be pluralized with the syntax:

You have {numPhotos, plural,
  =0 {no photos.}
  =1 {one photo.}
  other {# photos.}}

Docs

See ember-intl wiki for more info about supported features in translations, and ICU for more info about pluralization.

Testing

  • You can press shift+L to toggle between the current language and a special none language which will show the translation keys for every string.
  • When starting up the ember server, a warning will be printed for each key that is in en-us but missing from another language.