Skip to content

Commit

Permalink
add Japanese localization (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
KoheiKanagu committed Dec 20, 2023
1 parent 18081a6 commit e759ee7
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 @@ -228,6 +228,24 @@ class PlFeedbackLocalizations extends FeedbackLocalizations {
String get navigate => 'Nawiguj';
}

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

@override
String get submitButtonText => '送信';

@override
String get feedbackDescriptionText => '何がありましたか?';

@override
String get draw => '描く';

@override
String get navigate => 'ナビゲート';
}

// coverage:ignore-end

/// This is a localization delegate, which includes all of the localizations
Expand All @@ -254,6 +272,7 @@ class GlobalFeedbackLocalizationsDelegate
const Locale('tr'): const TrFeedbackLocalizations(),
const Locale('zh'): const ZhFeedbackLocalizations(),
const Locale('pl'): const PlFeedbackLocalizations(),
const Locale('ja'): const JaFeedbackLocalizations(),
};

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

0 comments on commit e759ee7

Please sign in to comment.