Repository navigation
[material_ui, cupertino_ui] Unify localization generation instructions - #13109
Conversation
There was a problem hiding this comment.
Code Review
This pull request consolidates the localization documentation by moving detailed instructions from the Cupertino and Material UI package READMEs into a single, centralized script/l10n/README.md file, updating relevant script comments to point to the new location, and adding corresponding changelogs. The review feedback suggests formatting and grammatical corrections in the updated script/l10n/README.md to ensure consistency, such as using backticks for file paths and script names, correcting pluralization, and capitalizing framework names.
There was a problem hiding this comment.
Code Review
This pull request consolidates the localization documentation for cupertino_ui and material_ui by moving detailed instructions from their respective package READMEs into a single shared script/l10n/README.md, updating individual package READMEs and script references accordingly. Feedback suggests replacing absolute GitHub URLs with relative links in the updated markdown files to ensure they function correctly in offline environments, forks, and branch previews.
QuncCccccc
left a comment
There was a problem hiding this comment.
LGTM! Thank you for reorganizing the docs.
| // contain characters that can crash Emacs on Linux. There is more information | ||
| // here: https://github.com/flutter/flutter/issues/36704 and in the README | ||
| // in flutter_localizations/packages/lib/src/l10n in the Flutter SDK. | ||
| // and cupertino_kn.arb files in packages/material_ui/lib/src/l10n and |
There was a problem hiding this comment.
Thanks for catching this!
| // If the data looks good, use the `-w` or `--overwrite` option to overwrite the | ||
| // generated_material_localizations.dart and | ||
| // generated_cupertino_localizations.dart files in | ||
| // packages/flutter_localizations/lib/l10n/: |
| @@ -0,0 +1,3 @@ | |||
| changelog: | | |||
| - Updates the localization README. | |||
There was a problem hiding this comment.
| - Updates the localization README. | |
| - Moves the localization instructions to script/l10n/README.md and fixes outdated details in them. |
3c65a14 to
449d4da
Compare
elliette
left a comment
There was a problem hiding this comment.
Thank you! Looks good with one small suggestion
|
|
||
| ## Updating an existing string | ||
|
|
||
| If you or someone contributing to the Flutter framework wants to modify an |
There was a problem hiding this comment.
Please change to "someone contributing to the package" like you did under "Adding a new string". Thanks!
|
It looks like this pull request may not have tests. Please make sure to add tests or get an explicit test exemption before merging. If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. If both you and the PR author believe this PR qualifies for a test exemption, escalate to the tech lead for the changed area to review and apply the |
|
autosubmit label was removed for flutter/packages/13109, because - This pull request has the |
|
Added |
|
autosubmit label was removed for flutter/packages/13109, because - The status or check suite Dashboard Checks has failed. Please fix the issues identified (or deflake) before re-applying this label. |
…r#196892) flutter/packages@9af69be...dca2e58 2026-11-18 [email protected] [ci] update workflow permissions (flutter/packages#13696) 2026-11-18 [email protected] [material_ui] Fix DataTable row hover flicker between cells (flutter/packages#13523) 2026-11-18 [email protected] [material_ui, cupertino_ui] Unify localization generation instructions (flutter/packages#13109) 2026-11-18 [email protected] [material_ui] Use ColorScheme.scrim for modal barrier/scrim defaults (flutter/packages#12746) 2026-11-17 [email protected] [pigeon] Stop silently skipping JNIgen when env vars are unset and surface clear errors (flutter/packages#13630) 2026-11-17 [email protected] [material_ui] Re-enable non-Wasm web unit tests (flutter/packages#13671) 2026-11-17 [email protected] [camera_platform_interface] Fix VideoRecordedEvent equality and hashCode (flutter/packages#13452) If this roll has caused a breakage, revert this CL and set the roller to dry run mode using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC [email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Moves the localization documentation that was duplicated in
packages/material_ui/lib/src/l10n/README.mdandpackages/cupertino_ui/lib/src/l10n/README.mdintoscript/l10n/README.md, andmakes the package READMEs refer to it. Where only the examples differed, both
the Material and Cupertino examples are kept and labeled. Material-specific
notes (scriptCategory and timeOfDayFormat, Pashto) stay in the material_ui
README.
While moving the docs, this also fixes some existing inaccuracies:
prefix as parameters; it does not.
encode_kn_arb_files.dart / Kannada sections, and notes that
encode_kn_arb_files.dart is run by gen_localizations.dart with --overwrite.
.arb files (those without a regional suffix).
cancelButtonLabel, theCupertino date picker method names).
flutter_localizations README and paths in the Flutter SDK.
Notes:
new sections only resolve after this lands.
version: patchbecause the READMEs live underlib/ and the version check requires a version change; happy to switch to
skipwith the "override: no versioning needed" label if preferred.Part of: #flutter/flutter#189450
Pre-Review Checklist
[shared_preferences]///).If you need help, consider asking for advice on the #hackers-new channel on Discord.
Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the
gemini-code-assistbot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.Footnotes
Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. ↩ ↩2