From d085dacbbe1cba907eac1b4b3deb1c033a390c9c Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 11 Jul 2024 15:50:12 +0800 Subject: [PATCH 1/6] fix: missing cellMeridiemFormat in all locales --- 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 | 8 +++++--- src/locale/ca_ES.ts | 10 +++++++--- 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 | 6 ++++-- 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 | 7 ++++--- 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 | 4 +++- 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 | 6 ++++-- 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 | 6 ++++-- src/locale/pt_PT.ts | 8 +++++--- 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 | 2 ++ src/locale/uk_UA.ts | 8 +++++--- src/locale/ur_PK.ts | 8 +++++--- src/locale/uz_UZ.ts | 8 +++++--- src/locale/vi_VN.ts | 8 +++++--- src/locale/zh_CN.ts | 11 +++++------ src/locale/zh_TW.ts | 4 +++- 71 files changed, 325 insertions(+), 196 deletions(-) diff --git a/package.json b/package.json index 800eadeed..a7f1cde67 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": "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..ad559e106 100644 --- a/src/locale/by_BY.ts +++ b/src/locale/by_BY.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'by_BY', today: 'Сёння', now: 'Зараз', @@ -15,11 +17,11 @@ 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)', diff --git a/src/locale/ca_ES.ts b/src/locale/ca_ES.ts index f93f09397..2b24ed313 100644 --- a/src/locale/ca_ES.ts +++ b/src/locale/ca_ES.ts @@ -1,6 +1,10 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; +import commenLocale from './common'; const locale: Locale = { + ...commonLocale, + ...commenLocale, locale: 'ca_ES', today: 'Avui', now: 'Ara', @@ -14,11 +18,11 @@ 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/cs_CZ.ts b/src/locale/cs_CZ.ts index 11d2214a5..03889069b 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..d1b80b653 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..768d22212 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..8fcf1b4c6 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..2b3c3e9c1 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..3df776215 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..caa8d6f2f 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..fa6bd4e7e 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..5e235134a 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..6231c8481 100644 --- a/src/locale/eu_ES.ts +++ b/src/locale/eu_ES.ts @@ -1,6 +1,8 @@ +import { commonLocale } from './common'; import type { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'eu_ES', today: 'Gaur', now: 'Orain', @@ -15,9 +17,9 @@ const locale: Locale = { 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)', diff --git a/src/locale/fa_IR.ts b/src/locale/fa_IR.ts index f7e1af3b5..d3de95558 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..1c08506f6 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..a18386cde 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..281c79d04 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..b4a34928f 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..ffe340422 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..007d33c13 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..8f452168a 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..8a531db3a 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..1ae15a886 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..1554d4d43 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..57e382aa8 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..d3053d022 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..989bf2ed9 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..43f2c3862 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,7 @@ const locale: Locale = { yearSelect: '年を選択', decadeSelect: '年代を選択', yearFormat: 'YYYY年', - dayFormat: 'D', + dateFormat: 'YYYY年M月D日', dateTimeFormat: 'YYYY年M月D日 HH時mm分ss秒', previousYear: '前年 (Controlを押しながら左キー)', diff --git a/src/locale/ka_GE.ts b/src/locale/ka_GE.ts index 78a06c687..a8fc6003b 100644 --- a/src/locale/ka_GE.ts +++ b/src/locale/ka_GE.ts @@ -1,6 +1,7 @@ import { Locale } from '../interface'; const locale: Locale = { + ...commonLocale, locale: 'ka_GE', today: 'დღეს', now: 'ახლა', @@ -15,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/kk_KZ.ts b/src/locale/kk_KZ.ts index f3b6787ff..328b28766 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..32dcf5c63 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,8 @@ const locale: Locale = { monthSelect: 'ជ្រើសរើសខែ', yearSelect: 'ជ្រើសរើសឆ្នាំ', decadeSelect: 'ជ្រើសរើសអាយុ', - yearFormat: 'YYYY', - dayFormat: 'D', + + dateFormat: 'YYYY-M-D', dateTimeFormat: 'YYYY-M-D HH:mm:ss', previousYear: 'ឆ្នាំមុន (Controlគ្រាប់ចុចបូកព្រួញខាងឆ្វេង)', diff --git a/src/locale/kmr_IQ.ts b/src/locale/kmr_IQ.ts index 867ec68b0..4862c3e77 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..ce0d150ef 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..ede0fd771 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,7 @@ 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..7e6e90cea 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..bd43b608c 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..5ffeb61da 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..e09482995 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..b52fb5199 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..be05c5a3f 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,8 @@ 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)', diff --git a/src/locale/my_MM.ts b/src/locale/my_MM.ts index 5d52a7a96..2f7cea08a 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..f411e3b6d 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..9dad967bc 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..7b6196176 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..a52b7ef65 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..fa2aafd9e 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..5ecc85634 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,9 @@ 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)', diff --git a/src/locale/pt_PT.ts b/src/locale/pt_PT.ts index fef5977e0..0ddf9111a 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)', diff --git a/src/locale/ro_RO.ts b/src/locale/ro_RO.ts index 126bad93d..18c8c2932 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..d5d9b4a94 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..985367981 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..27d9ef15b 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..cf94a6630 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..cdde208ac 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..1829ff528 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..1709a0854 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..162d49dc5 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..1d45c627e 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..f9130a7e2 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..d273c44f7 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..f97673f55 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: 'ھازىر', diff --git a/src/locale/uk_UA.ts b/src/locale/uk_UA.ts index 7dec6984f..92528b701 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..f78cd2d40 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..f07d97f45 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', @@ -15,11 +17,11 @@ const locale: Locale = { monthSelect: 'Oyni tanlang', yearSelect: 'Yilni tanlang', decadeSelect: 'O\'n yilni tanlang', - yearFormat: 'YYYY', + 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)', diff --git a/src/locale/vi_VN.ts b/src/locale/vi_VN.ts index abd2800fe..7ef4c1bec 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..b27e1c915 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,9 @@ const locale: Locale = { nextDecade: '下一年代', previousCentury: '上一世纪', nextCentury: '下一世纪', + + yearFormat: 'YYYY年', + cellDateFormat: 'D', }; export default locale; diff --git a/src/locale/zh_TW.ts b/src/locale/zh_TW.ts index 8ba60d8e9..8998f2118 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鍵加左方向鍵)', From cca9312c972fb45387d11c5db16fd8b41b9c5bda Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 11 Jul 2024 16:04:45 +0800 Subject: [PATCH 2/6] fix: missing cellMeridiemFormat in all locales --- .fatherrc.js | 2 +- .husky/pre-commit | 1 + .lintstagedrc.json | 3 ++ CHANGELOG.md | 1 + README.md | 8 ++--- src/locale/by_BY.ts | 48 +++++++++++++-------------- src/locale/ca_ES.ts | 6 ++-- src/locale/common.ts | 8 +++++ src/locale/cs_CZ.ts | 6 ++-- src/locale/da_DK.ts | 6 ++-- src/locale/de_DE.ts | 6 ++-- src/locale/el_GR.ts | 6 ++-- src/locale/en_GB.ts | 6 ++-- src/locale/en_US.ts | 6 ++-- src/locale/es_ES.ts | 6 ++-- src/locale/es_MX.ts | 6 ++-- src/locale/et_EE.ts | 6 ++-- src/locale/eu_ES.ts | 70 ++++++++++++++++++++-------------------- src/locale/fa_IR.ts | 6 ++-- src/locale/fi_FI.ts | 6 ++-- src/locale/fr_BE.ts | 6 ++-- src/locale/fr_CA.ts | 4 +-- src/locale/fr_FR.ts | 4 +-- src/locale/ga_IE.ts | 6 ++-- src/locale/gl_ES.ts | 6 ++-- src/locale/he_IL.ts | 6 ++-- src/locale/hi_IN.ts | 6 ++-- src/locale/hr_HR.ts | 6 ++-- src/locale/hu_HU.ts | 4 +-- src/locale/id_ID.ts | 6 ++-- src/locale/is_IS.ts | 6 ++-- src/locale/it_IT.ts | 6 ++-- src/locale/ja_JP.ts | 2 +- src/locale/ka_GE.ts | 6 ++-- src/locale/kk_KZ.ts | 6 ++-- src/locale/km_KH.ts | 3 +- src/locale/kmr_IQ.ts | 6 ++-- src/locale/kn_IN.ts | 6 ++-- src/locale/ko_KR.ts | 2 +- src/locale/lt_LT.ts | 4 +-- src/locale/lv_LV.ts | 6 ++-- src/locale/mk_MK.ts | 6 ++-- src/locale/ml_IN.ts | 6 ++-- src/locale/mn_MN.ts | 4 +-- src/locale/ms_MY.ts | 3 +- src/locale/my_MM.ts | 6 ++-- src/locale/nb_NO.ts | 4 +-- src/locale/ne_NP.ts | 6 ++-- src/locale/nl_BE.ts | 6 ++-- src/locale/nl_NL.ts | 6 ++-- src/locale/pl_PL.ts | 6 ++-- src/locale/pt_BR.ts | 19 ++--------- src/locale/pt_PT.ts | 23 +++---------- src/locale/ro_RO.ts | 6 ++-- src/locale/ru_RU.ts | 6 ++-- src/locale/si_LK.ts | 4 +-- src/locale/sk_SK.ts | 6 ++-- src/locale/sl_SI.ts | 6 ++-- src/locale/sr_Cyrl_RS.ts | 6 ++-- src/locale/sr_RS.ts | 6 ++-- src/locale/sv_SE.ts | 6 ++-- src/locale/ta_IN.ts | 6 ++-- src/locale/th_TH.ts | 6 ++-- src/locale/tk_TK.ts | 6 ++-- src/locale/tr_TR.ts | 6 ++-- src/locale/uk_UA.ts | 6 ++-- src/locale/ur_PK.ts | 6 ++-- src/locale/uz_UZ.ts | 16 ++++----- src/locale/vi_VN.ts | 6 ++-- src/locale/zh_TW.ts | 2 +- 70 files changed, 251 insertions(+), 270 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/src/locale/by_BY.ts b/src/locale/by_BY.ts index ad559e106..3116fa9ee 100644 --- a/src/locale/by_BY.ts +++ b/src/locale/by_BY.ts @@ -3,33 +3,33 @@ import type { Locale } from '../interface'; const locale: Locale = { ...commonLocale, -locale: 'by_BY', -today: 'Сёння', -now: 'Зараз', -backToToday: 'Дадзеная дата', -ok: 'OK', -clear: 'Ачысціць', -month: 'Месяц', -year: 'Год', -timeSelect: 'Выбраць час', -dateSelect: 'Выбраць дату', -weekSelect: 'Выбраць тыдзень', -monthSelect: 'Выбраць месяц', -yearSelect: 'Выбраць год', -decadeSelect: 'Выбраць дзесяцігоддзе', + locale: 'by_BY', + today: 'Сёння', + now: 'Зараз', + backToToday: 'Дадзеная дата', + ok: 'OK', + clear: 'Ачысціць', + month: 'Месяц', + year: 'Год', + timeSelect: 'Выбраць час', + dateSelect: 'Выбраць дату', + weekSelect: 'Выбраць тыдзень', + monthSelect: 'Выбраць месяц', + yearSelect: 'Выбраць год', + decadeSelect: 'Выбраць дзесяцігоддзе', -dateFormat: 'D-M-YYYY', + dateFormat: 'D-M-YYYY', -dateTimeFormat: 'D-M-YYYY HH:mm:ss', + dateTimeFormat: 'D-M-YYYY HH:mm:ss', -previousMonth: 'Папярэдні месяц (PageUp)', -nextMonth: 'Наступны месяц (PageDown)', -previousYear: 'Папярэдні год (Control + left)', -nextYear: 'Наступны год (Control + right)', -previousDecade: 'Папярэдняе дзесяцігоддзе', -nextDecade: 'Наступнае дзесяцігоддзе', -previousCentury: 'Папярэдні век', -nextCentury: 'Наступны век', + 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 2b24ed313..b72ab92b3 100644 --- a/src/locale/ca_ES.ts +++ b/src/locale/ca_ES.ts @@ -18,11 +18,11 @@ const locale: Locale = { monthSelect: 'Escollir un mes', yearSelect: 'Escollir un any', decadeSelect: 'Escollir una dècada', - + dateFormat: 'D/M/YYYY', - + dateTimeFormat: 'D/M/YYYY HH:mm:ss', - + 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 03889069b..13658e916 100644 --- a/src/locale/cs_CZ.ts +++ b/src/locale/cs_CZ.ts @@ -16,11 +16,11 @@ const locale: Locale = { monthSelect: 'Vyberte měsíc', yearSelect: 'Vyberte rok', decadeSelect: 'Vyberte dekádu', - + dateFormat: 'D.M.YYYY', - + dateTimeFormat: 'D.M.YYYY HH:mm:ss', - + 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 d1b80b653..0d23a8d14 100644 --- a/src/locale/da_DK.ts +++ b/src/locale/da_DK.ts @@ -16,11 +16,11 @@ const locale: Locale = { monthSelect: 'Vælg måned', yearSelect: 'Vælg år', decadeSelect: 'Vælg årti', - + dateFormat: 'D/M/YYYY', - + dateTimeFormat: 'D/M/YYYY HH:mm:ss', - + 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 768d22212..a83392fa5 100644 --- a/src/locale/de_DE.ts +++ b/src/locale/de_DE.ts @@ -16,11 +16,11 @@ const locale: Locale = { monthSelect: 'Wähle einen Monat', yearSelect: 'Wähle ein Jahr', decadeSelect: 'Wähle ein Jahrzehnt', - + dateFormat: 'D.M.YYYY', - + dateTimeFormat: 'D.M.YYYY HH:mm:ss', - + 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 8fcf1b4c6..40e6b1ef4 100644 --- a/src/locale/el_GR.ts +++ b/src/locale/el_GR.ts @@ -16,11 +16,11 @@ const locale: Locale = { monthSelect: 'Επιλογή μήνα', yearSelect: 'Επιλογή έτους', decadeSelect: 'Επιλογή δεκαετίας', - + dateFormat: 'D/M/YYYY', - + dateTimeFormat: 'D/M/YYYY HH:mm:ss', - + previousMonth: 'Προηγούμενος μήνας (PageUp)', nextMonth: 'Επόμενος μήνας (PageDown)', previousYear: 'Προηγούμενο έτος (Control + αριστερά)', diff --git a/src/locale/en_GB.ts b/src/locale/en_GB.ts index 2b3c3e9c1..18c1383e7 100644 --- a/src/locale/en_GB.ts +++ b/src/locale/en_GB.ts @@ -16,11 +16,11 @@ const locale: Locale = { monthSelect: 'Choose a month', yearSelect: 'Choose a year', decadeSelect: 'Choose a decade', - + dateFormat: 'D/M/YYYY', - + dateTimeFormat: 'D/M/YYYY HH:mm:ss', - + 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 3df776215..f0d682f89 100644 --- a/src/locale/en_US.ts +++ b/src/locale/en_US.ts @@ -17,11 +17,11 @@ const locale: Locale = { monthSelect: 'Choose a month', yearSelect: 'Choose a year', decadeSelect: 'Choose a decade', - + dateFormat: 'M/D/YYYY', - + dateTimeFormat: 'M/D/YYYY HH:mm:ss', - + 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 caa8d6f2f..9aa10a714 100644 --- a/src/locale/es_ES.ts +++ b/src/locale/es_ES.ts @@ -16,11 +16,11 @@ const locale: Locale = { monthSelect: 'Elegir un mes', yearSelect: 'Elegir un año', decadeSelect: 'Elegir una década', - + dateFormat: 'D/M/YYYY', - + dateTimeFormat: 'D/M/YYYY HH:mm:ss', - + 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 fa6bd4e7e..0aa2fe30e 100644 --- a/src/locale/es_MX.ts +++ b/src/locale/es_MX.ts @@ -17,11 +17,11 @@ const locale: Locale = { monthSelect: 'Seleccionar mes', yearSelect: 'Seleccionar año', decadeSelect: 'Seleccionar década', - + dateFormat: 'D/M/YYYY', - + dateTimeFormat: 'D/M/YYYY HH:mm:ss', - + 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 5e235134a..7bea08882 100644 --- a/src/locale/et_EE.ts +++ b/src/locale/et_EE.ts @@ -16,11 +16,11 @@ const locale: Locale = { monthSelect: 'Vali kuu', yearSelect: 'Vali aasta', decadeSelect: 'Vali dekaad', - + dateFormat: 'D.M.YYYY', - + dateTimeFormat: 'D.M.YYYY HH:mm:ss', - + 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 6231c8481..a1e25fa17 100644 --- a/src/locale/eu_ES.ts +++ b/src/locale/eu_ES.ts @@ -1,35 +1,35 @@ -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; \ 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 d3de95558..27f22c192 100644 --- a/src/locale/fa_IR.ts +++ b/src/locale/fa_IR.ts @@ -16,11 +16,11 @@ const locale: Locale = { monthSelect: 'یک ماه را انتخاب کنید', yearSelect: 'یک سال را انتخاب کنید', decadeSelect: 'یک دهه را انتخاب کنید', - + dateFormat: 'M/D/YYYY', - + dateTimeFormat: 'M/D/YYYY HH:mm:ss', - + previousMonth: 'ماه قبل (PageUp)', nextMonth: 'ماه بعد (PageDown)', previousYear: 'سال قبل (Control + left)', diff --git a/src/locale/fi_FI.ts b/src/locale/fi_FI.ts index 1c08506f6..d7535d211 100644 --- a/src/locale/fi_FI.ts +++ b/src/locale/fi_FI.ts @@ -16,11 +16,11 @@ const locale: Locale = { monthSelect: 'Valitse kuukausi', yearSelect: 'Valitse vuosi', decadeSelect: 'Valitse vuosikymmen', - + dateFormat: 'D.M.YYYY', - + dateTimeFormat: 'D.M.YYYY HH:mm:ss', - + 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 a18386cde..5da8af5f5 100644 --- a/src/locale/fr_BE.ts +++ b/src/locale/fr_BE.ts @@ -16,11 +16,11 @@ const locale: Locale = { monthSelect: 'Choisissez un mois', yearSelect: 'Choisissez une année', decadeSelect: 'Choisissez une décennie', - + dateFormat: 'D/M/YYYY', - + dateTimeFormat: 'D/M/YYYY HH:mm:ss', - + 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 281c79d04..8bbc94717 100644 --- a/src/locale/fr_CA.ts +++ b/src/locale/fr_CA.ts @@ -16,11 +16,11 @@ const locale: Locale = { monthSelect: 'Choisissez un mois', yearSelect: 'Choisissez une année', decadeSelect: 'Choisissez une décennie', - + dateFormat: 'DD/MM/YYYY', dayFormat: 'DD', dateTimeFormat: 'DD/MM/YYYY HH:mm:ss', - + 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 b4a34928f..f75408599 100644 --- a/src/locale/fr_FR.ts +++ b/src/locale/fr_FR.ts @@ -16,11 +16,11 @@ const locale: Locale = { monthSelect: 'Choisissez un mois', yearSelect: 'Choisissez une année', decadeSelect: 'Choisissez une décennie', - + dateFormat: 'DD/MM/YYYY', dayFormat: 'DD', dateTimeFormat: 'DD/MM/YYYY HH:mm:ss', - + 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 ffe340422..4f41f466c 100644 --- a/src/locale/ga_IE.ts +++ b/src/locale/ga_IE.ts @@ -17,11 +17,11 @@ const locale: Locale = { monthSelect: 'Roghnaigh mí', yearSelect: 'Roghnaigh bliain', decadeSelect: 'Roghnaigh deich mbliana', - + dateFormat: 'D/M/YYYY', - + dateTimeFormat: 'D/M/YYYY HH:mm:ss', - + 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 007d33c13..456d763af 100644 --- a/src/locale/gl_ES.ts +++ b/src/locale/gl_ES.ts @@ -16,11 +16,11 @@ const locale: Locale = { monthSelect: 'Elexir un mes', yearSelect: 'Elexir un año', decadeSelect: 'Elexir unha década', - + dateFormat: 'D/M/YYYY', - + dateTimeFormat: 'D/M/YYYY HH:mm:ss', - + 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 8f452168a..38a968fbf 100644 --- a/src/locale/he_IL.ts +++ b/src/locale/he_IL.ts @@ -17,11 +17,11 @@ const locale: Locale = { monthSelect: 'בחר חודש', yearSelect: 'בחר שנה', decadeSelect: 'בחר עשור', - + dateFormat: 'M/D/YYYY', - + dateTimeFormat: 'M/D/YYYY HH:mm:ss', - + previousMonth: 'חודש קודם (PageUp)', nextMonth: 'חודש הבא (PageDown)', previousYear: 'שנה שעברה (Control + left)', diff --git a/src/locale/hi_IN.ts b/src/locale/hi_IN.ts index 8a531db3a..fe0bbbddd 100644 --- a/src/locale/hi_IN.ts +++ b/src/locale/hi_IN.ts @@ -17,11 +17,11 @@ const locale: Locale = { monthSelect: 'एक महीना चुनें', yearSelect: 'एक वर्ष चुनें', decadeSelect: 'एक दशक चुनें', - + dateFormat: 'M/D/YYYY', - + dateTimeFormat: 'M/D/YYYY HH:mm:ss', - + previousMonth: 'पिछला महीना (पेजअप)', nextMonth: 'अगले महीने (पेजडाउन)', previousYear: 'पिछले साल (Ctrl + बाएं)', diff --git a/src/locale/hr_HR.ts b/src/locale/hr_HR.ts index 1ae15a886..06f02e71b 100644 --- a/src/locale/hr_HR.ts +++ b/src/locale/hr_HR.ts @@ -17,11 +17,11 @@ const locale: Locale = { monthSelect: 'Odaberite mjesec', yearSelect: 'Odaberite godinu', decadeSelect: 'Odaberite desetljeće', - + dateFormat: 'D.M.YYYY', - + dateTimeFormat: 'D.M.YYYY HH:mm:ss', - + 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 1554d4d43..35285eea6 100644 --- a/src/locale/hu_HU.ts +++ b/src/locale/hu_HU.ts @@ -16,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', - + dateFormat: 'YYYY/MM/DD', // 'M/D/YYYY', dayFormat: 'DD', // 'D', dateTimeFormat: 'YYYY/MM/DD HH:mm:ss', // 'M/D/YYYY HH:mm:ss', - + 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 57e382aa8..e1f7d3d16 100644 --- a/src/locale/id_ID.ts +++ b/src/locale/id_ID.ts @@ -17,11 +17,11 @@ const locale: Locale = { monthSelect: 'Pilih satu bulan', yearSelect: 'Pilih satu tahun', decadeSelect: 'Pilih satu dekade', - + dateFormat: 'D/M/YYYY', - + dateTimeFormat: 'D/M/YYYY HH:mm:ss', - + 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 d3053d022..9b9077685 100644 --- a/src/locale/is_IS.ts +++ b/src/locale/is_IS.ts @@ -16,11 +16,11 @@ const locale: Locale = { monthSelect: 'Velja mánuð', yearSelect: 'Velja ár', decadeSelect: 'Velja áratug', - + dateFormat: 'D/M/YYYY', - + dateTimeFormat: 'D/M/YYYY HH:mm:ss', - + 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 989bf2ed9..6b225ca90 100644 --- a/src/locale/it_IT.ts +++ b/src/locale/it_IT.ts @@ -16,11 +16,11 @@ const locale: Locale = { monthSelect: 'Seleziona il mese', yearSelect: "Seleziona l'anno", decadeSelect: 'Seleziona il decennio', - + dateFormat: 'D/M/YYYY', - + dateTimeFormat: 'D/M/YYYY HH:mm:ss', - + 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 43f2c3862..dc71b880d 100644 --- a/src/locale/ja_JP.ts +++ b/src/locale/ja_JP.ts @@ -20,7 +20,7 @@ const locale: Locale = { yearSelect: '年を選択', decadeSelect: '年代を選択', yearFormat: 'YYYY年', - + dateFormat: 'YYYY年M月D日', dateTimeFormat: 'YYYY年M月D日 HH時mm分ss秒', previousYear: '前年 (Controlを押しながら左キー)', diff --git a/src/locale/ka_GE.ts b/src/locale/ka_GE.ts index a8fc6003b..9be7a026a 100644 --- a/src/locale/ka_GE.ts +++ b/src/locale/ka_GE.ts @@ -16,11 +16,11 @@ const locale: Locale = { monthSelect: 'თვის არჩევა', yearSelect: 'წლის არჩევა', decadeSelect: 'ათწლეულის არჩევა', - + dateFormat: 'M/D/YYYY', - + dateTimeFormat: 'M/D/YYYY HH:mm:ss', - + previousMonth: 'წინა თვე (PageUp)', nextMonth: 'მომდევნო თვე (PageDown)', previousYear: 'წინა წელი (Control + left)', diff --git a/src/locale/kk_KZ.ts b/src/locale/kk_KZ.ts index 328b28766..ccdebcee9 100644 --- a/src/locale/kk_KZ.ts +++ b/src/locale/kk_KZ.ts @@ -16,11 +16,11 @@ const locale: Locale = { monthSelect: 'Айды таңдаңыз', yearSelect: 'Жылды таңдаңыз', decadeSelect: 'Онжылды таңдаңыз', - + dateFormat: 'D-M-YYYY', - + dateTimeFormat: 'D-M-YYYY HH:mm:ss', - + previousMonth: 'Алдыңғы ай (PageUp)', nextMonth: 'Келесі ай (PageDown)', previousYear: 'Алдыңғы жыл (Control + left)', diff --git a/src/locale/km_KH.ts b/src/locale/km_KH.ts index 32dcf5c63..382b0959c 100644 --- a/src/locale/km_KH.ts +++ b/src/locale/km_KH.ts @@ -19,8 +19,7 @@ const locale: Locale = { monthSelect: 'ជ្រើសរើសខែ', yearSelect: 'ជ្រើសរើសឆ្នាំ', decadeSelect: 'ជ្រើសរើសអាយុ', - - + dateFormat: 'YYYY-M-D', dateTimeFormat: 'YYYY-M-D HH:mm:ss', previousYear: 'ឆ្នាំមុន (Controlគ្រាប់ចុចបូកព្រួញខាងឆ្វេង)', diff --git a/src/locale/kmr_IQ.ts b/src/locale/kmr_IQ.ts index 4862c3e77..f8573a54f 100644 --- a/src/locale/kmr_IQ.ts +++ b/src/locale/kmr_IQ.ts @@ -16,11 +16,11 @@ const locale: Locale = { monthSelect: 'Meh hilbijêre', yearSelect: 'Sal hilbijêre', decadeSelect: 'Dehsal hilbijêre', - + dateFormat: 'D/M/YYYY', - + dateTimeFormat: 'D/M/YYYY HH:mm:ss', - + 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 ce0d150ef..226191cd0 100644 --- a/src/locale/kn_IN.ts +++ b/src/locale/kn_IN.ts @@ -17,11 +17,11 @@ const locale: Locale = { monthSelect: 'ಒಂದು ತಿಂಗಳು ಆಯ್ಕೆಮಾಡಿ', yearSelect: 'ಒಂದು ವರ್ಷ ಆರಿಸಿ', decadeSelect: 'ಒಂದು ದಶಕದ ಆಯ್ಕೆಮಾಡಿ', - + dateFormat: 'M/D/YYYY', - + dateTimeFormat: 'M/D/YYYY HH:mm:ss', - + previousMonth: 'ಹಿಂದಿನ ತಿಂಗಳು (ಪೇಜ್ಅಪ್)', nextMonth: 'ಮುಂದಿನ ತಿಂಗಳು (ಪೇಜ್ಡೌನ್)', previousYear: 'ಕಳೆದ ವರ್ಷ (Ctrl + ಎಡ)', diff --git a/src/locale/ko_KR.ts b/src/locale/ko_KR.ts index ede0fd771..e8c01a066 100644 --- a/src/locale/ko_KR.ts +++ b/src/locale/ko_KR.ts @@ -18,7 +18,7 @@ const locale: Locale = { decadeSelect: '연대 선택', yearFormat: 'YYYY년', dateFormat: 'YYYY-MM-DD', - + 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 7e6e90cea..b8c9b9719 100644 --- a/src/locale/lt_LT.ts +++ b/src/locale/lt_LT.ts @@ -17,11 +17,11 @@ const locale: Locale = { monthSelect: 'Pasirinkti mėnesį', yearSelect: 'Pasirinkti metus', decadeSelect: 'Pasirinkti dešimtmetį', - + dateFormat: 'YYYY-MM-DD', dayFormat: 'DD', dateTimeFormat: 'YYYY-MM-DD HH:MM:SS', - + 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 bd43b608c..31d4c6dc4 100644 --- a/src/locale/lv_LV.ts +++ b/src/locale/lv_LV.ts @@ -16,11 +16,11 @@ const locale: Locale = { monthSelect: 'Izvēlieties mēnesi', yearSelect: 'Izvēlieties gadu', decadeSelect: 'Izvēlieties desmit gadus', - + dateFormat: 'D.M.YYYY', - + dateTimeFormat: 'D.M.YYYY HH:mm:ss', - + 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 5ffeb61da..5a2e989b6 100644 --- a/src/locale/mk_MK.ts +++ b/src/locale/mk_MK.ts @@ -16,11 +16,11 @@ const locale: Locale = { monthSelect: 'Избери месец', yearSelect: 'Избери година', decadeSelect: 'Избери деценија', - + dateFormat: 'D.M.YYYY', - + dateTimeFormat: 'D.M.YYYY HH:mm:ss', - + previousMonth: 'Претходен месец (PageUp)', nextMonth: 'Нареден месец (PageDown)', previousYear: 'Претходна година (Control + left)', diff --git a/src/locale/ml_IN.ts b/src/locale/ml_IN.ts index e09482995..23ec40578 100644 --- a/src/locale/ml_IN.ts +++ b/src/locale/ml_IN.ts @@ -17,11 +17,11 @@ const locale: Locale = { monthSelect: 'മാസം തിരഞ്ഞെടുക്കുക', yearSelect: 'വർഷം തിരഞ്ഞെടുക്കുക', decadeSelect: 'ദശാബ്ദം തിരഞ്ഞെടുക്കുക', - + dateFormat: 'M/D/YYYY', - + dateTimeFormat: 'M/D/YYYY HH:mm:ss', - + previousMonth: 'കഴിഞ്ഞ മാസം (PageUp)', nextMonth: 'അടുത്ത മാസം (PageDown)', previousYear: 'കഴിഞ്ഞ വർഷം (Control + left)', diff --git a/src/locale/mn_MN.ts b/src/locale/mn_MN.ts index b52fb5199..8aed44d89 100644 --- a/src/locale/mn_MN.ts +++ b/src/locale/mn_MN.ts @@ -17,11 +17,11 @@ const locale: Locale = { monthSelect: 'Сар сонгох', yearSelect: 'Жил сонгох', decadeSelect: 'Арван сонгох', - + dateFormat: 'YYYY/MM/DD', dayFormat: 'DD', dateTimeFormat: 'YYYY/MM/DD HH:mm:ss', - + previousMonth: 'Өмнөх сар (PageUp)', nextMonth: 'Дараа сар (PageDown)', previousYear: 'Өмнөх жил (Control + left)', diff --git a/src/locale/ms_MY.ts b/src/locale/ms_MY.ts index be05c5a3f..392cde68d 100644 --- a/src/locale/ms_MY.ts +++ b/src/locale/ms_MY.ts @@ -19,8 +19,7 @@ const locale: Locale = { monthSelect: 'Pilih bulan', yearSelect: 'Pilih tahun', decadeSelect: 'Pilih dekad', - - + dateFormat: 'M/D/YYYY', dateTimeFormat: 'M/D/YYYY HH:mm:ss', previousYear: 'Tahun lepas (Ctrl+left)', diff --git a/src/locale/my_MM.ts b/src/locale/my_MM.ts index 2f7cea08a..75ff2694f 100644 --- a/src/locale/my_MM.ts +++ b/src/locale/my_MM.ts @@ -17,11 +17,11 @@ const locale: Locale = { monthSelect: 'လကိုရွေး', yearSelect: 'နှစ်ကိုရွေး', decadeSelect: 'ဆယ်စုနှစ်ကိုရွေး', - + dateFormat: 'M/D/YYYY', - + dateTimeFormat: 'M/D/YYYY HH:mm:ss', - + previousMonth: 'ယခင်လ (PageUp)', nextMonth: 'နောက်လ (PageDown)', previousYear: 'ယခင်နှစ် (Control + left)', diff --git a/src/locale/nb_NO.ts b/src/locale/nb_NO.ts index f411e3b6d..8dca2e04e 100644 --- a/src/locale/nb_NO.ts +++ b/src/locale/nb_NO.ts @@ -17,11 +17,11 @@ const locale: Locale = { monthSelect: 'Velg måned', yearSelect: 'Velg år', decadeSelect: 'Velg tiår', - + dateFormat: 'DD.MM.YYYY', dayFormat: 'DD', dateTimeFormat: 'DD.MM.YYYY HH:mm:ss', - + 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 9dad967bc..c16f880c0 100644 --- a/src/locale/ne_NP.ts +++ b/src/locale/ne_NP.ts @@ -17,11 +17,11 @@ const locale: Locale = { monthSelect: 'एक महिना छान्नुहोस्', yearSelect: 'एक वर्ष छान्नुहोस्', decadeSelect: 'एक दशक छान्नुहोस्', - + dateFormat: 'M/D/YYYY', - + dateTimeFormat: 'M/D/YYYY HH:mm:ss', - + previousMonth: 'अघिल्लो महिना (पृष्ठ माथि)', nextMonth: 'अर्को महिना (पृष्ठ तल)', previousYear: 'गत वर्ष (Control + left)', diff --git a/src/locale/nl_BE.ts b/src/locale/nl_BE.ts index 7b6196176..b68f699c9 100644 --- a/src/locale/nl_BE.ts +++ b/src/locale/nl_BE.ts @@ -16,11 +16,11 @@ const locale: Locale = { monthSelect: 'Kies een maand', yearSelect: 'Kies een jaar', decadeSelect: 'Kies een decennium', - + dateFormat: 'D-M-YYYY', - + dateTimeFormat: 'D-M-YYYY HH:mm:ss', - + 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 a52b7ef65..171935522 100644 --- a/src/locale/nl_NL.ts +++ b/src/locale/nl_NL.ts @@ -16,11 +16,11 @@ const locale: Locale = { monthSelect: 'Kies een maand', yearSelect: 'Kies een jaar', decadeSelect: 'Kies een decennium', - + dateFormat: 'D-M-YYYY', - + dateTimeFormat: 'D-M-YYYY HH:mm:ss', - + 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 fa2aafd9e..032fe198f 100644 --- a/src/locale/pl_PL.ts +++ b/src/locale/pl_PL.ts @@ -16,11 +16,11 @@ const locale: Locale = { monthSelect: 'Wybierz miesiąc', yearSelect: 'Wybierz rok', decadeSelect: 'Wybierz dekadę', - + dateFormat: 'D/M/YYYY', - + dateTimeFormat: 'D/M/YYYY HH:mm:ss', - + 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 5ecc85634..92a4e7eee 100644 --- a/src/locale/pt_BR.ts +++ b/src/locale/pt_BR.ts @@ -16,9 +16,9 @@ const locale: Locale = { monthSelect: 'Escolher mês', yearSelect: 'Escolher ano', decadeSelect: 'Escolher década', - + dateFormat: 'D/M/YYYY', - + dateTimeFormat: 'D/M/YYYY HH:mm:ss', monthBeforeYear: false, previousMonth: 'Mês anterior (PageUp)', @@ -30,20 +30,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 0ddf9111a..da6e44a60 100644 --- a/src/locale/pt_PT.ts +++ b/src/locale/pt_PT.ts @@ -16,11 +16,11 @@ const locale: Locale = { monthSelect: 'Selecionar mês', yearSelect: 'Selecionar ano', decadeSelect: 'Selecionar década', - + dateFormat: 'D/M/YYYY', - + dateTimeFormat: 'D/M/YYYY HH:mm:ss', - + previousMonth: 'Mês anterior (PageUp)', nextMonth: 'Mês seguinte (PageDown)', previousYear: 'Ano anterior (Control + left)', @@ -29,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 18c8c2932..5eb518316 100644 --- a/src/locale/ro_RO.ts +++ b/src/locale/ro_RO.ts @@ -17,11 +17,11 @@ const locale: Locale = { monthSelect: 'Alege o lună', yearSelect: 'Alege un an', decadeSelect: 'Alege un deceniu', - + dateFormat: 'D/M/YYYY', - + dateTimeFormat: 'D/M/YYYY HH:mm:ss', - + 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 d5d9b4a94..7a79f5496 100644 --- a/src/locale/ru_RU.ts +++ b/src/locale/ru_RU.ts @@ -16,11 +16,11 @@ const locale: Locale = { monthSelect: 'Выбрать месяц', yearSelect: 'Выбрать год', decadeSelect: 'Выбрать десятилетие', - + dateFormat: 'D-M-YYYY', - + dateTimeFormat: 'D-M-YYYY HH:mm:ss', - + previousMonth: 'Предыдущий месяц (PageUp)', nextMonth: 'Следующий месяц (PageDown)', previousYear: 'Предыдущий год (Control + left)', diff --git a/src/locale/si_LK.ts b/src/locale/si_LK.ts index 985367981..0d79613fc 100644 --- a/src/locale/si_LK.ts +++ b/src/locale/si_LK.ts @@ -17,9 +17,9 @@ const locale: Locale = { monthSelect: 'මාසයක් තෝරන්න', yearSelect: 'අවුරුද්දක් තෝරන්න', decadeSelect: 'දශකයක් තෝරන්න', - + dateFormat: 'YYYY/M/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 27d9ef15b..5125a65b3 100644 --- a/src/locale/sk_SK.ts +++ b/src/locale/sk_SK.ts @@ -16,11 +16,11 @@ const locale: Locale = { monthSelect: 'Vybrať mesiac', yearSelect: 'Vybrať rok', decadeSelect: 'Vybrať dekádu', - + dateFormat: 'D.M.YYYY', - + dateTimeFormat: 'D.M.YYYY HH:mm:ss', - + 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 cf94a6630..95a27a2f8 100644 --- a/src/locale/sl_SI.ts +++ b/src/locale/sl_SI.ts @@ -16,11 +16,11 @@ const locale: Locale = { monthSelect: 'Izberite mesec', yearSelect: 'Izberite leto', decadeSelect: 'Izberite desetletje', - + dateFormat: 'DD.MM.YYYY', - + dateTimeFormat: 'DD.MM.YYYY HH:mm:ss', - + 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 cdde208ac..328db2fbe 100644 --- a/src/locale/sr_Cyrl_RS.ts +++ b/src/locale/sr_Cyrl_RS.ts @@ -16,11 +16,11 @@ const locale: Locale = { monthSelect: 'Изабери месец', yearSelect: 'Изабери годину', decadeSelect: 'Изабери деценију', - + dateFormat: 'DD.MM.YYYY', - + dateTimeFormat: 'DD.MM.YYYY HH:mm:ss', - + previousMonth: 'Претходни месец (PageUp)', nextMonth: 'Следећи месец (PageDown)', previousYear: 'Претходна година (Control + left)', diff --git a/src/locale/sr_RS.ts b/src/locale/sr_RS.ts index 1829ff528..f36221573 100644 --- a/src/locale/sr_RS.ts +++ b/src/locale/sr_RS.ts @@ -16,11 +16,11 @@ const locale: Locale = { monthSelect: 'Izaberi mesec', yearSelect: 'Izaberi godinu', decadeSelect: 'Izaberi deceniju', - + dateFormat: 'DD.MM.YYYY', - + dateTimeFormat: 'DD.MM.YYYY HH:mm:ss', - + 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 1709a0854..834e0111b 100644 --- a/src/locale/sv_SE.ts +++ b/src/locale/sv_SE.ts @@ -16,11 +16,11 @@ const locale: Locale = { monthSelect: 'Välj månad', yearSelect: 'Välj år', decadeSelect: 'Välj årtionde', - + dateFormat: 'YYYY-MM-DD', - + dateTimeFormat: 'YYYY-MM-DD H:mm:ss', - + 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 162d49dc5..203a18681 100644 --- a/src/locale/ta_IN.ts +++ b/src/locale/ta_IN.ts @@ -17,11 +17,11 @@ const locale: Locale = { monthSelect: 'மாதத்தைத் தேர்வுசெய்க', yearSelect: 'வருடத்தைத் தேர்வுசெய்க', decadeSelect: 'தசாப்தத்தைத் தேர்வுசெய்க', - + dateFormat: 'M/D/YYYY', - + dateTimeFormat: 'M/D/YYYY HH:mm:ss', - + previousMonth: 'முந்தைய மாதம் (PageUp)', nextMonth: 'அடுத்த மாதம் (PageDown)', previousYear: 'முந்தைய வருடம் (Control + left)', diff --git a/src/locale/th_TH.ts b/src/locale/th_TH.ts index 1d45c627e..72345216d 100644 --- a/src/locale/th_TH.ts +++ b/src/locale/th_TH.ts @@ -16,11 +16,11 @@ const locale: Locale = { monthSelect: 'เลือกเดือน', yearSelect: 'เลือกปี', decadeSelect: 'เลือกทศวรรษ', - + dateFormat: 'D/M/YYYY', - + dateTimeFormat: 'D/M/YYYY HH:mm:ss', - + previousMonth: 'เดือนก่อนหน้า (PageUp)', nextMonth: 'เดือนถัดไป (PageDown)', previousYear: 'ปีก่อนหน้า (Control + left)', diff --git a/src/locale/tk_TK.ts b/src/locale/tk_TK.ts index f9130a7e2..171d4a519 100644 --- a/src/locale/tk_TK.ts +++ b/src/locale/tk_TK.ts @@ -16,11 +16,11 @@ const locale: Locale = { monthSelect: 'Aý saýla', yearSelect: 'Ýyl saýla', decadeSelect: 'On ýyllygy saýla', - + dateFormat: 'D/M/YYYY', - + dateTimeFormat: 'D/M/YYYY HH:mm:ss', - + 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 d273c44f7..b31e98999 100644 --- a/src/locale/tr_TR.ts +++ b/src/locale/tr_TR.ts @@ -16,11 +16,11 @@ const locale: Locale = { monthSelect: 'Ay Seç', yearSelect: 'Yıl Seç', decadeSelect: 'On Yıl Seç', - + dateFormat: 'DD/MM/YYYY', - + dateTimeFormat: 'DD/MM/YYYY HH:mm:ss', - + previousMonth: 'Önceki Ay (PageUp)', nextMonth: 'Sonraki Ay (PageDown)', previousYear: 'Önceki Yıl (Control + Sol)', diff --git a/src/locale/uk_UA.ts b/src/locale/uk_UA.ts index 92528b701..45ca24f49 100644 --- a/src/locale/uk_UA.ts +++ b/src/locale/uk_UA.ts @@ -16,11 +16,11 @@ const locale: Locale = { monthSelect: 'Обрати місяць', yearSelect: 'Обрати рік', decadeSelect: 'Обрати десятиріччя', - + dateFormat: 'D-M-YYYY', - + dateTimeFormat: 'D-M-YYYY HH:mm:ss', - + previousMonth: 'Попередній місяць (PageUp)', nextMonth: 'Наступний місяць (PageDown)', previousYear: 'Попередній рік (Control + left)', diff --git a/src/locale/ur_PK.ts b/src/locale/ur_PK.ts index f78cd2d40..f10f4df76 100644 --- a/src/locale/ur_PK.ts +++ b/src/locale/ur_PK.ts @@ -17,11 +17,11 @@ const locale: Locale = { monthSelect: 'ایک مہینہ کا انتخاب کریں', yearSelect: 'ایک سال کا انتخاب کریں', decadeSelect: 'ایک دہائی کا انتخاب کریں', - + dateFormat: 'M/D/YYYY', - + dateTimeFormat: 'M/D/YYYY HH:mm:ss', - + previousMonth: 'پچھلے مہینے (PageUp)', nextMonth: 'اگلے مہینے (PageDown)', previousYear: 'گزشتہ سال (Control + left)', diff --git a/src/locale/uz_UZ.ts b/src/locale/uz_UZ.ts index f07d97f45..caf5225e8 100644 --- a/src/locale/uz_UZ.ts +++ b/src/locale/uz_UZ.ts @@ -16,19 +16,19 @@ const locale: Locale = { weekSelect: 'Haftani tanlang', monthSelect: 'Oyni tanlang', yearSelect: 'Yilni tanlang', - decadeSelect: 'O\'n yilni tanlang', - + decadeSelect: "O'n yilni tanlang", + dateFormat: 'M/D/YYYY', - + dateTimeFormat: 'M/D/YYYY HH:mm:ss', - + 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 7ef4c1bec..b596d0594 100644 --- a/src/locale/vi_VN.ts +++ b/src/locale/vi_VN.ts @@ -17,11 +17,11 @@ const locale: Locale = { monthSelect: 'Chọn tháng', yearSelect: 'Chọn năm', decadeSelect: 'Chọn thập kỷ', - + dateFormat: 'D/M/YYYY', - + dateTimeFormat: 'D/M/YYYY HH:mm:ss', - + previousMonth: 'Tháng trước (PageUp)', nextMonth: 'Tháng sau (PageDown)', previousYear: 'Năm trước (Control + left)', diff --git a/src/locale/zh_TW.ts b/src/locale/zh_TW.ts index 8998f2118..93face28d 100644 --- a/src/locale/zh_TW.ts +++ b/src/locale/zh_TW.ts @@ -21,7 +21,7 @@ const locale: Locale = { yearSelect: '選擇年份', decadeSelect: '選擇年代', yearFormat: 'YYYY年', - + dateFormat: 'YYYY年M月D日', dateTimeFormat: 'YYYY年M月D日 HH時mm分ss秒', previousYear: '上一年 (Control鍵加左方向鍵)', From b797bb4d8e72406323bd0ae687438109ef4cd177 Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 11 Jul 2024 16:09:23 +0800 Subject: [PATCH 3/6] fix: missing cellMeridiemFormat in all locales --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a7f1cde67..f6c86986d 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "test": "rc-test", "coverage": "father test --coverage", "now-build": "npm run build", - "prepare": "husky" + "prepare": "npx husky" }, "dependencies": { "@babel/runtime": "^7.24.7", From bbd837b03db541eb146a101b76cf7d6337c9b6ae Mon Sep 17 00:00:00 2001 From: afc163 Date: Fri, 12 Jul 2024 11:44:23 +0800 Subject: [PATCH 4/6] fix: missing cellMeridiemFormat in all locales --- src/locale/ca_ES.ts | 5 ----- src/locale/eu_ES.ts | 2 -- src/locale/ko_KR.ts | 1 - src/locale/pt_BR.ts | 2 -- src/locale/uz_UZ.ts | 3 --- src/locale/zh_CN.ts | 1 + src/locale/zh_TW.ts | 1 + 7 files changed, 2 insertions(+), 13 deletions(-) diff --git a/src/locale/ca_ES.ts b/src/locale/ca_ES.ts index b72ab92b3..2967e66c5 100644 --- a/src/locale/ca_ES.ts +++ b/src/locale/ca_ES.ts @@ -1,10 +1,8 @@ import { commonLocale } from './common'; import type { Locale } from '../interface'; -import commenLocale from './common'; const locale: Locale = { ...commonLocale, - ...commenLocale, locale: 'ca_ES', today: 'Avui', now: 'Ara', @@ -18,11 +16,8 @@ const locale: Locale = { monthSelect: 'Escollir un mes', yearSelect: 'Escollir un any', decadeSelect: 'Escollir una dècada', - dateFormat: 'D/M/YYYY', - dateTimeFormat: 'D/M/YYYY HH:mm:ss', - previousMonth: 'Mes anterior (PageUp)', nextMonth: 'Mes següent (PageDown)', previousYear: 'Any anterior (Control + left)', diff --git a/src/locale/eu_ES.ts b/src/locale/eu_ES.ts index a1e25fa17..f551959fe 100644 --- a/src/locale/eu_ES.ts +++ b/src/locale/eu_ES.ts @@ -17,9 +17,7 @@ const locale: Locale = { 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)', diff --git a/src/locale/ko_KR.ts b/src/locale/ko_KR.ts index e8c01a066..2845907f3 100644 --- a/src/locale/ko_KR.ts +++ b/src/locale/ko_KR.ts @@ -18,7 +18,6 @@ const locale: Locale = { decadeSelect: '연대 선택', yearFormat: 'YYYY년', dateFormat: 'YYYY-MM-DD', - dateTimeFormat: 'YYYY-MM-DD HH:mm:ss', monthBeforeYear: false, previousMonth: '이전 달 (PageUp)', diff --git a/src/locale/pt_BR.ts b/src/locale/pt_BR.ts index 92a4e7eee..225fea103 100644 --- a/src/locale/pt_BR.ts +++ b/src/locale/pt_BR.ts @@ -16,9 +16,7 @@ const locale: Locale = { monthSelect: 'Escolher mês', yearSelect: 'Escolher ano', decadeSelect: 'Escolher década', - dateFormat: 'D/M/YYYY', - dateTimeFormat: 'D/M/YYYY HH:mm:ss', monthBeforeYear: false, previousMonth: 'Mês anterior (PageUp)', diff --git a/src/locale/uz_UZ.ts b/src/locale/uz_UZ.ts index caf5225e8..352ac6a1b 100644 --- a/src/locale/uz_UZ.ts +++ b/src/locale/uz_UZ.ts @@ -17,11 +17,8 @@ const locale: Locale = { monthSelect: 'Oyni tanlang', yearSelect: 'Yilni tanlang', decadeSelect: "O'n yilni tanlang", - dateFormat: 'M/D/YYYY', - dateTimeFormat: 'M/D/YYYY HH:mm:ss', - previousMonth: 'Oldingi oy (PageUp)', nextMonth: 'Keyingi oy (PageDown)', previousYear: "O'tgan yili (Control + left)", diff --git a/src/locale/zh_CN.ts b/src/locale/zh_CN.ts index b27e1c915..bf09d2127 100644 --- a/src/locale/zh_CN.ts +++ b/src/locale/zh_CN.ts @@ -29,6 +29,7 @@ const locale: Locale = { yearFormat: 'YYYY年', cellDateFormat: 'D', + monthBeforeYear: false, }; export default locale; diff --git a/src/locale/zh_TW.ts b/src/locale/zh_TW.ts index 93face28d..5b0da8915 100644 --- a/src/locale/zh_TW.ts +++ b/src/locale/zh_TW.ts @@ -30,6 +30,7 @@ const locale: Locale = { nextDecade: '下一年代', previousCentury: '上一世紀', nextCentury: '下一世紀', + monthBeforeYear: false, }; export default locale; From 0400dfef370271a7c537963ed16a9190b87ad4e7 Mon Sep 17 00:00:00 2001 From: afc163 Date: Fri, 12 Jul 2024 11:53:55 +0800 Subject: [PATCH 5/6] fix: missing cellMeridiemFormat in all locales --- src/locale/ja_JP.ts | 2 +- src/locale/km_KH.ts | 1 + src/locale/ms_MY.ts | 2 ++ src/locale/ug_CN.ts | 1 + src/locale/zh_TW.ts | 2 ++ 5 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/locale/ja_JP.ts b/src/locale/ja_JP.ts index dc71b880d..2665050f9 100644 --- a/src/locale/ja_JP.ts +++ b/src/locale/ja_JP.ts @@ -20,7 +20,6 @@ const locale: Locale = { yearSelect: '年を選択', decadeSelect: '年代を選択', yearFormat: 'YYYY年', - dateFormat: 'YYYY年M月D日', dateTimeFormat: 'YYYY年M月D日 HH時mm分ss秒', previousYear: '前年 (Controlを押しながら左キー)', @@ -29,6 +28,7 @@ const locale: Locale = { nextDecade: '次の年代', previousCentury: '前の世紀', nextCentury: '次の世紀', + monthBeforeYear: false, }; export default locale; diff --git a/src/locale/km_KH.ts b/src/locale/km_KH.ts index 382b0959c..7eba3aae4 100644 --- a/src/locale/km_KH.ts +++ b/src/locale/km_KH.ts @@ -28,6 +28,7 @@ const locale: Locale = { nextDecade: 'ជំនាន់​ក្រោយ', previousCentury: 'សតវត្សចុងក្រោយ', nextCentury: 'សតវត្សរ៍បន្ទាប់', + monthBeforeYear: false, }; export default locale; diff --git a/src/locale/ms_MY.ts b/src/locale/ms_MY.ts index 392cde68d..a2fdfd181 100644 --- a/src/locale/ms_MY.ts +++ b/src/locale/ms_MY.ts @@ -28,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/ug_CN.ts b/src/locale/ug_CN.ts index f97673f55..cbd7c63b4 100644 --- a/src/locale/ug_CN.ts +++ b/src/locale/ug_CN.ts @@ -28,6 +28,7 @@ const locale: Locale = { nextDecade: 'كېيىنكى يىللار', previousCentury: 'ئالدىنقى ئەسىر', nextCentury: 'كېيىنكى ئەسىر', + monthBeforeYear: false, }; export default locale; diff --git a/src/locale/zh_TW.ts b/src/locale/zh_TW.ts index 5b0da8915..feb293642 100644 --- a/src/locale/zh_TW.ts +++ b/src/locale/zh_TW.ts @@ -30,6 +30,8 @@ const locale: Locale = { nextDecade: '下一年代', previousCentury: '上一世紀', nextCentury: '下一世紀', + + cellDateFormat: 'D', monthBeforeYear: false, }; From dabf11918c94b059801a9297c78317ce7d5cddc3 Mon Sep 17 00:00:00 2001 From: afc163 Date: Fri, 12 Jul 2024 12:04:57 +0800 Subject: [PATCH 6/6] fix: missing cellMeridiemFormat in all locales --- src/locale/ka_GE.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/locale/ka_GE.ts b/src/locale/ka_GE.ts index 9be7a026a..d4f3b74e9 100644 --- a/src/locale/ka_GE.ts +++ b/src/locale/ka_GE.ts @@ -1,3 +1,4 @@ +import { commonLocale } from './common'; import { Locale } from '../interface'; const locale: Locale = {