Jesway / flutter_translate

Flutter Translate is a fully featured localization / internationalization (i18n) library for Flutter.
MIT License
401 stars 118 forks source link

Cut / Copy / Paste buttons #68

Closed hanyska closed 3 years ago

hanyska commented 3 years ago

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,
}
porfirioribeiro commented 3 years ago

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

bratan commented 3 years ago

@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.

porfirioribeiro commented 3 years ago

@bratan You are right, i misunderstood it