Repository navigation
add lang fr-CA - #14014
add lang fr-CA#14014
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
|
Thanks for the new PR. Yes this is good ! Though I was not precise enough: there should be inheritance and merge in the sense that
Both will be merged, meaning the former can only include what needs to be override in the later. That would simplify maintenance. To be tested for confirmation. |
|
Thanks for your quick feedback. |
Verifies that lang: fr-CA correctly applies regional overrides (Auteur(-trice)) while inheriting base French translations (Date de publication).
Override all middle-dot author labels, not just title-block ones.
cderv
left a comment
There was a problem hiding this comment.
Thanks @tdhock! The implementation looks correct — the minimal-override pattern (only the keys that differ from base fr.yml) is exactly the right approach, consistent with how other regional variants like de-CH.yml work.
I verified that translationsForLang() properly resolves fr-CA by loading _language-fr.yml first, then merging _language-fr-CA.yml on top. Only the overridden keys differ; all other French translations are inherited.
I've added a smoke-all test and one additional override:
- listing-page-field-author (line 114 in _language-fr.yml) also uses the middle-dot form "Auteur·rice". I've added it to the fr-CA file so all three middle-dot author labels are overridden.
The test confirms:
- Auteur(-trice) appears (fr-CA override)
- Date de publication appears (inherited from base _language-fr.yml)
- Auteur·rice does NOT appear (correctly overridden)
Hi @cderv
As you suggested in #14012
here is a new file for fr-CA.
Does that look ok to you?
Merci !