Skip to content

Commit

Permalink
Merge pull request #64 from anasalhajhasan/ar_language
Browse files Browse the repository at this point in the history
Add Arabic language
  • Loading branch information
bazookon authored Aug 1, 2024
2 parents fc220ca + 070112e commit 3c58a6f
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/src/l10n/default_localizations.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'lang/ar.dart';
import 'lang/da.dart';
import 'lang/en.dart';
import 'lang/es.dart';
Expand All @@ -17,7 +18,8 @@ const localizations = <String, GiphyGetUILocalizationLabels>{
'lv': LvLocalizations(),
'et': EtLocalizations(),
'fr': FrLocalizations(),
'hu': HuLocalizations()
'hu': HuLocalizations(),
'ar': ArLocalizations()
};

class DefaultLocalizations extends EnLocalizations {
Expand Down
34 changes: 34 additions & 0 deletions lib/src/l10n/lang/ar.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import '../default_localizations.dart';

class ArLocalizations extends GiphyGetUILocalizationLabels {
@override
final String searchInputLabel;

@override
final String emojisLabel;

@override
final String gifsLabel;

@override
final String stickersLabel;

@override
final String moreBy;

@override
final String viewOnGiphy;

@override
final String poweredByGiphy;

const EnLocalizations({
this.searchInputLabel = 'بحث GIPHY',
this.emojisLabel = 'الرموز التعبيرية',
this.gifsLabel = 'صور متحركة',
this.stickersLabel = 'ملصقات',
this.moreBy = 'المزيد من',
this.viewOnGiphy = 'عرض على GIPHY',
this.poweredByGiphy = 'مدعوم بواسطة GIPHY',
});
}

0 comments on commit 3c58a6f

Please sign in to comment.