diff options
Diffstat (limited to 'node_modules/date-fns/locale/te/_lib/formatDistance/index.js')
| -rw-r--r-- | node_modules/date-fns/locale/te/_lib/formatDistance/index.js | 193 |
1 files changed, 193 insertions, 0 deletions
diff --git a/node_modules/date-fns/locale/te/_lib/formatDistance/index.js b/node_modules/date-fns/locale/te/_lib/formatDistance/index.js new file mode 100644 index 0000000..1262f9b --- /dev/null +++ b/node_modules/date-fns/locale/te/_lib/formatDistance/index.js @@ -0,0 +1,193 @@ +"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;
\ No newline at end of file |
