Skip to content

Commit

Permalink
Farsi has been added as a localization (#291)
Browse files Browse the repository at this point in the history
* Update translation.dart

persian added

* Update translation.dart

small change

* Update translation.dart

small text issue

* Update translation.dart

change in the texts
  • Loading branch information
mohammadhosseinNRZ committed Apr 1, 2024
1 parent f919145 commit f39a4b4
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion feedback/lib/src/l18n/translation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,24 @@ class EnFeedbackLocalizations extends FeedbackLocalizations {
String get navigate => 'Navigate';
}

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

@override
String get submitButtonText => 'تایید';

@override
String get feedbackDescriptionText => 'چه مشکلی پیش آمده ؟';

@override
String get draw => 'رسم';

@override
String get navigate => 'پیمایش';
}

/// Default french localization
class FrFeedbackLocalizations extends FeedbackLocalizations {
/// Creates a [FrFeedbackLocalizations].
Expand Down Expand Up @@ -348,7 +366,8 @@ class GlobalFeedbackLocalizationsDelegate
const Locale('ja'): const JaFeedbackLocalizations(),
const Locale('el'): const ElFeedbackLocalizations(),
const Locale('bg'): const BgFeedbackLocalizations(),
const Locale('es'): const EsFeedbackLocalizations()
const Locale('es'): const EsFeedbackLocalizations(),
const Locale('fa'): const FaFeedbackLocalizations(),
};

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

0 comments on commit f39a4b4

Please sign in to comment.