123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var formatDistanceLocale = {
- lessThanXSeconds: {
- past: '{{count}} წამზე ნაკლები ხნის წინ',
- present: '{{count}} წამზე ნაკლები',
- future: '{{count}} წამზე ნაკლებში'
- },
- xSeconds: {
- past: '{{count}} წამის წინ',
- present: '{{count}} წამი',
- future: '{{count}} წამში'
- },
- halfAMinute: {
- past: 'ნახევარი წუთის წინ',
- present: 'ნახევარი წუთი',
- future: 'ნახევარი წუთში'
- },
- lessThanXMinutes: {
- past: '{{count}} წუთზე ნაკლები ხნის წინ',
- present: '{{count}} წუთზე ნაკლები',
- future: '{{count}} წუთზე ნაკლებში'
- },
- xMinutes: {
- past: '{{count}} წუთის წინ',
- present: '{{count}} წუთი',
- future: '{{count}} წუთში'
- },
- aboutXHours: {
- past: 'დაახლოებით {{count}} საათის წინ',
- present: 'დაახლოებით {{count}} საათი',
- future: 'დაახლოებით {{count}} საათში'
- },
- xHours: {
- past: '{{count}} საათის წინ',
- present: '{{count}} საათი',
- future: '{{count}} საათში'
- },
- xDays: {
- past: '{{count}} დღის წინ',
- present: '{{count}} დღე',
- future: '{{count}} დღეში'
- },
- aboutXWeeks: {
- past: 'დაახლოებით {{count}} კვირას წინ',
- present: 'დაახლოებით {{count}} კვირა',
- future: 'დაახლოებით {{count}} კვირაში'
- },
- xWeeks: {
- past: '{{count}} კვირას კვირა',
- present: '{{count}} კვირა',
- future: '{{count}} კვირაში'
- },
- aboutXMonths: {
- past: 'დაახლოებით {{count}} თვის წინ',
- present: 'დაახლოებით {{count}} თვე',
- future: 'დაახლოებით {{count}} თვეში'
- },
- xMonths: {
- past: '{{count}} თვის წინ',
- present: '{{count}} თვე',
- future: '{{count}} თვეში'
- },
- aboutXYears: {
- past: 'დაახლოებით {{count}} წლის წინ',
- present: 'დაახლოებით {{count}} წელი',
- future: 'დაახლოებით {{count}} წელში'
- },
- xYears: {
- past: '{{count}} წლის წინ',
- present: '{{count}} წელი',
- future: '{{count}} წელში'
- },
- overXYears: {
- past: '{{count}} წელზე მეტი ხნის წინ',
- present: '{{count}} წელზე მეტი',
- future: '{{count}} წელზე მეტი ხნის შემდეგ'
- },
- almostXYears: {
- past: 'თითქმის {{count}} წლის წინ',
- present: 'თითქმის {{count}} წელი',
- future: 'თითქმის {{count}} წელში'
- }
- };
- var formatDistance = function formatDistance(token, count, options) {
- var result;
- var tokenValue = formatDistanceLocale[token];
- if (typeof tokenValue === 'string') {
- result = tokenValue;
- } else if (options !== null && options !== void 0 && options.addSuffix && options.comparison && options.comparison > 0) {
- result = tokenValue.future.replace('{{count}}', String(count));
- } else if (options !== null && options !== void 0 && options.addSuffix) {
- result = tokenValue.past.replace('{{count}}', String(count));
- } else {
- result = tokenValue.present.replace('{{count}}', String(count));
- }
- return result;
- };
- var _default = formatDistance;
- exports.default = _default;
- module.exports = exports.default;
|