flutter_picker
flutter_picker copied to clipboard
Picker localization
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
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': ['오전', '오후'], },
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
OK,
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 OK
@yangyxd, spanish please! 'es': { 'cancelText': 'Cancelar', 'confirmText': 'Confirmar', 'ampm': ['AM', 'PM'], },
@sotoyjuan OK
@yangyxd , vietnamese please! 'vi': { 'cancelText': 'Hủy', 'confirmText': 'Chọn', 'ampm': ['SA', CH'], },