Jesway / flutter_translate

Flutter Translate is a fully featured localization / internationalization (i18n) library for Flutter.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cut / Copy / Paste buttons

hanyska opened this issue · comments

IMG_20210428_083726

I have Polish language turned on, but the buttons are in English

var delegate = await LocalizationDelegate.create(
    fallbackLocale: 'pl',
    supportedLocales: ['pl'],
  );

  runApp(LocalizedApp(delegate, MyApp()));

and

@override
Widget build(BuildContext context) {
  var localizationDelegate = LocalizedApp.of(context).delegate;
  .....

   localizationsDelegates: [
    GlobalMaterialLocalizations.delegate,
    GlobalWidgetsLocalizations.delegate,
    GlobalCupertinoLocalizations.delegate,
    localizationDelegate
  ],
  supportedLocales: localizationDelegate.supportedLocales,
  locale: localizationDelegate.currentLocale,
}

Those buttons are related with the Operative System, Android in that case.
The translation comes from your OS settings, you need to put your OS in Polish

This is nothing to do with flutter_translate or flutter itself

@hanyska - I`m not sure what could be the issue here. If you add a TextField or a CupertinoTextField to the example application you can see that the translations are applied correctly to the menu.

Those buttons are related with the Operative System, Android in that case.
The translation comes from your OS settings, you need to put your OS in Polish

This is nothing to do with flutter_translate or flutter itself

This is not correct, the localization should work regardless of the OS language selection.

@bratan You are right, i misunderstood it