timepiece/node_modules/date-fns/locale/ug/_lib/localize.mjs

177 lines
3.9 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.mjs";
const eraValues = {
narrow: ["ب", "ك"],
abbreviated: ["ب", "ك"],
wide: ["مىيلادىدىن بۇرۇن", "مىيلادىدىن كىيىن"],
};
const quarterValues = {
narrow: ["1", "2", "3", "4"],
abbreviated: ["1", "2", "3", "4"],
wide: ["بىرىنجى چارەك", "ئىككىنجى چارەك", "ئۈچىنجى چارەك", "تۆتىنجى چارەك"],
};
// Note: in English, the names of days of the week and months are capitalized.
// If you are making a new locale based on this one, check if the same is true for the language you're working on.
// Generally, formatted dates should look like they are in the middle of a sentence,
// e.g. in Spanish language the weekdays and months should be in the lowercase.
const monthValues = {
narrow: ["ي", "ف", "م", "ا", "م", "ى", "ى", "ا", "س", "ۆ", "ن", "د"],
abbreviated: [
"يانۋار",
"فېۋىرال",
"مارت",
"ئاپرىل",
"ماي",
"ئىيۇن",
"ئىيول",
"ئاۋغۇست",
"سىنتەبىر",
"ئۆكتەبىر",
"نويابىر",
"دىكابىر",
],
wide: [
"يانۋار",
"فېۋىرال",
"مارت",
"ئاپرىل",
"ماي",
"ئىيۇن",
"ئىيول",
"ئاۋغۇست",
"سىنتەبىر",
"ئۆكتەبىر",
"نويابىر",
"دىكابىر",
],
};
const dayValues = {
narrow: ["ي", "د", "س", "چ", "پ", "ج", "ش"],
short: ["ي", "د", "س", "چ", "پ", "ج", "ش"],
abbreviated: [
"يەكشەنبە",
"دۈشەنبە",
"سەيشەنبە",
"چارشەنبە",
"پەيشەنبە",
"جۈمە",
"شەنبە",
],
wide: [
"يەكشەنبە",
"دۈشەنبە",
"سەيشەنبە",
"چارشەنبە",
"پەيشەنبە",
"جۈمە",
"شەنبە",
],
};
const dayPeriodValues = {
narrow: {
am: "ئە",
pm: "چ",
midnight: "ك",
noon: "چ",
morning: "ئەتىگەن",
afternoon: "چۈشتىن كىيىن",
evening: "ئاخشىم",
night: "كىچە",
},
abbreviated: {
am: "ئە",
pm: "چ",
midnight: "ك",
noon: "چ",
morning: "ئەتىگەن",
afternoon: "چۈشتىن كىيىن",
evening: "ئاخشىم",
night: "كىچە",
},
wide: {
am: "ئە",
pm: "چ",
midnight: "ك",
noon: "چ",
morning: "ئەتىگەن",
afternoon: "چۈشتىن كىيىن",
evening: "ئاخشىم",
night: "كىچە",
},
};
const formattingDayPeriodValues = {
narrow: {
am: "ئە",
pm: "چ",
midnight: "ك",
noon: "چ",
morning: "ئەتىگەندە",
afternoon: "چۈشتىن كىيىن",
evening: "ئاخشامدا",
night: "كىچىدە",
},
abbreviated: {
am: "ئە",
pm: "چ",
midnight: "ك",
noon: "چ",
morning: "ئەتىگەندە",
afternoon: "چۈشتىن كىيىن",
evening: "ئاخشامدا",
night: "كىچىدە",
},
wide: {
am: "ئە",
pm: "چ",
midnight: "ك",
noon: "چ",
morning: "ئەتىگەندە",
afternoon: "چۈشتىن كىيىن",
evening: "ئاخشامدا",
night: "كىچىدە",
},
};
const ordinalNumber = (dirtyNumber, _options) => {
return String(dirtyNumber);
};
export const localize = {
ordinalNumber,
era: buildLocalizeFn({
values: eraValues,
defaultWidth: "wide",
}),
quarter: buildLocalizeFn({
values: quarterValues,
defaultWidth: "wide",
argumentCallback: (quarter) => quarter - 1,
}),
month: buildLocalizeFn({
values: monthValues,
defaultWidth: "wide",
}),
day: buildLocalizeFn({
values: dayValues,
defaultWidth: "wide",
}),
dayPeriod: buildLocalizeFn({
values: dayPeriodValues,
defaultWidth: "wide",
formattingValues: formattingDayPeriodValues,
defaultFormattingWidth: "wide",
}),
};