UNPKG

@fifteen/design-system-vue

Version:

Vue 3 (Composition API + Typescript) implementation of the Fifteen Design System

144 lines (143 loc) 3.3 kB
import { buildLocalizeFn as n } from "../../_lib/buildLocalizeFn.js"; const a = { narrow: ["ق", "ب"], abbreviated: ["ق.م.", "ب.م."], wide: ["قبل الميلاد", "بعد الميلاد"] }, i = { narrow: ["1", "2", "3", "4"], abbreviated: ["ر1", "ر2", "ر3", "ر4"], wide: ["الربع الأول", "الربع الثاني", "الربع الثالث", "الربع الرابع"] }, o = { narrow: ["ي", "ف", "م", "أ", "م", "ي", "ي", "أ", "س", "أ", "ن", "د"], abbreviated: [ "يناير", "فبراير", "مارس", "أبريل", "مايو", "يونيو", "يوليو", "أغسطس", "سبتمبر", "أكتوبر", "نوفمبر", "ديسمبر" ], wide: [ "يناير", "فبراير", "مارس", "أبريل", "مايو", "يونيو", "يوليو", "أغسطس", "سبتمبر", "أكتوبر", "نوفمبر", "ديسمبر" ] }, t = { narrow: ["ح", "ن", "ث", "ر", "خ", "ج", "س"], short: ["أحد", "اثنين", "ثلاثاء", "أربعاء", "خميس", "جمعة", "سبت"], abbreviated: ["أحد", "اثنين", "ثلاثاء", "أربعاء", "خميس", "جمعة", "سبت"], wide: [ "الأحد", "الاثنين", "الثلاثاء", "الأربعاء", "الخميس", "الجمعة", "السبت" ] }, r = { narrow: { am: "ص", pm: "م", morning: "الصباح", noon: "الظهر", afternoon: "بعد الظهر", evening: "المساء", night: "الليل", midnight: "منتصف الليل" }, abbreviated: { am: "ص", pm: "م", morning: "الصباح", noon: "الظهر", afternoon: "بعد الظهر", evening: "المساء", night: "الليل", midnight: "منتصف الليل" }, wide: { am: "ص", pm: "م", morning: "الصباح", noon: "الظهر", afternoon: "بعد الظهر", evening: "المساء", night: "الليل", midnight: "منتصف الليل" } }, d = { narrow: { am: "ص", pm: "م", morning: "في الصباح", noon: "الظهر", afternoon: "بعد الظهر", evening: "في المساء", night: "في الليل", midnight: "منتصف الليل" }, abbreviated: { am: "ص", pm: "م", morning: "في الصباح", noon: "الظهر", afternoon: "بعد الظهر", evening: "في المساء", night: "في الليل", midnight: "منتصف الليل" }, wide: { am: "ص", pm: "م", morning: "في الصباح", noon: "الظهر", afternoon: "بعد الظهر", evening: "في المساء", night: "في الليل", midnight: "منتصف الليل" } }, m = (e) => String(e), l = { ordinalNumber: m, era: n({ values: a, defaultWidth: "wide" }), quarter: n({ values: i, defaultWidth: "wide", argumentCallback: (e) => e - 1 }), month: n({ values: o, defaultWidth: "wide" }), day: n({ values: t, defaultWidth: "wide" }), dayPeriod: n({ values: r, defaultWidth: "wide", formattingValues: d, defaultFormattingWidth: "wide" }) }; export { l as localize };