Skip to content

Commit

Permalink
feat(translation): add Spanish support in localization delegate (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
RhoBus authored Mar 6, 2024
1 parent adea055 commit a86d6ab
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions feedback/lib/src/l18n/translation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,24 @@ class BgFeedbackLocalizations extends FeedbackLocalizations {
String get navigate => 'Навигиране';
}

/// Default spanish localization
class EsFeedbackLocalizations extends FeedbackLocalizations {
/// Creates a [EsFeedbackLocalizations]
const EsFeedbackLocalizations();

@override
String get submitButtonText => 'Enviar';

@override
String get feedbackDescriptionText => '¿Cuál es el problema?';

@override
String get draw => 'Dibujar';

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

// coverage:ignore-end

/// This is a localization delegate, which includes all of the localizations
Expand Down Expand Up @@ -330,6 +348,7 @@ class GlobalFeedbackLocalizationsDelegate
const Locale('ja'): const JaFeedbackLocalizations(),
const Locale('el'): const ElFeedbackLocalizations(),
const Locale('bg'): const BgFeedbackLocalizations(),
const Locale('es'): const EsFeedbackLocalizations()
};

/// The default locale to use. Note that this locale should ALWAYS be
Expand Down

0 comments on commit a86d6ab

Please sign in to comment.