diff --git a/scripts/generate-locales.ts b/scripts/generate-locales.ts index b8103ee3d5b..ec8b2b0b521 100644 --- a/scripts/generate-locales.ts +++ b/scripts/generate-locales.ts @@ -1,9 +1,13 @@ #!/usr/bin/env node +/* eslint-disable no-restricted-globals */ + /** * This file contains a script that can be used to update the following files: * * - `src/locale/.ts` + * - `src/locales//date/month.ts` + * - `src/locales//date/weekday.ts` * - `src/locales//index.ts` * - `src/locales///index.ts` * - `src/docs/guide/localization.md` @@ -15,10 +19,21 @@ * Run this script using `pnpm run generate:locales` */ import { constants } from 'node:fs'; -import { access, readFile, readdir, stat, writeFile } from 'node:fs/promises'; +import { + access, + mkdir, + readFile, + readdir, + stat, + writeFile, +} from 'node:fs/promises'; import { dirname, resolve } from 'node:path'; import { fileURLToPath } from 'node:url'; -import type { LocaleDefinition, MetadataDefinition } from '../src/definitions'; +import type { + DateEntryDefinition, + LocaleDefinition, + MetadataDefinition, +} from '../src/definitions'; import { keys } from '../src/internal/keys'; import { formatMarkdown, formatTypescript } from './apidocs/utils/format'; @@ -111,17 +126,48 @@ function escapeField(parent: string, module: string): string { return module; } +function normalizeDataRecursive(localeData: T): T { + if (typeof localeData !== 'object' || localeData === null) { + // we can only traverse object-like structs + return localeData; + } + + if (Array.isArray(localeData)) { + return ( + [...new Set(localeData)] + // limit entries to 1k + .slice(0, 1000) + // sort entries alphabetically + .sort() as T + ); + } + + const result = {} as T; + for (const key of keys(localeData)) { + result[key] = normalizeDataRecursive(localeData[key]); + } + + return result; +} + +async function exists(path: string): Promise { + try { + await access(path, constants.R_OK); + return true; + } catch { + // file is missing + return false; + } +} + async function generateLocaleFile(locale: string): Promise { const parts = locale.split('_'); const locales = [locale]; for (let i = parts.length - 1; i > 0; i--) { const fallback = parts.slice(0, i).join('_'); - try { - await access(resolve(pathLocales, fallback), constants.R_OK); + if (await exists(resolve(pathLocales, fallback))) { locales.push(fallback); - } catch { - // file is missing } } @@ -163,6 +209,11 @@ async function generateLocalesIndexFile( modules = modules.filter((file) => !file.startsWith('.')); modules = removeIndexTs(modules); modules = removeTsSuffix(modules); + + if (modules.length === 0) { + return; + } + modules.sort(); const content = [autoGeneratedCommentHeader]; @@ -286,31 +337,6 @@ async function updateLocaleFileHook( * @param definitionKey The definition key of the current file (ex. 'location'). */ async function normalizeLocaleFile(filePath: string, definitionKey: string) { - function normalizeDataRecursive(localeData: T): T { - if (typeof localeData !== 'object' || localeData === null) { - // we can only traverse object-like structs - return localeData; - } - - if (Array.isArray(localeData)) { - return ( - [...new Set(localeData)] - // limit entries to 1k - .slice(0, 1000) - // sort entries alphabetically - // We cannot sort the entries locale aware as the sort order is not stable within node versions #2905 - .sort() as T - ); - } - - const result = {} as T; - for (const key of keys(localeData)) { - result[key] = normalizeDataRecursive(localeData[key]); - } - - return result; - } - const legacyDefinitions = ['app', 'cell_phone', 'team']; const definitionsToSkip = [ 'internet', @@ -367,6 +393,159 @@ async function normalizeLocaleFile(filePath: string, definitionKey: string) { return writeFile(filePath, await formatTypescript(newContent)); } +// `src/locales//date/* +async function generateDateModule(locale: string): Promise { + const intlLocale = locale.replaceAll('_', '-'); + function isValidLocale(intlLocale: string): boolean { + // 'dv' (Dhivehi) locale is excluded because it may not be fully supported + if (locale === 'dv') return false; + try { + new Intl.DateTimeFormat(intlLocale); + return true; + } catch { + return false; + } + } + + if (!isValidLocale(intlLocale)) return; + + const pathDate = resolve(pathLocales, locale, 'date'); + const parentLocale = locale.substring(0, locale.lastIndexOf('_')) || 'base'; + const parentIntlLocale = parentLocale.replaceAll('_', '-'); + const parentUsable = + isValidLocale(parentIntlLocale) && + (await exists(resolve(pathLocales, parentLocale))); + + // `src/locales//date/weekday.ts` + async function generateWeekdayFile(): Promise { + function generateWeekdays(intlLocale: string): { + wide: string[]; + abbr: string[]; + } { + const wide: string[] = []; + const abbr: string[] = []; + const intlWeekdayLong = new Intl.DateTimeFormat(intlLocale, { + weekday: 'long', + }); + const intlWeekdayShort = new Intl.DateTimeFormat(intlLocale, { + weekday: 'short', + }); + for (let i = 0; i < 7; i++) { + const date: Date = new Date(2020, 0, i + 4); + // January 4-10, 2020 are Sunday to Saturday + wide.push(intlWeekdayLong.format(date)); + abbr.push(intlWeekdayShort.format(date)); + } + + return { wide: wide.toSorted(), abbr: abbr.toSorted() }; + } + + const weekdayPath = resolve(pathDate, 'weekday.ts'); + let storedWeekdays: Partial = {}; + + // Import the current weekday values + try { + const imported = await import(`file:${weekdayPath}`); + storedWeekdays = imported.default; + } catch { + // File does not exist yet + } + + // Generate correct weekday values + const { wide, abbr } = generateWeekdays(intlLocale); + + // Skip creation if it has the same data as the parent locale, unless the file exists already + if (parentUsable && Object.keys(storedWeekdays).length === 0) { + const parentWeekdays = generateWeekdays(parentIntlLocale); + if (JSON.stringify(parentWeekdays) === JSON.stringify({ wide, abbr })) { + return; + } + } + + storedWeekdays.wide = wide; + storedWeekdays.abbr = abbr; + + // Write updated values back to the file + const normalizedWeekdays = normalizeDataRecursive(storedWeekdays); + const updatedContent = ` + ${autoGeneratedCommentHeader} + export default ${JSON.stringify(normalizedWeekdays, null, 2)}; + `; + await mkdir(pathDate, { recursive: true }); + return writeFile(weekdayPath, await formatTypescript(updatedContent)); + } + + // `src/locales//date/month.ts` + async function generateMonthFile(): Promise { + function generateMonths(intlLocale: string): { + wide: string[]; + abbr: string[]; + } { + const wide: string[] = []; + const abbr: string[] = []; + const intlMonthLong = new Intl.DateTimeFormat(intlLocale, { + month: 'long', + }); + const intlMonthShort = new Intl.DateTimeFormat(intlLocale, { + month: 'short', + }); + for (let i = 0; i < 12; i++) { + const date: Date = new Date(2020, i, 1); + wide.push(intlMonthLong.format(date)); + abbr.push(intlMonthShort.format(date)); + } + + return { wide: wide.toSorted(), abbr: abbr.toSorted() }; + } + + const monthPath = resolve(pathDate, 'month.ts'); + let storedMonths: Partial = {}; + + // Import the current month values + try { + const imported = await import(`file:${monthPath}`); + storedMonths = imported.default; + } catch { + // File does not exist yet + } + + // Generate correct month values + const { wide, abbr } = generateMonths(intlLocale); + + // Skip creation if it has the same data as the parent locale, unless the file exists already + if (parentUsable && Object.keys(storedMonths).length === 0) { + const parentMonths = generateMonths(parentIntlLocale); + if (JSON.stringify(parentMonths) === JSON.stringify({ wide, abbr })) { + return; + } + } + + storedMonths.wide = wide; + storedMonths.abbr = abbr; + + // Write updated values back to the file + const normalizedMonths = normalizeDataRecursive(storedMonths); + const updatedContent = ` + ${autoGeneratedCommentHeader} + export default ${JSON.stringify(normalizedMonths, null, 2)}; + `; + await mkdir(pathDate, { recursive: true }); + return writeFile(monthPath, await formatTypescript(updatedContent)); + } + + await generateWeekdayFile(); + await generateMonthFile(); + + if (await exists(pathDate)) { + return generateRecursiveModuleIndexes( + pathDate, + locale, + 'DateDefinition', + 2 + ); + } +} + // Start of actual logic const locales = await readdir(pathLocales); @@ -410,6 +589,9 @@ for (const locale of locales) { localesIndexImports += `import { default as ${locale} } from './${locale}';\n`; localizationLocales += `| \`${locale}\` | ${localeTitle} | \`${localizedFaker}\` |\n`; + // We first need to generate the date module + await generateDateModule(locale); + promises.push( // src/locale/.ts // eslint-disable-next-line unicorn/prefer-top-level-await -- Disabled for performance diff --git a/src/locales/af_ZA/date/index.ts b/src/locales/af_ZA/date/index.ts new file mode 100644 index 00000000000..a28ce823bb8 --- /dev/null +++ b/src/locales/af_ZA/date/index.ts @@ -0,0 +1,14 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { DateDefinition } from '../../..'; +import month from './month'; +import weekday from './weekday'; + +const date: DateDefinition = { + month, + weekday, +}; + +export default date; diff --git a/src/locales/af_ZA/date/month.ts b/src/locales/af_ZA/date/month.ts new file mode 100644 index 00000000000..1f77457bb55 --- /dev/null +++ b/src/locales/af_ZA/date/month.ts @@ -0,0 +1,34 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +export default { + wide: [ + 'April', + 'Augustus', + 'Desember', + 'Februarie', + 'Januarie', + 'Julie', + 'Junie', + 'Maart', + 'Mei', + 'November', + 'Oktober', + 'September', + ], + abbr: [ + 'Apr.', + 'Aug.', + 'Des.', + 'Feb.', + 'Jan.', + 'Jul.', + 'Jun.', + 'Mei', + 'Mrt.', + 'Nov.', + 'Okt.', + 'Sep.', + ], +}; diff --git a/src/locales/af_ZA/date/weekday.ts b/src/locales/af_ZA/date/weekday.ts new file mode 100644 index 00000000000..23a1585cc33 --- /dev/null +++ b/src/locales/af_ZA/date/weekday.ts @@ -0,0 +1,16 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +export default { + wide: [ + 'Dinsdag', + 'Donderdag', + 'Maandag', + 'Saterdag', + 'Sondag', + 'Vrydag', + 'Woensdag', + ], + abbr: ['Di.', 'Do.', 'Ma.', 'Sa.', 'So.', 'Vr.', 'Wo.'], +}; diff --git a/src/locales/af_ZA/index.ts b/src/locales/af_ZA/index.ts index 3bde3758c49..83c73e5f8ae 100644 --- a/src/locales/af_ZA/index.ts +++ b/src/locales/af_ZA/index.ts @@ -5,6 +5,7 @@ import type { LocaleDefinition } from '../..'; import cell_phone from './cell_phone'; import company from './company'; +import date from './date'; import internet from './internet'; import location from './location'; import metadata from './metadata'; @@ -14,6 +15,7 @@ import phone_number from './phone_number'; const af_ZA: LocaleDefinition = { cell_phone, company, + date, internet, location, metadata, diff --git a/src/locales/ar/date/month.ts b/src/locales/ar/date/month.ts index f2844bde869..3f6dc446da8 100644 --- a/src/locales/ar/date/month.ts +++ b/src/locales/ar/date/month.ts @@ -1,22 +1,26 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ - 'آب', - 'آذَار', - 'أَيَّار', - 'أَيْلُول', - 'تَمُّوز', - 'تِشْرِين ٱلثَّانِي', - 'تِشْرِين ٱلْأَوَّل', - 'حَزِيرَان', - 'شُبَاط', - 'كَانُون ٱلثَّانِي', - 'كَانُون ٱلْأَوَّل', - 'نَيْسَان', + 'أبريل', + 'أغسطس', + 'أكتوبر', + 'ديسمبر', + 'سبتمبر', + 'فبراير', + 'مارس', + 'مايو', + 'نوفمبر', + 'يناير', + 'يوليو', + 'يونيو', ], abbr: [ + 'أبريل', 'أغسطس', 'أكتوبر', - 'إبريل', 'ديسمبر', 'سبتمبر', 'فبراير', diff --git a/src/locales/ar/date/weekday.ts b/src/locales/ar/date/weekday.ts index 1c74d813966..b3ed4568fc7 100644 --- a/src/locales/ar/date/weekday.ts +++ b/src/locales/ar/date/weekday.ts @@ -1,9 +1,21 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { - abbr: null, + abbr: [ + 'الأحد', + 'الأربعاء', + 'الاثنين', + 'الثلاثاء', + 'الجمعة', + 'الخميس', + 'السبت', + ], wide: [ - 'الأحَد', + 'الأحد', 'الأربعاء', - 'الإثنين', + 'الاثنين', 'الثلاثاء', 'الجمعة', 'الخميس', diff --git a/src/locales/az/date/month.ts b/src/locales/az/date/month.ts index 22dbb6c3b8c..adae8be152d 100644 --- a/src/locales/az/date/month.ts +++ b/src/locales/az/date/month.ts @@ -1,3 +1,7 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ 'aprel', @@ -28,18 +32,18 @@ export default { 'января', ], abbr: [ - 'авг.', - 'апр.', - 'дек.', - 'июль', - 'июнь', - 'май', - 'март', - 'нояб.', - 'окт.', - 'сент.', - 'февр.', - 'янв.', + 'apr', + 'avq', + 'dek', + 'fev', + 'iyl', + 'iyn', + 'mar', + 'may', + 'noy', + 'okt', + 'sen', + 'yan', ], abbr_context: [ 'авг.', diff --git a/src/locales/az/date/weekday.ts b/src/locales/az/date/weekday.ts index 5f516fc501f..31d57d63845 100644 --- a/src/locales/az/date/weekday.ts +++ b/src/locales/az/date/weekday.ts @@ -1,12 +1,16 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ - 'Bazar', - 'Bazar ertəsi', - 'Cümə', - 'Cümə axşamı', - 'Çərşənbə', - 'Çərşənbə axşamı', - 'Şənbə', + 'bazar', + 'bazar ertəsi', + 'cümə', + 'cümə axşamı', + 'çərşənbə', + 'çərşənbə axşamı', + 'şənbə', ], wide_context: [ 'воскресенье', @@ -17,6 +21,6 @@ export default { 'суббота', 'четверг', ], - abbr: ['BE', 'Ba', 'CA', 'Cü', 'ÇA', 'Çə', 'Şə'], + abbr: ['B.', 'B.E.', 'C.', 'C.A.', 'Ç.', 'Ç.A.', 'Ş.'], abbr_context: ['вс', 'вт', 'пн', 'пт', 'сб', 'ср', 'чт'], }; diff --git a/src/locales/cs_CZ/date/month.ts b/src/locales/cs_CZ/date/month.ts index 9b8c1a11fe3..bd4877810e2 100644 --- a/src/locales/cs_CZ/date/month.ts +++ b/src/locales/cs_CZ/date/month.ts @@ -1,30 +1,34 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ - 'Březen', - 'Duben', - 'Květen', - 'Leden', - 'Listopad', - 'Prosinec', - 'Srpen', - 'Září', - 'Únor', - 'Červen', - 'Červenec', - 'Říjen', + 'březen', + 'duben', + 'květen', + 'leden', + 'listopad', + 'prosinec', + 'srpen', + 'září', + 'únor', + 'červen', + 'červenec', + 'říjen', ], abbr: [ - 'Bře', - 'Dub', - 'Kvě', - 'Led', - 'Lis', - 'Pro', - 'Srp', - 'Zář', - 'Úno', - 'Čer', - 'Črc', - 'Říj', + 'bře', + 'dub', + 'kvě', + 'led', + 'lis', + 'pro', + 'srp', + 'zář', + 'úno', + 'čvc', + 'čvn', + 'říj', ], }; diff --git a/src/locales/cs_CZ/date/weekday.ts b/src/locales/cs_CZ/date/weekday.ts index 0e669c9bcb6..00c7c815bb1 100644 --- a/src/locales/cs_CZ/date/weekday.ts +++ b/src/locales/cs_CZ/date/weekday.ts @@ -1,4 +1,8 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { - wide: ['Neděle', 'Pondělí', 'Pátek', 'Sobota', 'Středa', 'Úterý', 'čtvrtek'], - abbr: ['Ne', 'Po', 'Pá', 'So', 'St', 'Út', 'čt'], + wide: ['neděle', 'pondělí', 'pátek', 'sobota', 'středa', 'úterý', 'čtvrtek'], + abbr: ['ne', 'po', 'pá', 'so', 'st', 'út', 'čt'], }; diff --git a/src/locales/da/date/month.ts b/src/locales/da/date/month.ts index 8f71b356b4d..d590344ef5b 100644 --- a/src/locales/da/date/month.ts +++ b/src/locales/da/date/month.ts @@ -1,3 +1,7 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ 'april', diff --git a/src/locales/da/date/weekday.ts b/src/locales/da/date/weekday.ts index 3cb6c12cf40..026dd519fd7 100644 --- a/src/locales/da/date/weekday.ts +++ b/src/locales/da/date/weekday.ts @@ -1,3 +1,7 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ 'fredag', @@ -8,5 +12,5 @@ export default { 'tirsdag', 'torsdag', ], - abbr: ['fre.', 'lør.', 'man.', 'ons.', 'søn.', 'tir.', 'tor.'], + abbr: ['fre.', 'lør.', 'man.', 'ons.', 'søn.', 'tirs.', 'tors.'], }; diff --git a/src/locales/de/date/month.ts b/src/locales/de/date/month.ts index f72dcf63ded..14b3dc9f02a 100644 --- a/src/locales/de/date/month.ts +++ b/src/locales/de/date/month.ts @@ -1,3 +1,7 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ 'April', @@ -22,7 +26,7 @@ export default { 'Jul', 'Jun', 'Mai', - 'Mrz', + 'Mär', 'Nov', 'Okt', 'Sep', diff --git a/src/locales/de/date/weekday.ts b/src/locales/de/date/weekday.ts index 6d9e6486f03..d6bc3c92fa2 100644 --- a/src/locales/de/date/weekday.ts +++ b/src/locales/de/date/weekday.ts @@ -1,3 +1,7 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ 'Dienstag', @@ -8,5 +12,5 @@ export default { 'Samstag', 'Sonntag', ], - abbr: ['Di.', 'Do.', 'Fr.', 'Mi.', 'Mo.', 'Sa.', 'So.'], + abbr: ['Di', 'Do', 'Fr', 'Mi', 'Mo', 'Sa', 'So'], }; diff --git a/src/locales/de_AT/date/index.ts b/src/locales/de_AT/date/index.ts new file mode 100644 index 00000000000..8840c1c9c75 --- /dev/null +++ b/src/locales/de_AT/date/index.ts @@ -0,0 +1,12 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { DateDefinition } from '../../..'; +import month from './month'; + +const date: DateDefinition = { + month, +}; + +export default date; diff --git a/src/locales/de_AT/date/month.ts b/src/locales/de_AT/date/month.ts new file mode 100644 index 00000000000..82309653335 --- /dev/null +++ b/src/locales/de_AT/date/month.ts @@ -0,0 +1,34 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +export default { + wide: [ + 'April', + 'August', + 'Dezember', + 'Februar', + 'Juli', + 'Juni', + 'Jänner', + 'Mai', + 'März', + 'November', + 'Oktober', + 'September', + ], + abbr: [ + 'Apr', + 'Aug', + 'Dez', + 'Feb', + 'Jul', + 'Jun', + 'Jän', + 'Mai', + 'Mär', + 'Nov', + 'Okt', + 'Sep', + ], +}; diff --git a/src/locales/de_AT/index.ts b/src/locales/de_AT/index.ts index 8ed90a8d152..8c52455c58b 100644 --- a/src/locales/de_AT/index.ts +++ b/src/locales/de_AT/index.ts @@ -5,6 +5,7 @@ import type { LocaleDefinition } from '../..'; import cell_phone from './cell_phone'; import company from './company'; +import date from './date'; import internet from './internet'; import location from './location'; import metadata from './metadata'; @@ -15,6 +16,7 @@ import word from './word'; const de_AT: LocaleDefinition = { cell_phone, company, + date, internet, location, metadata, diff --git a/src/locales/el/date/index.ts b/src/locales/el/date/index.ts new file mode 100644 index 00000000000..a28ce823bb8 --- /dev/null +++ b/src/locales/el/date/index.ts @@ -0,0 +1,14 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { DateDefinition } from '../../..'; +import month from './month'; +import weekday from './weekday'; + +const date: DateDefinition = { + month, + weekday, +}; + +export default date; diff --git a/src/locales/el/date/month.ts b/src/locales/el/date/month.ts new file mode 100644 index 00000000000..83b4b6d2d69 --- /dev/null +++ b/src/locales/el/date/month.ts @@ -0,0 +1,34 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +export default { + wide: [ + 'Απριλίου', + 'Αυγούστου', + 'Δεκεμβρίου', + 'Ιανουαρίου', + 'Ιουλίου', + 'Ιουνίου', + 'Μαΐου', + 'Μαρτίου', + 'Νοεμβρίου', + 'Οκτωβρίου', + 'Σεπτεμβρίου', + 'Φεβρουαρίου', + ], + abbr: [ + 'Απρ', + 'Αυγ', + 'Δεκ', + 'Ιαν', + 'Ιουλ', + 'Ιουν', + 'Μαΐ', + 'Μαρ', + 'Νοε', + 'Οκτ', + 'Σεπ', + 'Φεβ', + ], +}; diff --git a/src/locales/el/date/weekday.ts b/src/locales/el/date/weekday.ts new file mode 100644 index 00000000000..a4295d4557d --- /dev/null +++ b/src/locales/el/date/weekday.ts @@ -0,0 +1,16 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +export default { + wide: [ + 'Δευτέρα', + 'Κυριακή', + 'Πέμπτη', + 'Παρασκευή', + 'Σάββατο', + 'Τετάρτη', + 'Τρίτη', + ], + abbr: ['Δευ', 'Κυρ', 'Πέμ', 'Παρ', 'Σάβ', 'Τετ', 'Τρί'], +}; diff --git a/src/locales/el/index.ts b/src/locales/el/index.ts index 42a1f59a726..82108f3cec1 100644 --- a/src/locales/el/index.ts +++ b/src/locales/el/index.ts @@ -8,6 +8,7 @@ import cell_phone from './cell_phone'; import color from './color'; import commerce from './commerce'; import company from './company'; +import date from './date'; import finance from './finance'; import hacker from './hacker'; import internet from './internet'; @@ -24,6 +25,7 @@ const el: LocaleDefinition = { color, commerce, company, + date, finance, hacker, internet, diff --git a/src/locales/en/date/month.ts b/src/locales/en/date/month.ts index 64bec3c29b0..7a05646d9c7 100644 --- a/src/locales/en/date/month.ts +++ b/src/locales/en/date/month.ts @@ -1,3 +1,7 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ 'April', diff --git a/src/locales/en/date/weekday.ts b/src/locales/en/date/weekday.ts index 83cac6864d2..90241047497 100644 --- a/src/locales/en/date/weekday.ts +++ b/src/locales/en/date/weekday.ts @@ -1,3 +1,7 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ 'Friday', diff --git a/src/locales/en_AU/date/index.ts b/src/locales/en_AU/date/index.ts new file mode 100644 index 00000000000..8840c1c9c75 --- /dev/null +++ b/src/locales/en_AU/date/index.ts @@ -0,0 +1,12 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { DateDefinition } from '../../..'; +import month from './month'; + +const date: DateDefinition = { + month, +}; + +export default date; diff --git a/src/locales/en_AU/date/month.ts b/src/locales/en_AU/date/month.ts new file mode 100644 index 00000000000..7c6cfa42231 --- /dev/null +++ b/src/locales/en_AU/date/month.ts @@ -0,0 +1,34 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +export default { + wide: [ + 'April', + 'August', + 'December', + 'February', + 'January', + 'July', + 'June', + 'March', + 'May', + 'November', + 'October', + 'September', + ], + abbr: [ + 'Apr', + 'Aug', + 'Dec', + 'Feb', + 'Jan', + 'July', + 'June', + 'Mar', + 'May', + 'Nov', + 'Oct', + 'Sept', + ], +}; diff --git a/src/locales/en_AU/index.ts b/src/locales/en_AU/index.ts index ee3bf460bf4..9963b0bf29b 100644 --- a/src/locales/en_AU/index.ts +++ b/src/locales/en_AU/index.ts @@ -4,6 +4,7 @@ */ import type { LocaleDefinition } from '../..'; import company from './company'; +import date from './date'; import internet from './internet'; import location from './location'; import metadata from './metadata'; @@ -12,6 +13,7 @@ import phone_number from './phone_number'; const en_AU: LocaleDefinition = { company, + date, internet, location, metadata, diff --git a/src/locales/en_GB/date/index.ts b/src/locales/en_GB/date/index.ts new file mode 100644 index 00000000000..8840c1c9c75 --- /dev/null +++ b/src/locales/en_GB/date/index.ts @@ -0,0 +1,12 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { DateDefinition } from '../../..'; +import month from './month'; + +const date: DateDefinition = { + month, +}; + +export default date; diff --git a/src/locales/en_GB/date/month.ts b/src/locales/en_GB/date/month.ts new file mode 100644 index 00000000000..f2f801aff87 --- /dev/null +++ b/src/locales/en_GB/date/month.ts @@ -0,0 +1,34 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +export default { + wide: [ + 'April', + 'August', + 'December', + 'February', + 'January', + 'July', + 'June', + 'March', + 'May', + 'November', + 'October', + 'September', + ], + abbr: [ + 'Apr', + 'Aug', + 'Dec', + 'Feb', + 'Jan', + 'Jul', + 'Jun', + 'Mar', + 'May', + 'Nov', + 'Oct', + 'Sept', + ], +}; diff --git a/src/locales/en_GB/index.ts b/src/locales/en_GB/index.ts index ae59fada47b..126dae6f284 100644 --- a/src/locales/en_GB/index.ts +++ b/src/locales/en_GB/index.ts @@ -4,6 +4,7 @@ */ import type { LocaleDefinition } from '../..'; import cell_phone from './cell_phone'; +import date from './date'; import internet from './internet'; import location from './location'; import metadata from './metadata'; @@ -12,6 +13,7 @@ import phone_number from './phone_number'; const en_GB: LocaleDefinition = { cell_phone, + date, internet, location, metadata, diff --git a/src/locales/en_GH/date/index.ts b/src/locales/en_GH/date/index.ts new file mode 100644 index 00000000000..8840c1c9c75 --- /dev/null +++ b/src/locales/en_GH/date/index.ts @@ -0,0 +1,12 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { DateDefinition } from '../../..'; +import month from './month'; + +const date: DateDefinition = { + month, +}; + +export default date; diff --git a/src/locales/en_GH/date/month.ts b/src/locales/en_GH/date/month.ts new file mode 100644 index 00000000000..f2f801aff87 --- /dev/null +++ b/src/locales/en_GH/date/month.ts @@ -0,0 +1,34 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +export default { + wide: [ + 'April', + 'August', + 'December', + 'February', + 'January', + 'July', + 'June', + 'March', + 'May', + 'November', + 'October', + 'September', + ], + abbr: [ + 'Apr', + 'Aug', + 'Dec', + 'Feb', + 'Jan', + 'Jul', + 'Jun', + 'Mar', + 'May', + 'Nov', + 'Oct', + 'Sept', + ], +}; diff --git a/src/locales/en_GH/index.ts b/src/locales/en_GH/index.ts index c4ca5da3e7e..81379e5842b 100644 --- a/src/locales/en_GH/index.ts +++ b/src/locales/en_GH/index.ts @@ -4,6 +4,7 @@ */ import type { LocaleDefinition } from '../..'; import company from './company'; +import date from './date'; import internet from './internet'; import location from './location'; import metadata from './metadata'; @@ -12,6 +13,7 @@ import phone_number from './phone_number'; const en_GH: LocaleDefinition = { company, + date, internet, location, metadata, diff --git a/src/locales/en_HK/date/index.ts b/src/locales/en_HK/date/index.ts new file mode 100644 index 00000000000..8840c1c9c75 --- /dev/null +++ b/src/locales/en_HK/date/index.ts @@ -0,0 +1,12 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { DateDefinition } from '../../..'; +import month from './month'; + +const date: DateDefinition = { + month, +}; + +export default date; diff --git a/src/locales/en_HK/date/month.ts b/src/locales/en_HK/date/month.ts new file mode 100644 index 00000000000..f2f801aff87 --- /dev/null +++ b/src/locales/en_HK/date/month.ts @@ -0,0 +1,34 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +export default { + wide: [ + 'April', + 'August', + 'December', + 'February', + 'January', + 'July', + 'June', + 'March', + 'May', + 'November', + 'October', + 'September', + ], + abbr: [ + 'Apr', + 'Aug', + 'Dec', + 'Feb', + 'Jan', + 'Jul', + 'Jun', + 'Mar', + 'May', + 'Nov', + 'Oct', + 'Sept', + ], +}; diff --git a/src/locales/en_HK/index.ts b/src/locales/en_HK/index.ts index cbbfed81797..688dae10483 100644 --- a/src/locales/en_HK/index.ts +++ b/src/locales/en_HK/index.ts @@ -4,6 +4,7 @@ */ import type { LocaleDefinition } from '../..'; import company from './company'; +import date from './date'; import internet from './internet'; import location from './location'; import metadata from './metadata'; @@ -12,6 +13,7 @@ import phone_number from './phone_number'; const en_HK: LocaleDefinition = { company, + date, internet, location, metadata, diff --git a/src/locales/en_IE/date/index.ts b/src/locales/en_IE/date/index.ts new file mode 100644 index 00000000000..8840c1c9c75 --- /dev/null +++ b/src/locales/en_IE/date/index.ts @@ -0,0 +1,12 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { DateDefinition } from '../../..'; +import month from './month'; + +const date: DateDefinition = { + month, +}; + +export default date; diff --git a/src/locales/en_IE/date/month.ts b/src/locales/en_IE/date/month.ts new file mode 100644 index 00000000000..f2f801aff87 --- /dev/null +++ b/src/locales/en_IE/date/month.ts @@ -0,0 +1,34 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +export default { + wide: [ + 'April', + 'August', + 'December', + 'February', + 'January', + 'July', + 'June', + 'March', + 'May', + 'November', + 'October', + 'September', + ], + abbr: [ + 'Apr', + 'Aug', + 'Dec', + 'Feb', + 'Jan', + 'Jul', + 'Jun', + 'Mar', + 'May', + 'Nov', + 'Oct', + 'Sept', + ], +}; diff --git a/src/locales/en_IE/index.ts b/src/locales/en_IE/index.ts index c54df5435dc..a4c2a0ebe63 100644 --- a/src/locales/en_IE/index.ts +++ b/src/locales/en_IE/index.ts @@ -4,6 +4,7 @@ */ import type { LocaleDefinition } from '../..'; import cell_phone from './cell_phone'; +import date from './date'; import internet from './internet'; import location from './location'; import metadata from './metadata'; @@ -12,6 +13,7 @@ import phone_number from './phone_number'; const en_IE: LocaleDefinition = { cell_phone, + date, internet, location, metadata, diff --git a/src/locales/en_IN/date/index.ts b/src/locales/en_IN/date/index.ts new file mode 100644 index 00000000000..8840c1c9c75 --- /dev/null +++ b/src/locales/en_IN/date/index.ts @@ -0,0 +1,12 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { DateDefinition } from '../../..'; +import month from './month'; + +const date: DateDefinition = { + month, +}; + +export default date; diff --git a/src/locales/en_IN/date/month.ts b/src/locales/en_IN/date/month.ts new file mode 100644 index 00000000000..f2f801aff87 --- /dev/null +++ b/src/locales/en_IN/date/month.ts @@ -0,0 +1,34 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +export default { + wide: [ + 'April', + 'August', + 'December', + 'February', + 'January', + 'July', + 'June', + 'March', + 'May', + 'November', + 'October', + 'September', + ], + abbr: [ + 'Apr', + 'Aug', + 'Dec', + 'Feb', + 'Jan', + 'Jul', + 'Jun', + 'Mar', + 'May', + 'Nov', + 'Oct', + 'Sept', + ], +}; diff --git a/src/locales/en_IN/index.ts b/src/locales/en_IN/index.ts index df86966d882..26f1f7ae2c6 100644 --- a/src/locales/en_IN/index.ts +++ b/src/locales/en_IN/index.ts @@ -4,6 +4,7 @@ */ import type { LocaleDefinition } from '../..'; import company from './company'; +import date from './date'; import internet from './internet'; import location from './location'; import metadata from './metadata'; @@ -12,6 +13,7 @@ import phone_number from './phone_number'; const en_IN: LocaleDefinition = { company, + date, internet, location, metadata, diff --git a/src/locales/en_NG/date/index.ts b/src/locales/en_NG/date/index.ts new file mode 100644 index 00000000000..8840c1c9c75 --- /dev/null +++ b/src/locales/en_NG/date/index.ts @@ -0,0 +1,12 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { DateDefinition } from '../../..'; +import month from './month'; + +const date: DateDefinition = { + month, +}; + +export default date; diff --git a/src/locales/en_NG/date/month.ts b/src/locales/en_NG/date/month.ts new file mode 100644 index 00000000000..f2f801aff87 --- /dev/null +++ b/src/locales/en_NG/date/month.ts @@ -0,0 +1,34 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +export default { + wide: [ + 'April', + 'August', + 'December', + 'February', + 'January', + 'July', + 'June', + 'March', + 'May', + 'November', + 'October', + 'September', + ], + abbr: [ + 'Apr', + 'Aug', + 'Dec', + 'Feb', + 'Jan', + 'Jul', + 'Jun', + 'Mar', + 'May', + 'Nov', + 'Oct', + 'Sept', + ], +}; diff --git a/src/locales/en_NG/index.ts b/src/locales/en_NG/index.ts index 5831d9e16b5..fabc853bedc 100644 --- a/src/locales/en_NG/index.ts +++ b/src/locales/en_NG/index.ts @@ -4,6 +4,7 @@ */ import type { LocaleDefinition } from '../..'; import company from './company'; +import date from './date'; import internet from './internet'; import location from './location'; import metadata from './metadata'; @@ -12,6 +13,7 @@ import phone_number from './phone_number'; const en_NG: LocaleDefinition = { company, + date, internet, location, metadata, diff --git a/src/locales/en_ZA/date/index.ts b/src/locales/en_ZA/date/index.ts new file mode 100644 index 00000000000..8840c1c9c75 --- /dev/null +++ b/src/locales/en_ZA/date/index.ts @@ -0,0 +1,12 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { DateDefinition } from '../../..'; +import month from './month'; + +const date: DateDefinition = { + month, +}; + +export default date; diff --git a/src/locales/en_ZA/date/month.ts b/src/locales/en_ZA/date/month.ts new file mode 100644 index 00000000000..f2f801aff87 --- /dev/null +++ b/src/locales/en_ZA/date/month.ts @@ -0,0 +1,34 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +export default { + wide: [ + 'April', + 'August', + 'December', + 'February', + 'January', + 'July', + 'June', + 'March', + 'May', + 'November', + 'October', + 'September', + ], + abbr: [ + 'Apr', + 'Aug', + 'Dec', + 'Feb', + 'Jan', + 'Jul', + 'Jun', + 'Mar', + 'May', + 'Nov', + 'Oct', + 'Sept', + ], +}; diff --git a/src/locales/en_ZA/index.ts b/src/locales/en_ZA/index.ts index 43199703d1f..8381ccf6a13 100644 --- a/src/locales/en_ZA/index.ts +++ b/src/locales/en_ZA/index.ts @@ -5,6 +5,7 @@ import type { LocaleDefinition } from '../..'; import cell_phone from './cell_phone'; import company from './company'; +import date from './date'; import internet from './internet'; import location from './location'; import metadata from './metadata'; @@ -14,6 +15,7 @@ import phone_number from './phone_number'; const en_ZA: LocaleDefinition = { cell_phone, company, + date, internet, location, metadata, diff --git a/src/locales/eo/date/month.ts b/src/locales/eo/date/month.ts index 85b4f68ef04..11118c000d8 100644 --- a/src/locales/eo/date/month.ts +++ b/src/locales/eo/date/month.ts @@ -1,30 +1,34 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ - 'aprilo', - 'aŭgusto', - 'decembro', - 'februaro', - 'januaro', - 'julio', - 'junio', - 'majo', - 'marto', - 'novembro', - 'oktobro', - 'septembro', + 'Aprilo', + 'Aŭgusto', + 'Decembro', + 'Februaro', + 'Januaro', + 'Julio', + 'Junio', + 'Majo', + 'Marto', + 'Novembro', + 'Oktobro', + 'Septembro', ], abbr: [ - 'apr', - 'aŭg', - 'dec', - 'feb', - 'jan', - 'jul', - 'jun', - 'maj', - 'mar', - 'nov', - 'okt', - 'sep', + 'Apr', + 'Aŭg', + 'Dec', + 'Feb', + 'Jan', + 'Jul', + 'Jun', + 'Maj', + 'Mar', + 'Nov', + 'Okt', + 'Sep', ], }; diff --git a/src/locales/eo/date/weekday.ts b/src/locales/eo/date/weekday.ts index 76bac938b25..1b65bf6a793 100644 --- a/src/locales/eo/date/weekday.ts +++ b/src/locales/eo/date/weekday.ts @@ -1,3 +1,7 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ 'dimanĉo', diff --git a/src/locales/es/date/month.ts b/src/locales/es/date/month.ts index 60c0dea3fee..e1f367063e3 100644 --- a/src/locales/es/date/month.ts +++ b/src/locales/es/date/month.ts @@ -1,4 +1,7 @@ -// Sources: https://www.wikilengua.org/index.php/Abreviaciones_en_fechas +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ 'abril', @@ -26,7 +29,7 @@ export default { 'may', 'nov', 'oct', - 'sep', + 'sept', ], abbr_context: [ 'abr.', diff --git a/src/locales/es/date/weekday.ts b/src/locales/es/date/weekday.ts index 954682dded0..0d632d39f2e 100644 --- a/src/locales/es/date/weekday.ts +++ b/src/locales/es/date/weekday.ts @@ -1,4 +1,7 @@ -// Sources: https://www.wikilengua.org/index.php/Abreviaciones_en_fechas +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ 'domingo', diff --git a/src/locales/es_MX/date/index.ts b/src/locales/es_MX/date/index.ts new file mode 100644 index 00000000000..8840c1c9c75 --- /dev/null +++ b/src/locales/es_MX/date/index.ts @@ -0,0 +1,12 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { DateDefinition } from '../../..'; +import month from './month'; + +const date: DateDefinition = { + month, +}; + +export default date; diff --git a/src/locales/es_MX/date/month.ts b/src/locales/es_MX/date/month.ts new file mode 100644 index 00000000000..fc6adc28212 --- /dev/null +++ b/src/locales/es_MX/date/month.ts @@ -0,0 +1,34 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +export default { + wide: [ + 'abril', + 'agosto', + 'diciembre', + 'enero', + 'febrero', + 'julio', + 'junio', + 'marzo', + 'mayo', + 'noviembre', + 'octubre', + 'septiembre', + ], + abbr: [ + 'abr', + 'ago', + 'dic', + 'ene', + 'feb', + 'jul', + 'jun', + 'mar', + 'may', + 'nov', + 'oct', + 'sep', + ], +}; diff --git a/src/locales/es_MX/index.ts b/src/locales/es_MX/index.ts index 334e8e5a401..24c19f8d863 100644 --- a/src/locales/es_MX/index.ts +++ b/src/locales/es_MX/index.ts @@ -7,6 +7,7 @@ import cell_phone from './cell_phone'; import color from './color'; import commerce from './commerce'; import company from './company'; +import date from './date'; import internet from './internet'; import location from './location'; import lorem from './lorem'; @@ -20,6 +21,7 @@ const es_MX: LocaleDefinition = { color, commerce, company, + date, internet, location, lorem, diff --git a/src/locales/fa/date/month.ts b/src/locales/fa/date/month.ts index f73d3ed415f..88a6a3bf25a 100644 --- a/src/locales/fa/date/month.ts +++ b/src/locales/fa/date/month.ts @@ -1,3 +1,7 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ 'آبان', @@ -14,17 +18,17 @@ export default { 'مهر', ], abbr: [ - 'آبا', + 'آبان', 'آذر', - 'ارد', - 'اسف', - 'بهم', + 'اردیبهشت', + 'اسفند', + 'بهمن', 'تیر', - 'خرد', + 'خرداد', 'دی', - 'شهر', - 'فرو', - 'مرد', + 'شهریور', + 'فروردین', + 'مرداد', 'مهر', ], }; diff --git a/src/locales/fa/date/weekday.ts b/src/locales/fa/date/weekday.ts index bdc023b58f4..44c8e81b9db 100644 --- a/src/locales/fa/date/weekday.ts +++ b/src/locales/fa/date/weekday.ts @@ -1,4 +1,8 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { - wide: ['جمعه', 'دوشنبه', 'سه شنبه', 'شنبه', 'پنجشنبه', 'چهارشنبه', 'یکشنبه'], - abbr: ['ج', 'د', 'س', 'ش', 'پ', 'چ', 'ی'], + wide: ['جمعه', 'دوشنبه', 'سه‌شنبه', 'شنبه', 'پنجشنبه', 'چهارشنبه', 'یکشنبه'], + abbr: ['جمعه', 'دوشنبه', 'سه‌شنبه', 'شنبه', 'پنجشنبه', 'چهارشنبه', 'یکشنبه'], }; diff --git a/src/locales/fi/date/index.ts b/src/locales/fi/date/index.ts new file mode 100644 index 00000000000..a28ce823bb8 --- /dev/null +++ b/src/locales/fi/date/index.ts @@ -0,0 +1,14 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { DateDefinition } from '../../..'; +import month from './month'; +import weekday from './weekday'; + +const date: DateDefinition = { + month, + weekday, +}; + +export default date; diff --git a/src/locales/fi/date/month.ts b/src/locales/fi/date/month.ts new file mode 100644 index 00000000000..b498c642dd9 --- /dev/null +++ b/src/locales/fi/date/month.ts @@ -0,0 +1,34 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +export default { + wide: [ + 'elokuu', + 'heinäkuu', + 'helmikuu', + 'huhtikuu', + 'joulukuu', + 'kesäkuu', + 'lokakuu', + 'maaliskuu', + 'marraskuu', + 'syyskuu', + 'tammikuu', + 'toukokuu', + ], + abbr: [ + 'elo', + 'heinä', + 'helmi', + 'huhti', + 'joulu', + 'kesä', + 'loka', + 'maalis', + 'marras', + 'syys', + 'tammi', + 'touko', + ], +}; diff --git a/src/locales/fi/date/weekday.ts b/src/locales/fi/date/weekday.ts new file mode 100644 index 00000000000..978c7f7acd4 --- /dev/null +++ b/src/locales/fi/date/weekday.ts @@ -0,0 +1,16 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +export default { + wide: [ + 'keskiviikko', + 'lauantai', + 'maanantai', + 'perjantai', + 'sunnuntai', + 'tiistai', + 'torstai', + ], + abbr: ['ke', 'la', 'ma', 'pe', 'su', 'ti', 'to'], +}; diff --git a/src/locales/fi/index.ts b/src/locales/fi/index.ts index 73dabe6f9aa..9a29bb15555 100644 --- a/src/locales/fi/index.ts +++ b/src/locales/fi/index.ts @@ -3,11 +3,13 @@ * Run 'pnpm run generate:locales' to update. */ import type { LocaleDefinition } from '../..'; +import date from './date'; import location from './location'; import metadata from './metadata'; import person from './person'; const fi: LocaleDefinition = { + date, location, metadata, person, diff --git a/src/locales/fr/date/month.ts b/src/locales/fr/date/month.ts index 8700890dea7..34503acad75 100644 --- a/src/locales/fr/date/month.ts +++ b/src/locales/fr/date/month.ts @@ -1,17 +1,21 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ - 'Août', - 'Avril', - 'Décembre', - 'Février', - 'Janvier', - 'Juillet', - 'Juin', - 'Mai', - 'Mars', - 'Novembre', - 'Octobre', - 'Septembre', + 'août', + 'avril', + 'décembre', + 'février', + 'janvier', + 'juillet', + 'juin', + 'mai', + 'mars', + 'novembre', + 'octobre', + 'septembre', ], wide_context: [ 'août', @@ -29,7 +33,7 @@ export default { ], abbr: [ 'août', - 'avril', + 'avr.', 'déc.', 'févr.', 'janv.', diff --git a/src/locales/fr/date/weekday.ts b/src/locales/fr/date/weekday.ts index dace479e0c4..57e322964ad 100644 --- a/src/locales/fr/date/weekday.ts +++ b/src/locales/fr/date/weekday.ts @@ -1,12 +1,16 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ - 'Dimanche', - 'Jeudi', - 'Lundi', - 'Mardi', - 'Mercredi', - 'Samedi', - 'Vendredi', + 'dimanche', + 'jeudi', + 'lundi', + 'mardi', + 'mercredi', + 'samedi', + 'vendredi', ], wide_context: [ 'dimanche', @@ -17,6 +21,6 @@ export default { 'samedi', 'vendredi', ], - abbr: ['Dim', 'Jeu', 'Lun', 'Mar', 'Mer', 'Sam', 'Ven'], + abbr: ['dim.', 'jeu.', 'lun.', 'mar.', 'mer.', 'sam.', 'ven.'], abbr_context: ['dim', 'jeu', 'lun', 'mar', 'mer', 'sam', 'ven'], }; diff --git a/src/locales/fr_CA/date/index.ts b/src/locales/fr_CA/date/index.ts new file mode 100644 index 00000000000..8840c1c9c75 --- /dev/null +++ b/src/locales/fr_CA/date/index.ts @@ -0,0 +1,12 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { DateDefinition } from '../../..'; +import month from './month'; + +const date: DateDefinition = { + month, +}; + +export default date; diff --git a/src/locales/fr_CA/date/month.ts b/src/locales/fr_CA/date/month.ts new file mode 100644 index 00000000000..cc609d3eb52 --- /dev/null +++ b/src/locales/fr_CA/date/month.ts @@ -0,0 +1,34 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +export default { + wide: [ + 'août', + 'avril', + 'décembre', + 'février', + 'janvier', + 'juillet', + 'juin', + 'mai', + 'mars', + 'novembre', + 'octobre', + 'septembre', + ], + abbr: [ + 'août', + 'avr.', + 'déc.', + 'févr.', + 'janv.', + 'juill.', + 'juin', + 'mai', + 'mars', + 'nov.', + 'oct.', + 'sept.', + ], +}; diff --git a/src/locales/fr_CA/index.ts b/src/locales/fr_CA/index.ts index 0d4a749efbe..24bd947b260 100644 --- a/src/locales/fr_CA/index.ts +++ b/src/locales/fr_CA/index.ts @@ -3,6 +3,7 @@ * Run 'pnpm run generate:locales' to update. */ import type { LocaleDefinition } from '../..'; +import date from './date'; import internet from './internet'; import location from './location'; import metadata from './metadata'; @@ -10,6 +11,7 @@ import person from './person'; import phone_number from './phone_number'; const fr_CA: LocaleDefinition = { + date, internet, location, metadata, diff --git a/src/locales/he/date/month.ts b/src/locales/he/date/month.ts index 7c4f5aabdef..af5e7a89348 100644 --- a/src/locales/he/date/month.ts +++ b/src/locales/he/date/month.ts @@ -1,3 +1,7 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ 'אוגוסט', @@ -14,17 +18,17 @@ export default { 'פברואר', ], abbr: [ - 'Apr', - 'Aug', - 'Dec', - 'Feb', - 'Jan', - 'Jul', - 'Jun', - 'Mar', - 'May', - 'Nov', - 'Oct', - 'Sep', + 'אוג׳', + 'אוק׳', + 'אפר׳', + 'דצמ׳', + 'יולי', + 'יוני', + 'ינו׳', + 'מאי', + 'מרץ', + 'נוב׳', + 'ספט׳', + 'פבר׳', ], }; diff --git a/src/locales/he/date/weekday.ts b/src/locales/he/date/weekday.ts index 4d62c140483..0ecdde05942 100644 --- a/src/locales/he/date/weekday.ts +++ b/src/locales/he/date/weekday.ts @@ -1,12 +1,16 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ 'יום חמישי', 'יום ראשון', 'יום רביעי', + 'יום שבת', 'יום שישי', 'יום שלישי', 'יום שני', - 'שבת', ], abbr: ['יום א׳', 'יום ב׳', 'יום ג׳', 'יום ד׳', 'יום ה׳', 'יום ו׳', 'שבת'], }; diff --git a/src/locales/hr/date/month.ts b/src/locales/hr/date/month.ts index adfdec7b988..e92d84740dc 100644 --- a/src/locales/hr/date/month.ts +++ b/src/locales/hr/date/month.ts @@ -1,3 +1,7 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ 'kolovoz', @@ -25,6 +29,6 @@ export default { 'stu', 'svi', 'tra', - 'vel', + 'velj', ], }; diff --git a/src/locales/hr/date/weekday.ts b/src/locales/hr/date/weekday.ts index 979860c7765..42ff3f07b0c 100644 --- a/src/locales/hr/date/weekday.ts +++ b/src/locales/hr/date/weekday.ts @@ -1,3 +1,7 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ 'nedjelja', diff --git a/src/locales/hu/date/month.ts b/src/locales/hu/date/month.ts index 8a241d553c8..8db755070fa 100644 --- a/src/locales/hu/date/month.ts +++ b/src/locales/hu/date/month.ts @@ -1,3 +1,7 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ 'augusztus', diff --git a/src/locales/hu/date/weekday.ts b/src/locales/hu/date/weekday.ts index ab6f1f420bc..7448cf21d8f 100644 --- a/src/locales/hu/date/weekday.ts +++ b/src/locales/hu/date/weekday.ts @@ -1,3 +1,7 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ 'csütörtök', @@ -8,5 +12,5 @@ export default { 'szombat', 'vasárnap', ], - abbr: ['Csüt', 'Hé', 'Ke', 'Pé', 'Sze', 'Szo', 'Va'], + abbr: ['Cs', 'H', 'K', 'P', 'Sze', 'Szo', 'V'], }; diff --git a/src/locales/hy/date/month.ts b/src/locales/hy/date/month.ts index a111255e5d6..999e5480b12 100644 --- a/src/locales/hy/date/month.ts +++ b/src/locales/hy/date/month.ts @@ -1,30 +1,34 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ - 'Ապրիլ', - 'Դեկտեմբեր', - 'Հոկտեմբեր', - 'Հուլիս', - 'Հունիս', - 'Հունվար', - 'Մայիս', - 'Մարտ', - 'Նոյեմբեր', - 'Սեպտեմբեր', - 'Փետրվար', - 'Օգոստոս', + 'ապրիլ', + 'դեկտեմբեր', + 'հոկտեմբեր', + 'հուլիս', + 'հունիս', + 'հունվար', + 'մայիս', + 'մարտ', + 'նոյեմբեր', + 'սեպտեմբեր', + 'փետրվար', + 'օգոստոս', ], abbr: [ - 'Ապր', - 'Դկտ', - 'Հլս', - 'Հկտ', - 'Հնս', - 'Հնվ', - 'Մյս', - 'Մրտ', - 'Նմբ', - 'Սպտ', - 'Փտր', - 'Օգս', + 'ապր', + 'դեկ', + 'հլս', + 'հնս', + 'հնվ', + 'հոկ', + 'մյս', + 'մրտ', + 'նոյ', + 'սեպ', + 'փտվ', + 'օգս', ], }; diff --git a/src/locales/hy/date/weekday.ts b/src/locales/hy/date/weekday.ts index 64f70cb761b..824b3db273b 100644 --- a/src/locales/hy/date/weekday.ts +++ b/src/locales/hy/date/weekday.ts @@ -1,12 +1,16 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ - 'Երեքշաբթի', - 'Երկուշաբթի', - 'Կիրակի', - 'Հինգշաբթի', - 'Շաբաթ', - 'Ուրբաթ', - 'Չորեքշաբթի', + 'երեքշաբթի', + 'երկուշաբթի', + 'կիրակի', + 'հինգշաբթի', + 'շաբաթ', + 'ուրբաթ', + 'չորեքշաբթի', ], - abbr: ['երկ', 'երք', 'կրկ', 'հնգ', 'շբթ', 'ուրբ', 'չրք'], + abbr: ['երկ', 'երք', 'կիր', 'հնգ', 'շբթ', 'ուր', 'չրք'], }; diff --git a/src/locales/id_ID/date/month.ts b/src/locales/id_ID/date/month.ts index d1a3b4930a4..6d8681d0f82 100644 --- a/src/locales/id_ID/date/month.ts +++ b/src/locales/id_ID/date/month.ts @@ -1,3 +1,7 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ 'Agustus', @@ -14,7 +18,7 @@ export default { 'September', ], abbr: [ - 'Ags', + 'Agu', 'Apr', 'Des', 'Feb', diff --git a/src/locales/id_ID/date/weekday.ts b/src/locales/id_ID/date/weekday.ts index bbd76e01b6e..9e90bded07a 100644 --- a/src/locales/id_ID/date/weekday.ts +++ b/src/locales/id_ID/date/weekday.ts @@ -1,3 +1,7 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: ['Jumat', 'Kamis', 'Minggu', 'Rabu', 'Sabtu', 'Selasa', 'Senin'], abbr: ['Jum', 'Kam', 'Min', 'Rab', 'Sab', 'Sel', 'Sen'], diff --git a/src/locales/it/date/index.ts b/src/locales/it/date/index.ts new file mode 100644 index 00000000000..a28ce823bb8 --- /dev/null +++ b/src/locales/it/date/index.ts @@ -0,0 +1,14 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { DateDefinition } from '../../..'; +import month from './month'; +import weekday from './weekday'; + +const date: DateDefinition = { + month, + weekday, +}; + +export default date; diff --git a/src/locales/it/date/month.ts b/src/locales/it/date/month.ts new file mode 100644 index 00000000000..93b96ec1d11 --- /dev/null +++ b/src/locales/it/date/month.ts @@ -0,0 +1,34 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +export default { + wide: [ + 'agosto', + 'aprile', + 'dicembre', + 'febbraio', + 'gennaio', + 'giugno', + 'luglio', + 'maggio', + 'marzo', + 'novembre', + 'ottobre', + 'settembre', + ], + abbr: [ + 'ago', + 'apr', + 'dic', + 'feb', + 'gen', + 'giu', + 'lug', + 'mag', + 'mar', + 'nov', + 'ott', + 'set', + ], +}; diff --git a/src/locales/it/date/weekday.ts b/src/locales/it/date/weekday.ts new file mode 100644 index 00000000000..bd1b07fa268 --- /dev/null +++ b/src/locales/it/date/weekday.ts @@ -0,0 +1,16 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +export default { + wide: [ + 'domenica', + 'giovedì', + 'lunedì', + 'martedì', + 'mercoledì', + 'sabato', + 'venerdì', + ], + abbr: ['dom', 'gio', 'lun', 'mar', 'mer', 'sab', 'ven'], +}; diff --git a/src/locales/it/index.ts b/src/locales/it/index.ts index 5e2af4e8d53..6187f93a96c 100644 --- a/src/locales/it/index.ts +++ b/src/locales/it/index.ts @@ -4,6 +4,7 @@ */ import type { LocaleDefinition } from '../..'; import company from './company'; +import date from './date'; import internet from './internet'; import location from './location'; import metadata from './metadata'; @@ -12,6 +13,7 @@ import phone_number from './phone_number'; const it: LocaleDefinition = { company, + date, internet, location, metadata, diff --git a/src/locales/ja/date/index.ts b/src/locales/ja/date/index.ts new file mode 100644 index 00000000000..a28ce823bb8 --- /dev/null +++ b/src/locales/ja/date/index.ts @@ -0,0 +1,14 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { DateDefinition } from '../../..'; +import month from './month'; +import weekday from './weekday'; + +const date: DateDefinition = { + month, + weekday, +}; + +export default date; diff --git a/src/locales/ja/date/month.ts b/src/locales/ja/date/month.ts new file mode 100644 index 00000000000..b00f915c375 --- /dev/null +++ b/src/locales/ja/date/month.ts @@ -0,0 +1,34 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +export default { + wide: [ + '10月', + '11月', + '12月', + '1月', + '2月', + '3月', + '4月', + '5月', + '6月', + '7月', + '8月', + '9月', + ], + abbr: [ + '10月', + '11月', + '12月', + '1月', + '2月', + '3月', + '4月', + '5月', + '6月', + '7月', + '8月', + '9月', + ], +}; diff --git a/src/locales/ja/date/weekday.ts b/src/locales/ja/date/weekday.ts new file mode 100644 index 00000000000..d5e8661c125 --- /dev/null +++ b/src/locales/ja/date/weekday.ts @@ -0,0 +1,8 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +export default { + wide: ['土曜日', '日曜日', '月曜日', '木曜日', '水曜日', '火曜日', '金曜日'], + abbr: ['土', '日', '月', '木', '水', '火', '金'], +}; diff --git a/src/locales/ja/index.ts b/src/locales/ja/index.ts index b6d019614bd..82ca97a5ae1 100644 --- a/src/locales/ja/index.ts +++ b/src/locales/ja/index.ts @@ -5,6 +5,7 @@ import type { LocaleDefinition } from '../..'; import cell_phone from './cell_phone'; import company from './company'; +import date from './date'; import location from './location'; import lorem from './lorem'; import metadata from './metadata'; @@ -14,6 +15,7 @@ import phone_number from './phone_number'; const ja: LocaleDefinition = { cell_phone, company, + date, location, lorem, metadata, diff --git a/src/locales/ka_GE/date/index.ts b/src/locales/ka_GE/date/index.ts new file mode 100644 index 00000000000..a28ce823bb8 --- /dev/null +++ b/src/locales/ka_GE/date/index.ts @@ -0,0 +1,14 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { DateDefinition } from '../../..'; +import month from './month'; +import weekday from './weekday'; + +const date: DateDefinition = { + month, + weekday, +}; + +export default date; diff --git a/src/locales/ka_GE/date/month.ts b/src/locales/ka_GE/date/month.ts new file mode 100644 index 00000000000..5d4af5bacf4 --- /dev/null +++ b/src/locales/ka_GE/date/month.ts @@ -0,0 +1,34 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +export default { + wide: [ + 'აგვისტო', + 'აპრილი', + 'დეკემბერი', + 'თებერვალი', + 'იანვარი', + 'ივლისი', + 'ივნისი', + 'მაისი', + 'მარტი', + 'ნოემბერი', + 'ოქტომბერი', + 'სექტემბერი', + ], + abbr: [ + 'აგვ', + 'აპრ', + 'დეკ', + 'თებ', + 'იან', + 'ივლ', + 'ივნ', + 'მაი', + 'მარ', + 'ნოე', + 'ოქტ', + 'სექ', + ], +}; diff --git a/src/locales/ka_GE/date/weekday.ts b/src/locales/ka_GE/date/weekday.ts new file mode 100644 index 00000000000..4a9341e816f --- /dev/null +++ b/src/locales/ka_GE/date/weekday.ts @@ -0,0 +1,16 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +export default { + wide: [ + 'კვირა', + 'ოთხშაბათი', + 'ორშაბათი', + 'პარასკევი', + 'სამშაბათი', + 'შაბათი', + 'ხუთშაბათი', + ], + abbr: ['კვი', 'ოთხ', 'ორშ', 'პარ', 'სამ', 'შაბ', 'ხუთ'], +}; diff --git a/src/locales/ka_GE/index.ts b/src/locales/ka_GE/index.ts index ea959663f60..5b6f7e61d13 100644 --- a/src/locales/ka_GE/index.ts +++ b/src/locales/ka_GE/index.ts @@ -5,6 +5,7 @@ import type { LocaleDefinition } from '../..'; import cell_phone from './cell_phone'; import company from './company'; +import date from './date'; import internet from './internet'; import location from './location'; import metadata from './metadata'; @@ -14,6 +15,7 @@ import phone_number from './phone_number'; const ka_GE: LocaleDefinition = { cell_phone, company, + date, internet, location, metadata, diff --git a/src/locales/ko/date/month.ts b/src/locales/ko/date/month.ts index 7422db7d5bd..5aa0b135a2f 100644 --- a/src/locales/ko/date/month.ts +++ b/src/locales/ko/date/month.ts @@ -1,3 +1,7 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ '10월', diff --git a/src/locales/ko/date/weekday.ts b/src/locales/ko/date/weekday.ts index c340f672cc1..4789e59e36c 100644 --- a/src/locales/ko/date/weekday.ts +++ b/src/locales/ko/date/weekday.ts @@ -1,3 +1,7 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: ['금요일', '목요일', '수요일', '월요일', '일요일', '토요일', '화요일'], abbr: ['금', '목', '수', '월', '일', '토', '화'], diff --git a/src/locales/lv/date/month.ts b/src/locales/lv/date/month.ts index 32fdf782ee8..0939949fbeb 100644 --- a/src/locales/lv/date/month.ts +++ b/src/locales/lv/date/month.ts @@ -1,3 +1,7 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ 'aprīlis', @@ -31,15 +35,15 @@ export default { 'apr.', 'aug.', 'dec.', - 'feb.', - 'jan.', + 'febr.', + 'janv.', 'jūl.', 'jūn.', - 'mai.', - 'mar.', + 'maijs', + 'marts', 'nov.', 'okt.', - 'sep.', + 'sept.', ], abbr_context: [ 'apr.', diff --git a/src/locales/lv/date/weekday.ts b/src/locales/lv/date/weekday.ts index bfda7f32a72..ea7d1a1af59 100644 --- a/src/locales/lv/date/weekday.ts +++ b/src/locales/lv/date/weekday.ts @@ -1,3 +1,7 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ 'Ceturtdiena', @@ -17,6 +21,14 @@ export default { 'svētdien', 'trešdien', ], - abbr: ['Ct', 'Ot', 'Pk', 'Pr', 'Se', 'Sv', 'Tr'], + abbr: [ + 'Ceturtd.', + 'Otrd.', + 'Piektd.', + 'Pirmd.', + 'Sestd.', + 'Svētd.', + 'Trešd.', + ], abbr_context: ['cet.', 'otr.', 'pk.', 'pr.', 'se.', 'sv.', 'tr.'], }; diff --git a/src/locales/mk/date/month.ts b/src/locales/mk/date/month.ts index b9fd48f6773..9d3d874e2d1 100644 --- a/src/locales/mk/date/month.ts +++ b/src/locales/mk/date/month.ts @@ -1,3 +1,7 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ 'август', @@ -14,17 +18,17 @@ export default { 'јуни', ], abbr: [ - 'авг', - 'апр', - 'дек', - 'мар', + 'авг.', + 'апр.', + 'дек.', + 'мар.', 'мај', - 'ное', - 'окт', - 'сеп', - 'фев', - 'јан', - 'јул', - 'јун', + 'ное.', + 'окт.', + 'сеп.', + 'фев.', + 'јан.', + 'јул.', + 'јун.', ], }; diff --git a/src/locales/mk/date/weekday.ts b/src/locales/mk/date/weekday.ts index 5d22e0520ba..ce9de574200 100644 --- a/src/locales/mk/date/weekday.ts +++ b/src/locales/mk/date/weekday.ts @@ -1,3 +1,7 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ 'вторник', @@ -8,5 +12,5 @@ export default { 'среда', 'четврток', ], - abbr: ['вто', 'нед', 'пет', 'пон', 'саб', 'сре', 'чет'], + abbr: ['вто.', 'нед.', 'пет.', 'пон.', 'саб.', 'сре.', 'чет.'], }; diff --git a/src/locales/nb_NO/date/index.ts b/src/locales/nb_NO/date/index.ts new file mode 100644 index 00000000000..a28ce823bb8 --- /dev/null +++ b/src/locales/nb_NO/date/index.ts @@ -0,0 +1,14 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { DateDefinition } from '../../..'; +import month from './month'; +import weekday from './weekday'; + +const date: DateDefinition = { + month, + weekday, +}; + +export default date; diff --git a/src/locales/nb_NO/date/month.ts b/src/locales/nb_NO/date/month.ts new file mode 100644 index 00000000000..909c4e98adb --- /dev/null +++ b/src/locales/nb_NO/date/month.ts @@ -0,0 +1,34 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +export default { + wide: [ + 'april', + 'august', + 'desember', + 'februar', + 'januar', + 'juli', + 'juni', + 'mai', + 'mars', + 'november', + 'oktober', + 'september', + ], + abbr: [ + 'apr', + 'aug', + 'des', + 'feb', + 'jan', + 'jul', + 'jun', + 'mai', + 'mar', + 'nov', + 'okt', + 'sep', + ], +}; diff --git a/src/locales/nb_NO/date/weekday.ts b/src/locales/nb_NO/date/weekday.ts new file mode 100644 index 00000000000..dee22693421 --- /dev/null +++ b/src/locales/nb_NO/date/weekday.ts @@ -0,0 +1,16 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +export default { + wide: [ + 'fredag', + 'lørdag', + 'mandag', + 'onsdag', + 'søndag', + 'tirsdag', + 'torsdag', + ], + abbr: ['fre.', 'lør.', 'man.', 'ons.', 'søn.', 'tir.', 'tor.'], +}; diff --git a/src/locales/nb_NO/index.ts b/src/locales/nb_NO/index.ts index d9fa3d48875..1ef037e432a 100644 --- a/src/locales/nb_NO/index.ts +++ b/src/locales/nb_NO/index.ts @@ -6,6 +6,7 @@ import type { LocaleDefinition } from '../..'; import color from './color'; import commerce from './commerce'; import company from './company'; +import date from './date'; import internet from './internet'; import location from './location'; import metadata from './metadata'; @@ -18,6 +19,7 @@ const nb_NO: LocaleDefinition = { color, commerce, company, + date, internet, location, metadata, diff --git a/src/locales/ne/date/index.ts b/src/locales/ne/date/index.ts new file mode 100644 index 00000000000..a28ce823bb8 --- /dev/null +++ b/src/locales/ne/date/index.ts @@ -0,0 +1,14 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { DateDefinition } from '../../..'; +import month from './month'; +import weekday from './weekday'; + +const date: DateDefinition = { + month, + weekday, +}; + +export default date; diff --git a/src/locales/ne/date/month.ts b/src/locales/ne/date/month.ts new file mode 100644 index 00000000000..d8420ac3f1f --- /dev/null +++ b/src/locales/ne/date/month.ts @@ -0,0 +1,34 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +export default { + wide: [ + 'अक्टोबर', + 'अगस्ट', + 'अप्रिल', + 'जनवरी', + 'जुन', + 'जुलाई', + 'डिसेम्बर', + 'नोभेम्बर', + 'फेब्रुअरी', + 'मार्च', + 'मे', + 'सेप्टेम्बर', + ], + abbr: [ + 'अक्टोबर', + 'अगस्ट', + 'अप्रिल', + 'जनवरी', + 'जुन', + 'जुलाई', + 'डिसेम्बर', + 'नोभेम्बर', + 'फेब्रुअरी', + 'मार्च', + 'मे', + 'सेप्टेम्बर', + ], +}; diff --git a/src/locales/ne/date/weekday.ts b/src/locales/ne/date/weekday.ts new file mode 100644 index 00000000000..0716649c64d --- /dev/null +++ b/src/locales/ne/date/weekday.ts @@ -0,0 +1,16 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +export default { + wide: [ + 'आइतबार', + 'बिहिबार', + 'बुधबार', + 'मङ्गलबार', + 'शनिबार', + 'शुक्रबार', + 'सोमबार', + ], + abbr: ['आइत', 'बिहि', 'बुध', 'मङ्गल', 'शनि', 'शुक्र', 'सोम'], +}; diff --git a/src/locales/ne/index.ts b/src/locales/ne/index.ts index 451ad1cf570..fb117026007 100644 --- a/src/locales/ne/index.ts +++ b/src/locales/ne/index.ts @@ -4,6 +4,7 @@ */ import type { LocaleDefinition } from '../..'; import company from './company'; +import date from './date'; import internet from './internet'; import location from './location'; import metadata from './metadata'; @@ -12,6 +13,7 @@ import phone_number from './phone_number'; const ne: LocaleDefinition = { company, + date, internet, location, metadata, diff --git a/src/locales/nl/date/month.ts b/src/locales/nl/date/month.ts index 95e953c78cf..12ca0ee8924 100644 --- a/src/locales/nl/date/month.ts +++ b/src/locales/nl/date/month.ts @@ -1,3 +1,7 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ 'april', diff --git a/src/locales/nl/date/weekday.ts b/src/locales/nl/date/weekday.ts index fa7ad625822..2e8c37184ab 100644 --- a/src/locales/nl/date/weekday.ts +++ b/src/locales/nl/date/weekday.ts @@ -1,3 +1,7 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ 'dinsdag', diff --git a/src/locales/pl/date/index.ts b/src/locales/pl/date/index.ts new file mode 100644 index 00000000000..a28ce823bb8 --- /dev/null +++ b/src/locales/pl/date/index.ts @@ -0,0 +1,14 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { DateDefinition } from '../../..'; +import month from './month'; +import weekday from './weekday'; + +const date: DateDefinition = { + month, + weekday, +}; + +export default date; diff --git a/src/locales/pl/date/month.ts b/src/locales/pl/date/month.ts new file mode 100644 index 00000000000..c2c79ee79eb --- /dev/null +++ b/src/locales/pl/date/month.ts @@ -0,0 +1,34 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +export default { + wide: [ + 'czerwiec', + 'grudzień', + 'kwiecień', + 'lipiec', + 'listopad', + 'luty', + 'maj', + 'marzec', + 'październik', + 'sierpień', + 'styczeń', + 'wrzesień', + ], + abbr: [ + 'cze', + 'gru', + 'kwi', + 'lip', + 'lis', + 'lut', + 'maj', + 'mar', + 'paź', + 'sie', + 'sty', + 'wrz', + ], +}; diff --git a/src/locales/pl/date/weekday.ts b/src/locales/pl/date/weekday.ts new file mode 100644 index 00000000000..a96c4bbf6ba --- /dev/null +++ b/src/locales/pl/date/weekday.ts @@ -0,0 +1,16 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +export default { + wide: [ + 'czwartek', + 'niedziela', + 'piątek', + 'poniedziałek', + 'sobota', + 'wtorek', + 'środa', + ], + abbr: ['czw.', 'niedz.', 'pon.', 'pt.', 'sob.', 'wt.', 'śr.'], +}; diff --git a/src/locales/pl/index.ts b/src/locales/pl/index.ts index bdb734e2576..73250724652 100644 --- a/src/locales/pl/index.ts +++ b/src/locales/pl/index.ts @@ -7,6 +7,7 @@ import animal from './animal'; import cell_phone from './cell_phone'; import color from './color'; import company from './company'; +import date from './date'; import internet from './internet'; import location from './location'; import lorem from './lorem'; @@ -22,6 +23,7 @@ const pl: LocaleDefinition = { cell_phone, color, company, + date, internet, location, lorem, diff --git a/src/locales/pt_BR/date/month.ts b/src/locales/pt_BR/date/month.ts index 4b748865089..c76f63e28c7 100644 --- a/src/locales/pt_BR/date/month.ts +++ b/src/locales/pt_BR/date/month.ts @@ -1,30 +1,34 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ - 'Abril', - 'Agosto', - 'Dezembro', - 'Fevereiro', - 'Janeiro', - 'Julho', - 'Junho', - 'Maio', - 'Março', - 'Novembro', - 'Outubro', - 'Setembro', + 'abril', + 'agosto', + 'dezembro', + 'fevereiro', + 'janeiro', + 'julho', + 'junho', + 'maio', + 'março', + 'novembro', + 'outubro', + 'setembro', ], abbr: [ - 'Abr', - 'Ago', - 'Dez', - 'Fev', - 'Jan', - 'Jul', - 'Jun', - 'Mai', - 'Mar', - 'Nov', - 'Out', - 'Set', + 'abr.', + 'ago.', + 'dez.', + 'fev.', + 'jan.', + 'jul.', + 'jun.', + 'mai.', + 'mar.', + 'nov.', + 'out.', + 'set.', ], }; diff --git a/src/locales/pt_BR/date/weekday.ts b/src/locales/pt_BR/date/weekday.ts index eade3fdc5f0..e782796ba8a 100644 --- a/src/locales/pt_BR/date/weekday.ts +++ b/src/locales/pt_BR/date/weekday.ts @@ -1,4 +1,16 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { - wide: ['Domingo', 'Quarta', 'Quinta', 'Segunda', 'Sexta', 'Sábado', 'Terça'], - abbr: ['Dom', 'Qua', 'Qui', 'Seg', 'Sex', 'Sáb', 'Ter'], + wide: [ + 'domingo', + 'quarta-feira', + 'quinta-feira', + 'segunda-feira', + 'sexta-feira', + 'sábado', + 'terça-feira', + ], + abbr: ['dom.', 'qua.', 'qui.', 'seg.', 'sex.', 'sáb.', 'ter.'], }; diff --git a/src/locales/pt_PT/date/month.ts b/src/locales/pt_PT/date/month.ts index 4b748865089..c76f63e28c7 100644 --- a/src/locales/pt_PT/date/month.ts +++ b/src/locales/pt_PT/date/month.ts @@ -1,30 +1,34 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ - 'Abril', - 'Agosto', - 'Dezembro', - 'Fevereiro', - 'Janeiro', - 'Julho', - 'Junho', - 'Maio', - 'Março', - 'Novembro', - 'Outubro', - 'Setembro', + 'abril', + 'agosto', + 'dezembro', + 'fevereiro', + 'janeiro', + 'julho', + 'junho', + 'maio', + 'março', + 'novembro', + 'outubro', + 'setembro', ], abbr: [ - 'Abr', - 'Ago', - 'Dez', - 'Fev', - 'Jan', - 'Jul', - 'Jun', - 'Mai', - 'Mar', - 'Nov', - 'Out', - 'Set', + 'abr.', + 'ago.', + 'dez.', + 'fev.', + 'jan.', + 'jul.', + 'jun.', + 'mai.', + 'mar.', + 'nov.', + 'out.', + 'set.', ], }; diff --git a/src/locales/pt_PT/date/weekday.ts b/src/locales/pt_PT/date/weekday.ts index eade3fdc5f0..930d3a81e81 100644 --- a/src/locales/pt_PT/date/weekday.ts +++ b/src/locales/pt_PT/date/weekday.ts @@ -1,4 +1,16 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { - wide: ['Domingo', 'Quarta', 'Quinta', 'Segunda', 'Sexta', 'Sábado', 'Terça'], - abbr: ['Dom', 'Qua', 'Qui', 'Seg', 'Sex', 'Sáb', 'Ter'], + wide: [ + 'domingo', + 'quarta-feira', + 'quinta-feira', + 'segunda-feira', + 'sexta-feira', + 'sábado', + 'terça-feira', + ], + abbr: ['domingo', 'quarta', 'quinta', 'segunda', 'sexta', 'sábado', 'terça'], }; diff --git a/src/locales/ro/date/month.ts b/src/locales/ro/date/month.ts index 7a332f536df..7e163928f57 100644 --- a/src/locales/ro/date/month.ts +++ b/src/locales/ro/date/month.ts @@ -1,30 +1,34 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ - 'Aprilie', - 'August', - 'Decembrie', - 'Februarie', - 'Ianuarie', - 'Iulie', - 'Iunie', - 'Mai', - 'Martie', - 'Noiembrie', - 'Octombrie', - 'Septembrie', + 'aprilie', + 'august', + 'decembrie', + 'februarie', + 'ianuarie', + 'iulie', + 'iunie', + 'mai', + 'martie', + 'noiembrie', + 'octombrie', + 'septembrie', ], abbr: [ - 'Apr', - 'Aug', - 'Dec', - 'Feb', - 'Ian', - 'Iul', - 'Iun', - 'Mai', - 'Mar', - 'Noi', - 'Oct', - 'Sep', + 'apr.', + 'aug.', + 'dec.', + 'feb.', + 'ian.', + 'iul.', + 'iun.', + 'mai', + 'mar.', + 'nov.', + 'oct.', + 'sept.', ], }; diff --git a/src/locales/ro/date/weekday.ts b/src/locales/ro/date/weekday.ts index 47a34c6a109..8c946451060 100644 --- a/src/locales/ro/date/weekday.ts +++ b/src/locales/ro/date/weekday.ts @@ -1,4 +1,8 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { - wide: ['Duminică', 'Joi', 'Luni', 'Marți', 'Miercuri', 'Sâmbătă', 'Vineri'], - abbr: ['Duminică', 'Joi', 'Luni', 'Marți', 'Miercuri', 'Sâmbătă', 'Vineri'], + wide: ['duminică', 'joi', 'luni', 'marți', 'miercuri', 'sâmbătă', 'vineri'], + abbr: ['dum.', 'joi', 'lun.', 'mar.', 'mie.', 'sâm.', 'vin.'], }; diff --git a/src/locales/ro_MD/date/month.ts b/src/locales/ro_MD/date/month.ts index 7a332f536df..7e163928f57 100644 --- a/src/locales/ro_MD/date/month.ts +++ b/src/locales/ro_MD/date/month.ts @@ -1,30 +1,34 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ - 'Aprilie', - 'August', - 'Decembrie', - 'Februarie', - 'Ianuarie', - 'Iulie', - 'Iunie', - 'Mai', - 'Martie', - 'Noiembrie', - 'Octombrie', - 'Septembrie', + 'aprilie', + 'august', + 'decembrie', + 'februarie', + 'ianuarie', + 'iulie', + 'iunie', + 'mai', + 'martie', + 'noiembrie', + 'octombrie', + 'septembrie', ], abbr: [ - 'Apr', - 'Aug', - 'Dec', - 'Feb', - 'Ian', - 'Iul', - 'Iun', - 'Mai', - 'Mar', - 'Noi', - 'Oct', - 'Sep', + 'apr.', + 'aug.', + 'dec.', + 'feb.', + 'ian.', + 'iul.', + 'iun.', + 'mai', + 'mar.', + 'nov.', + 'oct.', + 'sept.', ], }; diff --git a/src/locales/ro_MD/date/weekday.ts b/src/locales/ro_MD/date/weekday.ts index e334fefb781..a6bb895e7e2 100644 --- a/src/locales/ro_MD/date/weekday.ts +++ b/src/locales/ro_MD/date/weekday.ts @@ -1,4 +1,8 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { - wide: ['Duminică', 'Joi', 'Luni', 'Marți', 'Miercuri', 'Sâmbătă', 'Vineri'], - abbr: ['Du', 'Jo', 'Lu', 'Ma', 'Mi', 'Sâ', 'Vi'], + wide: ['duminică', 'joi', 'luni', 'marți', 'miercuri', 'sâmbătă', 'vineri'], + abbr: ['Dum', 'Joi', 'Lun', 'Mar', 'Mie', 'Sâm', 'Vin'], }; diff --git a/src/locales/ru/date/month.ts b/src/locales/ru/date/month.ts index 16e24f005bb..8eff4dd4315 100644 --- a/src/locales/ru/date/month.ts +++ b/src/locales/ru/date/month.ts @@ -1,3 +1,7 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ 'август', diff --git a/src/locales/ru/date/weekday.ts b/src/locales/ru/date/weekday.ts index 53fc9009e08..73e0b907173 100644 --- a/src/locales/ru/date/weekday.ts +++ b/src/locales/ru/date/weekday.ts @@ -1,12 +1,16 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ - 'Воскресенье', - 'Вторник', - 'Понедельник', - 'Пятница', - 'Среда', - 'Суббота', - 'Четверг', + 'воскресенье', + 'вторник', + 'понедельник', + 'пятница', + 'среда', + 'суббота', + 'четверг', ], wide_context: [ 'воскресенье', @@ -17,6 +21,6 @@ export default { 'суббота', 'четверг', ], - abbr: ['Вс', 'Вт', 'Пн', 'Пт', 'Сб', 'Ср', 'Чт'], + abbr: ['вс', 'вт', 'пн', 'пт', 'сб', 'ср', 'чт'], abbr_context: ['вс', 'вт', 'пн', 'пт', 'сб', 'ср', 'чт'], }; diff --git a/src/locales/sk/date/index.ts b/src/locales/sk/date/index.ts new file mode 100644 index 00000000000..a28ce823bb8 --- /dev/null +++ b/src/locales/sk/date/index.ts @@ -0,0 +1,14 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { DateDefinition } from '../../..'; +import month from './month'; +import weekday from './weekday'; + +const date: DateDefinition = { + month, + weekday, +}; + +export default date; diff --git a/src/locales/sk/date/month.ts b/src/locales/sk/date/month.ts new file mode 100644 index 00000000000..be5a842f19d --- /dev/null +++ b/src/locales/sk/date/month.ts @@ -0,0 +1,34 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +export default { + wide: [ + 'apríl', + 'august', + 'december', + 'február', + 'január', + 'júl', + 'jún', + 'marec', + 'máj', + 'november', + 'október', + 'september', + ], + abbr: [ + 'apr', + 'aug', + 'dec', + 'feb', + 'jan', + 'júl', + 'jún', + 'mar', + 'máj', + 'nov', + 'okt', + 'sep', + ], +}; diff --git a/src/locales/sk/date/weekday.ts b/src/locales/sk/date/weekday.ts new file mode 100644 index 00000000000..2d15cd24555 --- /dev/null +++ b/src/locales/sk/date/weekday.ts @@ -0,0 +1,16 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +export default { + wide: [ + 'nedeľa', + 'piatok', + 'pondelok', + 'sobota', + 'streda', + 'utorok', + 'štvrtok', + ], + abbr: ['ne', 'pi', 'po', 'so', 'st', 'ut', 'št'], +}; diff --git a/src/locales/sk/index.ts b/src/locales/sk/index.ts index 3f274dbd0c8..a54ba46f69c 100644 --- a/src/locales/sk/index.ts +++ b/src/locales/sk/index.ts @@ -4,6 +4,7 @@ */ import type { LocaleDefinition } from '../..'; import company from './company'; +import date from './date'; import internet from './internet'; import location from './location'; import lorem from './lorem'; @@ -13,6 +14,7 @@ import phone_number from './phone_number'; const sk: LocaleDefinition = { company, + date, internet, location, lorem, diff --git a/src/locales/sr_RS_latin/date/month.ts b/src/locales/sr_RS_latin/date/month.ts index 756f701be20..24dcbe2c4f8 100644 --- a/src/locales/sr_RS_latin/date/month.ts +++ b/src/locales/sr_RS_latin/date/month.ts @@ -1,30 +1,34 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ - 'april', - 'avgust', - 'decembar', - 'februar', - 'januar', - 'jul', - 'jun', - 'maj', - 'mart', - 'novembar', - 'oktobar', - 'septembar', + 'август', + 'април', + 'децембар', + 'март', + 'мај', + 'новембар', + 'октобар', + 'септембар', + 'фебруар', + 'јануар', + 'јул', + 'јун', ], abbr: [ - 'apr', - 'avg', - 'dec', - 'feb', - 'jan', - 'jul', - 'jun', - 'maj', - 'mar', - 'nov', - 'okt', - 'sep', + 'авг', + 'апр', + 'дец', + 'мар', + 'мај', + 'нов', + 'окт', + 'сеп', + 'феб', + 'јан', + 'јул', + 'јун', ], }; diff --git a/src/locales/sr_RS_latin/date/weekday.ts b/src/locales/sr_RS_latin/date/weekday.ts index a08f11ccfd4..0c58979be55 100644 --- a/src/locales/sr_RS_latin/date/weekday.ts +++ b/src/locales/sr_RS_latin/date/weekday.ts @@ -1,12 +1,16 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ - 'nedelja', - 'petak', - 'ponedeljak', - 'sreda', - 'subota', - 'utorak', - 'četvrtak', + 'недеља', + 'петак', + 'понедељак', + 'среда', + 'субота', + 'уторак', + 'четвртак', ], - abbr: ['ned', 'pet', 'pon', 'sre', 'sub', 'uto', 'čet'], + abbr: ['нед', 'пет', 'пон', 'сре', 'суб', 'уто', 'чет'], }; diff --git a/src/locales/sv/date/month.ts b/src/locales/sv/date/month.ts index 1e8413ebbd5..fdd750d0863 100644 --- a/src/locales/sv/date/month.ts +++ b/src/locales/sv/date/month.ts @@ -1,3 +1,7 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ 'april', @@ -14,17 +18,17 @@ export default { 'september', ], abbr: [ - 'apr', - 'aug', - 'dec', - 'feb', - 'jan', - 'jul', - 'jun', + 'apr.', + 'aug.', + 'dec.', + 'feb.', + 'jan.', + 'juli', + 'juni', 'maj', - 'mar', - 'nov', - 'okt', - 'sep', + 'mars', + 'nov.', + 'okt.', + 'sep.', ], }; diff --git a/src/locales/sv/date/weekday.ts b/src/locales/sv/date/weekday.ts index 2f1a251a23b..9b95e322647 100644 --- a/src/locales/sv/date/weekday.ts +++ b/src/locales/sv/date/weekday.ts @@ -1,4 +1,8 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: ['fredag', 'lördag', 'måndag', 'onsdag', 'söndag', 'tisdag', 'torsdag'], - abbr: ['fre', 'lör', 'mån', 'ons', 'sön', 'tis', 'tor'], + abbr: ['fre', 'lör', 'mån', 'ons', 'sön', 'tis', 'tors'], }; diff --git a/src/locales/th/date/month.ts b/src/locales/th/date/month.ts index 272a839cc74..73844dadce1 100644 --- a/src/locales/th/date/month.ts +++ b/src/locales/th/date/month.ts @@ -1,3 +1,7 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ 'กรกฎาคม', diff --git a/src/locales/th/date/weekday.ts b/src/locales/th/date/weekday.ts index f6b3fecc596..73ecfb73f9b 100644 --- a/src/locales/th/date/weekday.ts +++ b/src/locales/th/date/weekday.ts @@ -1,3 +1,7 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ 'วันจันทร์', diff --git a/src/locales/tr/date/index.ts b/src/locales/tr/date/index.ts new file mode 100644 index 00000000000..a28ce823bb8 --- /dev/null +++ b/src/locales/tr/date/index.ts @@ -0,0 +1,14 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { DateDefinition } from '../../..'; +import month from './month'; +import weekday from './weekday'; + +const date: DateDefinition = { + month, + weekday, +}; + +export default date; diff --git a/src/locales/tr/date/month.ts b/src/locales/tr/date/month.ts new file mode 100644 index 00000000000..12c40cd6304 --- /dev/null +++ b/src/locales/tr/date/month.ts @@ -0,0 +1,34 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +export default { + wide: [ + 'Aralık', + 'Ağustos', + 'Ekim', + 'Eylül', + 'Haziran', + 'Kasım', + 'Mart', + 'Mayıs', + 'Nisan', + 'Ocak', + 'Temmuz', + 'Şubat', + ], + abbr: [ + 'Ara', + 'Ağu', + 'Eki', + 'Eyl', + 'Haz', + 'Kas', + 'Mar', + 'May', + 'Nis', + 'Oca', + 'Tem', + 'Şub', + ], +}; diff --git a/src/locales/tr/date/weekday.ts b/src/locales/tr/date/weekday.ts new file mode 100644 index 00000000000..c3cd0fd62c9 --- /dev/null +++ b/src/locales/tr/date/weekday.ts @@ -0,0 +1,16 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +export default { + wide: [ + 'Cuma', + 'Cumartesi', + 'Pazar', + 'Pazartesi', + 'Perşembe', + 'Salı', + 'Çarşamba', + ], + abbr: ['Cmt', 'Cum', 'Paz', 'Per', 'Pzt', 'Sal', 'Çar'], +}; diff --git a/src/locales/tr/index.ts b/src/locales/tr/index.ts index b72e18540f7..7a74d7b6187 100644 --- a/src/locales/tr/index.ts +++ b/src/locales/tr/index.ts @@ -6,6 +6,7 @@ import type { LocaleDefinition } from '../..'; import cell_phone from './cell_phone'; import color from './color'; import commerce from './commerce'; +import date from './date'; import internet from './internet'; import location from './location'; import lorem from './lorem'; @@ -17,6 +18,7 @@ const tr: LocaleDefinition = { cell_phone, color, commerce, + date, internet, location, lorem, diff --git a/src/locales/uk/date/index.ts b/src/locales/uk/date/index.ts new file mode 100644 index 00000000000..a28ce823bb8 --- /dev/null +++ b/src/locales/uk/date/index.ts @@ -0,0 +1,14 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { DateDefinition } from '../../..'; +import month from './month'; +import weekday from './weekday'; + +const date: DateDefinition = { + month, + weekday, +}; + +export default date; diff --git a/src/locales/uk/date/month.ts b/src/locales/uk/date/month.ts new file mode 100644 index 00000000000..6d2a9021b03 --- /dev/null +++ b/src/locales/uk/date/month.ts @@ -0,0 +1,34 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +export default { + wide: [ + 'березень', + 'вересень', + 'грудень', + 'жовтень', + 'квітень', + 'липень', + 'листопад', + 'лютий', + 'серпень', + 'січень', + 'травень', + 'червень', + ], + abbr: [ + 'бер.', + 'вер.', + 'груд.', + 'жовт.', + 'квіт.', + 'лип.', + 'лист.', + 'лют.', + 'серп.', + 'січ.', + 'трав.', + 'черв.', + ], +}; diff --git a/src/locales/uk/date/weekday.ts b/src/locales/uk/date/weekday.ts new file mode 100644 index 00000000000..0ee02652ef3 --- /dev/null +++ b/src/locales/uk/date/weekday.ts @@ -0,0 +1,16 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +export default { + wide: [ + 'вівторок', + 'неділя', + 'пʼятниця', + 'понеділок', + 'середа', + 'субота', + 'четвер', + ], + abbr: ['вт', 'нд', 'пн', 'пт', 'сб', 'ср', 'чт'], +}; diff --git a/src/locales/uk/index.ts b/src/locales/uk/index.ts index 31ba1899e67..e92306413db 100644 --- a/src/locales/uk/index.ts +++ b/src/locales/uk/index.ts @@ -4,6 +4,7 @@ */ import type { LocaleDefinition } from '../..'; import company from './company'; +import date from './date'; import internet from './internet'; import location from './location'; import metadata from './metadata'; @@ -12,6 +13,7 @@ import phone_number from './phone_number'; const uk: LocaleDefinition = { company, + date, internet, location, metadata, diff --git a/src/locales/ur/date/month.ts b/src/locales/ur/date/month.ts index c4b89ff49c4..0f17c4f6412 100644 --- a/src/locales/ur/date/month.ts +++ b/src/locales/ur/date/month.ts @@ -1,16 +1,33 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { - abbr: null, + abbr: [ + 'اپریل', + 'اکتوبر', + 'اگست', + 'جنوری', + 'جولائی', + 'جون', + 'دسمبر', + 'ستمبر', + 'فروری', + 'مئی', + 'مارچ', + 'نومبر', + ], wide: [ 'اپریل', 'اکتوبر', 'اگست', 'جنوری', - 'جولائ', + 'جولائی', 'جون', 'دسمبر', 'ستمبر', 'فروری', - 'مئ', + 'مئی', 'مارچ', 'نومبر', ], diff --git a/src/locales/ur/date/weekday.ts b/src/locales/ur/date/weekday.ts index d5ebd0c4d43..2ddeb999a04 100644 --- a/src/locales/ur/date/weekday.ts +++ b/src/locales/ur/date/weekday.ts @@ -1,4 +1,8 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { - abbr: null, - wide: ['اتور', 'بدھ', 'جمعرات', 'جمعہ', 'منگل', 'پیر', 'ہفتہ'], + abbr: ['اتوار', 'بدھ', 'جمعرات', 'جمعہ', 'منگل', 'پیر', 'ہفتہ'], + wide: ['اتوار', 'بدھ', 'جمعرات', 'جمعہ', 'منگل', 'پیر', 'ہفتہ'], }; diff --git a/src/locales/uz_UZ_latin/date/month.ts b/src/locales/uz_UZ_latin/date/month.ts index cd80acd9b4d..0d457cf3d10 100644 --- a/src/locales/uz_UZ_latin/date/month.ts +++ b/src/locales/uz_UZ_latin/date/month.ts @@ -1,3 +1,7 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ 'Aprel', @@ -9,22 +13,22 @@ export default { 'Mart', 'May', 'Noyabr', - 'Oktyabr', - 'Sentyabr', + 'Oktabr', + 'Sentabr', 'Yanvar', ], abbr: [ - 'Apr.', - 'Avg.', - 'Dek.', - 'Fev.', + 'Apr', + 'Avg', + 'Dek', + 'Fev', 'Iyl', 'Iyn', 'Mar', 'May', - 'Noy.', - 'Okt.', - 'Sen.', - 'Yan.', + 'Noy', + 'Okt', + 'Sen', + 'Yan', ], }; diff --git a/src/locales/uz_UZ_latin/date/weekday.ts b/src/locales/uz_UZ_latin/date/weekday.ts index d34a71d01a7..73cb973d8a7 100644 --- a/src/locales/uz_UZ_latin/date/weekday.ts +++ b/src/locales/uz_UZ_latin/date/weekday.ts @@ -1,12 +1,16 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ - 'Chorshanba', - 'Dushanba', - 'Juma', - 'Payshanba', - 'Seshanba', - 'Shanba', - 'Yakshanba', + 'chorshanba', + 'dushanba', + 'juma', + 'payshanba', + 'seshanba', + 'shanba', + 'yakshanba', ], - abbr: ['Ch', 'Du', 'Ju', 'Pa', 'Se', 'Sh', 'Ya'], + abbr: ['Chor', 'Dush', 'Jum', 'Pay', 'Sesh', 'Shan', 'Yak'], }; diff --git a/src/locales/vi/date/month.ts b/src/locales/vi/date/month.ts index dbdb788bc4a..28ae2b898f9 100644 --- a/src/locales/vi/date/month.ts +++ b/src/locales/vi/date/month.ts @@ -1,17 +1,21 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ - 'Tháng Ba', - 'Tháng Bảy', - 'Tháng Chín', - 'Tháng Giêng', - 'Tháng Hai', - 'Tháng Mười', - 'Tháng Mười Hai', - 'Tháng Mười Một', - 'Tháng Năm', - 'Tháng Sáu', - 'Tháng Tám', - 'Tháng Tư', + 'Tháng 1', + 'Tháng 10', + 'Tháng 11', + 'Tháng 12', + 'Tháng 2', + 'Tháng 3', + 'Tháng 4', + 'Tháng 5', + 'Tháng 6', + 'Tháng 7', + 'Tháng 8', + 'Tháng 9', ], abbr: [ 'Tháng 1', diff --git a/src/locales/vi/date/weekday.ts b/src/locales/vi/date/weekday.ts index 0ad90d0b226..6883ea6fb00 100644 --- a/src/locales/vi/date/weekday.ts +++ b/src/locales/vi/date/weekday.ts @@ -1,14 +1,18 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ - 'Chủ nhật', - 'Thứ ba', - 'Thứ bảy', - 'Thứ hai', - 'Thứ năm', - 'Thứ sáu', - 'Thứ tư', + 'Chủ Nhật', + 'Thứ Ba', + 'Thứ Bảy', + 'Thứ Hai', + 'Thứ Năm', + 'Thứ Sáu', + 'Thứ Tư', ], - abbr: ['CN', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7'], + abbr: ['CN', 'Th 2', 'Th 3', 'Th 4', 'Th 5', 'Th 6', 'Th 7'], abbr_context: [ 'C.Nhật', 'Thứ 2', diff --git a/src/locales/yo_NG/date/index.ts b/src/locales/yo_NG/date/index.ts new file mode 100644 index 00000000000..a28ce823bb8 --- /dev/null +++ b/src/locales/yo_NG/date/index.ts @@ -0,0 +1,14 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { DateDefinition } from '../../..'; +import month from './month'; +import weekday from './weekday'; + +const date: DateDefinition = { + month, + weekday, +}; + +export default date; diff --git a/src/locales/yo_NG/date/month.ts b/src/locales/yo_NG/date/month.ts new file mode 100644 index 00000000000..d77206985a7 --- /dev/null +++ b/src/locales/yo_NG/date/month.ts @@ -0,0 +1,34 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +export default { + wide: [ + 'Agẹmọ', + 'Bélú', + 'Owewe', + 'Èrèlè', + 'Ìgbé', + 'Ògún', + 'Òkúdu', + 'Ṣẹ́rẹ́', + 'Ẹrẹ̀nà', + 'Ẹ̀bibi', + 'Ọ̀pẹ̀', + 'Ọ̀wàrà', + ], + abbr: [ + 'Ag', + 'Bé', + 'Ow', + 'Èr', + 'Ìg', + 'Òg', + 'Òk', + 'Ṣẹ́', + 'Ẹr', + 'Ẹ̀b', + 'Ọ̀p', + 'Ọ̀w', + ], +}; diff --git a/src/locales/yo_NG/date/weekday.ts b/src/locales/yo_NG/date/weekday.ts new file mode 100644 index 00000000000..cfa04ce1135 --- /dev/null +++ b/src/locales/yo_NG/date/weekday.ts @@ -0,0 +1,8 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +export default { + wide: ['Ajé', 'Àbámẹ́ta', 'Àìkú', 'Ìsẹ́gun', 'Ẹtì', 'Ọjọ́bọ', 'Ọjọ́rú'], + abbr: ['Aj', 'Àbám', 'Àìk', 'Ìsẹ́g', 'Ẹt', 'Ọjọ́b', 'Ọjọ́r'], +}; diff --git a/src/locales/yo_NG/index.ts b/src/locales/yo_NG/index.ts index 967e785c2fd..c0f3edde51c 100644 --- a/src/locales/yo_NG/index.ts +++ b/src/locales/yo_NG/index.ts @@ -3,10 +3,12 @@ * Run 'pnpm run generate:locales' to update. */ import type { LocaleDefinition } from '../..'; +import date from './date'; import metadata from './metadata'; import person from './person'; const yo_NG: LocaleDefinition = { + date, metadata, person, }; diff --git a/src/locales/zh_CN/date/month.ts b/src/locales/zh_CN/date/month.ts index ff2d0a3198d..674b19e4c4c 100644 --- a/src/locales/zh_CN/date/month.ts +++ b/src/locales/zh_CN/date/month.ts @@ -1,3 +1,7 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ '一月', diff --git a/src/locales/zh_CN/date/weekday.ts b/src/locales/zh_CN/date/weekday.ts index 39458f702c1..8e8f60d63d0 100644 --- a/src/locales/zh_CN/date/weekday.ts +++ b/src/locales/zh_CN/date/weekday.ts @@ -1,4 +1,8 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { - wide: ['星期一', '星期三', '星期二', '星期五', '星期六', '星期四', '星期天'], + wide: ['星期一', '星期三', '星期二', '星期五', '星期六', '星期四', '星期日'], abbr: ['周一', '周三', '周二', '周五', '周六', '周四', '周日'], }; diff --git a/src/locales/zh_TW/date/month.ts b/src/locales/zh_TW/date/month.ts index 43552860234..b00f915c375 100644 --- a/src/locales/zh_TW/date/month.ts +++ b/src/locales/zh_TW/date/month.ts @@ -1,3 +1,7 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { wide: [ '10月', diff --git a/src/locales/zh_TW/date/weekday.ts b/src/locales/zh_TW/date/weekday.ts index 01cc05e09f0..ac5c36d5767 100644 --- a/src/locales/zh_TW/date/weekday.ts +++ b/src/locales/zh_TW/date/weekday.ts @@ -1,4 +1,8 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ export default { - wide: ['星期一', '星期三', '星期二', '星期五', '星期六', '星期四', '星期天'], + wide: ['星期一', '星期三', '星期二', '星期五', '星期六', '星期四', '星期日'], abbr: ['週一', '週三', '週二', '週五', '週六', '週四', '週日'], }; diff --git a/src/locales/zu_ZA/date/index.ts b/src/locales/zu_ZA/date/index.ts new file mode 100644 index 00000000000..a28ce823bb8 --- /dev/null +++ b/src/locales/zu_ZA/date/index.ts @@ -0,0 +1,14 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { DateDefinition } from '../../..'; +import month from './month'; +import weekday from './weekday'; + +const date: DateDefinition = { + month, + weekday, +}; + +export default date; diff --git a/src/locales/zu_ZA/date/month.ts b/src/locales/zu_ZA/date/month.ts new file mode 100644 index 00000000000..296858f2d5b --- /dev/null +++ b/src/locales/zu_ZA/date/month.ts @@ -0,0 +1,34 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +export default { + wide: [ + 'Agasti', + 'Disemba', + 'Ephreli', + 'Februwari', + 'Januwari', + 'Julayi', + 'Juni', + 'Mashi', + 'Meyi', + 'Novemba', + 'Okthoba', + 'Septhemba', + ], + abbr: [ + 'Aga', + 'Dis', + 'Eph', + 'Feb', + 'Jan', + 'Jul', + 'Jun', + 'Mas', + 'Mey', + 'Nov', + 'Okt', + 'Sep', + ], +}; diff --git a/src/locales/zu_ZA/date/weekday.ts b/src/locales/zu_ZA/date/weekday.ts new file mode 100644 index 00000000000..808bba72097 --- /dev/null +++ b/src/locales/zu_ZA/date/weekday.ts @@ -0,0 +1,16 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +export default { + wide: [ + 'ISonto', + 'ULwesibili', + 'ULwesihlanu', + 'ULwesine', + 'ULwesithathu', + 'UMgqibelo', + 'UMsombuluko', + ], + abbr: ['Bil', 'Hla', 'Mgq', 'Mso', 'Sin', 'Son', 'Tha'], +}; diff --git a/src/locales/zu_ZA/index.ts b/src/locales/zu_ZA/index.ts index 0e86ac702ec..79b86578739 100644 --- a/src/locales/zu_ZA/index.ts +++ b/src/locales/zu_ZA/index.ts @@ -5,6 +5,7 @@ import type { LocaleDefinition } from '../..'; import cell_phone from './cell_phone'; import company from './company'; +import date from './date'; import internet from './internet'; import location from './location'; import metadata from './metadata'; @@ -14,6 +15,7 @@ import phone_number from './phone_number'; const zu_ZA: LocaleDefinition = { cell_phone, company, + date, internet, location, metadata, diff --git a/test/modules/date.spec.ts b/test/modules/date.spec.ts index 811bd81bc99..345ec9547be 100644 --- a/test/modules/date.spec.ts +++ b/test/modules/date.spec.ts @@ -1,5 +1,6 @@ +/* eslint-disable no-restricted-globals */ import { afterEach, describe, expect, it, vi } from 'vitest'; -import { FakerError, faker, fakerAZ } from '../../src'; +import { FakerError, allFakers, faker, fakerAZ } from '../../src'; import { seededTests } from '../support/seeded-runs'; import { times } from './../support/times'; @@ -9,6 +10,17 @@ const converterMap = [ (d: Date) => d.valueOf(), ]; +const validIntlLocales = Object.entries(allFakers).filter(([locale]) => { + // 'dv' (Dhivehi) locale is excluded because it may not be fully supported + if (locale === 'dv') return false; + try { + new Intl.DateTimeFormat(locale); + return true; + } catch { + return false; + } +}); + const NON_SEEDED_BASED_RUN = 5; const refDate = '2021-02-21T17:09:15.711Z'; @@ -479,6 +491,38 @@ describe('date', () => { const month = faker.date.month({ abbreviated: true, context: true }); expect(faker.definitions.date.month.abbr).toContain(month); }); + + describe.each(validIntlLocales)( + 'for locale %s', + (locale, localizedFaker) => { + const months = Array.from( + { length: 12 }, + (_, i) => new Date(2020, i, 1) + ); + + it('should use Intl.DateTimeFormat to get the month name in the correct locale', () => { + for (const date of months) { + const intlMonth = new Intl.DateTimeFormat(locale, { + month: 'long', + }).format(date); + expect(localizedFaker.definitions.date.month.wide).toContain( + intlMonth + ); + } + }); + + it('should use Intl.DateTimeFormat to get the abbreviated month name in the correct locale', () => { + for (const date of months) { + const intlMonth = new Intl.DateTimeFormat(locale, { + month: 'short', + }).format(date); + expect(localizedFaker.definitions.date.month.abbr).toContain( + intlMonth + ); + } + }); + } + ); }); describe('weekday()', () => { @@ -525,6 +569,38 @@ describe('date', () => { }); expect(faker.definitions.date.weekday.abbr).toContain(weekday); }); + + describe.each(validIntlLocales)( + 'for locale %s', + (locale, localizedFaker) => { + const weekdays = Array.from( + { length: 7 }, + (_, i) => new Date(2020, 0, i + 4) + ); // January 4-10, 2020 are Sunday to Saturday + + it('should use Intl.DateTimeFormat to get the weekday name in the correct locale', () => { + for (const date of weekdays) { + const intlWeekday = new Intl.DateTimeFormat(locale, { + weekday: 'long', + }).format(date); + expect(localizedFaker.definitions.date.weekday.wide).toContain( + intlWeekday + ); + } + }); + + it('should use Intl.DateTimeFormat to get the abbreviated weekday name in the correct locale', () => { + for (const date of weekdays) { + const intlWeekday = new Intl.DateTimeFormat(locale, { + weekday: 'short', + }).format(date); + expect(localizedFaker.definitions.date.weekday.abbr).toContain( + intlWeekday + ); + } + }); + } + ); }); describe('birthdate', () => {