Skip to content

Commit f39a4b4

Browse files
authored
Farsi has been added as a localization (#291)
* Update translation.dart persian added * Update translation.dart small change * Update translation.dart small text issue * Update translation.dart change in the texts
1 parent f919145 commit f39a4b4

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

feedback/lib/src/l18n/translation.dart

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,24 @@ class EnFeedbackLocalizations extends FeedbackLocalizations {
8484
String get navigate => 'Navigate';
8585
}
8686

87+
/// Default persian localization
88+
class FaFeedbackLocalizations extends FeedbackLocalizations {
89+
/// Creates a [FaFeedbackLocalizations].
90+
const FaFeedbackLocalizations();
91+
92+
@override
93+
String get submitButtonText => 'تایید';
94+
95+
@override
96+
String get feedbackDescriptionText => 'چه مشکلی پیش آمده ؟';
97+
98+
@override
99+
String get draw => 'رسم';
100+
101+
@override
102+
String get navigate => 'پیمایش';
103+
}
104+
87105
/// Default french localization
88106
class FrFeedbackLocalizations extends FeedbackLocalizations {
89107
/// Creates a [FrFeedbackLocalizations].
@@ -348,7 +366,8 @@ class GlobalFeedbackLocalizationsDelegate
348366
const Locale('ja'): const JaFeedbackLocalizations(),
349367
const Locale('el'): const ElFeedbackLocalizations(),
350368
const Locale('bg'): const BgFeedbackLocalizations(),
351-
const Locale('es'): const EsFeedbackLocalizations()
369+
const Locale('es'): const EsFeedbackLocalizations(),
370+
const Locale('fa'): const FaFeedbackLocalizations(),
352371
};
353372

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

0 commit comments

Comments
 (0)