-
Notifications
You must be signed in to change notification settings - Fork 30.2k
[gen_l10n.dart] .arbdescriptions get mistaken as code #115295
Copy link
Copy link
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: buildBuilding flutter applications with the toolBuilding flutter applications with the toola: internationalizationSupporting other languages or locales. (aka i18n)Supporting other languages or locales. (aka i18n)c: crashStack traces logged to the consoleStack traces logged to the consolefound in release: 3.3Found to occur in 3.3Found to occur in 3.3found in release: 3.6Found to occur in 3.6Found to occur in 3.6has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versiontoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: buildBuilding flutter applications with the toolBuilding flutter applications with the toola: internationalizationSupporting other languages or locales. (aka i18n)Supporting other languages or locales. (aka i18n)c: crashStack traces logged to the consoleStack traces logged to the consolefound in release: 3.3Found to occur in 3.3Found to occur in 3.3found in release: 3.6Found to occur in 3.6Found to occur in 3.6has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versiontoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Descriptions of Strings in
.arbfiles including line breaks (\n) get mistaken as code.The file
translations_en.arb{ "welcome": "Welcome to the app", "@welcome": { "description": "This message gets displayed on the first page.\nUse it in caps.", "type": "text" }, }...results in
app_localizations.dartInstead, I would expect this result:
or
I can see, that the error occurs here:
flutter/packages/flutter_tools/lib/src/localizations/gen_l10n.dart
Line 204 in 2c4051f