Skip to content

Translations

Tim Weißenfels edited this page Apr 13, 2020 · 6 revisions

Tabs Aside supports i18n internationalization.

Want to help translate the extension?

All strings are located in src/_locales/en/messages.json. Follow the MDN documentation and create a new folder and messages.json for your language. Any help with translations is welcomed. For new languages please submit it in form of a pull request. If you do not know how to use git you can also send the translated file via E-Mail or Telegram.

Example

The contents of messages.json look like this:

...
"sidebar_session_remove": {
    "message": "remove session",
    "description": "Session options (...) menu item to remove session"
},
...

Here "sidebar_session_remove" is the key/identifier used by the code to reference the string and the "message" is the string that is actually displayed. The description field is not always set, it can offer some hints for translators regarding the content of the message or where it is used in the extension. All you have to do is translate the "message", for example when translating to German:

...
"sidebar_session_remove": {
    "message": "Session löschen"
},
...

You do not have to translate all strings, if a string is missing in your locale it will fallback to English (for that string). You can find more details about this file structure on the linked MDN article.


There are tools to assist the translation process, e.g. https://github.com/Lusito/web-ext-translator

If you need help with anything please get in touch:

Clone this wiki locally