flutter_picker icon indicating copy to clipboard operation
flutter_picker copied to clipboard

Picker localization

Open flaviosuardi opened this issue 6 years ago • 8 comments

Hi, how is possible to localize cancel and confirm strings of this picker? I have an app in english and italian language but when I run it in italian, the picker shows Cancel and Confirm label instad of their italian translation. Thanks. Flavio

flaviosuardi avatar Mar 22 '19 09:03 flaviosuardi

You need to add it to Picker Localizations. You can send me the language you need and add it. Like this: 'ko': { 'cancelText': '취소', 'confirmText': '확인', 'ampm': ['오전', '오후'], },

yangyxd avatar Mar 24 '19 11:03 yangyxd

I import flutter_picker: ^1.0.9 via pubspec.yaml so I cannot edit PickerLocalizations class because it's inside the package. Anyway at the moment I send you picker localization for italian language:

'it': {
'cancelText': 'Annulla',
'confirmText': 'Conferma',
'ampm': ['AM', 'PM'],
},

Thanks

flaviosuardi avatar Mar 25 '19 08:03 flaviosuardi

OK,

yangyxd avatar Mar 25 '19 09:03 yangyxd

hi @yangyxd , Could you please use this localization for Arabic language:

'ar':{
''cancelText': 'إلغاء الأمر',
'confirmText': 'تأكيد',
'ampm': ['صباحاً', 'مساءً'],
},

I was able to provide the picker with localized cancelText and confirmText properties tho.

Thanks.

mohammadsyria93 avatar Apr 18 '19 14:04 mohammadsyria93

@mohammadsyria93 OK

yangyxd avatar Apr 22 '19 13:04 yangyxd

@yangyxd, spanish please! 'es': { 'cancelText': 'Cancelar', 'confirmText': 'Confirmar', 'ampm': ['AM', 'PM'], },

sotoyjuan avatar Oct 28 '19 22:10 sotoyjuan

@sotoyjuan OK

yangyxd avatar Oct 29 '19 01:10 yangyxd

@yangyxd , vietnamese please! 'vi': { 'cancelText': 'Hủy', 'confirmText': 'Chọn', 'ampm': ['SA', CH'], },

vientn1998 avatar Nov 09 '21 07:11 vientn1998