aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/date-fns/esm/locale/tr
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-06-28 17:26:46 -0700
committerPinapelz <yukais@pinapelz.com>2025-06-28 17:43:56 -0700
commite4fa1e69e7ebfb627c7198fd1a9881e9327ec4d4 (patch)
tree06284a538a6008eca75051399e47db4e5d50301c /node_modules/date-fns/esm/locale/tr
initial commit: scaffolding
Diffstat (limited to 'node_modules/date-fns/esm/locale/tr')
-rw-r--r--node_modules/date-fns/esm/locale/tr/_lib/formatDistance/index.js83
-rw-r--r--node_modules/date-fns/esm/locale/tr/_lib/formatLong/index.js34
-rw-r--r--node_modules/date-fns/esm/locale/tr/_lib/formatRelative/index.js12
-rw-r--r--node_modules/date-fns/esm/locale/tr/_lib/localize/index.js119
-rw-r--r--node_modules/date-fns/esm/locale/tr/_lib/match/index.js101
-rw-r--r--node_modules/date-fns/esm/locale/tr/index.d.ts4
-rw-r--r--node_modules/date-fns/esm/locale/tr/index.js32
-rw-r--r--node_modules/date-fns/esm/locale/tr/index.js.flow35
-rw-r--r--node_modules/date-fns/esm/locale/tr/package.json4
9 files changed, 424 insertions, 0 deletions
diff --git a/node_modules/date-fns/esm/locale/tr/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/tr/_lib/formatDistance/index.js
new file mode 100644
index 0000000..01af916
--- /dev/null
+++ b/node_modules/date-fns/esm/locale/tr/_lib/formatDistance/index.js
@@ -0,0 +1,83 @@
+var formatDistanceLocale = {
+ lessThanXSeconds: {
+ one: 'bir saniyeden az',
+ other: '{{count}} saniyeden az'
+ },
+ xSeconds: {
+ one: '1 saniye',
+ other: '{{count}} saniye'
+ },
+ halfAMinute: 'yarım dakika',
+ lessThanXMinutes: {
+ one: 'bir dakikadan az',
+ other: '{{count}} dakikadan az'
+ },
+ xMinutes: {
+ one: '1 dakika',
+ other: '{{count}} dakika'
+ },
+ aboutXHours: {
+ one: 'yaklaşık 1 saat',
+ other: 'yaklaşık {{count}} saat'
+ },
+ xHours: {
+ one: '1 saat',
+ other: '{{count}} saat'
+ },
+ xDays: {
+ one: '1 gün',
+ other: '{{count}} gün'
+ },
+ aboutXWeeks: {
+ one: 'yaklaşık 1 hafta',
+ other: 'yaklaşık {{count}} hafta'
+ },
+ xWeeks: {
+ one: '1 hafta',
+ other: '{{count}} hafta'
+ },
+ aboutXMonths: {
+ one: 'yaklaşık 1 ay',
+ other: 'yaklaşık {{count}} ay'
+ },
+ xMonths: {
+ one: '1 ay',
+ other: '{{count}} ay'
+ },
+ aboutXYears: {
+ one: 'yaklaşık 1 yıl',
+ other: 'yaklaşık {{count}} yıl'
+ },
+ xYears: {
+ one: '1 yıl',
+ other: '{{count}} yıl'
+ },
+ overXYears: {
+ one: '1 yıldan fazla',
+ other: '{{count}} yıldan fazla'
+ },
+ almostXYears: {
+ one: 'neredeyse 1 yıl',
+ other: 'neredeyse {{count}} yıl'
+ }
+};
+var formatDistance = function formatDistance(token, count, options) {
+ var result;
+ var tokenValue = formatDistanceLocale[token];
+ if (typeof tokenValue === 'string') {
+ result = tokenValue;
+ } else if (count === 1) {
+ result = tokenValue.one;
+ } else {
+ result = tokenValue.other.replace('{{count}}', count.toString());
+ }
+ if (options !== null && options !== void 0 && options.addSuffix) {
+ if (options.comparison && options.comparison > 0) {
+ return result + ' sonra';
+ } else {
+ return result + ' önce';
+ }
+ }
+ return result;
+};
+export default formatDistance; \ No newline at end of file
diff --git a/node_modules/date-fns/esm/locale/tr/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/tr/_lib/formatLong/index.js
new file mode 100644
index 0000000..4f14c57
--- /dev/null
+++ b/node_modules/date-fns/esm/locale/tr/_lib/formatLong/index.js
@@ -0,0 +1,34 @@
+import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js";
+var dateFormats = {
+ full: 'd MMMM y EEEE',
+ long: 'd MMMM y',
+ medium: 'd MMM y',
+ short: 'dd.MM.yyyy'
+};
+var timeFormats = {
+ full: 'HH:mm:ss zzzz',
+ long: 'HH:mm:ss z',
+ medium: 'HH:mm:ss',
+ short: 'HH:mm'
+};
+var dateTimeFormats = {
+ full: "{{date}} 'saat' {{time}}",
+ long: "{{date}} 'saat' {{time}}",
+ medium: '{{date}}, {{time}}',
+ short: '{{date}}, {{time}}'
+};
+var formatLong = {
+ date: buildFormatLongFn({
+ formats: dateFormats,
+ defaultWidth: 'full'
+ }),
+ time: buildFormatLongFn({
+ formats: timeFormats,
+ defaultWidth: 'full'
+ }),
+ dateTime: buildFormatLongFn({
+ formats: dateTimeFormats,
+ defaultWidth: 'full'
+ })
+};
+export default formatLong; \ No newline at end of file
diff --git a/node_modules/date-fns/esm/locale/tr/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/tr/_lib/formatRelative/index.js
new file mode 100644
index 0000000..2daebee
--- /dev/null
+++ b/node_modules/date-fns/esm/locale/tr/_lib/formatRelative/index.js
@@ -0,0 +1,12 @@
+var formatRelativeLocale = {
+ lastWeek: "'geçen hafta' eeee 'saat' p",
+ yesterday: "'dün saat' p",
+ today: "'bugün saat' p",
+ tomorrow: "'yarın saat' p",
+ nextWeek: "eeee 'saat' p",
+ other: 'P'
+};
+var formatRelative = function formatRelative(token, _date, _baseDate, _options) {
+ return formatRelativeLocale[token];
+};
+export default formatRelative; \ No newline at end of file
diff --git a/node_modules/date-fns/esm/locale/tr/_lib/localize/index.js b/node_modules/date-fns/esm/locale/tr/_lib/localize/index.js
new file mode 100644
index 0000000..87482fc
--- /dev/null
+++ b/node_modules/date-fns/esm/locale/tr/_lib/localize/index.js
@@ -0,0 +1,119 @@
+import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js";
+var eraValues = {
+ narrow: ['MÖ', 'MS'],
+ abbreviated: ['MÖ', 'MS'],
+ wide: ['Milattan Önce', 'Milattan Sonra']
+};
+var quarterValues = {
+ narrow: ['1', '2', '3', '4'],
+ abbreviated: ['1Ç', '2Ç', '3Ç', '4Ç'],
+ wide: ['İlk çeyrek', 'İkinci Çeyrek', 'Üçüncü çeyrek', 'Son çeyrek']
+};
+var 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']
+};
+var 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']
+};
+var 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'
+ }
+};
+var 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'
+ }
+};
+var ordinalNumber = function ordinalNumber(dirtyNumber, _options) {
+ var number = Number(dirtyNumber);
+ return number + '.';
+};
+var localize = {
+ ordinalNumber: ordinalNumber,
+ era: buildLocalizeFn({
+ values: eraValues,
+ defaultWidth: 'wide'
+ }),
+ quarter: buildLocalizeFn({
+ values: quarterValues,
+ defaultWidth: 'wide',
+ argumentCallback: function argumentCallback(quarter) {
+ return Number(quarter) - 1;
+ }
+ }),
+ month: buildLocalizeFn({
+ values: monthValues,
+ defaultWidth: 'wide'
+ }),
+ day: buildLocalizeFn({
+ values: dayValues,
+ defaultWidth: 'wide'
+ }),
+ dayPeriod: buildLocalizeFn({
+ values: dayPeriodValues,
+ defaultWidth: 'wide',
+ formattingValues: formattingDayPeriodValues,
+ defaultFormattingWidth: 'wide'
+ })
+};
+export default localize; \ No newline at end of file
diff --git a/node_modules/date-fns/esm/locale/tr/_lib/match/index.js b/node_modules/date-fns/esm/locale/tr/_lib/match/index.js
new file mode 100644
index 0000000..7a2525b
--- /dev/null
+++ b/node_modules/date-fns/esm/locale/tr/_lib/match/index.js
@@ -0,0 +1,101 @@
+import buildMatchFn from "../../../_lib/buildMatchFn/index.js";
+import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js";
+var matchOrdinalNumberPattern = /^(\d+)(\.)?/i;
+var parseOrdinalNumberPattern = /\d+/i;
+var matchEraPatterns = {
+ narrow: /^(mö|ms)/i,
+ abbreviated: /^(mö|ms)/i,
+ wide: /^(milattan önce|milattan sonra)/i
+};
+var parseEraPatterns = {
+ any: [/(^mö|^milattan önce)/i, /(^ms|^milattan sonra)/i]
+};
+var matchQuarterPatterns = {
+ narrow: /^[1234]/i,
+ abbreviated: /^[1234]ç/i,
+ wide: /^((i|İ)lk|(i|İ)kinci|üçüncü|son) çeyrek/i
+};
+var parseQuarterPatterns = {
+ any: [/1/i, /2/i, /3/i, /4/i],
+ abbreviated: [/1ç/i, /2ç/i, /3ç/i, /4ç/i],
+ wide: [/^(i|İ)lk çeyrek/i, /(i|İ)kinci çeyrek/i, /üçüncü çeyrek/i, /son çeyrek/i]
+};
+var matchMonthPatterns = {
+ narrow: /^[oşmnhtaek]/i,
+ abbreviated: /^(oca|şub|mar|nis|may|haz|tem|ağu|eyl|eki|kas|ara)/i,
+ wide: /^(ocak|şubat|mart|nisan|mayıs|haziran|temmuz|ağustos|eylül|ekim|kasım|aralık)/i
+};
+var parseMonthPatterns = {
+ narrow: [/^o/i, /^ş/i, /^m/i, /^n/i, /^m/i, /^h/i, /^t/i, /^a/i, /^e/i, /^e/i, /^k/i, /^a/i],
+ any: [/^o/i, /^ş/i, /^mar/i, /^n/i, /^may/i, /^h/i, /^t/i, /^ağ/i, /^ey/i, /^ek/i, /^k/i, /^ar/i]
+};
+var matchDayPatterns = {
+ narrow: /^[psçc]/i,
+ short: /^(pz|pt|sa|ça|pe|cu|ct)/i,
+ abbreviated: /^(paz|pzt|sal|çar|per|cum|cts)/i,
+ wide: /^(pazar(?!tesi)|pazartesi|salı|çarşamba|perşembe|cuma(?!rtesi)|cumartesi)/i
+};
+var parseDayPatterns = {
+ narrow: [/^p/i, /^p/i, /^s/i, /^ç/i, /^p/i, /^c/i, /^c/i],
+ any: [/^pz/i, /^pt/i, /^sa/i, /^ça/i, /^pe/i, /^cu/i, /^ct/i],
+ wide: [/^pazar(?!tesi)/i, /^pazartesi/i, /^salı/i, /^çarşamba/i, /^perşembe/i, /^cuma(?!rtesi)/i, /^cumartesi/i]
+};
+var matchDayPeriodPatterns = {
+ narrow: /^(öö|ös|gy|ö|sa|ös|ak|ge)/i,
+ any: /^(ö\.?\s?[ös]\.?|öğleden sonra|gece yarısı|öğle|(sabah|öğ|akşam|gece)(leyin))/i
+};
+var parseDayPeriodPatterns = {
+ any: {
+ am: /^ö\.?ö\.?/i,
+ pm: /^ö\.?s\.?/i,
+ midnight: /^(gy|gece yarısı)/i,
+ noon: /^öğ/i,
+ morning: /^sa/i,
+ afternoon: /^öğleden sonra/i,
+ evening: /^ak/i,
+ night: /^ge/i
+ }
+};
+var match = {
+ ordinalNumber: buildMatchPatternFn({
+ matchPattern: matchOrdinalNumberPattern,
+ parsePattern: parseOrdinalNumberPattern,
+ valueCallback: function valueCallback(value) {
+ return parseInt(value, 10);
+ }
+ }),
+ era: buildMatchFn({
+ matchPatterns: matchEraPatterns,
+ defaultMatchWidth: 'wide',
+ parsePatterns: parseEraPatterns,
+ defaultParseWidth: 'any'
+ }),
+ quarter: buildMatchFn({
+ matchPatterns: matchQuarterPatterns,
+ defaultMatchWidth: 'wide',
+ parsePatterns: parseQuarterPatterns,
+ defaultParseWidth: 'any',
+ valueCallback: function valueCallback(index) {
+ return index + 1;
+ }
+ }),
+ month: buildMatchFn({
+ matchPatterns: matchMonthPatterns,
+ defaultMatchWidth: 'wide',
+ parsePatterns: parseMonthPatterns,
+ defaultParseWidth: 'any'
+ }),
+ day: buildMatchFn({
+ matchPatterns: matchDayPatterns,
+ defaultMatchWidth: 'wide',
+ parsePatterns: parseDayPatterns,
+ defaultParseWidth: 'any'
+ }),
+ dayPeriod: buildMatchFn({
+ matchPatterns: matchDayPeriodPatterns,
+ defaultMatchWidth: 'any',
+ parsePatterns: parseDayPeriodPatterns,
+ defaultParseWidth: 'any'
+ })
+};
+export default match; \ No newline at end of file
diff --git a/node_modules/date-fns/esm/locale/tr/index.d.ts b/node_modules/date-fns/esm/locale/tr/index.d.ts
new file mode 100644
index 0000000..d4c2e0a
--- /dev/null
+++ b/node_modules/date-fns/esm/locale/tr/index.d.ts
@@ -0,0 +1,4 @@
+// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
+
+import { tr } from 'date-fns/locale'
+export default tr
diff --git a/node_modules/date-fns/esm/locale/tr/index.js b/node_modules/date-fns/esm/locale/tr/index.js
new file mode 100644
index 0000000..fcaf469
--- /dev/null
+++ b/node_modules/date-fns/esm/locale/tr/index.js
@@ -0,0 +1,32 @@
+import formatDistance from "./_lib/formatDistance/index.js";
+import formatLong from "./_lib/formatLong/index.js";
+import formatRelative from "./_lib/formatRelative/index.js";
+import localize from "./_lib/localize/index.js";
+import match from "./_lib/match/index.js";
+/**
+ * @type {Locale}
+ * @category Locales
+ * @summary Turkish locale.
+ * @language Turkish
+ * @iso-639-2 tur
+ * @author Alpcan Aydın [@alpcanaydin]{@link https://github.com/alpcanaydin}
+ * @author Berkay Sargın [@berkaey]{@link https://github.com/berkaey}
+ * @author Fatih Bulut [@bulutfatih]{@link https://github.com/bulutfatih}
+ * @author Ismail Demirbilek [@dbtek]{@link https://github.com/dbtek}
+ * @author İsmail Kayar [@ikayar]{@link https://github.com/ikayar}
+ *
+ *
+ */
+var locale = {
+ code: 'tr',
+ formatDistance: formatDistance,
+ formatLong: formatLong,
+ formatRelative: formatRelative,
+ localize: localize,
+ match: match,
+ options: {
+ weekStartsOn: 1 /* Monday */,
+ firstWeekContainsDate: 1
+ }
+};
+export default locale; \ No newline at end of file
diff --git a/node_modules/date-fns/esm/locale/tr/index.js.flow b/node_modules/date-fns/esm/locale/tr/index.js.flow
new file mode 100644
index 0000000..b9dfe66
--- /dev/null
+++ b/node_modules/date-fns/esm/locale/tr/index.js.flow
@@ -0,0 +1,35 @@
+// @flow
+// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
+
+export type Locale = {
+ code?: string,
+ formatDistance?: (...args: Array<any>) => any,
+ formatRelative?: (...args: Array<any>) => any,
+ localize?: {
+ ordinalNumber: (...args: Array<any>) => any,
+ era: (...args: Array<any>) => any,
+ quarter: (...args: Array<any>) => any,
+ month: (...args: Array<any>) => any,
+ day: (...args: Array<any>) => any,
+ dayPeriod: (...args: Array<any>) => any,
+ },
+ formatLong?: {
+ date: (...args: Array<any>) => any,
+ time: (...args: Array<any>) => any,
+ dateTime: (...args: Array<any>) => any,
+ },
+ match?: {
+ ordinalNumber: (...args: Array<any>) => any,
+ era: (...args: Array<any>) => any,
+ quarter: (...args: Array<any>) => any,
+ month: (...args: Array<any>) => any,
+ day: (...args: Array<any>) => any,
+ dayPeriod: (...args: Array<any>) => any,
+ },
+ options?: {
+ weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6,
+ firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7,
+ },
+}
+
+declare module.exports: Locale
diff --git a/node_modules/date-fns/esm/locale/tr/package.json b/node_modules/date-fns/esm/locale/tr/package.json
new file mode 100644
index 0000000..a7398d8
--- /dev/null
+++ b/node_modules/date-fns/esm/locale/tr/package.json
@@ -0,0 +1,4 @@
+{
+ "sideEffects": false,
+ "typings": "../../../typings.d.ts"
+} \ No newline at end of file
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage