ui/translations
Westly Wright 95406e42d4
Tweak import launch ux
rancher/rancher#28007
2020-07-28 11:36:51 -07:00
..
README.md
ar-sa.yaml minor translation issues 2020-03-13 11:19:13 -07:00
de-de.yaml sync translations 2020-05-28 12:01:42 -07:00
en-us.yaml Tweak import launch ux 2020-07-28 11:36:51 -07:00
es-es.yaml sync translations 2020-05-28 12:01:42 -07:00
fa-ir.yaml minor translation issues 2020-03-13 11:19:13 -07:00
fr-fr.yaml sync translations 2020-05-28 12:01:42 -07:00
hu-hu.yaml Sync translations from crowdin 2020-03-13 10:59:56 -07:00
it-it.yaml sync translations 2020-05-28 12:01:42 -07:00
ja-jp.yaml sync translations 2020-05-28 12:01:42 -07:00
ko-kr.yaml sync translations 2020-05-28 12:01:42 -07:00
nb-no.yaml Sync translations from crowdin 2020-03-13 10:59:56 -07:00
nl-nl.yaml Use external UI for Aliyun ACK cluster 2020-05-27 22:49:26 +08:00
none.yaml
pt-br.yaml sync translations 2020-05-28 12:01:42 -07:00
ru-ru.yaml sync translations 2020-05-28 12:01:42 -07:00
sh-hr.yaml sync translations 2020-05-28 12:01:42 -07:00
sv-se.yaml fixes for bugs 2019-12-09 12:19:36 -07:00
tr-tr.yaml sync translations 2020-05-28 12:01:42 -07:00
uk-ua.yaml sync translations 2020-05-28 12:01:42 -07:00
vi-vn.yaml Sync translations from crowdin 2020-03-13 10:59:56 -07:00
zh-hans.yaml Exposes edit for RKE2 imported clusters 2020-07-23 10:24:31 -07:00
zh-hant-tw.yaml Exposes edit for RKE2 imported clusters 2020-07-23 10:24:31 -07:00
zh-hant.yaml sync translation updates with pr to be closed 2020-05-28 12:03:00 -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.