From 1ac03def3cb7190e373b8efadac5af190213abf7 Mon Sep 17 00:00:00 2001 From: afc163 Date: Fri, 12 Jul 2024 12:12:35 +0800 Subject: [PATCH] fix: missing cellMeridiemFormat in all locales (#842) * fix: missing cellMeridiemFormat in all locales * fix: missing cellMeridiemFormat in all locales * fix: missing cellMeridiemFormat in all locales * fix: missing cellMeridiemFormat in all locales * fix: missing cellMeridiemFormat in all locales * fix: missing cellMeridiemFormat in all locales --- .fatherrc.js | 2 +- .husky/pre-commit | 1 + .lintstagedrc.json | 3 ++ CHANGELOG.md | 1 + README.md | 8 ++--- package.json | 9 ++++-- src/locale/ar_EG.ts | 5 ++- src/locale/az_AZ.ts | 5 ++- src/locale/bg_BG.ts | 5 ++- src/locale/bn_BD.ts | 5 ++- src/locale/by_BY.ts | 56 ++++++++++++++++++---------------- src/locale/ca_ES.ts | 5 ++- src/locale/common.ts | 8 +++++ src/locale/cs_CZ.ts | 8 +++-- src/locale/da_DK.ts | 8 +++-- src/locale/de_DE.ts | 8 +++-- src/locale/el_GR.ts | 8 +++-- src/locale/en_GB.ts | 8 +++-- src/locale/en_US.ts | 8 +++-- src/locale/es_ES.ts | 8 +++-- src/locale/es_MX.ts | 8 +++-- src/locale/et_EE.ts | 8 +++-- src/locale/eu_ES.ts | 66 ++++++++++++++++++++-------------------- src/locale/fa_IR.ts | 8 +++-- src/locale/fi_FI.ts | 8 +++-- src/locale/fr_BE.ts | 8 +++-- src/locale/fr_CA.ts | 6 ++-- src/locale/fr_FR.ts | 6 ++-- src/locale/ga_IE.ts | 8 +++-- src/locale/gl_ES.ts | 8 +++-- src/locale/he_IL.ts | 8 +++-- src/locale/hi_IN.ts | 8 +++-- src/locale/hr_HR.ts | 8 +++-- src/locale/hu_HU.ts | 6 ++-- src/locale/id_ID.ts | 8 +++-- src/locale/is_IS.ts | 8 +++-- src/locale/it_IT.ts | 8 +++-- src/locale/ja_JP.ts | 4 ++- src/locale/ka_GE.ts | 8 +++-- src/locale/kk_KZ.ts | 8 +++-- src/locale/km_KH.ts | 6 ++-- src/locale/kmr_IQ.ts | 8 +++-- src/locale/kn_IN.ts | 8 +++-- src/locale/ko_KR.ts | 3 +- src/locale/lt_LT.ts | 6 ++-- src/locale/lv_LV.ts | 8 +++-- src/locale/mk_MK.ts | 8 +++-- src/locale/ml_IN.ts | 8 +++-- src/locale/mn_MN.ts | 6 ++-- src/locale/ms_MY.ts | 7 +++-- src/locale/my_MM.ts | 8 +++-- src/locale/nb_NO.ts | 6 ++-- src/locale/ne_NP.ts | 8 +++-- src/locale/nl_BE.ts | 8 +++-- src/locale/nl_NL.ts | 8 +++-- src/locale/pl_PL.ts | 8 +++-- src/locale/pt_BR.ts | 19 ++---------- src/locale/pt_PT.ts | 25 +++++---------- src/locale/ro_RO.ts | 8 +++-- src/locale/ru_RU.ts | 8 +++-- src/locale/si_LK.ts | 6 ++-- src/locale/sk_SK.ts | 8 +++-- src/locale/sl_SI.ts | 8 +++-- src/locale/sr_Cyrl_RS.ts | 8 +++-- src/locale/sr_RS.ts | 8 +++-- src/locale/sv_SE.ts | 8 +++-- src/locale/ta_IN.ts | 8 +++-- src/locale/th_TH.ts | 8 +++-- src/locale/tk_TK.ts | 8 +++-- src/locale/tr_TR.ts | 8 +++-- src/locale/ug_CN.ts | 3 ++ src/locale/uk_UA.ts | 8 +++-- src/locale/ur_PK.ts | 8 +++-- src/locale/uz_UZ.ts | 15 +++++---- src/locale/vi_VN.ts | 8 +++-- src/locale/zh_CN.ts | 12 ++++---- src/locale/zh_TW.ts | 7 ++++- 77 files changed, 398 insertions(+), 292 deletions(-) create mode 100644 .husky/pre-commit create mode 100644 .lintstagedrc.json create mode 100644 src/locale/common.ts diff --git a/.fatherrc.js b/.fatherrc.js index 4ddbafd19..96268ae1e 100644 --- a/.fatherrc.js +++ b/.fatherrc.js @@ -2,4 +2,4 @@ import { defineConfig } from 'father'; export default defineConfig({ plugins: ['@rc-component/father-plugin'], -}); \ No newline at end of file +}); diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100644 index 000000000..2312dc587 --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1 @@ +npx lint-staged diff --git a/.lintstagedrc.json b/.lintstagedrc.json new file mode 100644 index 000000000..029b2e473 --- /dev/null +++ b/.lintstagedrc.json @@ -0,0 +1,3 @@ +{ + "*": ["prettier --ignore-unknown --write"] +} diff --git a/CHANGELOG.md b/CHANGELOG.md index 65b595c55..571222364 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,7 @@ > It has not been updated for a long time and will be maintained from now on. More in [releases](https://github.com/react-component/picker/releases). --- + ## 0.6.0 - support `maxColumnsPerRow`. diff --git a/README.md b/README.md index c3a271adc..0672874ca 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,6 @@ # rc-picker -[![NPM version][npm-image]][npm-url] -[![build status][github-actions-image]][github-actions-url] -[![Codecov][codecov-image]][codecov-url] -[![npm download][download-image]][download-url] -[![bundle size][bundlephobia-image]][bundlephobia-url] +[![NPM version][npm-image]][npm-url] [![build status][github-actions-image]][github-actions-url] [![Codecov][codecov-image]][codecov-url] [![npm download][download-image]][download-url] [![bundle size][bundlephobia-image]][bundlephobia-url] [npm-image]: http://img.shields.io/npm/v/rc-picker.svg?style=flat-square [npm-url]: http://npmjs.org/package/rc-picker @@ -106,7 +102,7 @@ render(, mountNode); ### RangePicker | Property | Type | Default | Description | -| --- | --- | --- | --- | +| --- | --- | --- | --- | --- | | prefixCls | String | rc-picker | prefixCls of this component | | className | String | '' | additional css class of root dom | | style | React.CSSProperties | | additional style of root dom node | diff --git a/package.json b/package.json index 800eadeed..f6c86986d 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,8 @@ "prettier": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"", "test": "rc-test", "coverage": "father test --coverage", - "now-build": "npm run build" + "now-build": "npm run build", + "prepare": "npx husky" }, "dependencies": { "@babel/runtime": "^7.24.7", @@ -62,13 +63,15 @@ "dayjs": "1.x", "dumi": "^2.1.15", "eslint": "^8.56.0", + "eslint-plugin-eslint-comments": "^3.2.0", "eslint-plugin-jest": "^27.6.0", - "eslint-plugin-unicorn": "^54.0.0", "eslint-plugin-react-hooks": "^4.6.0", - "eslint-plugin-eslint-comments": "^3.2.0", + "eslint-plugin-unicorn": "^54.0.0", "father": "^4.0.0", "glob": "^10.4.1", + "husky": "^9.0.11", "less": "^4.2.0", + "lint-staged": "^15.2.7", "luxon": "3.x", "mockdate": "^3.0.2", "moment": "^2.24.0", diff --git a/src/locale/ar_EG.ts b/src/locale/ar_EG.ts index 14e9b6b27..bf41c1b45 100644 --- a/src/locale/ar_EG.ts +++ b/src/locale/ar_EG.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'ar_EG', today: 'اليوم', now: 'الأن', @@ -14,11 +16,8 @@ const locale: Locale = { monthSelect: 'اختيار الشهر', yearSelect: 'اختيار السنة', decadeSelect: 'اختيار العقد', - yearFormat: 'YYYY', dateFormat: 'M/D/YYYY', - dayFormat: 'D', dateTimeFormat: 'M/D/YYYY HH:mm:ss', - monthBeforeYear: true, previousMonth: 'الشهر السابق (PageUp)', nextMonth: 'الشهر التالى(PageDown)', previousYear: 'العام السابق (Control + left)', diff --git a/src/locale/az_AZ.ts b/src/locale/az_AZ.ts index a499805bc..62e727bc0 100644 --- a/src/locale/az_AZ.ts +++ b/src/locale/az_AZ.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'az_AZ', today: 'Bugün', now: 'İndi', @@ -15,11 +17,8 @@ const locale: Locale = { monthSelect: 'Ay seç', yearSelect: 'il seç', decadeSelect: 'Onillik seçin', - yearFormat: 'YYYY', dateFormat: 'D.M.YYYY', - dayFormat: 'D', dateTimeFormat: 'D.M.YYYY HH:mm:ss', - monthBeforeYear: true, previousMonth: 'Əvvəlki ay (PageUp)', nextMonth: 'Növbəti ay (PageDown)', previousYear: 'Sonuncu il (Control + left)', diff --git a/src/locale/bg_BG.ts b/src/locale/bg_BG.ts index 07334a91d..a6f2e5a93 100644 --- a/src/locale/bg_BG.ts +++ b/src/locale/bg_BG.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'bg_BG', today: 'Днес', now: 'Сега', @@ -14,11 +16,8 @@ const locale: Locale = { monthSelect: 'Избор на месец', yearSelect: 'Избор на година', decadeSelect: 'Десетилетие', - yearFormat: 'YYYY', dateFormat: 'D M YYYY', - dayFormat: 'D', dateTimeFormat: 'D M YYYY HH:mm:ss', - monthBeforeYear: true, previousMonth: 'Предишен месец (PageUp)', nextMonth: 'Следващ месец (PageDown)', previousYear: 'Последна година (Control + left)', diff --git a/src/locale/bn_BD.ts b/src/locale/bn_BD.ts index c98e89071..aa5945c0e 100644 --- a/src/locale/bn_BD.ts +++ b/src/locale/bn_BD.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'bn_BD', today: 'আজ', now: 'এখন', @@ -15,11 +17,8 @@ const locale: Locale = { monthSelect: 'মাস পছন্দ করুন', yearSelect: 'বছর পছন্দ করুন', decadeSelect: 'একটি দশক পছন্দ করুন', - yearFormat: 'YYYY', dateFormat: 'M/D/YYYY', - dayFormat: 'D', dateTimeFormat: 'D/M/YYYY HH:mm:ss', - monthBeforeYear: true, previousMonth: 'গত মাস (PageUp)', nextMonth: 'আগামী মাস (PageDown)', previousYear: 'গত বছর (Control + left)', diff --git a/src/locale/by_BY.ts b/src/locale/by_BY.ts index 47d2fd556..3116fa9ee 100644 --- a/src/locale/by_BY.ts +++ b/src/locale/by_BY.ts @@ -1,33 +1,35 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { -locale: 'by_BY', -today: 'Сёння', -now: 'Зараз', -backToToday: 'Дадзеная дата', -ok: 'OK', -clear: 'Ачысціць', -month: 'Месяц', -year: 'Год', -timeSelect: 'Выбраць час', -dateSelect: 'Выбраць дату', -weekSelect: 'Выбраць тыдзень', -monthSelect: 'Выбраць месяц', -yearSelect: 'Выбраць год', -decadeSelect: 'Выбраць дзесяцігоддзе', -yearFormat: 'YYYY', -dateFormat: 'D-M-YYYY', -dayFormat: 'D', -dateTimeFormat: 'D-M-YYYY HH:mm:ss', -monthBeforeYear: true, -previousMonth: 'Папярэдні месяц (PageUp)', -nextMonth: 'Наступны месяц (PageDown)', -previousYear: 'Папярэдні год (Control + left)', -nextYear: 'Наступны год (Control + right)', -previousDecade: 'Папярэдняе дзесяцігоддзе', -nextDecade: 'Наступнае дзесяцігоддзе', -previousCentury: 'Папярэдні век', -nextCentury: 'Наступны век', + ...commonLocale, + locale: 'by_BY', + today: 'Сёння', + now: 'Зараз', + backToToday: 'Дадзеная дата', + ok: 'OK', + clear: 'Ачысціць', + month: 'Месяц', + year: 'Год', + timeSelect: 'Выбраць час', + dateSelect: 'Выбраць дату', + weekSelect: 'Выбраць тыдзень', + monthSelect: 'Выбраць месяц', + yearSelect: 'Выбраць год', + decadeSelect: 'Выбраць дзесяцігоддзе', + + dateFormat: 'D-M-YYYY', + + dateTimeFormat: 'D-M-YYYY HH:mm:ss', + + previousMonth: 'Папярэдні месяц (PageUp)', + nextMonth: 'Наступны месяц (PageDown)', + previousYear: 'Папярэдні год (Control + left)', + nextYear: 'Наступны год (Control + right)', + previousDecade: 'Папярэдняе дзесяцігоддзе', + nextDecade: 'Наступнае дзесяцігоддзе', + previousCentury: 'Папярэдні век', + nextCentury: 'Наступны век', }; export default locale; diff --git a/src/locale/ca_ES.ts b/src/locale/ca_ES.ts index f93f09397..2967e66c5 100644 --- a/src/locale/ca_ES.ts +++ b/src/locale/ca_ES.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'ca_ES', today: 'Avui', now: 'Ara', @@ -14,11 +16,8 @@ const locale: Locale = { monthSelect: 'Escollir un mes', yearSelect: 'Escollir un any', decadeSelect: 'Escollir una dècada', - yearFormat: 'YYYY', dateFormat: 'D/M/YYYY', - dayFormat: 'D', dateTimeFormat: 'D/M/YYYY HH:mm:ss', - monthBeforeYear: true, previousMonth: 'Mes anterior (PageUp)', nextMonth: 'Mes següent (PageDown)', previousYear: 'Any anterior (Control + left)', diff --git a/src/locale/common.ts b/src/locale/common.ts new file mode 100644 index 000000000..a46b4be8f --- /dev/null +++ b/src/locale/common.ts @@ -0,0 +1,8 @@ +import type { Locale } from '../interface'; + +export const commonLocale: Partial = { + yearFormat: 'YYYY', + dayFormat: 'D', + cellMeridiemFormat: 'A', + monthBeforeYear: true, +}; diff --git a/src/locale/cs_CZ.ts b/src/locale/cs_CZ.ts index 11d2214a5..13658e916 100644 --- a/src/locale/cs_CZ.ts +++ b/src/locale/cs_CZ.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'cs_CZ', today: 'Dnes', now: 'Nyní', @@ -14,11 +16,11 @@ const locale: Locale = { monthSelect: 'Vyberte měsíc', yearSelect: 'Vyberte rok', decadeSelect: 'Vyberte dekádu', - yearFormat: 'YYYY', + dateFormat: 'D.M.YYYY', - dayFormat: 'D', + dateTimeFormat: 'D.M.YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'Předchozí měsíc (PageUp)', nextMonth: 'Následující (PageDown)', previousYear: 'Předchozí rok (Control + left)', diff --git a/src/locale/da_DK.ts b/src/locale/da_DK.ts index dce103e01..0d23a8d14 100644 --- a/src/locale/da_DK.ts +++ b/src/locale/da_DK.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'da_DK', today: 'I dag', now: 'Nu', @@ -14,11 +16,11 @@ const locale: Locale = { monthSelect: 'Vælg måned', yearSelect: 'Vælg år', decadeSelect: 'Vælg årti', - yearFormat: 'YYYY', + dateFormat: 'D/M/YYYY', - dayFormat: 'D', + dateTimeFormat: 'D/M/YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'Forrige måned (Page Up)', nextMonth: 'Næste måned (Page Down)', previousYear: 'Forrige år (Ctrl-venstre pil)', diff --git a/src/locale/de_DE.ts b/src/locale/de_DE.ts index e053a6302..a83392fa5 100644 --- a/src/locale/de_DE.ts +++ b/src/locale/de_DE.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'de_DE', today: 'Heute', now: 'Jetzt', @@ -14,11 +16,11 @@ const locale: Locale = { monthSelect: 'Wähle einen Monat', yearSelect: 'Wähle ein Jahr', decadeSelect: 'Wähle ein Jahrzehnt', - yearFormat: 'YYYY', + dateFormat: 'D.M.YYYY', - dayFormat: 'D', + dateTimeFormat: 'D.M.YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'Vorheriger Monat (PageUp)', nextMonth: 'Nächster Monat (PageDown)', previousYear: 'Vorheriges Jahr (Ctrl + left)', diff --git a/src/locale/el_GR.ts b/src/locale/el_GR.ts index b2429ad76..40e6b1ef4 100644 --- a/src/locale/el_GR.ts +++ b/src/locale/el_GR.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'el_GR', today: 'Σήμερα', now: 'Τώρα', @@ -14,11 +16,11 @@ const locale: Locale = { monthSelect: 'Επιλογή μήνα', yearSelect: 'Επιλογή έτους', decadeSelect: 'Επιλογή δεκαετίας', - yearFormat: 'YYYY', + dateFormat: 'D/M/YYYY', - dayFormat: 'D', + dateTimeFormat: 'D/M/YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'Προηγούμενος μήνας (PageUp)', nextMonth: 'Επόμενος μήνας (PageDown)', previousYear: 'Προηγούμενο έτος (Control + αριστερά)', diff --git a/src/locale/en_GB.ts b/src/locale/en_GB.ts index 6afbce276..18c1383e7 100644 --- a/src/locale/en_GB.ts +++ b/src/locale/en_GB.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'en_GB', today: 'Today', now: 'Now', @@ -14,11 +16,11 @@ const locale: Locale = { monthSelect: 'Choose a month', yearSelect: 'Choose a year', decadeSelect: 'Choose a decade', - yearFormat: 'YYYY', + dateFormat: 'D/M/YYYY', - dayFormat: 'D', + dateTimeFormat: 'D/M/YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'Previous month (PageUp)', nextMonth: 'Next month (PageDown)', previousYear: 'Last year (Control + left)', diff --git a/src/locale/en_US.ts b/src/locale/en_US.ts index c1a7fd5c4..f0d682f89 100644 --- a/src/locale/en_US.ts +++ b/src/locale/en_US.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'en_US', today: 'Today', now: 'Now', @@ -15,11 +17,11 @@ const locale: Locale = { monthSelect: 'Choose a month', yearSelect: 'Choose a year', decadeSelect: 'Choose a decade', - yearFormat: 'YYYY', + dateFormat: 'M/D/YYYY', - dayFormat: 'D', + dateTimeFormat: 'M/D/YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'Previous month (PageUp)', nextMonth: 'Next month (PageDown)', previousYear: 'Last year (Control + left)', diff --git a/src/locale/es_ES.ts b/src/locale/es_ES.ts index 373db7dbf..9aa10a714 100644 --- a/src/locale/es_ES.ts +++ b/src/locale/es_ES.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'es_ES', today: 'Hoy', now: 'Ahora', @@ -14,11 +16,11 @@ const locale: Locale = { monthSelect: 'Elegir un mes', yearSelect: 'Elegir un año', decadeSelect: 'Elegir una década', - yearFormat: 'YYYY', + dateFormat: 'D/M/YYYY', - dayFormat: 'D', + dateTimeFormat: 'D/M/YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'Mes anterior (PageUp)', nextMonth: 'Mes siguiente (PageDown)', previousYear: 'Año anterior (Control + left)', diff --git a/src/locale/es_MX.ts b/src/locale/es_MX.ts index db65cc882..0aa2fe30e 100644 --- a/src/locale/es_MX.ts +++ b/src/locale/es_MX.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'es_MX', today: 'Hoy', now: 'Ahora', @@ -15,11 +17,11 @@ const locale: Locale = { monthSelect: 'Seleccionar mes', yearSelect: 'Seleccionar año', decadeSelect: 'Seleccionar década', - yearFormat: 'YYYY', + dateFormat: 'D/M/YYYY', - dayFormat: 'D', + dateTimeFormat: 'D/M/YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'Mes anterior (PageUp)', nextMonth: 'Mes siguiente (PageDown)', previousYear: 'Año anterior (Control + Left)', diff --git a/src/locale/et_EE.ts b/src/locale/et_EE.ts index 3593f0b81..7bea08882 100644 --- a/src/locale/et_EE.ts +++ b/src/locale/et_EE.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'et_EE', today: 'Täna', now: 'Praegu', @@ -14,11 +16,11 @@ const locale: Locale = { monthSelect: 'Vali kuu', yearSelect: 'Vali aasta', decadeSelect: 'Vali dekaad', - yearFormat: 'YYYY', + dateFormat: 'D.M.YYYY', - dayFormat: 'D', + dateTimeFormat: 'D.M.YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'Eelmine kuu (PageUp)', nextMonth: 'Järgmine kuu (PageDown)', previousYear: 'Eelmine aasta (Control + left)', diff --git a/src/locale/eu_ES.ts b/src/locale/eu_ES.ts index b76056e61..f551959fe 100644 --- a/src/locale/eu_ES.ts +++ b/src/locale/eu_ES.ts @@ -1,33 +1,33 @@ -import type { Locale } from '../interface'; - -const locale: Locale = { - locale: 'eu_ES', - today: 'Gaur', - now: 'Orain', - backToToday: 'Gaur itzuli', - ok: 'OK', - clear: 'Garbitu', - month: 'Hilabete', - year: 'Urte', - timeSelect: 'Ordua aukeratu', - dateSelect: 'Eguna aukeratu', - weekSelect: 'Astea aukeratu', - monthSelect: 'Hilabetea aukeratu', - yearSelect: 'Urtea aukeratu', - decadeSelect: 'Hamarkada aukeratu', - yearFormat: 'YYYY', - dateFormat: 'YYYY/M/D', - dayFormat: 'D', - dateTimeFormat: 'YYYY/M/D HH:mm:ss', - monthBeforeYear: false, - previousMonth: 'Aurreko hilabetea (RePag)', - nextMonth: 'Urrengo hilabetea (AvPag)', - previousYear: 'Aurreko urtea (Control + ezkerra)', - nextYear: 'Urrento urtea (Control + eskuina)', - previousDecade: 'Aurreko hamarkada', - nextDecade: 'Urrengo hamarkada', - previousCentury: 'Aurreko mendea', - nextCentury: 'Urrengo mendea', -}; - -export default locale; \ No newline at end of file +import { commonLocale } from './common'; +import type { Locale } from '../interface'; + +const locale: Locale = { + ...commonLocale, + locale: 'eu_ES', + today: 'Gaur', + now: 'Orain', + backToToday: 'Gaur itzuli', + ok: 'OK', + clear: 'Garbitu', + month: 'Hilabete', + year: 'Urte', + timeSelect: 'Ordua aukeratu', + dateSelect: 'Eguna aukeratu', + weekSelect: 'Astea aukeratu', + monthSelect: 'Hilabetea aukeratu', + yearSelect: 'Urtea aukeratu', + decadeSelect: 'Hamarkada aukeratu', + dateFormat: 'YYYY/M/D', + dateTimeFormat: 'YYYY/M/D HH:mm:ss', + monthBeforeYear: false, + previousMonth: 'Aurreko hilabetea (RePag)', + nextMonth: 'Urrengo hilabetea (AvPag)', + previousYear: 'Aurreko urtea (Control + ezkerra)', + nextYear: 'Urrento urtea (Control + eskuina)', + previousDecade: 'Aurreko hamarkada', + nextDecade: 'Urrengo hamarkada', + previousCentury: 'Aurreko mendea', + nextCentury: 'Urrengo mendea', +}; + +export default locale; diff --git a/src/locale/fa_IR.ts b/src/locale/fa_IR.ts index f7e1af3b5..27f22c192 100644 --- a/src/locale/fa_IR.ts +++ b/src/locale/fa_IR.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'fa_IR', today: 'امروز', now: 'اکنون', @@ -14,11 +16,11 @@ const locale: Locale = { monthSelect: 'یک ماه را انتخاب کنید', yearSelect: 'یک سال را انتخاب کنید', decadeSelect: 'یک دهه را انتخاب کنید', - yearFormat: 'YYYY', + dateFormat: 'M/D/YYYY', - dayFormat: 'D', + dateTimeFormat: 'M/D/YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'ماه قبل (PageUp)', nextMonth: 'ماه بعد (PageDown)', previousYear: 'سال قبل (Control + left)', diff --git a/src/locale/fi_FI.ts b/src/locale/fi_FI.ts index d578a1acd..d7535d211 100644 --- a/src/locale/fi_FI.ts +++ b/src/locale/fi_FI.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'fi_FI', today: 'Tänään', now: 'Nyt', @@ -14,11 +16,11 @@ const locale: Locale = { monthSelect: 'Valitse kuukausi', yearSelect: 'Valitse vuosi', decadeSelect: 'Valitse vuosikymmen', - yearFormat: 'YYYY', + dateFormat: 'D.M.YYYY', - dayFormat: 'D', + dateTimeFormat: 'D.M.YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'Edellinen kuukausi (PageUp)', nextMonth: 'Seuraava kuukausi (PageDown)', previousYear: 'Edellinen vuosi (Control + left)', diff --git a/src/locale/fr_BE.ts b/src/locale/fr_BE.ts index f496254a8..5da8af5f5 100644 --- a/src/locale/fr_BE.ts +++ b/src/locale/fr_BE.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'fr_BE', today: "Aujourd'hui", now: 'Maintenant', @@ -14,11 +16,11 @@ const locale: Locale = { monthSelect: 'Choisissez un mois', yearSelect: 'Choisissez une année', decadeSelect: 'Choisissez une décennie', - yearFormat: 'YYYY', + dateFormat: 'D/M/YYYY', - dayFormat: 'D', + dateTimeFormat: 'D/M/YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'Mois précédent (PageUp)', nextMonth: 'Mois suivant (PageDown)', previousYear: 'Année précédente (Ctrl + gauche)', diff --git a/src/locale/fr_CA.ts b/src/locale/fr_CA.ts index e9852f98a..8bbc94717 100644 --- a/src/locale/fr_CA.ts +++ b/src/locale/fr_CA.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'fr_CA', today: "Aujourd'hui", now: 'Maintenant', @@ -14,11 +16,11 @@ const locale: Locale = { monthSelect: 'Choisissez un mois', yearSelect: 'Choisissez une année', decadeSelect: 'Choisissez une décennie', - yearFormat: 'YYYY', + dateFormat: 'DD/MM/YYYY', dayFormat: 'DD', dateTimeFormat: 'DD/MM/YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'Mois précédent (PageUp)', nextMonth: 'Mois suivant (PageDown)', previousYear: 'Année précédente (Ctrl + gauche)', diff --git a/src/locale/fr_FR.ts b/src/locale/fr_FR.ts index 3bf5d588c..f75408599 100644 --- a/src/locale/fr_FR.ts +++ b/src/locale/fr_FR.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'fr_FR', today: "Aujourd'hui", now: 'Maintenant', @@ -14,11 +16,11 @@ const locale: Locale = { monthSelect: 'Choisissez un mois', yearSelect: 'Choisissez une année', decadeSelect: 'Choisissez une décennie', - yearFormat: 'YYYY', + dateFormat: 'DD/MM/YYYY', dayFormat: 'DD', dateTimeFormat: 'DD/MM/YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'Mois précédent (PageUp)', nextMonth: 'Mois suivant (PageDown)', previousYear: 'Année précédente (Ctrl + gauche)', diff --git a/src/locale/ga_IE.ts b/src/locale/ga_IE.ts index 326a209bd..4f41f466c 100644 --- a/src/locale/ga_IE.ts +++ b/src/locale/ga_IE.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'ga_IE', today: 'inniu', now: 'anois', @@ -15,11 +17,11 @@ const locale: Locale = { monthSelect: 'Roghnaigh mí', yearSelect: 'Roghnaigh bliain', decadeSelect: 'Roghnaigh deich mbliana', - yearFormat: 'YYYY', + dateFormat: 'D/M/YYYY', - dayFormat: 'D', + dateTimeFormat: 'D/M/YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'An mhí roimhe seo (PageUp)', nextMonth: 'An mhí seo chugainn (PageDown)', previousYear: 'Anuraidh (Control + left)', diff --git a/src/locale/gl_ES.ts b/src/locale/gl_ES.ts index 13258764e..456d763af 100644 --- a/src/locale/gl_ES.ts +++ b/src/locale/gl_ES.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'gl_ES', today: 'Hoxe', now: 'Agora', @@ -14,11 +16,11 @@ const locale: Locale = { monthSelect: 'Elexir un mes', yearSelect: 'Elexir un año', decadeSelect: 'Elexir unha década', - yearFormat: 'YYYY', + dateFormat: 'D/M/YYYY', - dayFormat: 'D', + dateTimeFormat: 'D/M/YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'Mes anterior (PageUp)', nextMonth: 'Mes seguinte (PageDown)', previousYear: 'Ano anterior (Control + left)', diff --git a/src/locale/he_IL.ts b/src/locale/he_IL.ts index ea3fc8b73..38a968fbf 100644 --- a/src/locale/he_IL.ts +++ b/src/locale/he_IL.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'he_IL', today: 'היום', now: 'עכשיו', @@ -15,11 +17,11 @@ const locale: Locale = { monthSelect: 'בחר חודש', yearSelect: 'בחר שנה', decadeSelect: 'בחר עשור', - yearFormat: 'YYYY', + dateFormat: 'M/D/YYYY', - dayFormat: 'D', + dateTimeFormat: 'M/D/YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'חודש קודם (PageUp)', nextMonth: 'חודש הבא (PageDown)', previousYear: 'שנה שעברה (Control + left)', diff --git a/src/locale/hi_IN.ts b/src/locale/hi_IN.ts index 51ae22917..fe0bbbddd 100644 --- a/src/locale/hi_IN.ts +++ b/src/locale/hi_IN.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'hi_IN', today: 'आज', now: 'अभी', @@ -15,11 +17,11 @@ const locale: Locale = { monthSelect: 'एक महीना चुनें', yearSelect: 'एक वर्ष चुनें', decadeSelect: 'एक दशक चुनें', - yearFormat: 'YYYY', + dateFormat: 'M/D/YYYY', - dayFormat: 'D', + dateTimeFormat: 'M/D/YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'पिछला महीना (पेजअप)', nextMonth: 'अगले महीने (पेजडाउन)', previousYear: 'पिछले साल (Ctrl + बाएं)', diff --git a/src/locale/hr_HR.ts b/src/locale/hr_HR.ts index 2a10da767..06f02e71b 100644 --- a/src/locale/hr_HR.ts +++ b/src/locale/hr_HR.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'hr_HR', today: 'Danas', now: 'Sad', @@ -15,11 +17,11 @@ const locale: Locale = { monthSelect: 'Odaberite mjesec', yearSelect: 'Odaberite godinu', decadeSelect: 'Odaberite desetljeće', - yearFormat: 'YYYY', + dateFormat: 'D.M.YYYY', - dayFormat: 'D', + dateTimeFormat: 'D.M.YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'Prošli mjesec (PageUp)', nextMonth: 'Sljedeći mjesec (PageDown)', previousYear: 'Prošla godina (Control + left)', diff --git a/src/locale/hu_HU.ts b/src/locale/hu_HU.ts index 059ce20fb..35285eea6 100644 --- a/src/locale/hu_HU.ts +++ b/src/locale/hu_HU.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'hu_HU', today: 'Ma', // 'Today', now: 'Most', // 'Now', @@ -14,11 +16,11 @@ const locale: Locale = { monthSelect: 'Hónap kiválasztása', // 'Choose a month', yearSelect: 'Év kiválasztása', // 'Choose a year', decadeSelect: 'Évtized kiválasztása', // 'Choose a decade', - yearFormat: 'YYYY', + dateFormat: 'YYYY/MM/DD', // 'M/D/YYYY', dayFormat: 'DD', // 'D', dateTimeFormat: 'YYYY/MM/DD HH:mm:ss', // 'M/D/YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'Előző hónap (PageUp)', // 'Previous month (PageUp)', nextMonth: 'Következő hónap (PageDown)', // 'Next month (PageDown)', previousYear: 'Múlt év (Control + left)', // 'Last year (Control + left)', diff --git a/src/locale/id_ID.ts b/src/locale/id_ID.ts index 01c9d760b..e1f7d3d16 100644 --- a/src/locale/id_ID.ts +++ b/src/locale/id_ID.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'id_ID', today: 'Hari ini', now: 'Sekarang', @@ -15,11 +17,11 @@ const locale: Locale = { monthSelect: 'Pilih satu bulan', yearSelect: 'Pilih satu tahun', decadeSelect: 'Pilih satu dekade', - yearFormat: 'YYYY', + dateFormat: 'D/M/YYYY', - dayFormat: 'D', + dateTimeFormat: 'D/M/YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'Bulan sebelumnya (PageUp)', nextMonth: 'Bulan selanjutnya (PageDown)', previousYear: 'Tahun lalu (Control + kiri)', diff --git a/src/locale/is_IS.ts b/src/locale/is_IS.ts index efea36701..9b9077685 100644 --- a/src/locale/is_IS.ts +++ b/src/locale/is_IS.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'is_IS', today: 'Í dag', now: 'Núna', @@ -14,11 +16,11 @@ const locale: Locale = { monthSelect: 'Velja mánuð', yearSelect: 'Velja ár', decadeSelect: 'Velja áratug', - yearFormat: 'YYYY', + dateFormat: 'D/M/YYYY', - dayFormat: 'D', + dateTimeFormat: 'D/M/YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'Fyrri mánuður (PageUp)', nextMonth: 'Næsti mánuður (PageDown)', previousYear: 'Fyrra ár (Control + left)', diff --git a/src/locale/it_IT.ts b/src/locale/it_IT.ts index 6a5970d38..6b225ca90 100644 --- a/src/locale/it_IT.ts +++ b/src/locale/it_IT.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'it_IT', today: 'Oggi', now: 'Adesso', @@ -14,11 +16,11 @@ const locale: Locale = { monthSelect: 'Seleziona il mese', yearSelect: "Seleziona l'anno", decadeSelect: 'Seleziona il decennio', - yearFormat: 'YYYY', + dateFormat: 'D/M/YYYY', - dayFormat: 'D', + dateTimeFormat: 'D/M/YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'Il mese scorso (PageUp)', nextMonth: 'Il prossimo mese (PageDown)', previousYear: "L'anno scorso (Control + sinistra)", diff --git a/src/locale/ja_JP.ts b/src/locale/ja_JP.ts index b89e3d67e..2665050f9 100644 --- a/src/locale/ja_JP.ts +++ b/src/locale/ja_JP.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'ja_JP', today: '今日', now: '現在時刻', @@ -18,7 +20,6 @@ const locale: Locale = { yearSelect: '年を選択', decadeSelect: '年代を選択', yearFormat: 'YYYY年', - dayFormat: 'D', dateFormat: 'YYYY年M月D日', dateTimeFormat: 'YYYY年M月D日 HH時mm分ss秒', previousYear: '前年 (Controlを押しながら左キー)', @@ -27,6 +28,7 @@ const locale: Locale = { nextDecade: '次の年代', previousCentury: '前の世紀', nextCentury: '次の世紀', + monthBeforeYear: false, }; export default locale; diff --git a/src/locale/ka_GE.ts b/src/locale/ka_GE.ts index 78a06c687..d4f3b74e9 100644 --- a/src/locale/ka_GE.ts +++ b/src/locale/ka_GE.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'ka_GE', today: 'დღეს', now: 'ახლა', @@ -15,11 +17,11 @@ const locale: Locale = { monthSelect: 'თვის არჩევა', yearSelect: 'წლის არჩევა', decadeSelect: 'ათწლეულის არჩევა', - yearFormat: 'YYYY', + dateFormat: 'M/D/YYYY', - dayFormat: 'D', + dateTimeFormat: 'M/D/YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'წინა თვე (PageUp)', nextMonth: 'მომდევნო თვე (PageDown)', previousYear: 'წინა წელი (Control + left)', diff --git a/src/locale/kk_KZ.ts b/src/locale/kk_KZ.ts index f3b6787ff..ccdebcee9 100644 --- a/src/locale/kk_KZ.ts +++ b/src/locale/kk_KZ.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'kk_KZ', today: 'Бүгін', now: 'Қазір', @@ -14,11 +16,11 @@ const locale: Locale = { monthSelect: 'Айды таңдаңыз', yearSelect: 'Жылды таңдаңыз', decadeSelect: 'Онжылды таңдаңыз', - yearFormat: 'YYYY', + dateFormat: 'D-M-YYYY', - dayFormat: 'D', + dateTimeFormat: 'D-M-YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'Алдыңғы ай (PageUp)', nextMonth: 'Келесі ай (PageDown)', previousYear: 'Алдыңғы жыл (Control + left)', diff --git a/src/locale/km_KH.ts b/src/locale/km_KH.ts index 2edb5da3d..7eba3aae4 100644 --- a/src/locale/km_KH.ts +++ b/src/locale/km_KH.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'km', today: 'ថ្ងៃនេះ', now: 'ឥឡូវ​នេះ', @@ -17,8 +19,7 @@ const locale: Locale = { monthSelect: 'ជ្រើសរើសខែ', yearSelect: 'ជ្រើសរើសឆ្នាំ', decadeSelect: 'ជ្រើសរើសអាយុ', - yearFormat: 'YYYY', - dayFormat: 'D', + dateFormat: 'YYYY-M-D', dateTimeFormat: 'YYYY-M-D HH:mm:ss', previousYear: 'ឆ្នាំមុន (Controlគ្រាប់ចុចបូកព្រួញខាងឆ្វេង)', @@ -27,6 +28,7 @@ const locale: Locale = { nextDecade: 'ជំនាន់​ក្រោយ', previousCentury: 'សតវត្សចុងក្រោយ', nextCentury: 'សតវត្សរ៍បន្ទាប់', + monthBeforeYear: false, }; export default locale; diff --git a/src/locale/kmr_IQ.ts b/src/locale/kmr_IQ.ts index 867ec68b0..f8573a54f 100644 --- a/src/locale/kmr_IQ.ts +++ b/src/locale/kmr_IQ.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'ku', today: 'Îro', now: 'Niha', @@ -14,11 +16,11 @@ const locale: Locale = { monthSelect: 'Meh hilbijêre', yearSelect: 'Sal hilbijêre', decadeSelect: 'Dehsal hilbijêre', - yearFormat: 'YYYY', + dateFormat: 'D/M/YYYY', - dayFormat: 'D', + dateTimeFormat: 'D/M/YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'Meha peş (PageUp))', nextMonth: 'Meha paş (PageDown)', previousYear: 'Sala peş (Control + şep)', diff --git a/src/locale/kn_IN.ts b/src/locale/kn_IN.ts index 1731ebdaf..226191cd0 100644 --- a/src/locale/kn_IN.ts +++ b/src/locale/kn_IN.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'kn_IN', today: 'ಇಂದು', now: 'ಈಗ', @@ -15,11 +17,11 @@ const locale: Locale = { monthSelect: 'ಒಂದು ತಿಂಗಳು ಆಯ್ಕೆಮಾಡಿ', yearSelect: 'ಒಂದು ವರ್ಷ ಆರಿಸಿ', decadeSelect: 'ಒಂದು ದಶಕದ ಆಯ್ಕೆಮಾಡಿ', - yearFormat: 'YYYY', + dateFormat: 'M/D/YYYY', - dayFormat: 'D', + dateTimeFormat: 'M/D/YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'ಹಿಂದಿನ ತಿಂಗಳು (ಪೇಜ್ಅಪ್)', nextMonth: 'ಮುಂದಿನ ತಿಂಗಳು (ಪೇಜ್ಡೌನ್)', previousYear: 'ಕಳೆದ ವರ್ಷ (Ctrl + ಎಡ)', diff --git a/src/locale/ko_KR.ts b/src/locale/ko_KR.ts index 011dec5a0..2845907f3 100644 --- a/src/locale/ko_KR.ts +++ b/src/locale/ko_KR.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'ko_KR', today: '오늘', now: '현재 시각', @@ -16,7 +18,6 @@ const locale: Locale = { decadeSelect: '연대 선택', yearFormat: 'YYYY년', dateFormat: 'YYYY-MM-DD', - dayFormat: 'D', dateTimeFormat: 'YYYY-MM-DD HH:mm:ss', monthBeforeYear: false, previousMonth: '이전 달 (PageUp)', diff --git a/src/locale/lt_LT.ts b/src/locale/lt_LT.ts index 322ab16fa..b8c9b9719 100644 --- a/src/locale/lt_LT.ts +++ b/src/locale/lt_LT.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'lt_LT', today: 'Šiandien', now: 'Dabar', @@ -15,11 +17,11 @@ const locale: Locale = { monthSelect: 'Pasirinkti mėnesį', yearSelect: 'Pasirinkti metus', decadeSelect: 'Pasirinkti dešimtmetį', - yearFormat: 'YYYY', + dateFormat: 'YYYY-MM-DD', dayFormat: 'DD', dateTimeFormat: 'YYYY-MM-DD HH:MM:SS', - monthBeforeYear: true, + previousMonth: 'Buvęs mėnesis (PageUp)', nextMonth: 'Kitas mėnesis (PageDown)', previousYear: 'Buvę metai (Control + left)', diff --git a/src/locale/lv_LV.ts b/src/locale/lv_LV.ts index e65078176..31d4c6dc4 100644 --- a/src/locale/lv_LV.ts +++ b/src/locale/lv_LV.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'lv_LV', today: 'Šodien', now: 'Tagad', @@ -14,11 +16,11 @@ const locale: Locale = { monthSelect: 'Izvēlieties mēnesi', yearSelect: 'Izvēlieties gadu', decadeSelect: 'Izvēlieties desmit gadus', - yearFormat: 'YYYY', + dateFormat: 'D.M.YYYY', - dayFormat: 'D', + dateTimeFormat: 'D.M.YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'Iepriekšējais mēnesis (PageUp)', nextMonth: 'Nākammēnes (PageDown)', previousYear: 'Pagājušais gads (Control + left)', diff --git a/src/locale/mk_MK.ts b/src/locale/mk_MK.ts index d1dd459ab..5a2e989b6 100644 --- a/src/locale/mk_MK.ts +++ b/src/locale/mk_MK.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'mk_MK', today: 'Денес', now: 'Сега', @@ -14,11 +16,11 @@ const locale: Locale = { monthSelect: 'Избери месец', yearSelect: 'Избери година', decadeSelect: 'Избери деценија', - yearFormat: 'YYYY', + dateFormat: 'D.M.YYYY', - dayFormat: 'D', + dateTimeFormat: 'D.M.YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'Претходен месец (PageUp)', nextMonth: 'Нареден месец (PageDown)', previousYear: 'Претходна година (Control + left)', diff --git a/src/locale/ml_IN.ts b/src/locale/ml_IN.ts index 5c7b513e0..23ec40578 100644 --- a/src/locale/ml_IN.ts +++ b/src/locale/ml_IN.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'ml_IN', today: 'ഇന്ന്', now: 'ഇപ്പോൾ', @@ -15,11 +17,11 @@ const locale: Locale = { monthSelect: 'മാസം തിരഞ്ഞെടുക്കുക', yearSelect: 'വർഷം തിരഞ്ഞെടുക്കുക', decadeSelect: 'ദശാബ്ദം തിരഞ്ഞെടുക്കുക', - yearFormat: 'YYYY', + dateFormat: 'M/D/YYYY', - dayFormat: 'D', + dateTimeFormat: 'M/D/YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'കഴിഞ്ഞ മാസം (PageUp)', nextMonth: 'അടുത്ത മാസം (PageDown)', previousYear: 'കഴിഞ്ഞ വർഷം (Control + left)', diff --git a/src/locale/mn_MN.ts b/src/locale/mn_MN.ts index 6b603f17f..8aed44d89 100644 --- a/src/locale/mn_MN.ts +++ b/src/locale/mn_MN.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'mn_MN', today: 'Өнөөдөр', now: 'Одоо', @@ -15,11 +17,11 @@ const locale: Locale = { monthSelect: 'Сар сонгох', yearSelect: 'Жил сонгох', decadeSelect: 'Арван сонгох', - yearFormat: 'YYYY', + dateFormat: 'YYYY/MM/DD', dayFormat: 'DD', dateTimeFormat: 'YYYY/MM/DD HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'Өмнөх сар (PageUp)', nextMonth: 'Дараа сар (PageDown)', previousYear: 'Өмнөх жил (Control + left)', diff --git a/src/locale/ms_MY.ts b/src/locale/ms_MY.ts index 32dc9e91d..a2fdfd181 100644 --- a/src/locale/ms_MY.ts +++ b/src/locale/ms_MY.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'ms_MY', today: 'Hari ini', now: 'Sekarang', @@ -17,8 +19,7 @@ const locale: Locale = { monthSelect: 'Pilih bulan', yearSelect: 'Pilih tahun', decadeSelect: 'Pilih dekad', - yearFormat: 'YYYY', - dayFormat: 'D', + dateFormat: 'M/D/YYYY', dateTimeFormat: 'M/D/YYYY HH:mm:ss', previousYear: 'Tahun lepas (Ctrl+left)', @@ -27,6 +28,8 @@ const locale: Locale = { nextDecade: 'Dekad depan', previousCentury: 'Abad lepas', nextCentury: 'Abad depan', + + monthBeforeYear: false, }; export default locale; diff --git a/src/locale/my_MM.ts b/src/locale/my_MM.ts index 5d52a7a96..75ff2694f 100644 --- a/src/locale/my_MM.ts +++ b/src/locale/my_MM.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'my_MM', today: 'ယနေ့', now: 'ယခု', @@ -15,11 +17,11 @@ const locale: Locale = { monthSelect: 'လကိုရွေး', yearSelect: 'နှစ်ကိုရွေး', decadeSelect: 'ဆယ်စုနှစ်ကိုရွေး', - yearFormat: 'YYYY', + dateFormat: 'M/D/YYYY', - dayFormat: 'D', + dateTimeFormat: 'M/D/YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'ယခင်လ (PageUp)', nextMonth: 'နောက်လ (PageDown)', previousYear: 'ယခင်နှစ် (Control + left)', diff --git a/src/locale/nb_NO.ts b/src/locale/nb_NO.ts index 9900df891..8dca2e04e 100644 --- a/src/locale/nb_NO.ts +++ b/src/locale/nb_NO.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'nb_NO', today: 'I dag', now: 'Nå', @@ -15,11 +17,11 @@ const locale: Locale = { monthSelect: 'Velg måned', yearSelect: 'Velg år', decadeSelect: 'Velg tiår', - yearFormat: 'YYYY', + dateFormat: 'DD.MM.YYYY', dayFormat: 'DD', dateTimeFormat: 'DD.MM.YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'Forrige måned (PageUp)', nextMonth: 'Neste måned (PageDown)', previousYear: 'Forrige år (Control + venstre)', diff --git a/src/locale/ne_NP.ts b/src/locale/ne_NP.ts index ad55604b2..c16f880c0 100644 --- a/src/locale/ne_NP.ts +++ b/src/locale/ne_NP.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'ne_NP', today: 'आज', now: 'अब', @@ -15,11 +17,11 @@ const locale: Locale = { monthSelect: 'एक महिना छान्नुहोस्', yearSelect: 'एक वर्ष छान्नुहोस्', decadeSelect: 'एक दशक छान्नुहोस्', - yearFormat: 'YYYY', + dateFormat: 'M/D/YYYY', - dayFormat: 'D', + dateTimeFormat: 'M/D/YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'अघिल्लो महिना (पृष्ठ माथि)', nextMonth: 'अर्को महिना (पृष्ठ तल)', previousYear: 'गत वर्ष (Control + left)', diff --git a/src/locale/nl_BE.ts b/src/locale/nl_BE.ts index 7e76ed49c..b68f699c9 100644 --- a/src/locale/nl_BE.ts +++ b/src/locale/nl_BE.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'nl_BE', today: 'Vandaag', now: 'Nu', @@ -14,11 +16,11 @@ const locale: Locale = { monthSelect: 'Kies een maand', yearSelect: 'Kies een jaar', decadeSelect: 'Kies een decennium', - yearFormat: 'YYYY', + dateFormat: 'D-M-YYYY', - dayFormat: 'D', + dateTimeFormat: 'D-M-YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'Vorige maand (PageUp)', nextMonth: 'Volgende maand (PageDown)', previousYear: 'Vorig jaar (Control + left)', diff --git a/src/locale/nl_NL.ts b/src/locale/nl_NL.ts index 7867cc652..171935522 100644 --- a/src/locale/nl_NL.ts +++ b/src/locale/nl_NL.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'nl_NL', today: 'Vandaag', now: 'Nu', @@ -14,11 +16,11 @@ const locale: Locale = { monthSelect: 'Kies een maand', yearSelect: 'Kies een jaar', decadeSelect: 'Kies een decennium', - yearFormat: 'YYYY', + dateFormat: 'D-M-YYYY', - dayFormat: 'D', + dateTimeFormat: 'D-M-YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'Vorige maand (PageUp)', nextMonth: 'Volgende maand (PageDown)', previousYear: 'Vorig jaar (Control + left)', diff --git a/src/locale/pl_PL.ts b/src/locale/pl_PL.ts index 384915ea6..032fe198f 100644 --- a/src/locale/pl_PL.ts +++ b/src/locale/pl_PL.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'pl_PL', today: 'Dzisiaj', now: 'Teraz', @@ -14,11 +16,11 @@ const locale: Locale = { monthSelect: 'Wybierz miesiąc', yearSelect: 'Wybierz rok', decadeSelect: 'Wybierz dekadę', - yearFormat: 'YYYY', + dateFormat: 'D/M/YYYY', - dayFormat: 'D', + dateTimeFormat: 'D/M/YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'Poprzedni miesiąc (PageUp)', nextMonth: 'Następny miesiąc (PageDown)', previousYear: 'Ostatni rok (Ctrl + left)', diff --git a/src/locale/pt_BR.ts b/src/locale/pt_BR.ts index 2d209dbf0..225fea103 100644 --- a/src/locale/pt_BR.ts +++ b/src/locale/pt_BR.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'pt_BR', today: 'Hoje', now: 'Agora', @@ -14,9 +16,7 @@ const locale: Locale = { monthSelect: 'Escolher mês', yearSelect: 'Escolher ano', decadeSelect: 'Escolher década', - yearFormat: 'YYYY', dateFormat: 'D/M/YYYY', - dayFormat: 'D', dateTimeFormat: 'D/M/YYYY HH:mm:ss', monthBeforeYear: false, previousMonth: 'Mês anterior (PageUp)', @@ -28,20 +28,7 @@ const locale: Locale = { previousCentury: 'Século anterior', nextCentury: 'Próximo século', shortWeekDays: ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sáb'], - shortMonths: [ - 'Jan', - 'Fev', - 'Mar', - 'Abr', - 'Mai', - 'Jun', - 'Jul', - 'Ago', - 'Set', - 'Out', - 'Nov', - 'Dez', - ], + shortMonths: ['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'], }; export default locale; diff --git a/src/locale/pt_PT.ts b/src/locale/pt_PT.ts index fef5977e0..da6e44a60 100644 --- a/src/locale/pt_PT.ts +++ b/src/locale/pt_PT.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'pt_PT', today: 'Hoje', now: 'Agora', @@ -14,11 +16,11 @@ const locale: Locale = { monthSelect: 'Selecionar mês', yearSelect: 'Selecionar ano', decadeSelect: 'Selecionar década', - yearFormat: 'YYYY', + dateFormat: 'D/M/YYYY', - dayFormat: 'D', + dateTimeFormat: 'D/M/YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'Mês anterior (PageUp)', nextMonth: 'Mês seguinte (PageDown)', previousYear: 'Ano anterior (Control + left)', @@ -27,21 +29,8 @@ const locale: Locale = { nextDecade: 'Década seguinte', previousCentury: 'Século anterior', nextCentury: 'Século seguinte', - shortWeekDays: ["Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sáb"], - shortMonths: [ - "Jan", - "Fev", - "Mar", - "Abr", - "Mai", - "Jun", - "Jul", - "Ago", - "Set", - "Out", - "Nov", - "Dez", - ], + shortWeekDays: ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sáb'], + shortMonths: ['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'], }; export default locale; diff --git a/src/locale/ro_RO.ts b/src/locale/ro_RO.ts index 126bad93d..5eb518316 100644 --- a/src/locale/ro_RO.ts +++ b/src/locale/ro_RO.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'ro_RO', today: 'Azi', now: 'Acum', @@ -15,11 +17,11 @@ const locale: Locale = { monthSelect: 'Alege o lună', yearSelect: 'Alege un an', decadeSelect: 'Alege un deceniu', - yearFormat: 'YYYY', + dateFormat: 'D/M/YYYY', - dayFormat: 'D', + dateTimeFormat: 'D/M/YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'Luna anterioară (PageUp)', nextMonth: 'Luna următoare (PageDown)', previousYear: 'Anul anterior (Control + stânga)', diff --git a/src/locale/ru_RU.ts b/src/locale/ru_RU.ts index a93224c92..7a79f5496 100644 --- a/src/locale/ru_RU.ts +++ b/src/locale/ru_RU.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'ru_RU', today: 'Сегодня', now: 'Сейчас', @@ -14,11 +16,11 @@ const locale: Locale = { monthSelect: 'Выбрать месяц', yearSelect: 'Выбрать год', decadeSelect: 'Выбрать десятилетие', - yearFormat: 'YYYY', + dateFormat: 'D-M-YYYY', - dayFormat: 'D', + dateTimeFormat: 'D-M-YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'Предыдущий месяц (PageUp)', nextMonth: 'Следующий месяц (PageDown)', previousYear: 'Предыдущий год (Control + left)', diff --git a/src/locale/si_LK.ts b/src/locale/si_LK.ts index deb6ffb00..0d79613fc 100644 --- a/src/locale/si_LK.ts +++ b/src/locale/si_LK.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'si_LK', today: 'අද', now: 'දැන්', @@ -15,9 +17,9 @@ const locale: Locale = { monthSelect: 'මාසයක් තෝරන්න', yearSelect: 'අවුරුද්දක් තෝරන්න', decadeSelect: 'දශකයක් තෝරන්න', - yearFormat: 'YYYY', + dateFormat: 'YYYY/M/D', - dayFormat: 'D', + dateTimeFormat: 'YYYY/M/D HH:mm:ss', monthBeforeYear: false, previousMonth: 'කලින් මාසය (පිටුව ඉහළට)', diff --git a/src/locale/sk_SK.ts b/src/locale/sk_SK.ts index 1952e5ff8..5125a65b3 100644 --- a/src/locale/sk_SK.ts +++ b/src/locale/sk_SK.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'sk_SK', today: 'Dnes', now: 'Teraz', @@ -14,11 +16,11 @@ const locale: Locale = { monthSelect: 'Vybrať mesiac', yearSelect: 'Vybrať rok', decadeSelect: 'Vybrať dekádu', - yearFormat: 'YYYY', + dateFormat: 'D.M.YYYY', - dayFormat: 'D', + dateTimeFormat: 'D.M.YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'Predchádzajúci mesiac (PageUp)', nextMonth: 'Nasledujúci mesiac (PageDown)', previousYear: 'Predchádzajúci rok (Control + left)', diff --git a/src/locale/sl_SI.ts b/src/locale/sl_SI.ts index 4af01844f..95a27a2f8 100644 --- a/src/locale/sl_SI.ts +++ b/src/locale/sl_SI.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'sl_SI', today: 'Danes', now: 'Trenutno', @@ -14,11 +16,11 @@ const locale: Locale = { monthSelect: 'Izberite mesec', yearSelect: 'Izberite leto', decadeSelect: 'Izberite desetletje', - yearFormat: 'YYYY', + dateFormat: 'DD.MM.YYYY', - dayFormat: 'D', + dateTimeFormat: 'DD.MM.YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'Prejšnji mesec (PageUp)', nextMonth: 'Naslednji mesec (PageDown)', previousYear: 'Prejšnje leto (Control + left)', diff --git a/src/locale/sr_Cyrl_RS.ts b/src/locale/sr_Cyrl_RS.ts index fcacb2c3f..328db2fbe 100644 --- a/src/locale/sr_Cyrl_RS.ts +++ b/src/locale/sr_Cyrl_RS.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'sr_Cyrl_RS', today: 'Данас', now: 'Сада', @@ -14,11 +16,11 @@ const locale: Locale = { monthSelect: 'Изабери месец', yearSelect: 'Изабери годину', decadeSelect: 'Изабери деценију', - yearFormat: 'YYYY', + dateFormat: 'DD.MM.YYYY', - dayFormat: 'D', + dateTimeFormat: 'DD.MM.YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'Претходни месец (PageUp)', nextMonth: 'Следећи месец (PageDown)', previousYear: 'Претходна година (Control + left)', diff --git a/src/locale/sr_RS.ts b/src/locale/sr_RS.ts index d77eb97a4..f36221573 100644 --- a/src/locale/sr_RS.ts +++ b/src/locale/sr_RS.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'sr_RS', today: 'Danas', now: 'Sada', @@ -14,11 +16,11 @@ const locale: Locale = { monthSelect: 'Izaberi mesec', yearSelect: 'Izaberi godinu', decadeSelect: 'Izaberi deceniju', - yearFormat: 'YYYY', + dateFormat: 'DD.MM.YYYY', - dayFormat: 'D', + dateTimeFormat: 'DD.MM.YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'Prethodni mesec (PageUp)', nextMonth: 'Sledeći mesec (PageDown)', previousYear: 'Prethodna godina (Control + left)', diff --git a/src/locale/sv_SE.ts b/src/locale/sv_SE.ts index ee9184c3e..834e0111b 100644 --- a/src/locale/sv_SE.ts +++ b/src/locale/sv_SE.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'sv_SE', today: 'I dag', now: 'Nu', @@ -14,11 +16,11 @@ const locale: Locale = { monthSelect: 'Välj månad', yearSelect: 'Välj år', decadeSelect: 'Välj årtionde', - yearFormat: 'YYYY', + dateFormat: 'YYYY-MM-DD', - dayFormat: 'D', + dateTimeFormat: 'YYYY-MM-DD H:mm:ss', - monthBeforeYear: true, + previousMonth: 'Förra månaden (PageUp)', nextMonth: 'Nästa månad (PageDown)', previousYear: 'Föreg år (Control + left)', diff --git a/src/locale/ta_IN.ts b/src/locale/ta_IN.ts index 7f0e30568..203a18681 100644 --- a/src/locale/ta_IN.ts +++ b/src/locale/ta_IN.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'ta_IN', today: 'இன்று', now: 'இப்போது', @@ -15,11 +17,11 @@ const locale: Locale = { monthSelect: 'மாதத்தைத் தேர்வுசெய்க', yearSelect: 'வருடத்தைத் தேர்வுசெய்க', decadeSelect: 'தசாப்தத்தைத் தேர்வுசெய்க', - yearFormat: 'YYYY', + dateFormat: 'M/D/YYYY', - dayFormat: 'D', + dateTimeFormat: 'M/D/YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'முந்தைய மாதம் (PageUp)', nextMonth: 'அடுத்த மாதம் (PageDown)', previousYear: 'முந்தைய வருடம் (Control + left)', diff --git a/src/locale/th_TH.ts b/src/locale/th_TH.ts index bcc1c42ab..72345216d 100644 --- a/src/locale/th_TH.ts +++ b/src/locale/th_TH.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'th_TH', today: 'วันนี้', now: 'ตอนนี้', @@ -14,11 +16,11 @@ const locale: Locale = { monthSelect: 'เลือกเดือน', yearSelect: 'เลือกปี', decadeSelect: 'เลือกทศวรรษ', - yearFormat: 'YYYY', + dateFormat: 'D/M/YYYY', - dayFormat: 'D', + dateTimeFormat: 'D/M/YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'เดือนก่อนหน้า (PageUp)', nextMonth: 'เดือนถัดไป (PageDown)', previousYear: 'ปีก่อนหน้า (Control + left)', diff --git a/src/locale/tk_TK.ts b/src/locale/tk_TK.ts index 0d5ce82de..171d4a519 100644 --- a/src/locale/tk_TK.ts +++ b/src/locale/tk_TK.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'tk_TK', today: 'Şugün', now: 'Şuwagt', @@ -14,11 +16,11 @@ const locale: Locale = { monthSelect: 'Aý saýla', yearSelect: 'Ýyl saýla', decadeSelect: 'On ýyllygy saýla', - yearFormat: 'YYYY', + dateFormat: 'D/M/YYYY', - dayFormat: 'D', + dateTimeFormat: 'D/M/YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'Öňki aý (PageUp)', nextMonth: 'Soňky aý (PageDown)', previousYear: 'Öňki ýyl (Control + çep)', diff --git a/src/locale/tr_TR.ts b/src/locale/tr_TR.ts index b2dee0fde..b31e98999 100644 --- a/src/locale/tr_TR.ts +++ b/src/locale/tr_TR.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'tr_TR', today: 'Bugün', now: 'Şimdi', @@ -14,11 +16,11 @@ const locale: Locale = { monthSelect: 'Ay Seç', yearSelect: 'Yıl Seç', decadeSelect: 'On Yıl Seç', - yearFormat: 'YYYY', + dateFormat: 'DD/MM/YYYY', - dayFormat: 'D', + dateTimeFormat: 'DD/MM/YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'Önceki Ay (PageUp)', nextMonth: 'Sonraki Ay (PageDown)', previousYear: 'Önceki Yıl (Control + Sol)', diff --git a/src/locale/ug_CN.ts b/src/locale/ug_CN.ts index 4e0241671..cbd7c63b4 100644 --- a/src/locale/ug_CN.ts +++ b/src/locale/ug_CN.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'ug_CN', today: 'بۈگۈن', now: 'ھازىر', @@ -26,6 +28,7 @@ const locale: Locale = { nextDecade: 'كېيىنكى يىللار', previousCentury: 'ئالدىنقى ئەسىر', nextCentury: 'كېيىنكى ئەسىر', + monthBeforeYear: false, }; export default locale; diff --git a/src/locale/uk_UA.ts b/src/locale/uk_UA.ts index 7dec6984f..45ca24f49 100644 --- a/src/locale/uk_UA.ts +++ b/src/locale/uk_UA.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'uk_UA', today: 'Сьогодні', now: 'Зараз', @@ -14,11 +16,11 @@ const locale: Locale = { monthSelect: 'Обрати місяць', yearSelect: 'Обрати рік', decadeSelect: 'Обрати десятиріччя', - yearFormat: 'YYYY', + dateFormat: 'D-M-YYYY', - dayFormat: 'D', + dateTimeFormat: 'D-M-YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'Попередній місяць (PageUp)', nextMonth: 'Наступний місяць (PageDown)', previousYear: 'Попередній рік (Control + left)', diff --git a/src/locale/ur_PK.ts b/src/locale/ur_PK.ts index d272adb5a..f10f4df76 100644 --- a/src/locale/ur_PK.ts +++ b/src/locale/ur_PK.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'ur_PK', today: 'آج', now: 'ابھی', @@ -15,11 +17,11 @@ const locale: Locale = { monthSelect: 'ایک مہینہ کا انتخاب کریں', yearSelect: 'ایک سال کا انتخاب کریں', decadeSelect: 'ایک دہائی کا انتخاب کریں', - yearFormat: 'YYYY', + dateFormat: 'M/D/YYYY', - dayFormat: 'D', + dateTimeFormat: 'M/D/YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'پچھلے مہینے (PageUp)', nextMonth: 'اگلے مہینے (PageDown)', previousYear: 'گزشتہ سال (Control + left)', diff --git a/src/locale/uz_UZ.ts b/src/locale/uz_UZ.ts index 8c105568d..352ac6a1b 100644 --- a/src/locale/uz_UZ.ts +++ b/src/locale/uz_UZ.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'uz_UZ', today: 'Bugun', now: 'Hozir', @@ -14,19 +16,16 @@ const locale: Locale = { weekSelect: 'Haftani tanlang', monthSelect: 'Oyni tanlang', yearSelect: 'Yilni tanlang', - decadeSelect: 'O\'n yilni tanlang', - yearFormat: 'YYYY', + decadeSelect: "O'n yilni tanlang", dateFormat: 'M/D/YYYY', - dayFormat: 'D', dateTimeFormat: 'M/D/YYYY HH:mm:ss', - monthBeforeYear: true, previousMonth: 'Oldingi oy (PageUp)', nextMonth: 'Keyingi oy (PageDown)', - previousYear: 'O\'tgan yili (Control + left)', + previousYear: "O'tgan yili (Control + left)", nextYear: 'Keyingi yil (Control + right)', - previousDecade: 'Oxirgi o\'n yil', - nextDecade: 'Keyingi o\'n yil', - previousCentury: 'O\'tgan asr', + previousDecade: "Oxirgi o'n yil", + nextDecade: "Keyingi o'n yil", + previousCentury: "O'tgan asr", nextCentury: 'Keyingi asr', }; diff --git a/src/locale/vi_VN.ts b/src/locale/vi_VN.ts index abd2800fe..b596d0594 100644 --- a/src/locale/vi_VN.ts +++ b/src/locale/vi_VN.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'vi_VN', today: 'Hôm nay', now: 'Bây giờ', @@ -15,11 +17,11 @@ const locale: Locale = { monthSelect: 'Chọn tháng', yearSelect: 'Chọn năm', decadeSelect: 'Chọn thập kỷ', - yearFormat: 'YYYY', + dateFormat: 'D/M/YYYY', - dayFormat: 'D', + dateTimeFormat: 'D/M/YYYY HH:mm:ss', - monthBeforeYear: true, + previousMonth: 'Tháng trước (PageUp)', nextMonth: 'Tháng sau (PageDown)', previousYear: 'Năm trước (Control + left)', diff --git a/src/locale/zh_CN.ts b/src/locale/zh_CN.ts index bb24727b3..bf09d2127 100644 --- a/src/locale/zh_CN.ts +++ b/src/locale/zh_CN.ts @@ -1,13 +1,9 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'zh_CN', - - yearFormat: 'YYYY年', - - cellDateFormat: 'D', - cellMeridiemFormat: 'A', - today: '今天', now: '此刻', backToToday: '返回今天', @@ -30,6 +26,10 @@ const locale: Locale = { nextDecade: '下一年代', previousCentury: '上一世纪', nextCentury: '下一世纪', + + yearFormat: 'YYYY年', + cellDateFormat: 'D', + monthBeforeYear: false, }; export default locale; diff --git a/src/locale/zh_TW.ts b/src/locale/zh_TW.ts index 8ba60d8e9..feb293642 100644 --- a/src/locale/zh_TW.ts +++ b/src/locale/zh_TW.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'zh_TW', today: '今天', @@ -19,7 +21,7 @@ const locale: Locale = { yearSelect: '選擇年份', decadeSelect: '選擇年代', yearFormat: 'YYYY年', - dayFormat: 'D', + dateFormat: 'YYYY年M月D日', dateTimeFormat: 'YYYY年M月D日 HH時mm分ss秒', previousYear: '上一年 (Control鍵加左方向鍵)', @@ -28,6 +30,9 @@ const locale: Locale = { nextDecade: '下一年代', previousCentury: '上一世紀', nextCentury: '下一世紀', + + cellDateFormat: 'D', + monthBeforeYear: false, }; export default locale;