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

Changelog: #266

Open
wants to merge 2 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
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,10 @@ LocalizationOptions.buildDefaultKoreanOptions();
```dart
LocalizationOptions.buildDefaultDutchOptions();
```
* turkish
```dart
LocalizationOptions.buildDefaultTurkishOptions();
```

Complete Example:
```dart
Expand Down
2 changes: 2 additions & 0 deletions lib/core/catcher.dart
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,8 @@ class Catcher with ReportModeAction {
return LocalizationOptions.buildDefaultDutchOptions();
case 'de':
return LocalizationOptions.buildDefaultGermanOptions();
case 'tr':
return LocalizationOptions.buildDefaultTurkishOptions();
default:
return LocalizationOptions.buildDefaultEnglishOptions();
}
Expand Down
25 changes: 25 additions & 0 deletions lib/model/localization_options.dart
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,31 @@ class LocalizationOptions {
);
}

static LocalizationOptions buildDefaultTurkishOptions() {
return LocalizationOptions(
'tr',
notificationReportModeTitle: 'Bir Uygulama Hatası Meydana Geldi',
notificationReportModeContent:
'Destek ekibine hata raporu göndermek için buraya tıklayın.',
dialogReportModeTitle: 'Çökme',
dialogReportModeDescription:
'Uygulamada beklenmeyen bir hata meydana geldi. '
'Hata raporu, destek ekibine gönderilmeye hazır. '
"Hata raporunu göndermek için Kabul Et'e veya raporu reddetmek için İptal'e tıklayın.",
dialogReportModeAccept: 'Kabul Et',
dialogReportModeCancel: 'İptal',
pageReportModeTitle: 'Çökme',
pageReportModeDescription:
'Uygulamada beklenmeyen bir hata meydana geldi. Hata raporu '
'destek ekibine gönderilmeye hazır. Lütfen hata raporunu göndermek '
"için Kabul Et'e tıklayın veya raporu reddetmek için İptal'e tıklayın.",
pageReportModeAccept: 'Kabul Et',
pageReportModeCancel: 'İptal',
toastHandlerDescription: 'Bir hata meydana geldi:',
snackbarHandlerDescription: 'Bir hata meydana geldi:',
);
}

///Helper method used to copy values of current LocalizationOptions with new
///values passed in method.
LocalizationOptions copyWith({
Expand Down