Repository navigation
Translating
StremioK's menus, buttons and messages come in English and the languages listed in Settings ›
Appearance › Language. Each language is one plain file in the translations/
folder: you can correct one, or start a new one, from GitHub without touching the app's code.
- Open
translations/<code>.jsonon GitHub (es.jsonfor Spanish,pt-BR.jsonfor Brazilian Portuguese) and choose Edit. - Find the English phrase (on the left) and change its translation (on the right).
- Propose the change; GitHub opens a pull request for it.
- Copy
translations/template.jsontotranslations/<code>.json: a language code such asfr, or with its country, such asfr-CA. - Fill in its
languagepart (below), then translate the phrases. - Leave a phrase as
""until it's done: it shows in English meanwhile. A language is offered in Settings once 90% of its phrases are translated, so it can come in more than one go.
language part |
What it holds |
|---|---|
code |
The file's own name, without .json
|
name |
The language's name in itself (Français), as Settings lists it |
matches |
The TV languages that pick it under Automatic, such as ["fr"] for every French |
plural |
How numbers change the words that follow them (below) |
direction |
"rtl" for a language written right to left (Arabic, Hebrew); left out otherwise |
plural |
Forms | Languages |
|---|---|---|
"one" |
one (1), other | English, Spanish, Catalan, German, Italian, Finnish |
"zero-one" |
one (0 and 1), other | Portuguese, French, Hindi |
"none" |
other (always) | Japanese, Korean, Chinese, Turkish |
"slavic" |
one (1, 21, 31…), few (2–4, 22–24…), many (the rest) | Russian, Ukrainian |
"polish" |
one (1), few (2–4, 22–24…), many (the rest) | Polish |
"hebrew" |
one (1), two (2), other | Hebrew |
"arabic" |
zero, one, two, few (3–10), many (11–99), other | Arabic |
- Keep each
{name}exactly as written: StremioK puts a title, a number or a name there. It can move within the sentence. - Keep a space at the start or end of a phrase if the English has one: it joins two pieces.
- Keep symbols such as
›,·and emoji; menu paths (Settings › Content) use the translated names of those screens. - Pairs such as
"{n} episode"and"{n} episodes"are the singular and plural of one phrase. Where a language has more forms, the plural's translation lists them by name:"{n} episodes": { "few": "{n} odcinki", "many": "{n} odcinków" }. - Never change the English side: StremioK finds a phrase by its exact English text.
- Stay about as short as the English where you can: buttons and rows on a TV have little room.
With Node.js installed, run node translations/build.js from the project's
folder. It lists anything wrong (a {name} changed or missing, a phrase StremioK doesn't show,
a misspelled language part) and how much of each language is translated. When nothing is wrong
it also updates what the TV loads (js/lang/), so commit those files with yours.
When StremioK gains new phrases, they're added to every language's file as ""; a phrase
reworded in English is reported as no longer shown, and its new wording waits to be translated.
User guide
- Getting started
- Getting around
- Finding something to watch
- Title pages
- Choosing a source
- While it plays
- Subtitles and audio
- IPTV and radio
- YouTube
- Your USB drive
- A network folder
- Your media server
- Trakt
- Your Stremio account
- Other apps (where to watch)
Settings reference
Troubleshooting
- Where to look
- Reporting a problem
- Installing
- Addons
- No sources, or none that play
- A source doesn't start
- Playback
- Audio and subtitles
- Skip prompts
- YouTube and trailers
- Home
- IPTV
- Trakt
- USB drive
- Network folders
- Media servers
- Nuvio plugins
- Other apps
- Storage
- Home bar preview
Technical reference
- Starting up and Home rows
- Calendar
- Discover and Search
- Title pages
- Sources
- Playback
- Subtitles
- Audio
- Formats
- IPTV
- Addons
- Trakt
- Stremio account
- USB drives
- Network folders
- Media servers
- Storage
- Home bar preview
- YouTube
- Limits on what's downloaded
- The service
Also