123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193 |
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- // Source: https://www.unicode.org/cldr/charts/32/summary/te.html
- var formatDistanceLocale = {
- lessThanXSeconds: {
- standalone: {
- one: 'సెకను కన్నా తక్కువ',
- other: '{{count}} సెకన్ల కన్నా తక్కువ'
- },
- withPreposition: {
- one: 'సెకను',
- other: '{{count}} సెకన్ల'
- }
- },
- xSeconds: {
- standalone: {
- one: 'ఒక సెకను',
- // CLDR #1314
- other: '{{count}} సెకన్ల'
- },
- withPreposition: {
- one: 'ఒక సెకను',
- other: '{{count}} సెకన్ల'
- }
- },
- halfAMinute: {
- standalone: 'అర నిమిషం',
- withPreposition: 'అర నిమిషం'
- },
- lessThanXMinutes: {
- standalone: {
- one: 'ఒక నిమిషం కన్నా తక్కువ',
- other: '{{count}} నిమిషాల కన్నా తక్కువ'
- },
- withPreposition: {
- one: 'ఒక నిమిషం',
- other: '{{count}} నిమిషాల'
- }
- },
- xMinutes: {
- standalone: {
- one: 'ఒక నిమిషం',
- // CLDR #1311
- other: '{{count}} నిమిషాలు'
- },
- withPreposition: {
- one: 'ఒక నిమిషం',
- // CLDR #1311
- other: '{{count}} నిమిషాల'
- }
- },
- aboutXHours: {
- standalone: {
- one: 'సుమారు ఒక గంట',
- other: 'సుమారు {{count}} గంటలు'
- },
- withPreposition: {
- one: 'సుమారు ఒక గంట',
- other: 'సుమారు {{count}} గంటల'
- }
- },
- xHours: {
- standalone: {
- one: 'ఒక గంట',
- // CLDR #1308
- other: '{{count}} గంటలు'
- },
- withPreposition: {
- one: 'ఒక గంట',
- other: '{{count}} గంటల'
- }
- },
- xDays: {
- standalone: {
- one: 'ఒక రోజు',
- // CLDR #1292
- other: '{{count}} రోజులు'
- },
- withPreposition: {
- one: 'ఒక రోజు',
- other: '{{count}} రోజుల'
- }
- },
- aboutXWeeks: {
- standalone: {
- one: 'సుమారు ఒక వారం',
- other: 'సుమారు {{count}} వారాలు'
- },
- withPreposition: {
- one: 'సుమారు ఒక వారం',
- other: 'సుమారు {{count}} వారాలల'
- }
- },
- xWeeks: {
- standalone: {
- one: 'ఒక వారం',
- other: '{{count}} వారాలు'
- },
- withPreposition: {
- one: 'ఒక వారం',
- other: '{{count}} వారాలల'
- }
- },
- aboutXMonths: {
- standalone: {
- one: 'సుమారు ఒక నెల',
- other: 'సుమారు {{count}} నెలలు'
- },
- withPreposition: {
- one: 'సుమారు ఒక నెల',
- other: 'సుమారు {{count}} నెలల'
- }
- },
- xMonths: {
- standalone: {
- one: 'ఒక నెల',
- // CLDR #1281
- other: '{{count}} నెలలు'
- },
- withPreposition: {
- one: 'ఒక నెల',
- other: '{{count}} నెలల'
- }
- },
- aboutXYears: {
- standalone: {
- one: 'సుమారు ఒక సంవత్సరం',
- other: 'సుమారు {{count}} సంవత్సరాలు'
- },
- withPreposition: {
- one: 'సుమారు ఒక సంవత్సరం',
- other: 'సుమారు {{count}} సంవత్సరాల'
- }
- },
- xYears: {
- standalone: {
- one: 'ఒక సంవత్సరం',
- // CLDR #1275
- other: '{{count}} సంవత్సరాలు'
- },
- withPreposition: {
- one: 'ఒక సంవత్సరం',
- other: '{{count}} సంవత్సరాల'
- }
- },
- overXYears: {
- standalone: {
- one: 'ఒక సంవత్సరం పైగా',
- other: '{{count}} సంవత్సరాలకు పైగా'
- },
- withPreposition: {
- one: 'ఒక సంవత్సరం',
- other: '{{count}} సంవత్సరాల'
- }
- },
- almostXYears: {
- standalone: {
- one: 'దాదాపు ఒక సంవత్సరం',
- other: 'దాదాపు {{count}} సంవత్సరాలు'
- },
- withPreposition: {
- one: 'దాదాపు ఒక సంవత్సరం',
- other: 'దాదాపు {{count}} సంవత్సరాల'
- }
- }
- };
- var formatDistance = function formatDistance(token, count, options) {
- var result;
- var tokenValue = options !== null && options !== void 0 && options.addSuffix ? formatDistanceLocale[token].withPreposition : formatDistanceLocale[token].standalone;
- 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 + 'లో';
- } else {
- return result + ' క్రితం';
- }
- }
- return result;
- };
- var _default = formatDistance;
- exports.default = _default;
- module.exports = exports.default;
|