Repository navigation
fix(i18n): restore Spanish error-message diacritics #6999
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| Restored missing diacritics and inverted punctuation across the Spanish error-message locale (`válido`, `sesión`, `configuración`, `¿agente no encontrado?`, and similar), and corrected a few literal, unnatural phrasings alongside unit formatting for size limits. | ||
| Added regression assertions for representative accented translations so a future edit cannot silently strip them again (#6999) (@houko) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -226,6 +226,12 @@ mod tests { | |
| fn spanish_translation() { | ||
| let t = ErrorTranslator::new("es"); | ||
| assert_eq!(t.t("api-error-agent-not-found"), "Agente no encontrado"); | ||
| assert_eq!(t.t("api-error-agent-invalid-id"), "ID de agente no válido"); | ||
| assert_eq!(t.t("api-error-session-not-found"), "Sesión no encontrada"); | ||
| assert_eq!( | ||
| t.t("api-error-rate-limited"), | ||
| "Límite de solicitudes excedido. Inténtelo de nuevo más tarde." | ||
| ); | ||
| } | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Not a blocker per CLAUDE.md (no hard rule mandates one assertion per Fluent key), but per the "MANDATORY … missing test coverage" review criterion this repo applies to corrected strings, worth a maintainer call on whether to round out coverage before merge or accept the sampled set as sufficient. Leaving this for human judgment rather than unilaterally expanding someone else's test to ~24 asserts. Generated by Claude Code |
||
|
|
||
| #[test] | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commit
9994981("docs(changelog): add fragment for Spanish diacritics fix") has an author identity ofClaude <noreply@anthropic.com>.The commit message text itself is clean, but CLAUDE.md's
commit-msghook separately rejects the author identity (git var GIT_AUTHOR_IDENT) when it resolves to Claude/Anthropic, independent of message content.This will fail local
commit-msgverification for anyone who has runjust setup/cargo xtask setup, and violates the repo's no-AI-attribution policy even though the hook may not have been active for this push.Recommend the author amend this commit's author (and committer) identity to their own before merge, e.g.
git commit --amend --author="Name <email>"(and force-push their own branch, which is fine pre-review per CLAUDE.md).The other commit on this branch (
581e1f3, "fix(i18n): restore Spanish diacritics") is correctly attributed toEvan <tonymo2048@gmail.com>.Generated by Claude Code