Skip to content

chore(translations): Add Spanish translation - #1032

Open
PedroFlores199 wants to merge 1 commit into
Nicxe:devfrom
PedroFlores199:add-es-translation
Open

PedroFlores199 wants to merge 1 commit into
Nicxe:devfrom
PedroFlores199:add-es-translation

Conversation

@PedroFlores199

Copy link
Copy Markdown

Summary

Completes the Spanish (es) translation of the integration: custom_components/f1_sensor/translations/es.json, which until now was an empty catalog ({}), translated from en.json.

All 219 values are translated: device triggers, config/options/reauth flows, repairs, entity names and states, notifications and the clear_race_control_log action. Wording follows Home Assistant's Spanish terms (dispositivo, entidad, integración, panel, tarjeta, automatización, entrada de configuración) and the usual Formula 1 terms in Spain (parrilla de salida, coche de seguridad, Dirección de carrera, boxes, bandera amarilla/roja, modo adelantamiento).

The live / development operation mode values are kept in English in the descriptions because the selector shows them untranslated.

Testing

Checked locally against en.json:

  • Same keys in the same order (347 keys, 219 values)
  • Same placeholders in every value ({expires_at}, {removed_sensors}, {stale_resource_count}, {name}, {integration_url}, entity_id/entry_id names)
  • Valid JSON, 2-space indent, no blank values
  • python3 scripts/check_translations.py custom_components/f1_sensor/translations and python3 scripts/check_localization.py pass
  • node --experimental-vm-modules --test frontend-tests/unit/localization.test.mjs passes (4/4)

Not verified: the file was not loaded in a running Home Assistant, and the Playwright part of npm run test:translations was not run.

Checklist

  • Correct target branch (dev) and Conventional Commit (chore(translations): ...)
  • Relevant tests or Home Assistant checks pass (catalog checks and the localization unit test were run; Playwright was not, see Testing)
  • English source text is untouched; this fills the existing Spanish file, which Weblate can keep managing from here
  • No breaking changes

This branch has not been deployed

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant