Localization
accepted ADR-0002 engineering/ADR-0002-localization
localization: language: default: english documentation: commits: code: comments:Status
Section titled “Status”Accepted
What is this file? A question governance asks your repository, with the answer it recommends. While it says
status: proposed, you may edit it freely.revision:dates the question, not the file: you do not fill it, and it only moves when the question changes. rejected is a full answer: when the question does not apply here, rule rejected, remove the wholetraits:block, and say what stands in for it. ADR-0001 explains the mechanics.
Context
Section titled “Context”While these keys are empty, an agent writing in this repository does not know which language to name a function in, which language to comment in, or how to write a commit message. It guesses, and guesses differently each time. Once the values are written, it reads and applies them without asking you again.
The question exists because each medium has different readers.
Documentation is read by the people who use and maintain the repository; a
symbol by anyone who reads the code, including tools; a comment by whoever
rereads a function in six months; a commit message by whoever walks the
history in two years. “The same language everywhere” is an answer, but it
is one you choose, and default is where you say it.
Decision
Section titled “Decision”What governance recommends, and why. One default language, no overrides:
| Key | Recommended value | Reason |
|---|---|---|
default |
english |
the repository may be read by anyone, and by agents and tools whose default language is English; one language means no rule to remember |
documentation, commits, code and comments are left empty: they take
default. Only fill one of those four to depart from the default.
Otherwise leave it empty, which keeps the decision readable at a glance.
Removing the key says the same thing, and both forms pass the check.
This recommendation does not bind your repository. It exists so there
is something to react to instead of a blank page: keep it, amend it or set
it aside. A team that works in French and writes for itself has good
reasons to answer default: french with code: english, which is what
surdesrails recommends.
Adopted as recommended: the README, specs, commits, symbols and comments of this repository are already all in English.
Consequences
Section titled “Consequences”Positive
Section titled “Positive”- An agent never has to guess the language of a name, a comment, a commit or a page.
- The repository stays readable by anyone, matching the English it was written in from the first commit.
Negative
Section titled “Negative”- The French-speaking maintainer writes notes and commit messages in a second language, which is slower and loses nuance.
Neutral
Section titled “Neutral”- Changing the answer later means rewriting documentation, not code: the history keeps the old commit language either way.
Alternatives Considered
Section titled “Alternatives Considered”Everything in French
Section titled “Everything in French”Documentation, commits, symbols and comments in French. Natural for a French-speaking team writing for itself, but symbols in French read oddly next to every library and API, and the repository closes itself to non-French readers.
French prose, English symbols
Section titled “French prose, English symbols”surdesrails’ recommendation: default: french, code: english. A good fit
for a French-speaking team; governance does not recommend it because its
repositories are written for a wider audience, and two languages means one
more rule to apply.
Another split
Section titled “Another split”The four overrides are independent: nothing forces them to line up, for example English code and comments with French documentation. Each extra override is one more thing to remember.
References
Section titled “References”The keys.
| Key | What it holds | Allowed values |
|---|---|---|
default |
the language of everything not overridden below | french, english |
documentation |
documentation, if it differs from the default | french, english |
commits |
commit messages, if they differ | french, english |
code |
symbols (functions, classes, variables), if they differ | french, english |
comments |
code comments, if they differ | french, english |
Only default is required. The other four are overrides: an empty or
removed key means “same as default”, and that is an answer, not an
oversight. The value is written in this file and nowhere else; whoever needs
it links here.
Checking. The schema refuses an empty default and names it, and lets
an empty override pass. It does not see a removed default: an absent key
passes, and only review catches it. See ADR-0001 for the command.
