12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var formatDistanceLocale = {
- lessThanXSeconds: {
- one: 'sekunddan kam',
- other: '{{count}} sekunddan kam'
- },
- xSeconds: {
- one: '1 sekund',
- other: '{{count}} sekund'
- },
- halfAMinute: 'yarim minut',
- lessThanXMinutes: {
- one: 'bir minutdan kam',
- other: '{{count}} minutdan kam'
- },
- xMinutes: {
- one: '1 minut',
- other: '{{count}} minut'
- },
- aboutXHours: {
- one: 'tahminan 1 soat',
- other: 'tahminan {{count}} soat'
- },
- xHours: {
- one: '1 soat',
- other: '{{count}} soat'
- },
- xDays: {
- one: '1 kun',
- other: '{{count}} kun'
- },
- aboutXWeeks: {
- one: 'tahminan 1 hafta',
- other: 'tahminan {{count}} hafta'
- },
- xWeeks: {
- one: '1 hafta',
- other: '{{count}} hafta'
- },
- aboutXMonths: {
- one: 'tahminan 1 oy',
- other: 'tahminan {{count}} oy'
- },
- xMonths: {
- one: '1 oy',
- other: '{{count}} oy'
- },
- aboutXYears: {
- one: 'tahminan 1 yil',
- other: 'tahminan {{count}} yil'
- },
- xYears: {
- one: '1 yil',
- other: '{{count}} yil'
- },
- overXYears: {
- one: "1 yildan ko'p",
- other: "{{count}} yildan ko'p"
- },
- almostXYears: {
- one: 'deyarli 1 yil',
- other: 'deyarli {{count}} yil'
- }
- };
- 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}}', String(count));
- }
- if (options !== null && options !== void 0 && options.addSuffix) {
- if (options.comparison && options.comparison > 0) {
- return result + ' dan keyin';
- } else {
- return result + ' oldin';
- }
- }
- return result;
- };
- var _default = formatDistance;
- exports.default = _default;
- module.exports = exports.default;
|