Skip to content

i18n: add Spanish translation - #310

Open
PedroFlores199 wants to merge 1 commit into
splitshotz:mainfrom
PedroFlores199:es-translation
Open

PedroFlores199 wants to merge 1 commit into
splitshotz:mainfrom
PedroFlores199:es-translation

Conversation

@PedroFlores199

Copy link
Copy Markdown

Adds a Spanish (es) translation of the interface and registers it as a supported locale.

  • ui-src/locales/es.json: all 956 keys of en.json translated (964 strings counting plural forms), same key order, {placeholders} untouched, plurals with one/other.
  • ui-src/locales/index.ts: imports es.json, adds it to LOCALES and labels it Español in LOCALE_LABELS.
  • vice/ui/scripts/app.js: the committed bundle now carries the Spanish locale, so test_bundle_carries_every_locale passes. I could not run npm run build here, so the Spanish module was added to the committed bundle directly, in the same format as the other locale modules; the next build regenerates it normally.

Notes:

  • Spanish from Spain, informal "tú" as is usual for apps. A system set to any Spanish variant (es-ES, es-MX…) picks it up through resolveLocale.
  • The voice phrases ("Vice, clip that", "Clip last 30 seconds", "Record that") are left in English in the help texts, since the speech model is English. "Clipping with Vice" is also left as is, because that is what Discord shows.
  • npm run i18n:check reports es: 97% (924/956). The remaining 32 are strings that are the same in Spanish (Vice, Discord, Flatpak, RAM, codec names, AZERTY/QWERTY…).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant