mirror of
http://36.133.248.69:3088/admin/RentWeAppFront.git
synced 2026-03-09 18:32:27 +08:00
init
This commit is contained in:
122
node_modules/date-fns/locale/ka/_lib/formatDistance.js
generated
vendored
Normal file
122
node_modules/date-fns/locale/ka/_lib/formatDistance.js
generated
vendored
Normal file
@@ -0,0 +1,122 @@
|
||||
"use strict";
|
||||
exports.formatDistance = void 0;
|
||||
|
||||
const 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}} წელში",
|
||||
},
|
||||
};
|
||||
|
||||
const formatDistance = (token, count, options) => {
|
||||
let result;
|
||||
|
||||
const tokenValue = formatDistanceLocale[token];
|
||||
if (typeof tokenValue === "string") {
|
||||
result = tokenValue;
|
||||
} else if (
|
||||
options?.addSuffix &&
|
||||
options.comparison &&
|
||||
options.comparison > 0
|
||||
) {
|
||||
result = tokenValue.future.replace("{{count}}", String(count));
|
||||
} else if (options?.addSuffix) {
|
||||
result = tokenValue.past.replace("{{count}}", String(count));
|
||||
} else {
|
||||
result = tokenValue.present.replace("{{count}}", String(count));
|
||||
}
|
||||
|
||||
return result;
|
||||
};
|
||||
exports.formatDistance = formatDistance;
|
||||
Reference in New Issue
Block a user