Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem when I tried to tapping #24

Open
rnooxx999 opened this issue Jul 17, 2022 · 2 comments
Open

Problem when I tried to tapping #24

rnooxx999 opened this issue Jul 17, 2022 · 2 comments

Comments

@rnooxx999
Copy link

Problem when I tried to tapping ,I think it’s not support English writing

@Harryalways317
Copy link

you can change the locale to en.us in localizations_intl.dart avalible in lib/i10n by applying the value for localeName = 'en_US';

@Harryalways317
Copy link

Harryalways317 commented Jul 17, 2022

You can REPLACE the code in load Function in localization with this


  static Future<IntlLocalizations> load(Locale locale) {
    final String name = locale.countryCode.isEmpty ? locale.languageCode : locale.toString();
     String localeName = Intl.canonicalizedLocale(name);
    print("name是:$localeName");
    localeName = 'en_US';
    return initializeMessages(localeName).then((b) {
      Intl.defaultLocale = localeName;
      return new IntlLocalizations();
    });
  }

then tap on skip go to drawer in home page and use change language

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants