18 lines
539 B
JavaScript
18 lines
539 B
JavaScript
|
"use strict";
|
||
|
exports.formatRelative = void 0;
|
||
|
|
||
|
// Source: https://www.unicode.org/cldr/charts/32/summary/gu.html
|
||
|
|
||
|
const formatRelativeLocale = {
|
||
|
lastWeek: "'પાછલા' eeee p", // CLDR #1384
|
||
|
yesterday: "'ગઈકાલે' p", // CLDR #1409
|
||
|
today: "'આજે' p", // CLDR #1410
|
||
|
tomorrow: "'આવતીકાલે' p", // CLDR #1411
|
||
|
nextWeek: "eeee p", // CLDR #1386
|
||
|
other: "P",
|
||
|
};
|
||
|
|
||
|
const formatRelative = (token, _date, _baseDate, _options) =>
|
||
|
formatRelativeLocale[token];
|
||
|
exports.formatRelative = formatRelative;
|