aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/date-fns/esm/locale/kk/_lib/formatRelative
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/date-fns/esm/locale/kk/_lib/formatRelative')
-rw-r--r--node_modules/date-fns/esm/locale/kk/_lib/formatRelative/index.js44
1 files changed, 44 insertions, 0 deletions
diff --git a/node_modules/date-fns/esm/locale/kk/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/kk/_lib/formatRelative/index.js
new file mode 100644
index 0000000..2b3e04d
--- /dev/null
+++ b/node_modules/date-fns/esm/locale/kk/_lib/formatRelative/index.js
@@ -0,0 +1,44 @@
+import isSameUTCWeek from "../../../../_lib/isSameUTCWeek/index.js";
+var accusativeWeekdays = ['жексенбіде', 'дүйсенбіде', 'сейсенбіде', 'сәрсенбіде', 'бейсенбіде', 'жұмада', 'сенбіде'];
+function _lastWeek(day) {
+ var weekday = accusativeWeekdays[day];
+ return "'өткен " + weekday + " сағат' p'-де'";
+}
+function thisWeek(day) {
+ var weekday = accusativeWeekdays[day];
+ return "'" + weekday + " сағат' p'-де'";
+}
+function _nextWeek(day) {
+ var weekday = accusativeWeekdays[day];
+ return "'келесі " + weekday + " сағат' p'-де'";
+}
+var formatRelativeLocale = {
+ lastWeek: function lastWeek(date, baseDate, options) {
+ var day = date.getUTCDay();
+ if (isSameUTCWeek(date, baseDate, options)) {
+ return thisWeek(day);
+ } else {
+ return _lastWeek(day);
+ }
+ },
+ yesterday: "'кеше сағат' p'-де'",
+ today: "'бүгін сағат' p'-де'",
+ tomorrow: "'ертең сағат' p'-де'",
+ nextWeek: function nextWeek(date, baseDate, options) {
+ var day = date.getUTCDay();
+ if (isSameUTCWeek(date, baseDate, options)) {
+ return thisWeek(day);
+ } else {
+ return _nextWeek(day);
+ }
+ },
+ other: 'P'
+};
+var formatRelative = function formatRelative(token, date, baseDate, options) {
+ var format = formatRelativeLocale[token];
+ if (typeof format === 'function') {
+ return format(date, baseDate, options);
+ }
+ return format;
+};
+export default formatRelative; \ No newline at end of file
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage