Skip to content

Localization (Website)

Nicke Manarin edited this page Sep 15, 2020 · 14 revisions

❓ How can I localize/translate screentogif.com?

First thing, check if the translation isn't already done! Or up to date.

Currently, the only way to translate the texts of the website is by opening the en.json file provided below with your preferred text editor.

To check if the translation to your language isn't already available, visit ScreenToGif-Website > src > locales and check if there's a .json file with the locale name of your language.

📡 Acquiring the translatable texts

  1. Visit this link to open the English texts to translate (On this link, press Right-click > Save link as to save the text).
  2. Copy the text to your preferred text editor or download the file if your browser prompts you to do so.
  3. If saving the text, please use the UTF-8 encoding.

✏ Translating

It looks easy, but there's a bunch of texts to translate. If you feel like there's too much texts, you can translate partially and let others as it is. Any help is valuable, so thank you for your contribution!

The most important parts to be translated are:

  • Navigation - It's the top bar, with links to other pages.
  • Home
  • Downloads

The second most important ones are:

  • Contact
  • Donation
  • Screenshots
  • Footer

It's okay if you can only translate a small portion of the texts. Non translated texts will default to English. :)

You just need to translate the content inside the double quotes:

"title": "Share",

Example, English to Brazilian Portuguese.

"title": "Compartilhar",

The "title": is the key to the text translation, the comma after the translatable text is required if there's another line of text afterwards.

Some texts have special characters which should stay in the translated version:

"follow": "<b>Follow</b> the project", In this case, the text inside the <b> tag will be rendered in bold.
"icons-by": "Icons by {0}", In this example, the {0} will be replaced by the website with a dynamic and non-translatable text.

📩 After it's done

You can send the lang.js file as attachment to nicke@outlook.com.br.
Thank you for your help :)