#7253·stash

Add Kiswahili (Swahili, sw-KE) language translation

Author: Roy-WanyoikeCreated Sep 22, 2026Updated Sep 23, 2026
Labelsfeature request

Describe the feature you'd like

Add Kiswahili (Swahili) as a supported UI language, using the BCP 47 locale code sw-KE and following the established pattern for Preview languages (see commit 63b11328 for the recent Arabic addition and PR #3176 for the dual-map registry pattern).

Concretely:

  1. Add ui/v2.5/src/locales/sw-KE.json — a translation file keyed identically to en-GB.json. Marked as a Preview language initially; incomplete strings fall back to en-GB per the documented behaviour in ui/v2.5/src/locales/README.md.
  2. Register sw in the localeCountries map and swKE in the localeLoader map of ui/v2.5/src/locales/index.ts. (i18n-iso-countries ships langs/sw.json, so country-name localisation works.)
  3. Add <option value="sw-KE">Kiswahili (Kenya) (Preview)</option> to the language picker in ui/v2.5/src/components/Settings/SettingsInterfacePanel/SettingsInterfacePanel.tsx.
  4. Add language.MustParse("sw-KE") to the collation matcher in internal/api/locale.go (consistent with #2586, #2601, #3176).

Describe the benefits this would bring to existing users

Kiswahili is a Bantu language spoken as a first or second language by an estimated 100+ million people across East and Central Africa. It is the official/national language of Kenya, Tanzania, and Uganda; widely spoken in the eastern Democratic Republic of the Congo, Rwanda, Burundi, Mozambique, Comoros, and parts of Somalia; and a working language of the African Union and the East African Community.

For existing East African Stash users, this means being able to use the application in their primary language — improving onboarding, reducing configuration mistakes, and making the tool accessible to users who are more comfortable in Kiswahili than in English. For the project, it broadens the reach into a region with fast-growing internet adoption and aligns with the existing commitment to wide language coverage (38 locales today, 16 of which started as Preview).

Is there an existing way to achieve this goal?

No. Stash currently ships 38 locales (af-ZA, ar, bg-BG, …, zh-TW) but none cover Kiswahili or any other Bantu/East-African language. The i18n architecture (react-intl v6 + the localeLoader/localeCountries dual-map registry in ui/v2.5/src/locales/index.ts) is explicitly designed to accept new locales via the pattern this issue proposes — there is no enum to extend on the backend (language: String in the GraphQL schema, free-form in internal/manager/config/config.go).

Have you searched for an existing open/closed issue?

  • I have searched for existing issues and none cover the core request of my proposal

(Search for "swahili", "kiswahili", "sw-KE", and "sw " in the issue tracker returned no prior request. The closest related issue is #1924 (i18n: Streamline Singular/Plural Nouns), which is about the broader refactor of countable noun handling across all locales — relevant as a follow-up, but not a substitute for adding the language itself.)

Additional context

I have opened PR #7252 implementing the four changes above. The translation file achieves full key parity with en-GB.json (1384 leaf keys, 271 top-level groups).

Translation policy followed:

  • Domain-specific stash jargon (Scene, Gallery, Performer, Studio, Tag, Marker, Group, Stash ID, Plugin, Scraper, Funscript, etc.) is kept as English loanwords — mirroring the convention ar.json uses for its own jargon.
  • Generic UI terms are translated to standard Kenyan/Tanzanian Swahili (Add → Ongeza, Delete → Futa, Save → Hifadhi, Cancel → Ghairi, Settings → Mipangilio, etc.).

The locale code sw-KE (rather than bare sw) is chosen to follow the dominant xx-YY convention used by 37 of 38 existing locales, match the picker display-label pattern (Português (Brasil), 한국어 (대한민국)), and leave room for a future sw-TZ variant. getLocaleCode("sw-KE") returns sw, which maps to i18n-iso-countries/langs/sw.json.

AI usage disclosure (per docs/AI_POLICY.md): the translation strings in #7252 were produced with AI assistance (Claude/GLM-5.2 via an agentic coding assistant), and this is disclosed in detail in the PR's AI Usage Disclosure section. I welcome community review by native Swahili speakers and am happy to wire the strings into the project's Weblate (Codeberg Translate) component so they can be iteratively refined — matching the workflow other languages have gone through.