%PDF- %PDF-
Direktori : /var/www/html/node_modules/date-fns/locale/uz-Cyrl/_lib/formatDistance/ |
Current File : /var/www/html/node_modules/date-fns/locale/uz-Cyrl/_lib/formatDistance/index.js |
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = formatDistance; var formatDistanceLocale = { lessThanXSeconds: { one: '1 сониядан кам', other: '{{count}} сониядан кам' }, xSeconds: { one: '1 сония', other: '{{count}} сония' }, halfAMinute: 'ярим дақиқа', lessThanXMinutes: { one: '1 дақиқадан кам', other: '{{count}} дақиқадан кам' }, xMinutes: { one: '1 дақиқа', other: '{{count}} дақиқа' }, aboutXHours: { one: 'тахминан 1 соат', other: 'тахминан {{count}} соат' }, xHours: { one: '1 соат', other: '{{count}} соат' }, xDays: { one: '1 кун', other: '{{count}} кун' }, aboutXWeeks: { one: 'тахминан 1 хафта', other: 'тахминан {{count}} хафта' }, xWeeks: { one: '1 хафта', other: '{{count}} хафта' }, aboutXMonths: { one: 'тахминан 1 ой', other: 'тахминан {{count}} ой' }, xMonths: { one: '1 ой', other: '{{count}} ой' }, aboutXYears: { one: 'тахминан 1 йил', other: 'тахминан {{count}} йил' }, xYears: { one: '1 йил', other: '{{count}} йил' }, overXYears: { one: '1 йилдан кўп', other: '{{count}} йилдан кўп' }, almostXYears: { one: 'деярли 1 йил', other: 'деярли {{count}} йил' } }; function formatDistance(token, count, options) { options = options || {}; var result; if (typeof formatDistanceLocale[token] === 'string') { result = formatDistanceLocale[token]; } else if (count === 1) { result = formatDistanceLocale[token].one; } else { result = formatDistanceLocale[token].other.replace('{{count}}', count); } if (options.addSuffix) { if (options.comparison > 0) { return result + 'дан кейин'; } else { return result + ' олдин'; } } return result; } module.exports = exports.default;