Skip to content

Translating

rgdevment edited this page Dec 2, 2026 · 4 revisions

Translating TaBear

Source of truth: TRANSLATING.md in the repository. This page says the same.

You can bring TaBear to your language, or fix a translation that reads wrong, without writing any code. A translation is a folder of text files, and you can write it and send it from the GitHub website. It takes an afternoon at most, and you can stop halfway: what is not translated simply shows in the base language or in English.


What you need

  • A free GitHub account.
  • The language you want to translate into, and a bit of patience.

You do not need to install anything, and translating never touches code.


The folder

Every language is a folder in locales, named after the language code: es for Spanish, pt-BR for Brazilian Portuguese, es-CL for Chilean Spanish. Find your code in the list of language tags; a plain two-letter code (de, fr, it) is right unless your language needs a regional version.

The whole job is: copy the locales/en folder as locales/<your code> and translate what is inside. A new folder in locales adds the language to the picker in Settings; nothing else is needed.

Inside, the folder has these files:

File What it holds
meta.json The name of your language, written in your language ("name": "Deutsch"). It is what the language picker shows.
app/settings.json The Settings window. The biggest file.
app/settings.macos.json The same Settings texts, worded for macOS.
shell/picker.json The picker: the window that opens for a link.
shell/tray.json The tray (menu bar) menu.
shell/notices.json Notices and messages the app shows.
shell/update.json Update messages.
shell/report.json The problem report window.

A file named <name>.<platform>.json, like settings.macos.json, is a variant: it repeats some keys of <name>.json with the wording for that system, and only those keys. Translate it like the others.

The en folder is the reference: if a file is added there later, every language gets the same one.

Every file must exist in your folder, even if you translate only a few lines of it: if one is missing, the Locales check says which. What you do not translate inside a file can simply stay out.

Inside a file, each line looks like this:

"save": "Save",

The left side ("save") is the key, the app's name for that text. The right side ("Save") is the value, the text a person reads. You translate the values and only the values.

"save": "Guardar",

Rules

  1. Leave the keys exactly as they are. If a key changes, the app no longer finds the text.

  2. Keep the quotes, commas and braces. Each line ends with a comma, except the last one in its group. Do not add or remove any.

  3. Keep every {{name}} as it is. Those are blanks the app fills in with a browser name, a number or an address. Translate the words around them and put the blank where it reads naturally in your language:

    "opening": "Opening {{browser}}"

    becomes, for example, "opening": "Abriendo {{browser}}". Do not translate what is inside the braces and do not delete it.

  4. meta.json needs a name, the name of your language written in your own language: Español, Deutsch, Português (Brasil).

  5. Plurals. Some texts come in two forms, ending in _one and _other:

    "profiles_one": "{{count}} profile",
    "profiles_other": "{{count}} profiles",

    The app picks the form by the number. Write the text for exactly one in _one and for any other number in _other. Some languages need more forms (_few, _many, _zero, _two); if yours does, add them next to these, named in the same way. They are listed per language here.

  6. Keys are optional. Delete the whole line, or leave it in English: what you do not translate shows in the base language (es-CL falls back to es) and, failing that, in English. A half-done translation already works and can be finished later by you or someone else.

  7. Keep it short. The text sits inside buttons and small windows. If your translation is much longer than the English, prefer a shorter wording.

  8. Use one neutral register, the way a program would speak to anyone, with no slang and no regional words.

The release notes inside the app (app/src/news.json) stay in English and Spanish; a new language does not have to translate them.

A regional variant

To adapt a language to one country (es-CL on top of es, pt-PT on top of pt), make a folder with the full code and translate only what differs:

  • meta.json still needs its own name: "name": "Español (Chile)".
  • Every other file can hold just {} (two braces and nothing else): it inherits everything from the base language. Add a few lines to a file to override only those texts.

The base language (es) must exist in locales; whatever the variant does not say comes from it.


Send it from the GitHub website

You need nothing on your computer: a browser and your GitHub account.

A new language

  1. Open the locales/en folder. You will copy its files one by one: meta.json first, then those in app and shell.
  2. Open the first file and copy its whole text with the copy button above the file (the two overlapping squares).
  3. Go back to locales and choose Add file → Create new file.
  4. In the name box type locales/, your code and the file's path, for example locales/de/meta.json. Each / you type makes a folder, so locales/de/app/settings.json creates de and app on its own.
  5. Paste the text and translate the values (in meta.json, set name).
  6. Press Commit changes…. For the first file, choose Create a new branch for this commit and start a pull request, give the branch a name such as add-german and press Propose changes. On the next page press Create pull request.
  7. For the rest of the files, repeat steps 2 to 5 on the same branch: open the branch selector at the top left of the page, choose your branch (it lives in your fork), and when you press Commit changes… keep Commit directly to the add-german branch. Each file you add shows up in your pull request on its own.

GitHub will ask to fork the project the first time; accept, it is how a contribution from a person outside the project works. Give the pull request a short title such as feat(i18n): add German. A pull request that still lacks files is fine: the Locales check says which ones, and you can finish whenever you want.

If you already have the files on your computer, there is a shortcut: on your branch choose Add file → Upload files and drag the whole folder in.

A correction

  1. Open the file you want to fix in your language's folder, for example locales/de/shell/picker.json.
  2. Press the pencil icon (Edit this file) at the top right.
  3. Change the values that read wrong, and nothing else.
  4. Press Commit changes…, write a short title such as fix(i18n): correct the German wording of the update notice, choose Create a new branch for this commit and start a pull request, and press Propose changes, then Create pull request.

If you would rather talk first, or you are not sure a text is wrong, open a translation issue instead.

The first time you contribute

Every contributor signs a one-time agreement (CLA). A bot comments on your pull request with the sentence to reply with; it takes a minute, and your translation stays yours (you keep the copyright).


What the checks say

When you open the pull request, the Locales check reads every folder in locales. If something is wrong, it marks the file and the line in the Files changed tab of your pull request, and the Checks tab lists every message. Fix it by pressing the pencil on the file in your pull request: the check runs again on its own. Each message names the file, the key and the line, and says what to do.

It says What it means What to do
The file is not valid JSON. followed by a hint A quote, comma, brace or backslash is missing or extra, so the file cannot be read. The hint says which: «a comma is missing at the end of this line», «a comma after the last item of a section», «a text starts here but its closing quote (") is missing», «a curly quote was found», «single quotes are not allowed», «a note (// or /* */) was found». Go to the line it names and fix that one thing. Texts go between plain double quotes ", and every line but the last in its section ends with a comma.
The file “…” is missing. Your folder lacks one of the files that en has. Create it with that name and path, even if it only holds {}.
The folder name “…” is not a language code. The folder is named wrongly. It may add Did you mean “…”?. Rename it as es, fr or pt-BR: language in lowercase, region in capitals after a dash.
“meta.json” needs a “name” … or “name” must be a text … The language has no name for the picker. Fill in name in meta.json with your language's name, written in that language.
“…” does not exist in en (probably a typo in the key). You changed a key, or kept one that no longer exists. It may add Did you mean “…”?. Put the key back as in the English file, or delete the line. Keys cannot be added or renamed in a translation.
“…” is missing {{name}}. The English text has … A text lost, renamed or translated one of its blanks. Copy the {{name}} from the English text into your translation, spelled exactly the same.
“…” has {{name}}, which English does not use A text has a blank the English does not have, often a spelling slip. Delete it, or fix the spelling to match the English one.
has a lone { or } or a variable is one word like {{appName}} A brace was left over, or a blank was written with a space or an empty {}. Write blanks with two braces and the name, as in the English text.
The key “…” appears twice in the same section. A line was pasted twice. Keep only one of them.
is a section in en / is a text in en A text became a section or the other way round, usually after deleting a brace. Make it look like the English file.
holds a number (or a list, or true or false) A value is not a text between quotes. Put it between quotes.

Two things are not errors:

  • Missing texts. The check counts how much is translated (40% translated) and lists what still shows in the base language or in English as a warning. A translation with gaps is accepted. Only a missing file is an error.
  • Notes such as is a plural form (“few”) that “de” does not use, so it is ignored: you wrote a plural form your language has no need of. It does no harm; leave it or delete it.

You do not need anything to check your work: the pull request does it for you. If you like, with Node installed and the project downloaded you can run the same check on your computer:

npm run locales

If a message is unclear, leave a comment on your pull request and a maintainer will help.


Rules for the pull request

  • One language per pull request, and only files in locales.
  • Keep the title in English, in the form feat(i18n): add German or fix(i18n): correct the German wording of the update notice: it becomes the line in the project's history.
  • The description can be short, and in English or in the language you are translating. Say what you translated and, for a correction, what read wrong.
  • Do not put configuration or notes of any tool in the pull request, only the translation.
  • Your translation is released under the project's licence; see License and Rights.

Thank you. A translation is the most useful thing a person who does not code can give to TaBear.

Clone this wiki locally