123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172 |
- "use strict";
- exports.localize = void 0;
- var _index = require("../../_lib/buildLocalizeFn.cjs");
- const eraValues = {
- narrow: ["ម.គស", "គស"],
- abbreviated: ["មុនគ.ស", "គ.ស"],
- wide: ["មុនគ្រិស្តសករាជ", "នៃគ្រិស្តសករាជ"],
- };
- const quarterValues = {
- narrow: ["1", "2", "3", "4"],
- abbreviated: ["Q1", "Q2", "Q3", "Q4"],
- wide: ["ត្រីមាសទី 1", "ត្រីមាសទី 2", "ត្រីមាសទី 3", "ត្រីមាសទី 4"],
- };
- 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, _) => {
- const number = Number(dirtyNumber);
- return number.toString();
- };
- const localize = (exports.localize = {
- ordinalNumber,
- era: (0, _index.buildLocalizeFn)({
- values: eraValues,
- defaultWidth: "wide",
- }),
- quarter: (0, _index.buildLocalizeFn)({
- values: quarterValues,
- defaultWidth: "wide",
- argumentCallback: (quarter) => quarter - 1,
- }),
- month: (0, _index.buildLocalizeFn)({
- values: monthValues,
- defaultWidth: "wide",
- }),
- day: (0, _index.buildLocalizeFn)({
- values: dayValues,
- defaultWidth: "wide",
- }),
- dayPeriod: (0, _index.buildLocalizeFn)({
- values: dayPeriodValues,
- defaultWidth: "wide",
- formattingValues: formattingDayPeriodValues,
- defaultFormattingWidth: "wide",
- }),
- });
|