diff --git a/lib/simple_moment.dart b/lib/simple_moment.dart index 12d8ede..09777d1 100644 --- a/lib/simple_moment.dart +++ b/lib/simple_moment.dart @@ -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'; diff --git a/lib/src/locales/ar.dart b/lib/src/locales/ar.dart new file mode 100644 index 0000000..53108ae --- /dev/null +++ b/lib/src/locales/ar.dart @@ -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; +} \ No newline at end of file