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

Added Amharic localization. #308

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ A flutter date time picker inspired by [flutter-cupertino-date-picker](https://g
you can choose date / time / date&time in multiple languages:

- Albanian(sq)
- Amharic
- Arabic(ar)
- Armenian(hy)
- Azerbaijan(az)
Expand Down
112 changes: 38 additions & 74 deletions lib/src/i18n_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ enum LocaleType {
kh,
tw,
fi,
uk,
he
am
}

final _i18nModel = <LocaleType, Map<String, Object>>{
Expand Down Expand Up @@ -111,6 +110,42 @@ final _i18nModel = <LocaleType, Map<String, Object>>{
'am': 'AM',
'pm': 'PM'
},
LocaleType.am: {
'cancel': 'ሰርዝ',
'done': 'ተጠናቅቋል',
'today': 'ዛሬ',
'monthShort': [
'ጃንዩ',
'ፌብሩ',
'ማርች',
'ኤፕሪ',
'ሜይ',
'ጁን',
'ጁላይ',
'ኦገስ',
'ሴፕቴ',
'ኦክቶ',
'ኖቬም',
'ዲሴም'
],
'monthLong': [
'ጃንዩወሪ',
'ፌብሩወሪ',
'ማርች',
'ኤፕሪል',
'ሜይ',
'ጁን',
'ጁላይ',
'ኦገስት',
'ሴፕቴምበር',
'ኦክቶበር',
'ኖቬምበር',
'ዲሴምበር'
],
'day': ['ሰኞ', 'ማክ', 'ረቡ', 'ሐሙ', 'ዓር', 'ቅዳ', 'እሁ'],
'am': 'ጥዋት',
'pm': 'ማታ'
},
LocaleType.mn: {
'cancel': 'Гарах',
'done': 'Дуусгах',
Expand Down Expand Up @@ -1342,79 +1377,8 @@ final _i18nModel = <LocaleType, Map<String, Object>>{
'day': ['Ma', 'Ti', 'Ke', 'To', 'Pe', 'La', 'Su'],
'am': 'AM',
'pm': 'PM'
},
LocaleType.uk: {
'cancel': 'Скасувати',
'done': 'Вибрати',
'today': 'Сьогодні',
'monthShort': [
'Січ',
'Лют',
'Бер',
'Квіт',
'Трав',
'Черв',
'Лип',
'Серп',
'Вер',
'Жовт',
'Лист',
'Груд'
],
'monthLong': [
'Січень',
'Лютий',
'Березень',
'Квітень',
'Травень',
'Червень',
'Липень',
'Серпень',
'Вересень',
'Жовтень',
'Листопад',
'Грудень'
],
'day': ['Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб', 'Нд'],
'am': 'AM',
'pm': 'PM'
},
LocaleType.he: {
'cancel': 'ביטול',
'done': 'סיום',
'today': 'היום',
'monthShort': [
'ינו׳',
'פבר׳',
'מרץ',
'אפר׳',
'מאי',
'יוני',
'יולי',
'אוג׳',
'ספט׳',
'אוק׳',
'נוב׳',
'דצמ׳'
],
'monthLong': [
'ינואר',
'פברואר',
'מרץ',
'אפריל',
'מאי',
'יוני',
'יולי',
'אוגוסט',
'ספטמבר',
'אוקטובר',
'נובמבר',
'דצמבר'
],
'day': ['ראשון', 'שני', 'שלישי', 'רביעי', 'חמישי', 'שישי', 'שבת'],
'am': 'לפנה״צ',
'pm': 'אחה״צ',
}

};

/// Get international object for [localeType]
Expand Down