Skip to content

[material_ui, cupertino_ui] Unify localization generation instructions - #13109

Merged
auto-submit[bot] merged 8 commits into
flutter:mainfrom
SangWook16074:unify-l10n-generation-docs
Nov 18, 2026
Merged

auto-submit[bot] merged 8 commits into
flutter:mainfrom
SangWook16074:unify-l10n-generation-docs

Conversation

@SangWook16074

@SangWook16074 SangWook16074 commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Moves the localization documentation that was duplicated in
packages/material_ui/lib/src/l10n/README.md and
packages/cupertino_ui/lib/src/l10n/README.md into script/l10n/README.md, and
makes 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:

  • Removes the claim that gen_localizations.dart takes a directory and file
    prefix as parameters; it does not.
  • Merges the overlapping gen_localizations.dart / 'generated_*' and
    encode_kn_arb_files.dart / Kannada sections, and notes that
    encode_kn_arb_files.dart is run by gen_localizations.dart with --overwrite.
  • Notes that gen_missing_localizations.dart only updates the language locale
    .arb files (those without a regional suffix).
  • Updates examples that no longer matched the code (cancelButtonLabel, the
    Cupertino date picker method names).
  • Replaces the dead code.google.com ARB link.
  • Updates comments in script/l10n that still pointed to the
    flutter_localizations README and paths in the Flutter SDK.

Notes:

Part of: #flutter/flutter#189450

Pre-Review Checklist

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-assist bot 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

  1. 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

@github-actions github-actions Bot added p: cupertino_ui p: material_ui triage-design Should be looked at in design triage labels Oct 2, 2026
@SangWook16074
SangWook16074 marked this pull request as ready for review October 2, 2026 15:08

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread script/l10n/README.md Resolved
Comment thread script/l10n/README.md Resolved
Comment thread script/l10n/README.md Resolved
Comment thread script/l10n/README.md Resolved
Comment thread script/l10n/README.md Resolved
Comment thread script/l10n/README.md Resolved
Comment thread script/l10n/README.md Resolved
Comment thread script/l10n/README.md Resolved
Comment thread script/l10n/README.md Resolved
Comment thread script/l10n/README.md Resolved
@SangWook16074
SangWook16074 marked this pull request as draft October 2, 2026 15:13
@SangWook16074
SangWook16074 marked this pull request as ready for review October 2, 2026 15:13

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread script/l10n/README.md Resolved
Comment thread script/l10n/README.md Resolved
Comment thread script/l10n/README.md Resolved
@QuncCccccc
QuncCccccc self-requested a review October 6, 2026 21:26
@QuncCccccc QuncCccccc added the CICD Run CI/CD label Oct 6, 2026
QuncCccccc
QuncCccccc previously approved these changes Oct 9, 2026

@QuncCccccc QuncCccccc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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/:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NICE!

@@ -0,0 +1,3 @@
changelog: |
- Updates the localization README.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Updates the localization README.
- Moves the localization instructions to script/l10n/README.md and fixes outdated details in them.

@SangWook16074 SangWook16074 Oct 9, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

9a7e694 Applied, thanks!

@QuncCccccc
QuncCccccc requested a review from elliette October 9, 2026 22:37
@QuncCccccc
QuncCccccc force-pushed the unify-l10n-generation-docs branch from 3c65a14 to 449d4da Compare October 9, 2026 22:58
@flutter-dashboard flutter-dashboard Bot removed the CICD Run CI/CD label Oct 9, 2026
@QuncCccccc QuncCccccc added the CICD Run CI/CD label Oct 9, 2026
@flutter-dashboard flutter-dashboard Bot removed the CICD Run CI/CD label Oct 9, 2026
@QuncCccccc QuncCccccc added the CICD Run CI/CD label Oct 14, 2026

@elliette elliette left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Looks good with one small suggestion

Comment thread script/l10n/README.md Outdated

## Updating an existing string

If you or someone contributing to the Flutter framework wants to modify an

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change to "someone contributing to the package" like you did under "Adding a new string". Thanks!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aa55610 Applied, thanks!

@flutter-dashboard flutter-dashboard Bot added missing-tests and removed CICD Run CI/CD labels Oct 23, 2026
@flutter-dashboard

Copy link
Copy Markdown

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 test-exempt label. All reviewers should feel empowered to ask for tests before escalating.

@elliette elliette added CICD Run CI/CD autosubmit Merge PR when tree becomes green via auto submit App labels Oct 30, 2026
@auto-submit auto-submit Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Oct 30, 2026
@auto-submit

auto-submit Bot commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

autosubmit label was removed for flutter/packages/13109, because - This pull request has the missing-tests label and does not have the test-exempt label. Please add tests or obtain a test exemption from a tech lead before re-applying the autosubmit label.

@elliette elliette added the test-exempt Exempt from tests. Overrides `missing-tests` label label Nov 4, 2026
@elliette

elliette commented Nov 4, 2026

Copy link
Copy Markdown
Member

Added test-exempt label because these are doc changes only.

@elliette elliette added the autosubmit Merge PR when tree becomes green via auto submit App label Nov 4, 2026
@auto-submit auto-submit Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Nov 4, 2026
@auto-submit

auto-submit Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

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.

@QuncCccccc QuncCccccc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

re-LGTM. Thank you!

@QuncCccccc QuncCccccc added CICD Run CI/CD autosubmit Merge PR when tree becomes green via auto submit App labels Nov 18, 2026
@auto-submit
auto-submit Bot merged commit 34ae01c into flutter:main Nov 18, 2026
14 checks passed
vashworth pushed a commit to vashworth/flutter that referenced this pull request Nov 18, 2026
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App CICD Run CI/CD p: cupertino_ui p: material_ui test-exempt Exempt from tests. Overrides `missing-tests` label triage-design Should be looked at in design triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants