Skip to content

feat(i18n): add regional Spanish locales - #1017

Open
yxkAwaken wants to merge 1 commit into
siteboon:mainfrom
yxkAwaken:feat/spanish-locales
Open

feat(i18n): add regional Spanish locales#1017
yxkAwaken wants to merge 1 commit into
siteboon:mainfrom
yxkAwaken:feat/spanish-locales

Conversation

@yxkAwaken

@yxkAwaken yxkAwaken commented Jul 14, 2026

Copy link
Copy Markdown

Summary

  • add adjacent Spain Spanish (es-ES) and Latin American Spanish (es-419) language options
  • register independent translations for all seven UI namespaces and preserve every English key/interpolation token
  • widen both language selectors so the regional names remain fully visible
  • add regression coverage for locale completeness, runtime switching, persistence, and selector width

Product context

Implements the regional Spanish behavior described in the Feishu PRD:
https://awaken-intelligence.feishu.cn/wiki/CSoawT8pliSFFuk7s8Tc5x2gnLe

Verification

  • 18/18 Node tests pass
  • npm run typecheck
  • npm run build
  • npm run lint (0 errors; existing repository warnings only)
  • Playwright browser check at 1440x900: both labels visible, es-419 persisted, no page errors

Summary by CodeRabbit

  • New Features

    • Added Spanish (Spain) and Spanish (Latin America) as selectable languages.
    • Added comprehensive regional Spanish translations across authentication, chat, editor, settings, sidebar, and task-management interfaces.
  • UI Improvements

    • Improved language selector sizing for compact and full settings layouts.
  • Tests

    • Added coverage verifying translation completeness, regional differences, language switching, and selector styling.

@coderabbitai

coderabbitai Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 2ff35ee2-8e5e-41ca-8394-5a189d2fa784

📥 Commits

Reviewing files that changed from the base of the PR and between 038d960 and f9b48d6.

📒 Files selected for processing (20)
  • src/i18n/config.js
  • src/i18n/languages.js
  • src/i18n/languages.test.js
  • src/i18n/locales/es-419/auth.json
  • src/i18n/locales/es-419/chat.json
  • src/i18n/locales/es-419/codeEditor.json
  • src/i18n/locales/es-419/common.json
  • src/i18n/locales/es-419/settings.json
  • src/i18n/locales/es-419/sidebar.json
  • src/i18n/locales/es-419/tasks.json
  • src/i18n/locales/es-ES/auth.json
  • src/i18n/locales/es-ES/chat.json
  • src/i18n/locales/es-ES/codeEditor.json
  • src/i18n/locales/es-ES/common.json
  • src/i18n/locales/es-ES/settings.json
  • src/i18n/locales/es-ES/sidebar.json
  • src/i18n/locales/es-ES/tasks.json
  • src/i18n/spanishLocales.test.js
  • src/shared/view/ui/LanguageSelector.test.tsx
  • src/shared/view/ui/LanguageSelector.tsx

📝 Walkthrough

Walkthrough

Adds fully translated es-ES and es-419 locales, registers them with i18next, exposes both in language selection, validates translation parity and switching, and adjusts language selector widths.

Changes

Spanish localization

Layer / File(s) Summary
Locale registration and language entries
src/i18n/config.js, src/i18n/languages.js
Registers both regional Spanish resource bundles and adds their language metadata.
Latin American Spanish catalogs
src/i18n/locales/es-419/*
Adds translated authentication, chat, editor, common, settings, sidebar, and task-management strings.
Spain Spanish catalogs
src/i18n/locales/es-ES/*
Adds corresponding Spanish translations for all supported namespaces.
Locale and selector validation
src/i18n/languages.test.js, src/i18n/spanishLocales.test.js, src/shared/view/ui/LanguageSelector.*
Tests language metadata, translation keys, interpolation tokens, regional differences, language switching, and selector width variants.

Possibly related PRs

Suggested reviewers: blackmammoth

Poem

Two Spanish breezes join the nest,
Spain and Latin lands in rest.
New words flutter, keys align,
Selectors stretch in tidy design.
The rabbit hops through every phrase—
¡Qué localization-filled days!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely summarizes the main change: adding regional Spanish i18n locales.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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