Skip to content

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

@LongCatIsLooong

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: internationalizationSupporting other languages or locales. (aka i18n)f: cupertinoflutter/packages/flutter/cupertino repositoryfound 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 onr: fixedIssue is closed as already fixed in a newer versionteam-designOwned by Design Languages teamtriaged-designTriaged by Design Languages team

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions