diff options
Diffstat (limited to 'node_modules/date-fns/locale/tr')
| -rw-r--r-- | node_modules/date-fns/locale/tr/_lib/formatDistance/index.js | 91 | ||||
| -rw-r--r-- | node_modules/date-fns/locale/tr/_lib/formatLong/index.js | 43 | ||||
| -rw-r--r-- | node_modules/date-fns/locale/tr/_lib/formatRelative/index.js | 20 | ||||
| -rw-r--r-- | node_modules/date-fns/locale/tr/_lib/localize/index.js | 128 | ||||
| -rw-r--r-- | node_modules/date-fns/locale/tr/_lib/match/index.js | 110 | ||||
| -rw-r--r-- | node_modules/date-fns/locale/tr/index.d.ts | 4 | ||||
| -rw-r--r-- | node_modules/date-fns/locale/tr/index.js | 41 | ||||
| -rw-r--r-- | node_modules/date-fns/locale/tr/index.js.flow | 35 | ||||
| -rw-r--r-- | node_modules/date-fns/locale/tr/package.json | 5 |
9 files changed, 477 insertions, 0 deletions
diff --git a/node_modules/date-fns/locale/tr/_lib/formatDistance/index.js b/node_modules/date-fns/locale/tr/_lib/formatDistance/index.js new file mode 100644 index 0000000..b17b485 --- /dev/null +++ b/node_modules/date-fns/locale/tr/_lib/formatDistance/index.js @@ -0,0 +1,91 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +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; +}; +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default;
\ No newline at end of file diff --git a/node_modules/date-fns/locale/tr/_lib/formatLong/index.js b/node_modules/date-fns/locale/tr/_lib/formatLong/index.js new file mode 100644 index 0000000..d323b27 --- /dev/null +++ b/node_modules/date-fns/locale/tr/_lib/formatLong/index.js @@ -0,0 +1,43 @@ +"use strict"; + +var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default; +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var _index = _interopRequireDefault(require("../../../_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: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default;
\ No newline at end of file diff --git a/node_modules/date-fns/locale/tr/_lib/formatRelative/index.js b/node_modules/date-fns/locale/tr/_lib/formatRelative/index.js new file mode 100644 index 0000000..4a0e0dc --- /dev/null +++ b/node_modules/date-fns/locale/tr/_lib/formatRelative/index.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +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]; +}; +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default;
\ No newline at end of file diff --git a/node_modules/date-fns/locale/tr/_lib/localize/index.js b/node_modules/date-fns/locale/tr/_lib/localize/index.js new file mode 100644 index 0000000..bdc0cb2 --- /dev/null +++ b/node_modules/date-fns/locale/tr/_lib/localize/index.js @@ -0,0 +1,128 @@ +"use strict"; + +var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default; +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var _index = _interopRequireDefault(require("../../../_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: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return Number(quarter) - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default;
\ No newline at end of file diff --git a/node_modules/date-fns/locale/tr/_lib/match/index.js b/node_modules/date-fns/locale/tr/_lib/match/index.js new file mode 100644 index 0000000..a69f16d --- /dev/null +++ b/node_modules/date-fns/locale/tr/_lib/match/index.js @@ -0,0 +1,110 @@ +"use strict"; + +var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default; +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); +var _index2 = _interopRequireDefault(require("../../../_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: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default;
\ No newline at end of file diff --git a/node_modules/date-fns/locale/tr/index.d.ts b/node_modules/date-fns/locale/tr/index.d.ts new file mode 100644 index 0000000..d4c2e0a --- /dev/null +++ b/node_modules/date-fns/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/locale/tr/index.js b/node_modules/date-fns/locale/tr/index.js new file mode 100644 index 0000000..1b97ab7 --- /dev/null +++ b/node_modules/date-fns/locale/tr/index.js @@ -0,0 +1,41 @@ +"use strict"; + +var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default; +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); +var _index5 = _interopRequireDefault(require("./_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: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default;
\ No newline at end of file diff --git a/node_modules/date-fns/locale/tr/index.js.flow b/node_modules/date-fns/locale/tr/index.js.flow new file mode 100644 index 0000000..b9dfe66 --- /dev/null +++ b/node_modules/date-fns/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/locale/tr/package.json b/node_modules/date-fns/locale/tr/package.json new file mode 100644 index 0000000..eca88ff --- /dev/null +++ b/node_modules/date-fns/locale/tr/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/tr/index.js", + "typings": "../../typings.d.ts" +}
\ No newline at end of file |
