Skip to content

Commit

Permalink
feat: ✨ portuguese default locale (#258)
Browse files Browse the repository at this point in the history
* feat: ✨ portuguese default locale

* fix: 🐛 class definition order in file

---------

Co-authored-by: Jonas Uekötter <[email protected]>
  • Loading branch information
viniciusamelio and ueman committed Dec 24, 2023
1 parent e759ee7 commit c30dcda
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions feedback/lib/src/l18n/translation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,25 @@ class PlFeedbackLocalizations extends FeedbackLocalizations {
String get navigate => 'Nawiguj';
}


/// Default portuguese localization
class PtFeedbackLocalizations extends FeedbackLocalizations {
/// Creates a [PtFeedbackLocalizations].
const PtFeedbackLocalizations();

@override
String get submitButtonText => 'Enviar';

@override
String get feedbackDescriptionText => 'Qual o problema?';

@override
String get draw => 'Desenhar';

@override
String get navigate => 'Navegar';
}

/// Default japanese localization
class JaFeedbackLocalizations extends FeedbackLocalizations {
/// Creates a [JaFeedbackLocalizations].
Expand Down Expand Up @@ -272,6 +291,8 @@ class GlobalFeedbackLocalizationsDelegate
const Locale('tr'): const TrFeedbackLocalizations(),
const Locale('zh'): const ZhFeedbackLocalizations(),
const Locale('pl'): const PlFeedbackLocalizations(),

const Locale('pt'): const PtFeedbackLocalizations(),
const Locale('ja'): const JaFeedbackLocalizations(),
};

Expand Down

0 comments on commit c30dcda

Please sign in to comment.