Skip to content

Commit

Permalink
add arabic locale (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
redbayoub authored Oct 12, 2020
1 parent 08dd489 commit 24e56a8
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/simple_moment.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ library simple_moment;

export 'src/identifier_position.dart';
export 'src/localedata.dart';
export 'src/locales/ar.dart';
export 'src/locales/ca_es.dart';
export 'src/locales/de.dart';
export 'src/locales/en.dart';
Expand Down
35 changes: 35 additions & 0 deletions lib/src/locales/ar.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// Copyright (c) 2016, rinukkusu. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.

import '../localedata.dart';
import '../identifier_position.dart';

class LocaleAr implements ILocaleData {
final String _localeString;
String get localeString => _localeString;

LocaleAr([this._localeString = "ar"]);

String get seconds => 'ثواني';

String get aMinute => 'دقيقة واحدة';
String get minutes => '%i دقائق';

String get anHour => 'ساعة واحدة';
String get hours => '%i ساعات';

String get aDay => 'يوم واحد';
String get days => '%i أيام';

String get aMonth => 'شهر واحد';
String get months => '%i أشهر';

String get aYear => 'سنة واحدة';
String get years => '%i سنوات';

String get futureIdentifier => 'بعد';
String get pastIdentifier => 'منذ';

IdentifierPosition get futurePosition => IdentifierPosition.prepend;
IdentifierPosition get pastPosition => IdentifierPosition.prepend;
}

0 comments on commit 24e56a8

Please sign in to comment.