Skip to content

Texts and translations

Jelle edited this page Nov 22, 2017 · 6 revisions

We are using https://atmospherejs.com/tap/i18n for internationalization.

Terminologie

:

Used Now Preferred choice
"Sign up" , "Register" "register"
"Sign in" , "Log in" Log in
keystore, wallet wallet

Blaze

All texts in the templates should be marked for translation, i.e. they should be like this:

{{_ "Click on this button" }}
{{_ "button-text-on-foo-form" }}

If you want to escape some HTML in the string you just need to use three parenthesis

{{{_ "text-with-html-inside" }}}`

Javascript

While in the .js files you can use:

_("text-to-translate")
_("Welcome to the club")

There is a file /i18n/en.i18n.json that contains the translations of these phrases:

{ 
  "text-to-translate": "This is the translated text that the user will see if he speaks english",
  "Click on this button: "Click more on this button!"
} 

Here is the file: https://github.com/Paratii-Video/paratii-player/blob/dev/i18n/en.i18n.json

TODO: phrases with place holders

Clone this wiki locally