aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/date-fns/locale/mn/_lib/formatDistance/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/date-fns/locale/mn/_lib/formatDistance/index.js')
-rw-r--r--node_modules/date-fns/locale/mn/_lib/formatDistance/index.js128
1 files changed, 128 insertions, 0 deletions
diff --git a/node_modules/date-fns/locale/mn/_lib/formatDistance/index.js b/node_modules/date-fns/locale/mn/_lib/formatDistance/index.js
new file mode 100644
index 0000000..959ac18
--- /dev/null
+++ b/node_modules/date-fns/locale/mn/_lib/formatDistance/index.js
@@ -0,0 +1,128 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.default = void 0;
+var formatDistanceLocale = {
+ lessThanXSeconds: {
+ one: 'секунд хүрэхгүй',
+ other: '{{count}} секунд хүрэхгүй'
+ },
+ xSeconds: {
+ one: '1 секунд',
+ other: '{{count}} секунд'
+ },
+ halfAMinute: 'хагас минут',
+ lessThanXMinutes: {
+ one: 'минут хүрэхгүй',
+ 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}} жил'
+ }
+};
+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) {
+ /**
+ * Append genitive case
+ */
+ var words = result.split(' ');
+ var lastword = words.pop();
+ result = words.join(' ');
+ switch (lastword) {
+ case 'секунд':
+ result += ' секундийн';
+ break;
+ case 'минут':
+ result += ' минутын';
+ break;
+ case 'цаг':
+ result += ' цагийн';
+ break;
+ case 'өдөр':
+ result += ' өдрийн';
+ break;
+ case 'сар':
+ result += ' сарын';
+ break;
+ case 'жил':
+ result += ' жилийн';
+ break;
+ case 'хоног':
+ result += ' хоногийн';
+ break;
+ case 'гаран':
+ result += ' гараны';
+ break;
+ case 'хүрэхгүй':
+ result += ' хүрэхгүй хугацааны';
+ break;
+ default:
+ result += lastword + '-н';
+ }
+ 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
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage