forked from moment/moment
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
498 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
// moment.js locale configuration | ||
// locale : Tunisian Arabic (ar-tn) | ||
|
||
(function (factory) { | ||
if (typeof define === 'function' && define.amd) { | ||
define(['moment'], factory); // AMD | ||
} else if (typeof exports === 'object') { | ||
module.exports = factory(require('../moment')); // Node | ||
} else { | ||
factory((typeof global !== 'undefined' ? global : this).moment); // node or other global | ||
} | ||
}(function (moment) { | ||
return moment.defineLocale('ar-tn', { | ||
months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'), | ||
monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'), | ||
weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), | ||
weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), | ||
weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), | ||
longDateFormat: { | ||
LT: 'HH:mm', | ||
LTS: 'LT:ss', | ||
L: 'DD/MM/YYYY', | ||
LL: 'D MMMM YYYY', | ||
LLL: 'D MMMM YYYY LT', | ||
LLLL: 'dddd D MMMM YYYY LT' | ||
}, | ||
calendar: { | ||
sameDay: '[اليوم على الساعة] LT', | ||
nextDay: '[غدا على الساعة] LT', | ||
nextWeek: 'dddd [على الساعة] LT', | ||
lastDay: '[أمس على الساعة] LT', | ||
lastWeek: 'dddd [على الساعة] LT', | ||
sameElse: 'L' | ||
}, | ||
relativeTime: { | ||
future: 'في %s', | ||
past: 'منذ %s', | ||
s: 'ثوان', | ||
m: 'دقيقة', | ||
mm: '%d دقائق', | ||
h: 'ساعة', | ||
hh: '%d ساعات', | ||
d: 'يوم', | ||
dd: '%d أيام', | ||
M: 'شهر', | ||
MM: '%d أشهر', | ||
y: 'سنة', | ||
yy: '%d سنوات' | ||
}, | ||
week: { | ||
dow: 1, // Monday is the first day of the week. | ||
doy: 4 // The week that contains Jan 4th is the first week of the year. | ||
} | ||
}); | ||
})); |
Oops, something went wrong.