Repository navigation
CupertinoNavigationBar's "Close", "Back", and "Cancel" buttons are not localized. #48616
Copy link
Copy link
Closed
Closed
Copy link
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: internationalizationSupporting other languages or locales. (aka i18n)Supporting other languages or locales. (aka i18n)found in release: 3.3Found to occur in 3.3Found to occur in 3.3found in release: 3.7Found to occur in 3.7Found to occur in 3.7frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: cupertino_uicupertino_ui package in flutter/packagescupertino_ui package in flutter/packagesr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-designOwned by Design Languages teamOwned by Design Languages teamtriaged-designTriaged by Design Languages teamTriaged by Design Languages team
Description
"Close" button
Originally reported here: https://stackoverflow.com/questions/59487887/flutter-cupertino-app-close-button-not-translated
Reproduced Below:
I am writing an iOS App with Cupertino Style in flutter.
The app should be available in English and German. I am using the following translation delegates in the CupertinoApp:
RefreshLocalizations.delegate, GlobalCupertinoLocalizations.delegate, GlobalWidgetsLocalizations.delegate, GlobalMaterialLocalizations.delegate,Unfortunately, the "Close" button in the CupertinoNavigationBar is not not translated.
Why? And how can I change this?
"Back" button
flutter/packages/flutter/lib/src/cupertino/nav_bar.dart
Lines 2032 to 2034 in 449079d
| if (previousTitle.length > 12) { | |
| textWidget = const Text('Back'); | |
| } |
"Cancel" button
Introduced by #159120
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: internationalizationSupporting other languages or locales. (aka i18n)Supporting other languages or locales. (aka i18n)found in release: 3.3Found to occur in 3.3Found to occur in 3.3found in release: 3.7Found to occur in 3.7Found to occur in 3.7frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: cupertino_uicupertino_ui package in flutter/packagescupertino_ui package in flutter/packagesr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-designOwned by Design Languages teamOwned by Design Languages teamtriaged-designTriaged by Design Languages teamTriaged by Design Languages team
Type
Projects
- StatusShow more project fieldsDone
Activity
TahaTesser commentedon Mar 26, 2020
Hi @LongCatIsLooong
Is this issue still valid?
Thank you
LongCatIsLooong commentedon Mar 26, 2020
I believe so.
pedromassangocode commentedon Sep 24, 2020
Still valid today:
flutter/packages/flutter/lib/src/cupertino/nav_bar.dart
Lines 1092 to 1096 in 1fef591
t-unit commentedon Apr 15, 2021
Any progress on this issue? Problem still exists.
erf commentedon Jun 29, 2021
I can confirm this is still a problem. Created a new project in stable and added a simple
CupertinoAppwith aCupertinoPageScaffoldwith aCupertinoNavigationBar, the open it using theNavigator.pushandCupertinoPageRoutewithfullScreenDialogset totrue. The app was localized as per this to support Norwegian (nb). I added aCupertinoDatePickerjust to confirm that it was correctly localized.Flutter 2.2.2 • channel stable • https://github.com/flutter/flutter.git
Framework • revision d79295a (3 weeks ago) • 2021-06-11 08:56:01 -0700
Engine • revision 91c9fc8fe0
Tools • Dart 2.13.3
7 remaining items
maxhuk commentedon Jul 28, 2024
Still a problem as of
3.19.6:([-]CupertinoNavigationBar's "Close" button is not localized.[/-][+]CupertinoNavigationBar's "Close", "Back", and "Cancel" buttons are not localized.[/+]Add localization for `Back` and `Cancel` buttons in CupertinoNavigati…
victorsanni commentedon Apr 3, 2025
Fixed by #162581 and #166496. Thanks @Michae1Weiss and @Piinks!
github-actions commentedon Apr 17, 2025
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.