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

add Japanese localization #261

Merged
merged 1 commit into from
Dec 20, 2023
Merged
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
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
Loading