Skip to content

Add Spanish (es) translation - #114

Merged
Mahmud0808 merged 2 commits into
Mahmud0808:masterfrom
Lxchoooo:feat/spanish-translation
Nov 3, 2026
Merged

Mahmud0808 merged 2 commits into
Mahmud0808:masterfrom
Lxchoooo:feat/spanish-translation

Conversation

@Lxchoooo

@Lxchoooo Lxchoooo commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Translated the app into Spanish. I use TeleDrive with my phone in Spanish and the interface was all English, so I went through the strings and did it.

values-es in the three modules that carry resources:

  • ui/src/commonMain/composeResources/values-es/strings.xml
  • android/src/main/res/values-es/strings.xml, plus plurals.xml
  • desktop/src/main/composeResources/values-es/strings.xml

I also added AppLanguage.SPANISH so Spanish shows up under Settings → Language instead of only being picked up from the system locale. That needed the locale mapping in TeleDriveApp.kt, a branch in the language row of SettingsSectionScreen.kt, and one more entry in language_labels for each existing locale — that array is zipped with AppLanguage.entries, so they have to stay the same length.

It's neutral Spanish rather than a regional variant, so it reads the same in Spain and in Latin America.

One thing I ran into that isn't related to this PR: values-pt-rBR, values-ru and values-zh-rCN are each missing settings_debug_log_empty, settings_share_debug_log and settings_share_debug_log_subtitle, so those three show in English. I left them alone.

Añade values-es en los tres módulos con recursos de texto (ui, android, desktop), incluyendo plurales y etiquetas de los selectores.
Suma AppLanguage.SPANISH, su mapeo de locale en Compose y la etiqueta en Ajustes.
@Lxchoooo
Lxchoooo marked this pull request as ready for review November 2, 2026 04:01
@Lxchoooo
Lxchoooo force-pushed the feat/spanish-translation branch from 72eef24 to fc9715f Compare November 2, 2026 04:14
@Mahmud0808
Mahmud0808 merged commit 916ba8b into Mahmud0808:master Nov 3, 2026
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.

2 participants