Files
CalendarApi/frontend/node_modules/date-fns/locale/tr/_lib/localize.cjs
Michilis 75105b8b46 Add OpenAPI docs, frontend, migrations, and API updates
- OpenAPI: add missing endpoints (add-from-url, subscriptions, public availability)
- OpenAPI: CalendarSubscription schema, Subscriptions tag
- Frontend app
- Migrations: count_for_availability, subscriptions_sync, user_preferences, calendar_settings
- Config, rate limit, auth, calendar, booking, ICS, availability, user service updates

Made-with: Cursor
2026-03-02 14:07:55 +00:00

168 lines
3.1 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.

"use strict";
exports.localize = void 0;
var _index = require("../../_lib/buildLocalizeFn.cjs");
const eraValues = {
narrow: ["MÖ", "MS"],
abbreviated: ["MÖ", "MS"],
wide: ["Milattan Önce", "Milattan Sonra"],
};
const quarterValues = {
narrow: ["1", "2", "3", "4"],
abbreviated: ["1Ç", "2Ç", "3Ç", "4Ç"],
wide: ["İlk çeyrek", "İkinci Çeyrek", "Üçüncü çeyrek", "Son çeyrek"],
};
const monthValues = {
narrow: ["O", "Ş", "M", "N", "M", "H", "T", "A", "E", "E", "K", "A"],
abbreviated: [
"Oca",
"Şub",
"Mar",
"Nis",
"May",
"Haz",
"Tem",
"Ağu",
"Eyl",
"Eki",
"Kas",
"Ara",
],
wide: [
"Ocak",
"Şubat",
"Mart",
"Nisan",
"Mayıs",
"Haziran",
"Temmuz",
"Ağustos",
"Eylül",
"Ekim",
"Kasım",
"Aralık",
],
};
const dayValues = {
narrow: ["P", "P", "S", "Ç", "P", "C", "C"],
short: ["Pz", "Pt", "Sa", "Ça", "Pe", "Cu", "Ct"],
abbreviated: ["Paz", "Pzt", "Sal", "Çar", "Per", "Cum", "Cts"],
wide: [
"Pazar",
"Pazartesi",
"Salı",
"Çarşamba",
"Perşembe",
"Cuma",
"Cumartesi",
],
};
const dayPeriodValues = {
narrow: {
am: "öö",
pm: "ös",
midnight: "gy",
noon: "ö",
morning: "sa",
afternoon: "ös",
evening: "ak",
night: "ge",
},
abbreviated: {
am: "ÖÖ",
pm: "ÖS",
midnight: "gece yarısı",
noon: "öğle",
morning: "sabah",
afternoon: "öğleden sonra",
evening: "akşam",
night: "gece",
},
wide: {
am: "Ö.Ö.",
pm: "Ö.S.",
midnight: "gece yarısı",
noon: "öğle",
morning: "sabah",
afternoon: "öğleden sonra",
evening: "akşam",
night: "gece",
},
};
const formattingDayPeriodValues = {
narrow: {
am: "öö",
pm: "ös",
midnight: "gy",
noon: "ö",
morning: "sa",
afternoon: "ös",
evening: "ak",
night: "ge",
},
abbreviated: {
am: "ÖÖ",
pm: "ÖS",
midnight: "gece yarısı",
noon: "öğlen",
morning: "sabahleyin",
afternoon: "öğleden sonra",
evening: "akşamleyin",
night: "geceleyin",
},
wide: {
am: "ö.ö.",
pm: "ö.s.",
midnight: "gece yarısı",
noon: "öğlen",
morning: "sabahleyin",
afternoon: "öğleden sonra",
evening: "akşamleyin",
night: "geceleyin",
},
};
const ordinalNumber = (dirtyNumber, _options) => {
const number = Number(dirtyNumber);
return number + ".";
};
const localize = (exports.localize = {
ordinalNumber,
era: (0, _index.buildLocalizeFn)({
values: eraValues,
defaultWidth: "wide",
}),
quarter: (0, _index.buildLocalizeFn)({
values: quarterValues,
defaultWidth: "wide",
argumentCallback: (quarter) => Number(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",
}),
});