-
Notifications
You must be signed in to change notification settings - Fork 7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[new locale] added new locale:or odiya indian lang
- Loading branch information
Showing
2 changed files
with
586 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,86 @@ | ||
//! moment.js locale configuration | ||
//! locale : Odia [or] | ||
//! author : Beena Avireni : https://github.com/avireni | ||
|
||
import moment from '../moment'; | ||
|
||
export default moment.defineLocale('or', { | ||
months: 'ଜାନୁଆରୀ_ଫେବ୍ରୁୟାରୀ_ମାର୍ଚ୍ଚ_ଅପ୍ରେଲ_ମେ_ଜୁନ_ଜୁଲାଇ_ଅଗଷ୍ଟ_ସେପ୍ଟେମ୍ବର_ଅକ୍ଟୋବର_ନଭେମ୍ବର_ଡିସେମ୍ବର'.split( | ||
'_' | ||
), | ||
monthsShort: 'ଜାନ_ଫେବ୍ରୁ_ମାର୍_ଅପ୍ରଲ_ମେ_ଜୁନ_ଜୁଲ_ଅଗଷ୍ଟ_ସେପ୍_ଅକ୍ଟୋବ_ନଭେମ_ଡିସେ'.split( | ||
'_' | ||
), | ||
monthsParseExact: true, | ||
weekdays: 'ରବିବାର_ସୋମବାର_ମଙ୍ଗଳବାର_ବୁଧବାର_ଗୁରୁବାର_ଶୁକ୍ରବାର_ଶନିବାର'.split( | ||
'_' | ||
), | ||
weekdaysShort: 'ରବି_ସୋମ_ମଙ୍ଗଳ_ବୁଧ_ଗୁରୁବ_ଶୁକ୍ରବ_ଶନି'.split('_'), | ||
weekdaysMin: 'ର_ସୋ_ମ_ବୁ_ଗୁ_ଶୁ_ଶ'.split('_'), | ||
longDateFormat: { | ||
LT: 'A h:mm', | ||
LTS: 'A h:mm:ss', | ||
L: 'DD/MM/YYYY', | ||
LL: 'D MMMM YYYY', | ||
LLL: 'D MMMM YYYY, A h:mm', | ||
LLLL: 'dddd, D MMMM YYYY, A h:mm', | ||
}, | ||
calendar: { | ||
sameDay: '[ଆଜି |] LT', | ||
nextDay: '[ଆସନ୍ତାକାଲି |] LT', | ||
nextWeek: 'dddd, LT', | ||
lastDay: '[ଗତକାଲି] LT', | ||
lastWeek: '[ଶେଷ] dddd, LT', | ||
sameElse: 'L', | ||
}, | ||
relativeTime: { | ||
future: '%s ରେ', | ||
past: '%s ପୂର୍ବରୁ', | ||
s: 'କିଛି ସେକେଣ୍ଡ୍ |', | ||
ss: '%d ସେକେଣ୍ଡ୍ |', | ||
m: 'ଏକ ମିନିଟ୍ |', | ||
mm: '%d ମିନିଟ୍ |', | ||
h: 'ଏକ ଘଣ୍ଟା', | ||
hh: '%d ଘଣ୍ଟା', | ||
d: 'ଗୋଟେ ଦିନ', | ||
dd: '%d ଦିନ', | ||
M: 'ଏକ ମାସ', | ||
MM: '%d ମାସଗୁଡିକ', | ||
y: 'ଗୋଟିଏ ବର୍ଷ', | ||
yy: '%d ବର୍ଷ', | ||
}, | ||
dayOfMonthOrdinalParse: /\d{1,2}ର୍ଥ/, | ||
ordinal: '%dର୍ଥ', | ||
meridiemParse: /ରାତି|ସକାଳ|ଅପରାହ୍ନ|ସନ୍ଧ୍ୟା/, | ||
meridiemHour: function (hour, meridiem) { | ||
if (hour === 12) { | ||
hour = 0; | ||
} | ||
if (meridiem === 'ରାତି') { | ||
return hour < 4 ? hour : hour + 12; | ||
} else if (meridiem === 'ସକାଳ') { | ||
return hour; | ||
} else if (meridiem === 'ଅପରାହ୍ନ') { | ||
return hour >= 10 ? hour : hour + 12; | ||
} else if (meridiem === 'ସନ୍ଧ୍ୟା') { | ||
return hour + 12; | ||
} | ||
}, | ||
meridiem: function (hour, minute, isLower) { | ||
if (hour < 4) { | ||
return 'ରାତି'; | ||
} else if (hour < 10) { | ||
return 'ସକାଳ'; | ||
} else if (hour < 17) { | ||
return 'ଅପରାହ୍ନ'; | ||
} else if (hour < 20) { | ||
return 'ସନ୍ଧ୍ୟା'; | ||
} else { | ||
return 'ରାତି'; | ||
} | ||
}, | ||
week: { | ||
dow: 0, // Sunday is the first day of the week. | ||
doy: 6, // The week that contains Jan 6th is the first week of the year. | ||
}, | ||
}); |
Oops, something went wrong.