-
Notifications
You must be signed in to change notification settings - Fork 0
Expand Fluent localization to 34 locales (#466) #500
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
Merged
Merged
Changes from all commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
86f7f85
Introduce an authoritative locale catalogue registry
c0a4269
Add German, British English, French and Italian catalogues
c44acd2
Add Latin American Spanish and both Portuguese catalogues
7abdac7
Add Danish, Finnish, Norwegian Bokmål and Swedish catalogues
79966fe
Add Czech, Dutch and Polish catalogues
1764047
Add Greek, Hungarian, Romanian, Russian and Ukrainian catalogues
5d22ab5
Add Indonesian, Turkish and Vietnamese catalogues
62c98ac
Add Japanese, Korean, Thai and both Chinese catalogues
15852d5
Add Arabic, Hebrew and Persian catalogues
c98fa6f
Add Hindi, Welsh and Scottish Gaelic catalogues
dec0506
Cover locale selection, plurals and bidi in tests
9986fbe
Document the locale registry and fallback policy
731bda4
State the release-help locale policy at its decision points
d9a62a5
Make the locale test helpers fallible
692b5f4
Give the define_keys! scanner a parser type
ea0a495
Address review findings on bidi, plurals and translations
b1ca802
Correct the localization documentation
7790035
Settle the CodeScene findings on the build audit
db7e92f
Address the pre-merge check findings
1559a7b
Fix brace scanning, TOML header matching, and translation errors
4af2350
Drop out-of-scope reflow and tidy the rebase seams
2c85516
Break the localization cycle and prove the audit end to end
f425efc
Build each bundle for its catalogue's locale, and scan for the macro
33c86ae
Simplify plural_categories into a two-pass scan
038b9e2
Harden the audit's scanners and prove plural selection
417d903
Warn on locale fallback, and fix agreement in six catalogues
d9ccb9e
Read the audit's inputs at its boundary, not in its parsers
d8130ad
Keep startup diagnostics off stderr until the mode is known
f1e448b
Buffer startup diagnostics, and fix the guard drop order
4783e04
Settle startup diagnostics before clap exits the process
f6148fa
Drive the real startup orchestration from the unit tests
6e3715c
Bound the startup buffer, snapshot the audit failure, document both
fc6f8be
Parameterize the buffer settlement tests
1a2786d
Isolate the startup-diagnostics tests from the ambient environment
6d08743
Fix agreement and terminology, and lock the startup test's globals
a7c349e
Read indented continuations as pattern text, not comments
aa1f371
Agree grammar across locales, and pin the starred plural default
8d1f3b1
Tighten the restore probe, and speak of locale tags
4d6737e
Split declarations once, and end the table where a header truly begins
4b21dc0
Assert the rendered error, guard the restore, and correct eight catal…
98f5d30
Recast the Ukrainian command frames around a nominative subject
3473702
Assert the indented-hash continuation does not swallow the next entry
b08a98d
Require a header to read as one, and document the startup buffer
5a25d23
Bring the tracing and locale-precedence prose up to the buffered design
8de9b62
Say what zero means: en-GB writes, Hindi files, Persian colons
e1e8fad
Read quoted keys as headers, and tell values from headers by depth
acea9b5
Honour escapes inside quoted header keys
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| { | ||
| "usage": "Repo-scoped CodeScene overrides. Keep each rule_set narrowly scoped and justify it in matching_content_path_doc, so a reader can tell a deliberate exemption from an unexamined one.", | ||
| "rule_sets": [ | ||
| { | ||
| "matching_content_path": "build_l10n_audit/**", | ||
| "matching_content_path_doc": "Hand-rolled scanners over borrowed source text. These modules parse the define_keys! macro, the Fluent catalogues, and the Cargo metadata without taking a parser dependency into the build script, so their helpers necessarily take &str views into a buffer the caller owns: a line and its trimmed form, a message body, a table. Grouping those borrows into a context type would add a value that is constructed once and immediately unpacked at each call site, and taking String instead would allocate per line across 35 catalogues while breaking the borrowed returns. Each helper is private, called only from its own module, and reachable from a single entry point (parse_catalogue, extract_key_constants, parse_metadata_locales), so the parameter grouping is visible at a glance rather than spread across an API. Reassess if these parsers grow beyond one screen each or gain external callers.", | ||
| "rules": [ | ||
| { | ||
| "name": "String Heavy Function Arguments", | ||
| "weight": 0.0 | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.