Skip to content

Update gen-l10n options table for removed synthetic package - #14174

Open
Evvvaaaaan wants to merge 1 commit into
flutter:mainfrom
Evvvaaaaan:i18n-synthetic-package-removed
Open

Evvvaaaaan wants to merge 1 commit into
flutter:mainfrom
Evvvaaaaan:i18n-synthetic-package-removed

Conversation

@Evvvaaaaan

Copy link
Copy Markdown

Description of what this PR is changing or adding, and why:

The gen-l10n options table on the internationalization page still describes
synthetic-package as a flag that is true by default, and the output-dir
row says you must set synthetic-package to false. Both are outdated:
the synthetic package:flutter_gen was removed, enabling the option now
fails with an error, and setting it to false only prints a warning.

This PR:

  • Removes "You also need to set the synthetic-package flag to false."
    from the output-dir row.
  • Rewrites the synthetic-package row to say the option is deprecated,
    what happens if it's set, and where files are generated,
    with a link to the existing breaking-change page.
  • Adds the missing period at the end of the step 6 sentence
    that i18n docs have out of date info on file generation #11853 quotes.

Regarding #11853: the issue reported that generated files land in
.dart_tool/flutter_gen/gen_l10n. That was the synthetic-package behavior.
In current Flutter, the files are generated in arb-dir (or output-dir),
so the step 6 sentence is correct again. The remaining inconsistency
was this options table, which this PR fixes.

Issues fixed by this PR (if any): Fixes #11853

PRs or commits this PR depends on (if any): None

Presubmit checklist

  • If you are unwilling, or unable, to sign the CLA, even for a tiny, one-word PR, please file an issue instead of a PR.
  • If this PR is not meant to land until a future stable release, mark it as draft with an explanation.
  • This PR follows the Google Developer Documentation Style Guidelines—for example, it doesn't use i.e. or e.g., and it avoids I and we (first-person pronouns).
  • This PR uses semantic line breaks
    of 80 characters or fewer.

The synthetic-package option can no longer be enabled, and setting it
to false has no effect. Remove the outdated instruction from the
output-dir row and describe the current behavior in the
synthetic-package row.
@Evvvaaaaan
Evvvaaaaan requested review from a team and sfshaza2 as code owners December 5, 2026 11:19
@google-cla

google-cla Bot commented Dec 5, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@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 updates the internationalization documentation. It adds a missing period, removes a reference to the synthetic-package flag from the output-dir option description, and updates the synthetic-package option description to mark it as deprecated with a link to the breaking changes documentation. I have no feedback to provide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

i18n docs have out of date info on file generation

1 participant