summaryrefslogtreecommitdiff
path: root/date-fns/src/locale/uz/_lib/formatDistance/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'date-fns/src/locale/uz/_lib/formatDistance/index.js')
-rw-r--r--date-fns/src/locale/uz/_lib/formatDistance/index.js101
1 files changed, 101 insertions, 0 deletions
diff --git a/date-fns/src/locale/uz/_lib/formatDistance/index.js b/date-fns/src/locale/uz/_lib/formatDistance/index.js
new file mode 100644
index 0000000..9e1a259
--- /dev/null
+++ b/date-fns/src/locale/uz/_lib/formatDistance/index.js
@@ -0,0 +1,101 @@
+var formatDistanceLocale = {
+ lessThanXSeconds: {
+ one: 'sekunddan kam',
+ other: '{{count}} sekunddan kam'
+ },
+
+ xSeconds: {
+ one: '1 sekund',
+ other: '{{count}} sekund'
+ },
+
+ halfAMinute: 'yarim minut',
+
+ lessThanXMinutes: {
+ one: 'bir minutdan kam',
+ other: '{{count}} minutdan kam'
+ },
+
+ xMinutes: {
+ one: '1 minut',
+ other: '{{count}} minut'
+ },
+
+ aboutXHours: {
+ one: 'tahminan 1 soat',
+ other: 'tahminan {{count}} soat'
+ },
+
+ xHours: {
+ one: '1 soat',
+ other: '{{count}} soat'
+ },
+
+ xDays: {
+ one: '1 kun',
+ other: '{{count}} kun'
+ },
+
+ aboutXWeeks: {
+ one: 'tahminan 1 hafta',
+ other: 'tahminan {{count}} hafta'
+ },
+
+ xWeeks: {
+ one: '1 hafta',
+ other: '{{count}} hafta'
+ },
+
+ aboutXMonths: {
+ one: 'tahminan 1 oy',
+ other: 'tahminan {{count}} oy'
+ },
+
+ xMonths: {
+ one: '1 oy',
+ other: '{{count}} oy'
+ },
+
+ aboutXYears: {
+ one: 'tahminan 1 yil',
+ other: 'tahminan {{count}} yil'
+ },
+
+ xYears: {
+ one: '1 yil',
+ other: '{{count}} yil'
+ },
+
+ overXYears: {
+ one: "1 yildan ko'p",
+ other: "{{count}} yildan ko'p"
+ },
+
+ almostXYears: {
+ one: 'deyarli 1 yil',
+ other: 'deyarli {{count}} yil'
+ }
+}
+
+export default 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 + ' dan keyin'
+ } else {
+ return result + ' oldin'
+ }
+ }
+
+ return result
+}