Skip to content

CupertinoNavigationBar's "Close", "Back", and "Cancel" buttons are not localized. #48616

Closed

Description

@LongCatIsLooong

"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

if (previousTitle.length > 12) {
textWidget = const Text('Back');
}

"Cancel" button

Introduced by #159120

Activity

  1. added
    frameworkflutter/packages/flutter repository. See also f: labels.
    a: internationalizationSupporting other languages or locales. (aka i18n)
    p: cupertino_uicupertino_ui package in flutter/packages
    on Jan 11, 2020
  2. TahaTesser commented on Mar 26, 2020

    @TahaTesser
    Contributor

    Hi @LongCatIsLooong
    Is this issue still valid?
    Thank you

  3. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Mar 26, 2020
  4. LongCatIsLooong commented on Mar 26, 2020

    @LongCatIsLooong
    ContributorAuthor

    I believe so.

  5. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Mar 26, 2020
  6. pedromassangocode commented on Sep 24, 2020

    @pedromassangocode

    Still valid today:

    leadingContent = CupertinoButton(
    child: const Text('Close'),
    padding: EdgeInsets.zero,
    onPressed: () { route.navigator.maybePop(); },
    );

  7. t-unit commented on Apr 15, 2021

    @t-unit

    Any progress on this issue? Problem still exists.

  8. erf commented on Jun 29, 2021

    @erf

    I can confirm this is still a problem. Created a new project in stable and added a simple CupertinoApp with a CupertinoPageScaffold with a CupertinoNavigationBar, the open it using the Navigator.push and CupertinoPageRoute with fullScreenDialog set to true. The app was localized as per this to support Norwegian (nb). I added a CupertinoDatePicker just 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

  9. self-assigned this
    on Oct 8, 2021
  10. 7 remaining items

  11. maxhuk commented on Jul 28, 2024

    @maxhuk

    Still a problem as of 3.19.6 :(

  12. changed the title [-]CupertinoNavigationBar's "Close" button is not localized.[/-] [+]CupertinoNavigationBar's "Close", "Back", and "Cancel" buttons are not localized.[/+] on Jan 13, 2025
  13. added
    P2Important issues not at the top of the work list
    on Feb 14, 2025
  14. victorsanni commented on Apr 3, 2025

    @victorsanni
    Contributor

    Fixed by #162581 and #166496. Thanks @Michae1Weiss and @Piinks!

  15. added
    r: fixedIssue is closed as already fixed in a newer version
    on Apr 3, 2025
  16. github-actions commented on Apr 17, 2025

    @github-actions

    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 -v and a minimal reproduction of the issue.

  17. locked as resolved and limited conversation to collaborators on Apr 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: internationalizationSupporting other languages or locales. (aka i18n)found in release: 3.3Found to occur in 3.3found in release: 3.7Found to occur in 3.7frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onp: cupertino_uicupertino_ui package in flutter/packagesr: fixedIssue is closed as already fixed in a newer versionteam-designOwned by Design Languages teamtriaged-designTriaged by Design Languages team

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions