Skip to content

Commit

Permalink
Update the options for the gen-l10n tool (#11046)
Browse files Browse the repository at this point in the history
_Description of what this PR is changing or adding, and why:_

Adding `use-named-parameters` and `relax-syntax` to the list of options
for the `gen-l10n` command.

_Issues fixed by this PR (if any):_

None.

_PRs or commits this PR depends on (if any):_

None.

## Presubmit checklist

- [x] This PR is marked as draft with an explanation if not meant to
land until a future stable release.
- [x] This PR doesn’t contain automatically generated corrections
(Grammarly or similar).
- [x] This PR follows the [Google Developer Documentation Style
Guidelines](https://developers.google.com/style) — for example, it
doesn’t use _i.e._ or _e.g._, and it avoids _I_ and _we_ (first person).
- [x] This PR uses [semantic line
breaks](https://github.com/dart-lang/site-shared/blob/main/doc/writing-for-dart-and-flutter-websites.md#semantic-line-breaks)
of 80 characters or fewer.

---------

Co-authored-by: Shams Zakhour (ignore Sfshaza) <[email protected]>
  • Loading branch information
TonyD-TuftAndPaw and sfshaza2 authored Aug 20, 2024
1 parent b349609 commit 313577a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,8 @@ at the command line or refer to the following table:
| `[no-]format` | When specified, the `dart format` command is run after generating the localization files. |
| `use-escaping` | Specifies whether to enable the use of single quotes as escaping syntax. |
| `[no-]suppress-warnings` | When specified, all warnings are suppressed. |
| `use-named-parameters` | Whether to use named parameters for the generated localization methods. |
| `[no-]relax-syntax` | When specified, the syntax is relaxed so that the special character "{" is treated as a string if not followed by a valid placeholder and "}" is treated as a string if it doesn't close any previous "{" that is treated as a special character. |
| `[no-]use-named-parameters` | Whether to use named parameters for the generated localization methods. |

{:.table .table-striped}

Expand Down

0 comments on commit 313577a

Please sign in to comment.