aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/date-fns/locale/gu
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-06-28 17:26:46 -0700
committerPinapelz <yukais@pinapelz.com>2025-06-28 17:43:56 -0700
commite4fa1e69e7ebfb627c7198fd1a9881e9327ec4d4 (patch)
tree06284a538a6008eca75051399e47db4e5d50301c /node_modules/date-fns/locale/gu
initial commit: scaffolding
Diffstat (limited to 'node_modules/date-fns/locale/gu')
-rw-r--r--node_modules/date-fns/locale/gu/_lib/formatDistance/index.js94
-rw-r--r--node_modules/date-fns/locale/gu/_lib/formatLong/index.js56
-rw-r--r--node_modules/date-fns/locale/gu/_lib/formatRelative/index.js27
-rw-r--r--node_modules/date-fns/locale/gu/_lib/localize/index.js146
-rw-r--r--node_modules/date-fns/locale/gu/_lib/match/index.js108
-rw-r--r--node_modules/date-fns/locale/gu/index.d.ts4
-rw-r--r--node_modules/date-fns/locale/gu/index.js35
-rw-r--r--node_modules/date-fns/locale/gu/index.js.flow35
-rw-r--r--node_modules/date-fns/locale/gu/package.json5
9 files changed, 510 insertions, 0 deletions
diff --git a/node_modules/date-fns/locale/gu/_lib/formatDistance/index.js b/node_modules/date-fns/locale/gu/_lib/formatDistance/index.js
new file mode 100644
index 0000000..3aaccba
--- /dev/null
+++ b/node_modules/date-fns/locale/gu/_lib/formatDistance/index.js
@@ -0,0 +1,94 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.default = void 0;
+// Source: https://www.unicode.org/cldr/charts/32/summary/gu.html
+var formatDistanceLocale = {
+ lessThanXSeconds: {
+ one: 'હમણાં',
+ // CLDR #1461
+ other: '​આશરે {{count}} સેકંડ'
+ },
+ xSeconds: {
+ one: '1 સેકંડ',
+ other: '{{count}} સેકંડ'
+ },
+ halfAMinute: 'અડધી મિનિટ',
+ lessThanXMinutes: {
+ one: 'આ મિનિટ',
+ // CLDR #1448
+ 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) {
+ 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
diff --git a/node_modules/date-fns/locale/gu/_lib/formatLong/index.js b/node_modules/date-fns/locale/gu/_lib/formatLong/index.js
new file mode 100644
index 0000000..cfa38ac
--- /dev/null
+++ b/node_modules/date-fns/locale/gu/_lib/formatLong/index.js
@@ -0,0 +1,56 @@
+"use strict";
+
+var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.default = void 0;
+var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js"));
+//Source: https://www.unicode.org/cldr/charts/32/summary/gu.html
+var dateFormats = {
+ full: 'EEEE, d MMMM, y',
+ // CLDR #1825
+ long: 'd MMMM, y',
+ // CLDR #1826
+ medium: 'd MMM, y',
+ // CLDR #1827
+ short: 'd/M/yy' // CLDR #1828
+};
+
+var timeFormats = {
+ full: 'hh:mm:ss a zzzz',
+ // CLDR #1829
+ long: 'hh:mm:ss a z',
+ // CLDR #1830
+ medium: 'hh:mm:ss a',
+ // CLDR #1831
+ short: 'hh:mm a' // CLDR #1832
+};
+
+var dateTimeFormats = {
+ full: '{{date}} {{time}}',
+ // CLDR #1833
+ long: '{{date}} {{time}}',
+ // CLDR #1834
+ medium: '{{date}} {{time}}',
+ // CLDR #1835
+ short: '{{date}} {{time}}' // CLDR #1836
+};
+
+var formatLong = {
+ date: (0, _index.default)({
+ formats: dateFormats,
+ defaultWidth: 'full'
+ }),
+ time: (0, _index.default)({
+ formats: timeFormats,
+ defaultWidth: 'full'
+ }),
+ dateTime: (0, _index.default)({
+ formats: dateTimeFormats,
+ defaultWidth: 'full'
+ })
+};
+var _default = formatLong;
+exports.default = _default;
+module.exports = exports.default; \ No newline at end of file
diff --git a/node_modules/date-fns/locale/gu/_lib/formatRelative/index.js b/node_modules/date-fns/locale/gu/_lib/formatRelative/index.js
new file mode 100644
index 0000000..545e899
--- /dev/null
+++ b/node_modules/date-fns/locale/gu/_lib/formatRelative/index.js
@@ -0,0 +1,27 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.default = void 0;
+// Source: https://www.unicode.org/cldr/charts/32/summary/gu.html
+
+var 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'
+};
+var formatRelative = function formatRelative(token, _date, _baseDate, _options) {
+ return formatRelativeLocale[token];
+};
+var _default = formatRelative;
+exports.default = _default;
+module.exports = exports.default; \ No newline at end of file
diff --git a/node_modules/date-fns/locale/gu/_lib/localize/index.js b/node_modules/date-fns/locale/gu/_lib/localize/index.js
new file mode 100644
index 0000000..85575e2
--- /dev/null
+++ b/node_modules/date-fns/locale/gu/_lib/localize/index.js
@@ -0,0 +1,146 @@
+"use strict";
+
+var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.default = void 0;
+var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js"));
+// https://www.unicode.org/cldr/charts/32/summary/gu.html
+// #1621 - #1630
+var eraValues = {
+ narrow: ['ઈસપૂ', 'ઈસ'],
+ abbreviated: ['ઈ.સ.પૂર્વે', 'ઈ.સ.'],
+ wide: ['ઈસવીસન પૂર્વે', 'ઈસવીસન']
+};
+
+// https://www.unicode.org/cldr/charts/32/summary/gu.html
+// #1631 - #1654
+var quarterValues = {
+ narrow: ['1', '2', '3', '4'],
+ abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'],
+ wide: ['1લો ત્રિમાસ', '2જો ત્રિમાસ', '3જો ત્રિમાસ', '4થો ત્રિમાસ']
+};
+
+// Note: in English, the names of days of the week and months are capitalized.
+// If you are making a new locale based on this one, check if the same is true for the language you're working on.
+// Generally, formatted dates should look like they are in the middle of a sentence,
+// e.g. in Spanish language the weekdays and months should be in the lowercase.
+
+// https://www.unicode.org/cldr/charts/32/summary/gu.html
+// #1655 - #1726
+var monthValues = {
+ narrow: ['જા', 'ફે', 'મા', 'એ', 'મે', 'જૂ', 'જુ', 'ઓ', 'સ', 'ઓ', 'ન', 'ડિ'],
+ abbreviated: ['જાન્યુ', 'ફેબ્રુ', 'માર્ચ', 'એપ્રિલ', 'મે', 'જૂન', 'જુલાઈ', 'ઑગસ્ટ', 'સપ્ટે', 'ઓક્ટો', 'નવે', 'ડિસે'],
+ wide: ['જાન્યુઆરી', 'ફેબ્રુઆરી', 'માર્ચ', 'એપ્રિલ', 'મે', 'જૂન', 'જુલાઇ', 'ઓગસ્ટ', 'સપ્ટેમ્બર', 'ઓક્ટોબર', 'નવેમ્બર', 'ડિસેમ્બર']
+};
+
+// https://www.unicode.org/cldr/charts/32/summary/gu.html
+// #1727 - #1768
+var dayValues = {
+ narrow: ['ર', 'સો', 'મં', 'બુ', 'ગુ', 'શુ', 'શ'],
+ short: ['ર', 'સો', 'મં', 'બુ', 'ગુ', 'શુ', 'શ'],
+ abbreviated: ['રવિ', 'સોમ', 'મંગળ', 'બુધ', 'ગુરુ', 'શુક્ર', 'શનિ'],
+ wide: ['રવિવાર' /* Sunday */, 'સોમવાર' /* Monday */, 'મંગળવાર' /* Tuesday */, 'બુધવાર' /* Wednesday */, 'ગુરુવાર' /* Thursday */, 'શુક્રવાર' /* Friday */, 'શનિવાર' /* Saturday */]
+};
+
+// https://www.unicode.org/cldr/charts/32/summary/gu.html
+// #1783 - #1824
+var dayPeriodValues = {
+ narrow: {
+ am: 'AM',
+ pm: 'PM',
+ midnight: 'મ.રાત્રિ',
+ noon: 'બ.',
+ morning: 'સવારે',
+ afternoon: 'બપોરે',
+ evening: 'સાંજે',
+ night: 'રાત્રે'
+ },
+ abbreviated: {
+ am: 'AM',
+ pm: 'PM',
+ midnight: '​મધ્યરાત્રિ',
+ noon: 'બપોરે',
+ morning: 'સવારે',
+ afternoon: 'બપોરે',
+ evening: 'સાંજે',
+ night: 'રાત્રે'
+ },
+ wide: {
+ am: 'AM',
+ pm: 'PM',
+ midnight: '​મધ્યરાત્રિ',
+ noon: 'બપોરે',
+ morning: 'સવારે',
+ afternoon: 'બપોરે',
+ evening: 'સાંજે',
+ night: 'રાત્રે'
+ }
+};
+var formattingDayPeriodValues = {
+ narrow: {
+ am: 'AM',
+ pm: 'PM',
+ midnight: 'મ.રાત્રિ',
+ noon: 'બપોરે',
+ morning: 'સવારે',
+ afternoon: 'બપોરે',
+ evening: 'સાંજે',
+ night: 'રાત્રે'
+ },
+ abbreviated: {
+ am: 'AM',
+ pm: 'PM',
+ midnight: 'મધ્યરાત્રિ',
+ noon: 'બપોરે',
+ morning: 'સવારે',
+ afternoon: 'બપોરે',
+ evening: 'સાંજે',
+ night: 'રાત્રે'
+ },
+ wide: {
+ am: 'AM',
+ pm: 'PM',
+ midnight: '​મધ્યરાત્રિ',
+ noon: 'બપોરે',
+ morning: 'સવારે',
+ afternoon: 'બપોરે',
+ evening: 'સાંજે',
+ night: 'રાત્રે'
+ }
+};
+var ordinalNumber = function ordinalNumber(dirtyNumber, _options) {
+ return String(dirtyNumber);
+};
+var localize = {
+ ordinalNumber: ordinalNumber,
+ era: (0, _index.default)({
+ values: eraValues,
+ defaultWidth: 'wide'
+ }),
+ quarter: (0, _index.default)({
+ values: quarterValues,
+ defaultWidth: 'wide',
+ argumentCallback: function argumentCallback(quarter) {
+ return quarter - 1;
+ }
+ }),
+ month: (0, _index.default)({
+ values: monthValues,
+ defaultWidth: 'wide'
+ }),
+ day: (0, _index.default)({
+ values: dayValues,
+ defaultWidth: 'wide'
+ }),
+ dayPeriod: (0, _index.default)({
+ values: dayPeriodValues,
+ defaultWidth: 'wide',
+ formattingValues: formattingDayPeriodValues,
+ defaultFormattingWidth: 'wide'
+ })
+};
+var _default = localize;
+exports.default = _default;
+module.exports = exports.default; \ No newline at end of file
diff --git a/node_modules/date-fns/locale/gu/_lib/match/index.js b/node_modules/date-fns/locale/gu/_lib/match/index.js
new file mode 100644
index 0000000..ef82fb2
--- /dev/null
+++ b/node_modules/date-fns/locale/gu/_lib/match/index.js
@@ -0,0 +1,108 @@
+"use strict";
+
+var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.default = void 0;
+var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js"));
+var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js"));
+var matchOrdinalNumberPattern = /^(\d+)(લ|જ|થ|ઠ્ઠ|મ)?/i;
+var parseOrdinalNumberPattern = /\d+/i;
+var matchEraPatterns = {
+ narrow: /^(ઈસપૂ|ઈસ)/i,
+ abbreviated: /^(ઈ\.સ\.પૂર્વે|ઈ\.સ\.)/i,
+ wide: /^(ઈસવીસન\sપૂર્વે|ઈસવીસન)/i
+};
+var parseEraPatterns = {
+ any: [/^ઈસપૂ/i, /^ઈસ/i]
+};
+var matchQuarterPatterns = {
+ narrow: /^[1234]/i,
+ abbreviated: /^q[1234]/i,
+ wide: /^[1234](લો|જો|થો)? ત્રિમાસ/i
+};
+var parseQuarterPatterns = {
+ any: [/1/i, /2/i, /3/i, /4/i]
+};
+var matchMonthPatterns = {
+ // eslint-disable-next-line no-misleading-character-class
+ narrow: /^[જાફેમાએમેજૂજુઓસઓનડિ]/i,
+ abbreviated: /^(જાન્યુ|ફેબ્રુ|માર્ચ|એપ્રિલ|મે|જૂન|જુલાઈ|ઑગસ્ટ|સપ્ટે|ઓક્ટો|નવે|ડિસે)/i,
+ wide: /^(જાન્યુઆરી|ફેબ્રુઆરી|માર્ચ|એપ્રિલ|મે|જૂન|જુલાઇ|ઓગસ્ટ|સપ્ટેમ્બર|ઓક્ટોબર|નવેમ્બર|ડિસેમ્બર)/i
+};
+var parseMonthPatterns = {
+ narrow: [/^જા/i, /^ફે/i, /^મા/i, /^એ/i, /^મે/i, /^જૂ/i, /^જુ/i, /^ઑગ/i, /^સ/i, /^ઓક્ટો/i, /^ન/i, /^ડિ/i],
+ any: [/^જા/i, /^ફે/i, /^મા/i, /^એ/i, /^મે/i, /^જૂ/i, /^જુ/i, /^ઑગ/i, /^સ/i, /^ઓક્ટો/i, /^ન/i, /^ડિ/i]
+};
+var matchDayPatterns = {
+ narrow: /^(ર|સો|મં|બુ|ગુ|શુ|શ)/i,
+ short: /^(ર|સો|મં|બુ|ગુ|શુ|શ)/i,
+ abbreviated: /^(રવિ|સોમ|મંગળ|બુધ|ગુરુ|શુક્ર|શનિ)/i,
+ wide: /^(રવિવાર|સોમવાર|મંગળવાર|બુધવાર|ગુરુવાર|શુક્રવાર|શનિવાર)/i
+};
+var parseDayPatterns = {
+ narrow: [/^ર/i, /^સો/i, /^મં/i, /^બુ/i, /^ગુ/i, /^શુ/i, /^શ/i],
+ any: [/^ર/i, /^સો/i, /^મં/i, /^બુ/i, /^ગુ/i, /^શુ/i, /^શ/i]
+};
+var matchDayPeriodPatterns = {
+ narrow: /^(a|p|મ\.?|સ|બ|સાં|રા)/i,
+ any: /^(a|p|મ\.?|સ|બ|સાં|રા)/i
+};
+var parseDayPeriodPatterns = {
+ any: {
+ am: /^a/i,
+ pm: /^p/i,
+ midnight: /^મ\.?/i,
+ noon: /^બ/i,
+ morning: /સ/i,
+ afternoon: /બ/i,
+ evening: /સાં/i,
+ night: /રા/i
+ }
+};
+var match = {
+ ordinalNumber: (0, _index2.default)({
+ matchPattern: matchOrdinalNumberPattern,
+ parsePattern: parseOrdinalNumberPattern,
+ valueCallback: function valueCallback(value) {
+ return parseInt(value, 10);
+ }
+ }),
+ era: (0, _index.default)({
+ matchPatterns: matchEraPatterns,
+ defaultMatchWidth: 'wide',
+ parsePatterns: parseEraPatterns,
+ defaultParseWidth: 'any'
+ }),
+ quarter: (0, _index.default)({
+ matchPatterns: matchQuarterPatterns,
+ defaultMatchWidth: 'wide',
+ parsePatterns: parseQuarterPatterns,
+ defaultParseWidth: 'any',
+ valueCallback: function valueCallback(index) {
+ return index + 1;
+ }
+ }),
+ month: (0, _index.default)({
+ matchPatterns: matchMonthPatterns,
+ defaultMatchWidth: 'wide',
+ parsePatterns: parseMonthPatterns,
+ defaultParseWidth: 'any'
+ }),
+ day: (0, _index.default)({
+ matchPatterns: matchDayPatterns,
+ defaultMatchWidth: 'wide',
+ parsePatterns: parseDayPatterns,
+ defaultParseWidth: 'any'
+ }),
+ dayPeriod: (0, _index.default)({
+ matchPatterns: matchDayPeriodPatterns,
+ defaultMatchWidth: 'any',
+ parsePatterns: parseDayPeriodPatterns,
+ defaultParseWidth: 'any'
+ })
+};
+var _default = match;
+exports.default = _default;
+module.exports = exports.default; \ No newline at end of file
diff --git a/node_modules/date-fns/locale/gu/index.d.ts b/node_modules/date-fns/locale/gu/index.d.ts
new file mode 100644
index 0000000..42642b6
--- /dev/null
+++ b/node_modules/date-fns/locale/gu/index.d.ts
@@ -0,0 +1,4 @@
+// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
+
+import { gu } from 'date-fns/locale'
+export default gu
diff --git a/node_modules/date-fns/locale/gu/index.js b/node_modules/date-fns/locale/gu/index.js
new file mode 100644
index 0000000..2297d85
--- /dev/null
+++ b/node_modules/date-fns/locale/gu/index.js
@@ -0,0 +1,35 @@
+"use strict";
+
+var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.default = void 0;
+var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js"));
+var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js"));
+var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js"));
+var _index4 = _interopRequireDefault(require("./_lib/localize/index.js"));
+var _index5 = _interopRequireDefault(require("./_lib/match/index.js"));
+/**
+ * @type {Locale}
+ * @category Locales
+ * @summary Gujarati locale (India).
+ * @language Gujarati
+ * @iso-639-2 guj
+ * @author Manaday Mavani [@ManadayM]{@link https://github.com/manadaym}
+ */
+var locale = {
+ code: 'gu',
+ formatDistance: _index.default,
+ formatLong: _index2.default,
+ formatRelative: _index3.default,
+ localize: _index4.default,
+ match: _index5.default,
+ options: {
+ weekStartsOn: 1 /* Monday */,
+ firstWeekContainsDate: 4
+ }
+};
+var _default = locale;
+exports.default = _default;
+module.exports = exports.default; \ No newline at end of file
diff --git a/node_modules/date-fns/locale/gu/index.js.flow b/node_modules/date-fns/locale/gu/index.js.flow
new file mode 100644
index 0000000..b9dfe66
--- /dev/null
+++ b/node_modules/date-fns/locale/gu/index.js.flow
@@ -0,0 +1,35 @@
+// @flow
+// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
+
+export type Locale = {
+ code?: string,
+ formatDistance?: (...args: Array<any>) => any,
+ formatRelative?: (...args: Array<any>) => any,
+ localize?: {
+ ordinalNumber: (...args: Array<any>) => any,
+ era: (...args: Array<any>) => any,
+ quarter: (...args: Array<any>) => any,
+ month: (...args: Array<any>) => any,
+ day: (...args: Array<any>) => any,
+ dayPeriod: (...args: Array<any>) => any,
+ },
+ formatLong?: {
+ date: (...args: Array<any>) => any,
+ time: (...args: Array<any>) => any,
+ dateTime: (...args: Array<any>) => any,
+ },
+ match?: {
+ ordinalNumber: (...args: Array<any>) => any,
+ era: (...args: Array<any>) => any,
+ quarter: (...args: Array<any>) => any,
+ month: (...args: Array<any>) => any,
+ day: (...args: Array<any>) => any,
+ dayPeriod: (...args: Array<any>) => any,
+ },
+ options?: {
+ weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6,
+ firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7,
+ },
+}
+
+declare module.exports: Locale
diff --git a/node_modules/date-fns/locale/gu/package.json b/node_modules/date-fns/locale/gu/package.json
new file mode 100644
index 0000000..4d0acd5
--- /dev/null
+++ b/node_modules/date-fns/locale/gu/package.json
@@ -0,0 +1,5 @@
+{
+ "sideEffects": false,
+ "module": "../../esm/locale/gu/index.js",
+ "typings": "../../typings.d.ts"
+} \ No newline at end of file
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage