From 61c35348e584f25f3ba2276efa66e409d5894ac8 Mon Sep 17 00:00:00 2001 From: Dylan Kilgore Date: Fri, 24 Feb 2023 17:43:09 -0800 Subject: [PATCH 1/3] feat: configprovider: update context then add locale story and unit tests also updates mocky io urls and removes bogus slider type --- .../ConfigProvider/ConfigProvider.stories.tsx | 290 +++++++++++++++++- .../ConfigProvider/ConfigProvider.test.tsx | 227 ++++++++++++++ .../ConfigProvider/ConfigProvider.tsx | 10 +- .../ConfigProvider/ConfigProvider.types.ts | 12 +- .../DateTimePicker/Internal/Locale/cs_CZ.ts | 36 ++- .../DateTimePicker/Internal/Locale/da_DK.ts | 36 ++- .../DateTimePicker/Internal/Locale/de_DE.ts | 36 ++- .../DateTimePicker/Internal/Locale/el_GR.ts | 36 ++- .../DateTimePicker/Internal/Locale/en_GB.ts | 34 +- .../DateTimePicker/Internal/Locale/en_US.ts | 36 +-- .../DateTimePicker/Internal/Locale/es_DO.ts | 36 ++- .../DateTimePicker/Internal/Locale/es_ES.ts | 36 ++- .../DateTimePicker/Internal/Locale/es_MX.ts | 38 +-- .../DateTimePicker/Internal/Locale/fi_FI.ts | 39 ++- .../DateTimePicker/Internal/Locale/fr_BE.ts | 38 ++- .../DateTimePicker/Internal/Locale/fr_CA.ts | 38 ++- .../DateTimePicker/Internal/Locale/fr_FR.ts | 38 ++- .../DateTimePicker/Internal/Locale/he_IL.ts | 38 +-- .../DateTimePicker/Internal/Locale/hr_HR.ts | 38 +-- .../DateTimePicker/Internal/Locale/ht_HT.ts | 38 +-- .../DateTimePicker/Internal/Locale/hu_HU.ts | 36 ++- .../DateTimePicker/Internal/Locale/it_IT.ts | 36 ++- .../DateTimePicker/Internal/Locale/ja_JP.ts | 40 +-- .../DateTimePicker/Internal/Locale/ko_KR.ts | 36 ++- .../DateTimePicker/Internal/Locale/ms_MY.ts | 40 +-- .../DateTimePicker/Internal/Locale/nb_NO.ts | 40 +-- .../DateTimePicker/Internal/Locale/nl_BE.ts | 36 ++- .../DateTimePicker/Internal/Locale/nl_NL.ts | 36 ++- .../DateTimePicker/Internal/Locale/pl_PL.ts | 36 ++- .../DateTimePicker/Internal/Locale/pt_BR.ts | 51 ++- .../DateTimePicker/Internal/Locale/pt_PT.ts | 51 ++- .../DateTimePicker/Internal/Locale/ru_RU.ts | 38 ++- .../DateTimePicker/Internal/Locale/sv_SE.ts | 36 ++- .../DateTimePicker/Internal/Locale/th_TH.ts | 37 ++- .../DateTimePicker/Internal/Locale/tr_TR.ts | 36 ++- .../DateTimePicker/Internal/Locale/uk_UA.ts | 38 ++- .../DateTimePicker/Internal/Locale/zh_CN.ts | 40 +-- .../DateTimePicker/Internal/Locale/zh_TW.ts | 41 +-- src/components/Slider/Slider.types.ts | 11 - .../Upload/Tests/uploadlist.test.tsx | 2 +- src/components/Upload/Upload.stories.tsx | 62 +++- 41 files changed, 1247 insertions(+), 662 deletions(-) create mode 100644 src/components/ConfigProvider/ConfigProvider.test.tsx diff --git a/src/components/ConfigProvider/ConfigProvider.stories.tsx b/src/components/ConfigProvider/ConfigProvider.stories.tsx index bd5075e85..4c504812d 100644 --- a/src/components/ConfigProvider/ConfigProvider.stories.tsx +++ b/src/components/ConfigProvider/ConfigProvider.stories.tsx @@ -1,6 +1,7 @@ -import React, { FC, useState, useRef } from 'react'; +import React, { FC, useState, useRef, useCallback } from 'react'; import { Stories } from '@storybook/addon-docs'; import { ComponentMeta, ComponentStory } from '@storybook/react'; +import { useArgs } from '@storybook/client-api'; import { ButtonSize, DefaultButton, @@ -28,7 +29,59 @@ import { Navbar, NavbarContent } from '../Navbar'; import { Dropdown } from '../Dropdown'; import { Menu, MenuVariant } from '../Menu'; import { TextArea } from '../Inputs'; +import DatePicker, { + DatePickerProps, + DatePickerShape, + DatePickerSize, + RangePickerProps, +} from '../DateTimePicker/DatePicker'; import { Dialog } from '../Dialog'; +import { Pagination, PaginationLayoutOptions } from '../Pagination'; +import { SelectOption, SelectSize } from '../Select/Select.types'; +import { Select } from '../Select'; +import { snack, SnackbarContainer } from '../Snackbar'; +import Upload, { UploadProps } from '../Upload'; +import dayjs, { Dayjs } from 'dayjs'; + +// locales +import csCZ from '../Locale/cs_CZ'; // čeština +import daDK from '../Locale/da_DK'; // Dansk +import deDE from '../Locale/de_DE'; // Deutsch +import elGR from '../Locale/el_GR'; // Ελληνικά +import enGB from '../Locale/en_GB'; // English (United Kingdom) +import enUS from '../Locale/en_US'; // English (United States) +import esES from '../Locale/es_ES'; // Español +import esDO from '../Locale/es_DO'; // Español (Dominican Republic) +import esMX from '../Locale/es_MX'; // Español (Mexico) +import fiFI from '../Locale/fi_FI'; // Suomi +import frBE from '../Locale/fr_BE'; // Français (Belgium) TODO: dayjs has no fr_BE locale, use fr +import frCA from '../Locale/fr_CA'; // Français (Canada) +import frFR from '../Locale/fr_FR'; // Français +import heIL from '../Locale/he_IL'; // עברית +// import hiHI from '../Locale/hi_HI'; // हिंदी TODO: Add Hindi locale +import hrHR from '../Locale/hr_HR'; // Hrvatski +import htHT from '../Locale/ht_HT'; // Haitian +import huHU from '../Locale/hu_HU'; // Magyar +import itIT from '../Locale/it_IT'; // Italiano +import jaJP from '../Locale/ja_JP'; // 日本語 +import koKR from '../Locale/ko_KR'; // 한국어 +import msMY from '../Locale/ms_MY'; // Bahasa melayu +import nbNO from '../Locale/nb_NO'; // Norsk +import nlBE from '../Locale/nl_BE'; // Nederlands (Belgium) +import nlNL from '../Locale/nl_NL'; // Nederlands +import plPL from '../Locale/pl_PL'; // Polski +import ptBR from '../Locale/pt_BR'; // Português (Brazil) +import ptPT from '../Locale/pt_PT'; // Português +import ruRU from '../Locale/ru_RU'; // Pусский +import svSE from '../Locale/sv_SE'; // Svenska +import thTH from '../Locale/th_TH'; // ภาษาไทย +import trTR from '../Locale/tr_TR'; // Türkçe +import ukUA from '../Locale/uk_UA'; // Yкраїнська +import zhCN from '../Locale/zh_CN'; // 中文 (简体) +import zhTW from '../Locale/zh_TW'; // 中文 (繁體) + +const { Dropzone } = Upload; +const { RangePicker } = DatePicker; export default { title: 'Config Provider', @@ -93,7 +146,7 @@ const ThemedComponents: FC = () => { })); return ( - +

Selected Theme: { | Accent

- +

Predefined

+ + + + + + + + ); +}; + +export const Locale = Locale_Story.bind({}); + +const providerArgs = { focusVisibleOptions: { focusVisible: DEFAULT_FOCUS_VISIBLE, focusVisibleElement: DEFAULT_FOCUS_VISIBLE_ELEMENT, @@ -551,5 +816,14 @@ Theming.args = { name: 'blue', } as ThemeOptions, icomoonIconSet: {}, + disabled: false, +}; + +Theming.args = { + ...providerArgs, children: , }; + +Locale.args = { + ...providerArgs, +}; diff --git a/src/components/ConfigProvider/ConfigProvider.test.tsx b/src/components/ConfigProvider/ConfigProvider.test.tsx new file mode 100644 index 000000000..f65a048f7 --- /dev/null +++ b/src/components/ConfigProvider/ConfigProvider.test.tsx @@ -0,0 +1,227 @@ +import React, { createContext } from 'react'; +import Enzyme from 'enzyme'; +import Adapter from '@wojtekmaj/enzyme-adapter-react-17'; +import MatchMediaMock from 'jest-matchmedia-mock'; +import { ConfigProvider, useConfig } from './ConfigProvider'; +import DisabledContext from './DisabledContext'; +import { IConfigContext } from './ConfigProvider.types'; +import ShapeContext, { Shape } from './ShapeContext'; +import SizeContext, { Size } from './SizeContext'; +import esES from '../Locale/es_ES'; +import iconSet from '../Icon/selection.json'; +import { render } from '@testing-library/react'; +import { renderHook } from '@testing-library/react-hooks'; + +Enzyme.configure({ adapter: new Adapter() }); + +let matchMedia: any; + +const ConfigContext: React.Context> = createContext< + Partial +>({}); + +describe('ConfigProvider', () => { + beforeAll(() => { + matchMedia = new MatchMediaMock(); + }); + + afterEach(() => { + matchMedia.clear(); + }); + + test('Renders its children', () => { + const { getByTestId } = render( + +
+ + ); + expect(getByTestId('test-child')).toBeTruthy(); + }); + + test('Provides the theme if props are provided', () => { + const { result } = renderHook(() => useConfig(), { + wrapper: ({ children }) => ( + + {children} + + ), + }); + expect(result.current.themeOptions).toEqual({ name: 'red' }); + }); + + test('Provides the no theme if no props are provided', () => { + const { result } = renderHook(() => useConfig(), { + wrapper: ConfigProvider, + }); + expect(result.current.themeOptions).toEqual(undefined); + }); + + test('Provides fontOptions config if provided as prop', () => { + const fontOptions = { + fontFamily: 'Roboto', + fontSize: 16, + fontStack: 'sans-serif', + }; + const { result } = renderHook(() => useConfig(), { + wrapper: ({ children }) => ( + + {children} + + ), + }); + expect(result.current.fontOptions.customFont).toEqual(fontOptions); + }); + + test('Provides disabled config if provided as prop', () => { + const { getByTestId } = render( + + + {(disabled): JSX.Element => ( +
{disabled.toString()}
+ )} +
+
+ ); + expect(getByTestId('disabled').textContent).toBe('true'); + }); + + test('Provides default disabled config if not provided as prop', () => { + const { getByTestId } = render( + + + {(disabled): JSX.Element => ( +
{disabled.toString()}
+ )} +
+
+ ); + expect(getByTestId('disabled').textContent).toBe('false'); + }); + + test('Provides focusVisibleOptions if props are provided', () => { + const testScope = document.createElement('div'); // create a dummy element + const focusVisibleOptions = { + focusVisible: false, + focusVisibleElement: testScope, // set the testScope element as the focusVisibleElement + }; + const { result } = renderHook(() => useConfig(), { + wrapper: ({ children }) => ( + +
{children}
+
+ ), + }); + expect(result.current.focusVisibleOptions).toEqual(focusVisibleOptions); + }); + + test('Provides default focusVisibleOptions if no props are provided', () => { + const defaultFocusVisibleOptions = { + focusVisible: true, + focusVisibleElement: document.documentElement, + }; + const { result } = renderHook(() => useConfig(), { + wrapper: ConfigProvider, + }); + expect(result.current.focusVisibleOptions).toEqual( + defaultFocusVisibleOptions + ); + }); + + test('Provides shape config if provided as prop', () => { + const shape = Shape.Underline; + const { getByTestId } = render( + + + {(shape: Shape): JSX.Element => ( +
{shape.toString()}
+ )} +
+
+ ); + expect(getByTestId('shape').textContent).toEqual(shape); + }); + + test('Provides no shape config if not provided as prop or context', () => { + const { result } = renderHook(() => useConfig(), { + wrapper: ConfigProvider, + }); + expect(result.current.shape).toEqual(undefined); + }); + + test('Provides size config if provided as prop', () => { + const size = Size.Large; + const { getByTestId } = render( + + + {(size: Size): JSX.Element => ( +
{size.toString()}
+ )} +
+
+ ); + expect(getByTestId('size').textContent).toEqual(size); + }); + + test('Provides no size config if not provided as prop or context', () => { + const { result } = renderHook(() => useConfig(), { + wrapper: ConfigProvider, + }); + expect(result.current.size).toEqual(undefined); + }); + + test('Provides locale config if provided as prop', () => { + const locale = esES; + const { result } = renderHook(() => useConfig(), { + wrapper: ({ children }) => ( + {children} + ), + }); + expect(result.current.locale).toEqual(locale); + }); + + test('Provides no locale config if not provided as prop or context', () => { + const { result } = renderHook(() => useConfig(), { + wrapper: ConfigProvider, + }); + expect(result.current.locale).toEqual(undefined); + }); + + test('Provides icomoon icon set if provided as prop', () => { + const { result } = renderHook(() => useConfig(), { + wrapper: ({ children }) => ( + {children} + ), + }); + expect(result.current.icomoonIconSet).toEqual(iconSet); + }); + + test('Provides no icomoon icon set if not provided as prop or context', () => { + const { result } = renderHook(() => useConfig(), { + wrapper: ConfigProvider, + }); + expect(result.current.icomoonIconSet).toEqual({}); + }); + + test('Provides form context values if provided as prop', () => { + const formProps = { + validateMessages: { + required: 'Test is required.', + }, + requiredMark: true, + colon: true, + }; + const { result } = renderHook(() => useConfig(), { + wrapper: ({ children }) => ( + {children} + ), + }); + expect(result.current.form).toEqual(formProps); + }); + + test('Provides no form context values if not provided as prop or context', () => { + const { result } = renderHook(() => useConfig(), { + wrapper: ConfigProvider, + }); + expect(result.current.form).toEqual(undefined); + }); +}); diff --git a/src/components/ConfigProvider/ConfigProvider.tsx b/src/components/ConfigProvider/ConfigProvider.tsx index 861511d6b..0899f1a62 100644 --- a/src/components/ConfigProvider/ConfigProvider.tsx +++ b/src/components/ConfigProvider/ConfigProvider.tsx @@ -141,12 +141,18 @@ const ConfigProvider: FC = ({ {childNode} diff --git a/src/components/ConfigProvider/ConfigProvider.types.ts b/src/components/ConfigProvider/ConfigProvider.types.ts index efe5ba70d..bcd7b5c5b 100644 --- a/src/components/ConfigProvider/ConfigProvider.types.ts +++ b/src/components/ConfigProvider/ConfigProvider.types.ts @@ -37,9 +37,19 @@ export interface IConfigContext { themeOptions: ThemeOptions; setFontOptions: (fontOptions: FontOptions) => void; setThemeOptions: (themeOptions: ThemeOptions) => void; + disabled?: boolean; + focusVisibleOptions?: FocusVisibleOptions; + form?: { + validateMessages?: ValidateMessages; + requiredMark?: RequiredMark; + colon?: boolean; + }; + icomoonIconSet?: Object; + locale?: Locale; registeredFont?: IRegisterFont; registeredTheme?: IRegisterTheme; - icomoonIconSet?: Object; + shape?: Shape; + size?: Size; } export interface ConfigProviderProps { diff --git a/src/components/DateTimePicker/Internal/Locale/cs_CZ.ts b/src/components/DateTimePicker/Internal/Locale/cs_CZ.ts index a84fdf40e..2488d33c5 100644 --- a/src/components/DateTimePicker/Internal/Locale/cs_CZ.ts +++ b/src/components/DateTimePicker/Internal/Locale/cs_CZ.ts @@ -2,31 +2,33 @@ import type { Locale } from '../OcPicker.types'; const locale: Locale = { locale: 'cs_CZ', - today: 'Dnes', - now: 'Nyní', backToToday: 'Zpět na dnešek', - ok: 'OK', clear: 'Vymazat', - month: 'Měsíc', - year: 'Rok', - timeSelect: 'Vybrat čas', - dateSelect: 'Vybrat datum', - monthSelect: 'Vyberte měsíc', - yearSelect: 'Vyberte rok', - decadeSelect: 'Vyberte dekádu', - yearFormat: 'YYYY', dateFormat: 'D.M.YYYY', - dayFormat: 'D', + dateSelect: 'Vybrat datum', dateTimeFormat: 'D.M.YYYY HH:mm:ss', + dayFormat: 'D', + decadeSelect: 'Vyberte dekádu', + month: 'Měsíc', monthBeforeYear: true, - previousMonth: 'Předchozí měsíc (PageUp)', + monthSelect: 'Vyberte měsíc', + nextCentury: 'Následující století', + nextDecade: 'Následující dekáda', nextMonth: 'Následující (PageDown)', - previousYear: 'Předchozí rok (Control + left)', nextYear: 'Následující rok (Control + right)', - previousDecade: 'Předchozí dekáda', - nextDecade: 'Následující dekáda', + now: 'Nyní', + ok: 'OK', previousCentury: 'Předchozí století', - nextCentury: 'Následující století', + previousDecade: 'Předchozí dekáda', + previousMonth: 'Předchozí měsíc (PageUp)', + previousYear: 'Předchozí rok (Control + left)', + shortMonths: 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'), + shortWeekDays: 'ne_po_út_st_čt_pá_so'.split('_'), + timeSelect: 'Vybrat čas', + today: 'Dnes', + year: 'Rok', + yearFormat: 'YYYY', + yearSelect: 'Vyberte rok', }; export default locale; diff --git a/src/components/DateTimePicker/Internal/Locale/da_DK.ts b/src/components/DateTimePicker/Internal/Locale/da_DK.ts index 49eac23f5..658434335 100644 --- a/src/components/DateTimePicker/Internal/Locale/da_DK.ts +++ b/src/components/DateTimePicker/Internal/Locale/da_DK.ts @@ -2,31 +2,33 @@ import type { Locale } from '../OcPicker.types'; const locale: Locale = { locale: 'da_DK', - today: 'I dag', - now: 'Nu', backToToday: 'Gå til i dag', - ok: 'OK', clear: 'Ryd', - month: 'Måned', - year: 'År', - timeSelect: 'Vælg tidspunkt', - dateSelect: 'Vælg dato', - monthSelect: 'Vælg måned', - yearSelect: 'Vælg år', - decadeSelect: 'Vælg årti', - yearFormat: 'YYYY', dateFormat: 'D/M/YYYY', - dayFormat: 'D', + dateSelect: 'Vælg dato', dateTimeFormat: 'D/M/YYYY HH:mm:ss', + dayFormat: 'D', + decadeSelect: 'Vælg årti', + month: 'Måned', monthBeforeYear: true, - previousMonth: 'Forrige måned (Page Up)', + monthSelect: 'Vælg måned', + nextCentury: 'Næste århundrede', + nextDecade: 'Næste årti', nextMonth: 'Næste måned (Page Down)', - previousYear: 'Forrige år (Ctrl-venstre pil)', nextYear: 'Næste år (Ctrl-højre pil)', - previousDecade: 'Forrige årti', - nextDecade: 'Næste årti', + now: 'Nu', + ok: 'OK', previousCentury: 'Forrige århundrede', - nextCentury: 'Næste århundrede', + previousDecade: 'Forrige årti', + previousMonth: 'Forrige måned (Page Up)', + previousYear: 'Forrige år (Ctrl-venstre pil)', + shortMonths: 'jan_feb_mar_apr_maj_juni_juli_aug_sept_okt_nov_dec'.split('_'), + shortWeekDays: 'søn_man_tirs_ons_tors_fre_lør'.split('_'), + timeSelect: 'Vælg tidspunkt', + today: 'I dag', + year: 'År', + yearFormat: 'YYYY', + yearSelect: 'Vælg år', }; export default locale; diff --git a/src/components/DateTimePicker/Internal/Locale/de_DE.ts b/src/components/DateTimePicker/Internal/Locale/de_DE.ts index 596e50db4..29394223a 100644 --- a/src/components/DateTimePicker/Internal/Locale/de_DE.ts +++ b/src/components/DateTimePicker/Internal/Locale/de_DE.ts @@ -2,31 +2,33 @@ import type { Locale } from '../OcPicker.types'; const locale: Locale = { locale: 'de_DE', - today: 'Heute', - now: 'Jetzt', backToToday: 'Zurück zu Heute', - ok: 'OK', clear: 'Zurücksetzen', - month: 'Monat', - year: 'Jahr', - timeSelect: 'Zeit wählen', - dateSelect: 'Datum wählen', - monthSelect: 'Wähle einen Monat', - yearSelect: 'Wähle ein Jahr', - decadeSelect: 'Wähle ein Jahrzehnt', - yearFormat: 'YYYY', dateFormat: 'D.M.YYYY', - dayFormat: 'D', + dateSelect: 'Datum wählen', dateTimeFormat: 'D.M.YYYY HH:mm:ss', + dayFormat: 'D', + decadeSelect: 'Wähle ein Jahrzehnt', + month: 'Monat', monthBeforeYear: true, - previousMonth: 'Vorheriger Monat (PageUp)', + monthSelect: 'Wähle einen Monat', + nextCentury: 'Nächstes Jahrhundert', + nextDecade: 'Nächstes Jahrzehnt', nextMonth: 'Nächster Monat (PageDown)', - previousYear: 'Vorheriges Jahr (Ctrl + left)', nextYear: 'Nächstes Jahr (Ctrl + right)', - previousDecade: 'Vorheriges Jahrzehnt', - nextDecade: 'Nächstes Jahrzehnt', + now: 'Jetzt', + ok: 'OK', previousCentury: 'Vorheriges Jahrhundert', - nextCentury: 'Nächstes Jahrhundert', + previousDecade: 'Vorheriges Jahrzehnt', + previousMonth: 'Vorheriger Monat (PageUp)', + previousYear: 'Vorheriges Jahr (Ctrl + left)', + shortMonths: 'Jan_Feb_März_Apr_Mai_Juni_Juli_Aug_Sept_Okt_Nov_Dez'.split('_'), + shortWeekDays: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), + timeSelect: 'Zeit wählen', + today: 'Heute', + year: 'Jahr', + yearFormat: 'YYYY', + yearSelect: 'Wähle ein Jahr', }; export default locale; diff --git a/src/components/DateTimePicker/Internal/Locale/el_GR.ts b/src/components/DateTimePicker/Internal/Locale/el_GR.ts index e1e2a2efb..4321f9516 100644 --- a/src/components/DateTimePicker/Internal/Locale/el_GR.ts +++ b/src/components/DateTimePicker/Internal/Locale/el_GR.ts @@ -2,31 +2,33 @@ import type { Locale } from '../OcPicker.types'; const locale: Locale = { locale: 'el_GR', - today: 'Σήμερα', - now: 'Τώρα', backToToday: 'Πίσω στη σημερινή μέρα', - ok: 'OK', clear: 'Καθαρισμός', - month: 'Μήνας', - year: 'Έτος', - timeSelect: 'Επιλογή ώρας', - dateSelect: 'Επιλογή ημερομηνίας', - monthSelect: 'Επιλογή μήνα', - yearSelect: 'Επιλογή έτους', - decadeSelect: 'Επιλογή δεκαετίας', - yearFormat: 'YYYY', dateFormat: 'D/M/YYYY', - dayFormat: 'D', + dateSelect: 'Επιλογή ημερομηνίας', dateTimeFormat: 'D/M/YYYY HH:mm:ss', + dayFormat: 'D', + decadeSelect: 'Επιλογή δεκαετίας', + month: 'Μήνας', monthBeforeYear: true, - previousMonth: 'Προηγούμενος μήνας (PageUp)', + monthSelect: 'Επιλογή μήνα', + nextCentury: 'Επόμενος αιώνας', + nextDecade: 'Επόμενη δεκαετία', nextMonth: 'Επόμενος μήνας (PageDown)', - previousYear: 'Προηγούμενο έτος (Control + αριστερά)', nextYear: 'Επόμενο έτος (Control + δεξιά)', - previousDecade: 'Προηγούμενη δεκαετία', - nextDecade: 'Επόμενη δεκαετία', + now: 'Τώρα', + ok: 'OK', previousCentury: 'Προηγούμενος αιώνας', - nextCentury: 'Επόμενος αιώνας', + previousDecade: 'Προηγούμενη δεκαετία', + previousMonth: 'Προηγούμενος μήνας (PageUp)', + previousYear: 'Προηγούμενο έτος (Control + αριστερά)', + shortMonths: 'Ιαν_Φεβ_Μαρ_Απρ_Μαι_Ιουν_Ιουλ_Αυγ_Σεπτ_Οκτ_Νοε_Δεκ'.split('_'), + shortWeekDays: 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'), + timeSelect: 'Επιλογή ώρας', + today: 'Σήμερα', + year: 'Έτος', + yearFormat: 'YYYY', + yearSelect: 'Επιλογή έτους', }; export default locale; diff --git a/src/components/DateTimePicker/Internal/Locale/en_GB.ts b/src/components/DateTimePicker/Internal/Locale/en_GB.ts index e43cbcbd9..9fb8a7f39 100644 --- a/src/components/DateTimePicker/Internal/Locale/en_GB.ts +++ b/src/components/DateTimePicker/Internal/Locale/en_GB.ts @@ -2,31 +2,31 @@ import type { Locale } from '../OcPicker.types'; const locale: Locale = { locale: 'en_GB', - today: 'Today', - now: 'Now', backToToday: 'Back to today', - ok: 'OK', clear: 'Clear', - month: 'Month', - year: 'Year', - timeSelect: 'Select time', - dateSelect: 'Select date', - monthSelect: 'Choose a month', - yearSelect: 'Choose a year', - decadeSelect: 'Choose a decade', - yearFormat: 'YYYY', dateFormat: 'D/M/YYYY', - dayFormat: 'D', + dateSelect: 'Select date', dateTimeFormat: 'D/M/YYYY HH:mm:ss', + dayFormat: 'D', + decadeSelect: 'Choose a decade', + month: 'Month', monthBeforeYear: true, - previousMonth: 'Previous month (PageUp)', + monthSelect: 'Choose a month', + nextCentury: 'Next century', + nextDecade: 'Next decade', nextMonth: 'Next month (PageDown)', - previousYear: 'Last year (Control + left)', nextYear: 'Next year (Control + right)', - previousDecade: 'Last decade', - nextDecade: 'Next decade', + now: 'Now', + ok: 'OK', previousCentury: 'Last century', - nextCentury: 'Next century', + previousDecade: 'Last decade', + previousMonth: 'Previous month (PageUp)', + previousYear: 'Last year (Control + left)', + timeSelect: 'Select time', + today: 'Today', + year: 'Year', + yearFormat: 'YYYY', + yearSelect: 'Choose a year', }; export default locale; diff --git a/src/components/DateTimePicker/Internal/Locale/en_US.ts b/src/components/DateTimePicker/Internal/Locale/en_US.ts index 92db1211b..8d4772f12 100644 --- a/src/components/DateTimePicker/Internal/Locale/en_US.ts +++ b/src/components/DateTimePicker/Internal/Locale/en_US.ts @@ -2,32 +2,32 @@ import type { Locale } from '../OcPicker.types'; const locale: Locale = { locale: 'en_US', - today: 'Today', - now: 'Now', backToToday: 'Back to today', - ok: 'OK', clear: 'Clear', - month: 'Month', - year: 'Year', - timeSelect: 'select time', - dateSelect: 'select date', - weekSelect: 'Choose a week', - monthSelect: 'Choose a month', - yearSelect: 'Choose a year', - decadeSelect: 'Choose a decade', - yearFormat: 'YYYY', dateFormat: 'M/D/YYYY', - dayFormat: 'D', + dateSelect: 'select date', dateTimeFormat: 'M/D/YYYY HH:mm:ss', + dayFormat: 'D', + decadeSelect: 'Choose a decade', + month: 'Month', monthBeforeYear: true, - previousMonth: 'Previous month (PageUp)', + monthSelect: 'Choose a month', + nextCentury: 'Next century', + nextDecade: 'Next decade', nextMonth: 'Next month (PageDown)', - previousYear: 'Last year (Control + left)', nextYear: 'Next year (Control + right)', - previousDecade: 'Last decade', - nextDecade: 'Next decade', + now: 'Now', + ok: 'OK', previousCentury: 'Last century', - nextCentury: 'Next century', + previousDecade: 'Last decade', + previousMonth: 'Previous month (PageUp)', + previousYear: 'Last year (Control + left)', + timeSelect: 'select time', + today: 'Today', + weekSelect: 'Choose a week', + year: 'Year', + yearFormat: 'YYYY', + yearSelect: 'Choose a year', }; export default locale; diff --git a/src/components/DateTimePicker/Internal/Locale/es_DO.ts b/src/components/DateTimePicker/Internal/Locale/es_DO.ts index 478d46953..108771c8c 100644 --- a/src/components/DateTimePicker/Internal/Locale/es_DO.ts +++ b/src/components/DateTimePicker/Internal/Locale/es_DO.ts @@ -2,31 +2,33 @@ import type { Locale } from '../OcPicker.types'; const locale: Locale = { locale: 'es_DO', - today: 'Hoy', - now: 'Ahora', backToToday: 'Volver a hoy', - ok: 'Aceptar', clear: 'Limpiar', - month: 'Mes', - year: 'Año', - timeSelect: 'Seleccionar hora', - dateSelect: 'Seleccionar fecha', - monthSelect: 'Elegir un mes', - yearSelect: 'Elegir un año', - decadeSelect: 'Elegir una década', - yearFormat: 'YYYY', dateFormat: 'D/M/YYYY', - dayFormat: 'D', + dateSelect: 'Seleccionar fecha', dateTimeFormat: 'D/M/YYYY HH:mm:ss', + dayFormat: 'D', + decadeSelect: 'Elegir una década', + month: 'Mes', monthBeforeYear: true, - previousMonth: 'Mes anterior (PageUp)', + monthSelect: 'Elegir un mes', + nextCentury: 'Siglo siguiente', + nextDecade: 'Década siguiente', nextMonth: 'Mes siguiente (PageDown)', - previousYear: 'Año anterior (Control + left)', nextYear: 'Año siguiente (Control + right)', - previousDecade: 'Década anterior', - nextDecade: 'Década siguiente', + now: 'Ahora', + ok: 'Aceptar', previousCentury: 'Siglo anterior', - nextCentury: 'Siglo siguiente', + previousDecade: 'Década anterior', + previousMonth: 'Mes anterior (PageUp)', + previousYear: 'Año anterior (Control + left)', + shortMonths: 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'), + shortWeekDays: 'dom_lun_mar_mié_jue_vie_sáb'.split('_'), + timeSelect: 'Seleccionar hora', + today: 'Hoy', + year: 'Año', + yearFormat: 'YYYY', + yearSelect: 'Elegir un año', }; export default locale; diff --git a/src/components/DateTimePicker/Internal/Locale/es_ES.ts b/src/components/DateTimePicker/Internal/Locale/es_ES.ts index 6335d1c3f..539ba6eb9 100644 --- a/src/components/DateTimePicker/Internal/Locale/es_ES.ts +++ b/src/components/DateTimePicker/Internal/Locale/es_ES.ts @@ -2,31 +2,33 @@ import type { Locale } from '../OcPicker.types'; const locale: Locale = { locale: 'es_ES', - today: 'Hoy', - now: 'Ahora', backToToday: 'Volver a hoy', - ok: 'Aceptar', clear: 'Limpiar', - month: 'Mes', - year: 'Año', - timeSelect: 'Seleccionar hora', - dateSelect: 'Seleccionar fecha', - monthSelect: 'Elegir un mes', - yearSelect: 'Elegir un año', - decadeSelect: 'Elegir una década', - yearFormat: 'YYYY', dateFormat: 'D/M/YYYY', - dayFormat: 'D', + dateSelect: 'Seleccionar fecha', dateTimeFormat: 'D/M/YYYY HH:mm:ss', + dayFormat: 'D', + decadeSelect: 'Elegir una década', + month: 'Mes', monthBeforeYear: true, - previousMonth: 'Mes anterior (PageUp)', + monthSelect: 'Elegir un mes', + nextCentury: 'Siglo siguiente', + nextDecade: 'Década siguiente', nextMonth: 'Mes siguiente (PageDown)', - previousYear: 'Año anterior (Control + left)', nextYear: 'Año siguiente (Control + right)', - previousDecade: 'Década anterior', - nextDecade: 'Década siguiente', + now: 'Ahora', + ok: 'Aceptar', previousCentury: 'Siglo anterior', - nextCentury: 'Siglo siguiente', + previousDecade: 'Década anterior', + previousMonth: 'Mes anterior (PageUp)', + previousYear: 'Año anterior (Control + left)', + shortMonths: 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'), + shortWeekDays: 'dom_lun_mar_mié_jue_vie_sáb'.split('_'), + timeSelect: 'Seleccionar hora', + today: 'Hoy', + year: 'Año', + yearFormat: 'YYYY', + yearSelect: 'Elegir un año', }; export default locale; diff --git a/src/components/DateTimePicker/Internal/Locale/es_MX.ts b/src/components/DateTimePicker/Internal/Locale/es_MX.ts index 8024186f9..1fca9c006 100644 --- a/src/components/DateTimePicker/Internal/Locale/es_MX.ts +++ b/src/components/DateTimePicker/Internal/Locale/es_MX.ts @@ -2,32 +2,34 @@ import type { Locale } from '../OcPicker.types'; const locale: Locale = { locale: 'es_MX', - today: 'Hoy', - now: 'Ahora', backToToday: 'Volver a hoy', - ok: 'Aceptar', clear: 'Limpiar', - month: 'Mes', - year: 'Año', - timeSelect: 'elegir hora', - dateSelect: 'elegir fecha', - weekSelect: 'elegir semana', - monthSelect: 'Seleccionar mes', - yearSelect: 'Seleccionar año', - decadeSelect: 'Seleccionar década', - yearFormat: 'YYYY', dateFormat: 'D/M/YYYY', - dayFormat: 'D', + dateSelect: 'elegir fecha', dateTimeFormat: 'D/M/YYYY HH:mm:ss', + dayFormat: 'D', + decadeSelect: 'Seleccionar década', + month: 'Mes', monthBeforeYear: true, - previousMonth: 'Mes anterior (PageUp)', + monthSelect: 'Seleccionar mes', + nextCentury: 'Siglo siguiente', + nextDecade: 'Década siguiente', nextMonth: 'Mes siguiente (PageDown)', - previousYear: 'Año anterior (Control + Left)', nextYear: 'Año siguiente (Control + Right)', - previousDecade: 'Década anterior', - nextDecade: 'Década siguiente', + now: 'Ahora', + ok: 'Aceptar', previousCentury: 'Siglo anterior', - nextCentury: 'Siglo siguiente', + previousDecade: 'Década anterior', + previousMonth: 'Mes anterior (PageUp)', + previousYear: 'Año anterior (Control + Left)', + shortMonths: 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'), + shortWeekDays: 'dom_lun_mar_mié_jue_vie_sáb'.split('_'), + timeSelect: 'elegir hora', + today: 'Hoy', + weekSelect: 'elegir semana', + year: 'Año', + yearFormat: 'YYYY', + yearSelect: 'Seleccionar año', }; export default locale; diff --git a/src/components/DateTimePicker/Internal/Locale/fi_FI.ts b/src/components/DateTimePicker/Internal/Locale/fi_FI.ts index fd461dcd1..e90293851 100644 --- a/src/components/DateTimePicker/Internal/Locale/fi_FI.ts +++ b/src/components/DateTimePicker/Internal/Locale/fi_FI.ts @@ -2,31 +2,36 @@ import type { Locale } from '../OcPicker.types'; const locale: Locale = { locale: 'fi_FI', - today: 'Tänään', - now: 'Nyt', backToToday: 'Tämä päivä', - ok: 'OK', clear: 'Tyhjennä', - month: 'Kuukausi', - year: 'Vuosi', - timeSelect: 'Valise aika', - dateSelect: 'Valitse päivä', - monthSelect: 'Valitse kuukausi', - yearSelect: 'Valitse vuosi', - decadeSelect: 'Valitse vuosikymmen', - yearFormat: 'YYYY', dateFormat: 'D.M.YYYY', - dayFormat: 'D', + dateSelect: 'Valitse päivä', dateTimeFormat: 'D.M.YYYY HH:mm:ss', + dayFormat: 'D', + decadeSelect: 'Valitse vuosikymmen', + month: 'Kuukausi', monthBeforeYear: true, - previousMonth: 'Edellinen kuukausi (PageUp)', + monthSelect: 'Valitse kuukausi', + nextCentury: 'Seuraava vuosisata', + nextDecade: 'Seuraava vuosikymmen', nextMonth: 'Seuraava kuukausi (PageDown)', - previousYear: 'Edellinen vuosi (Control + left)', nextYear: 'Seuraava vuosi (Control + right)', - previousDecade: 'Edellinen vuosikymmen', - nextDecade: 'Seuraava vuosikymmen', + now: 'Nyt', + ok: 'OK', previousCentury: 'Edellinen vuosisata', - nextCentury: 'Seuraava vuosisata', + previousDecade: 'Edellinen vuosikymmen', + previousMonth: 'Edellinen kuukausi (PageUp)', + previousYear: 'Edellinen vuosi (Control + left)', + shortMonths: + 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split( + '_' + ), + shortWeekDays: 'su_ma_ti_ke_to_pe_la'.split('_'), + timeSelect: 'Valise aika', + today: 'Tänään', + year: 'Vuosi', + yearFormat: 'YYYY', + yearSelect: 'Valitse vuosi', }; export default locale; diff --git a/src/components/DateTimePicker/Internal/Locale/fr_BE.ts b/src/components/DateTimePicker/Internal/Locale/fr_BE.ts index 2118911cc..01d7cc93b 100644 --- a/src/components/DateTimePicker/Internal/Locale/fr_BE.ts +++ b/src/components/DateTimePicker/Internal/Locale/fr_BE.ts @@ -2,31 +2,35 @@ import type { Locale } from '../OcPicker.types'; const locale: Locale = { locale: 'fr_BE', - today: "Aujourd'hui", - now: 'Maintenant', backToToday: "Aujourd'hui", - ok: 'OK', clear: 'Rétablir', - month: 'Mois', - year: 'Année', - timeSelect: "Sélectionner l'heure", - dateSelect: "Sélectionner l'heure", - monthSelect: 'Choisissez un mois', - yearSelect: 'Choisissez une année', - decadeSelect: 'Choisissez une décennie', - yearFormat: 'YYYY', dateFormat: 'D/M/YYYY', - dayFormat: 'D', + dateSelect: "Sélectionner l'heure", dateTimeFormat: 'D/M/YYYY HH:mm:ss', + dayFormat: 'D', + decadeSelect: 'Choisissez une décennie', + month: 'Mois', monthBeforeYear: true, - previousMonth: 'Mois précédent (PageUp)', + monthSelect: 'Choisissez un mois', + nextCentury: 'Siècle suivant', + nextDecade: 'Décennie suivante', nextMonth: 'Mois suivant (PageDown)', - previousYear: 'Année précédente (Ctrl + gauche)', nextYear: 'Année prochaine (Ctrl + droite)', - previousDecade: 'Décennie précédente', - nextDecade: 'Décennie suivante', + now: 'Maintenant', + ok: 'OK', previousCentury: 'Siècle précédent', - nextCentury: 'Siècle suivant', + previousDecade: 'Décennie précédente', + previousMonth: 'Mois précédent (PageUp)', + previousYear: 'Année précédente (Ctrl + gauche)', + shortMonths: 'janv_févr_mars_avr_mai_juin_juil_août_sept_oct_nov_déc'.split( + '_' + ), + shortWeekDays: 'dim_lun_mar_mer_jeu_ven_sam'.split('_'), + timeSelect: "Sélectionner l'heure", + today: "Aujourd'hui", + year: 'Année', + yearFormat: 'YYYY', + yearSelect: 'Choisissez une année', }; export default locale; diff --git a/src/components/DateTimePicker/Internal/Locale/fr_CA.ts b/src/components/DateTimePicker/Internal/Locale/fr_CA.ts index d5b4f6cc5..f494c9105 100644 --- a/src/components/DateTimePicker/Internal/Locale/fr_CA.ts +++ b/src/components/DateTimePicker/Internal/Locale/fr_CA.ts @@ -2,31 +2,35 @@ import type { Locale } from '../OcPicker.types'; const locale: Locale = { locale: 'fr_CA', - today: "Aujourd'hui", - now: 'Maintenant', backToToday: "Aujourd'hui", - ok: 'OK', clear: 'Rétablir', - month: 'Mois', - year: 'Année', - timeSelect: "Sélectionner l'heure", - dateSelect: 'Sélectionner la date', - monthSelect: 'Choisissez un mois', - yearSelect: 'Choisissez une année', - decadeSelect: 'Choisissez une décennie', - yearFormat: 'YYYY', dateFormat: 'DD/MM/YYYY', - dayFormat: 'DD', + dateSelect: 'Sélectionner la date', dateTimeFormat: 'DD/MM/YYYY HH:mm:ss', + dayFormat: 'DD', + decadeSelect: 'Choisissez une décennie', + month: 'Mois', monthBeforeYear: true, - previousMonth: 'Mois précédent (PageUp)', + monthSelect: 'Choisissez un mois', + nextCentury: 'Siècle suivant', + nextDecade: 'Décennie suivante', nextMonth: 'Mois suivant (PageDown)', - previousYear: 'Année précédente (Ctrl + gauche)', nextYear: 'Année prochaine (Ctrl + droite)', - previousDecade: 'Décennie précédente', - nextDecade: 'Décennie suivante', + now: 'Maintenant', + ok: 'OK', previousCentury: 'Siècle précédent', - nextCentury: 'Siècle suivant', + previousDecade: 'Décennie précédente', + previousMonth: 'Mois précédent (PageUp)', + previousYear: 'Année précédente (Ctrl + gauche)', + shortMonths: 'janv_févr_mars_avr_mai_juin_juil_août_sept_oct_nov_déc'.split( + '_' + ), + shortWeekDays: 'dim_lun_mar_mer_jeu_ven_sam'.split('_'), + timeSelect: "Sélectionner l'heure", + today: "Aujourd'hui", + year: 'Année', + yearFormat: 'YYYY', + yearSelect: 'Choisissez une année', }; export default locale; diff --git a/src/components/DateTimePicker/Internal/Locale/fr_FR.ts b/src/components/DateTimePicker/Internal/Locale/fr_FR.ts index 7601678e0..99178edc5 100644 --- a/src/components/DateTimePicker/Internal/Locale/fr_FR.ts +++ b/src/components/DateTimePicker/Internal/Locale/fr_FR.ts @@ -2,31 +2,35 @@ import type { Locale } from '../OcPicker.types'; const locale: Locale = { locale: 'fr_FR', - today: "Aujourd'hui", - now: 'Maintenant', backToToday: "Aujourd'hui", - ok: 'OK', clear: 'Rétablir', - month: 'Mois', - year: 'Année', - timeSelect: "Sélectionner l'heure", - dateSelect: 'Sélectionner la date', - monthSelect: 'Choisissez un mois', - yearSelect: 'Choisissez une année', - decadeSelect: 'Choisissez une décennie', - yearFormat: 'YYYY', dateFormat: 'DD/MM/YYYY', - dayFormat: 'DD', + dateSelect: 'Sélectionner la date', dateTimeFormat: 'DD/MM/YYYY HH:mm:ss', + dayFormat: 'DD', + decadeSelect: 'Choisissez une décennie', + month: 'Mois', monthBeforeYear: true, - previousMonth: 'Mois précédent (PageUp)', + monthSelect: 'Choisissez un mois', + nextCentury: 'Siècle suivant', + nextDecade: 'Décennie suivante', nextMonth: 'Mois suivant (PageDown)', - previousYear: 'Année précédente (Ctrl + gauche)', nextYear: 'Année prochaine (Ctrl + droite)', - previousDecade: 'Décennie précédente', - nextDecade: 'Décennie suivante', + now: 'Maintenant', + ok: 'OK', previousCentury: 'Siècle précédent', - nextCentury: 'Siècle suivant', + previousDecade: 'Décennie précédente', + previousMonth: 'Mois précédent (PageUp)', + previousYear: 'Année précédente (Ctrl + gauche)', + shortMonths: 'janv_févr_mars_avr_mai_juin_juil_août_sept_oct_nov_déc'.split( + '_' + ), + shortWeekDays: 'dim_lun_mar_mer_jeu_ven_sam'.split('_'), + timeSelect: "Sélectionner l'heure", + today: "Aujourd'hui", + year: 'Année', + yearFormat: 'YYYY', + yearSelect: 'Choisissez une année', }; export default locale; diff --git a/src/components/DateTimePicker/Internal/Locale/he_IL.ts b/src/components/DateTimePicker/Internal/Locale/he_IL.ts index b80c96280..f50f7b4bf 100644 --- a/src/components/DateTimePicker/Internal/Locale/he_IL.ts +++ b/src/components/DateTimePicker/Internal/Locale/he_IL.ts @@ -2,32 +2,34 @@ import type { Locale } from '../OcPicker.types'; const locale: Locale = { locale: 'he_IL', - today: 'היום', - now: 'עכשיו', backToToday: 'חזור להיום', - ok: 'אישור', clear: 'איפוס', - month: 'חודש', - year: 'שנה', - timeSelect: 'בחר שעה', - dateSelect: 'בחר תאריך', - weekSelect: 'בחר שבוע', - monthSelect: 'בחר חודש', - yearSelect: 'בחר שנה', - decadeSelect: 'בחר עשור', - yearFormat: 'YYYY', dateFormat: 'M/D/YYYY', - dayFormat: 'D', + dateSelect: 'בחר תאריך', dateTimeFormat: 'M/D/YYYY HH:mm:ss', + dayFormat: 'D', + decadeSelect: 'בחר עשור', + month: 'חודש', monthBeforeYear: true, - previousMonth: 'חודש קודם (PageUp)', + monthSelect: 'בחר חודש', + nextCentury: 'המאה הבאה', + nextDecade: 'העשור הבא', nextMonth: 'חודש הבא (PageDown)', - previousYear: 'שנה שעברה (Control + left)', nextYear: 'שנה הבאה (Control + right)', - previousDecade: 'העשור הקודם', - nextDecade: 'העשור הבא', + now: 'עכשיו', + ok: 'אישור', previousCentury: 'המאה הקודמת', - nextCentury: 'המאה הבאה', + previousDecade: 'העשור הקודם', + previousMonth: 'חודש קודם (PageUp)', + previousYear: 'שנה שעברה (Control + left)', + shortMonths: 'ינו_פבר_מרץ_אפר_מאי_יונ_יול_אוג_ספט_אוק_נוב_דצמ'.split('_'), + shortWeekDays: 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'), + timeSelect: 'בחר שעה', + today: 'היום', + weekSelect: 'בחר שבוע', + year: 'שנה', + yearFormat: 'YYYY', + yearSelect: 'בחר שנה', }; export default locale; diff --git a/src/components/DateTimePicker/Internal/Locale/hr_HR.ts b/src/components/DateTimePicker/Internal/Locale/hr_HR.ts index 186a4e3f6..fe81684dc 100644 --- a/src/components/DateTimePicker/Internal/Locale/hr_HR.ts +++ b/src/components/DateTimePicker/Internal/Locale/hr_HR.ts @@ -2,32 +2,34 @@ import type { Locale } from '../OcPicker.types'; const locale: Locale = { locale: 'hr_HR', - today: 'Danas', - now: 'Sad', backToToday: 'Natrag na danas', - ok: 'OK', clear: 'Očisti', - month: 'Mjesec', - year: 'Godina', - timeSelect: 'odaberite vrijeme', - dateSelect: 'odaberite datum', - weekSelect: 'Odaberite tjedan', - monthSelect: 'Odaberite mjesec', - yearSelect: 'Odaberite godinu', - decadeSelect: 'Odaberite desetljeće', - yearFormat: 'YYYY', dateFormat: 'D.M.YYYY', - dayFormat: 'D', + dateSelect: 'odaberite datum', dateTimeFormat: 'D.M.YYYY HH:mm:ss', + dayFormat: 'D', + decadeSelect: 'Odaberite desetljeće', + month: 'Mjesec', monthBeforeYear: true, - previousMonth: 'Prošli mjesec (PageUp)', + monthSelect: 'Odaberite mjesec', + nextCentury: 'Sljedeće stoljeće', + nextDecade: 'Sljedeće desetljeće', nextMonth: 'Sljedeći mjesec (PageDown)', - previousYear: 'Prošla godina (Control + left)', nextYear: 'Sljedeća godina (Control + right)', - previousDecade: 'Prošlo desetljeće', - nextDecade: 'Sljedeće desetljeće', + now: 'Sad', + ok: 'OK', previousCentury: 'Prošlo stoljeće', - nextCentury: 'Sljedeće stoljeće', + previousDecade: 'Prošlo desetljeće', + previousMonth: 'Prošli mjesec (PageUp)', + previousYear: 'Prošla godina (Control + left)', + shortMonths: 'sij_velj_ožu_tra_svi_lip_srp_kol_ruj_lis_stu_pro'.split('_'), + shortWeekDays: 'ned_pon_uto_sri_čet_pet_sub'.split('_'), + timeSelect: 'odaberite vrijeme', + today: 'Danas', + weekSelect: 'Odaberite tjedan', + year: 'Godina', + yearFormat: 'YYYY', + yearSelect: 'Odaberite godinu', }; export default locale; diff --git a/src/components/DateTimePicker/Internal/Locale/ht_HT.ts b/src/components/DateTimePicker/Internal/Locale/ht_HT.ts index 3f0b1c8d5..0aba34059 100644 --- a/src/components/DateTimePicker/Internal/Locale/ht_HT.ts +++ b/src/components/DateTimePicker/Internal/Locale/ht_HT.ts @@ -2,32 +2,34 @@ import type { Locale } from '../OcPicker.types'; const locale: Locale = { locale: 'ht_HT', - today: 'Jodi a', - now: 'Kounye a', backToToday: 'Retounen jodi a', - ok: 'OK', clear: 'Klè', - month: 'Mwa', - year: 'Ane', - timeSelect: 'chwazi tan', - dateSelect: 'chwazi dat', - weekSelect: 'Chwazi yon semèn', - monthSelect: 'Chwazi yon mwa', - yearSelect: 'Chwazi yon ane', - decadeSelect: 'Chwazi yon dekad', - yearFormat: 'YYYY', dateFormat: 'DD/MM/YYYY', - dayFormat: 'DD', + dateSelect: 'chwazi dat', dateTimeFormat: 'DD/MM/YYYY HH:mm:ss', + dayFormat: 'DD', + decadeSelect: 'Chwazi yon dekad', + month: 'Mwa', monthBeforeYear: true, - previousMonth: 'Mwa anvan (PageUp)', + monthSelect: 'Chwazi yon mwa', + nextCentury: 'Pwochen syèk la', + nextDecade: 'Pwochen deseni', nextMonth: 'Mwa pwochen (PageDown)', - previousYear: 'Ane pase a (Control + left)', nextYear: 'Ane pwochèn (Control + right)', - previousDecade: 'Dènye deseni', - nextDecade: 'Pwochen deseni', + now: 'Kounye a', + ok: 'OK', previousCentury: 'Dènye syèk', - nextCentury: 'Pwochen syèk la', + previousDecade: 'Dènye deseni', + previousMonth: 'Mwa anvan (PageUp)', + previousYear: 'Ane pase a (Control + left)', + shortMonths: 'jan_fev_mas_avr_me_jen_jiyè_out_sept_okt_nov_des'.split('_'), + shortWeekDays: 'dim_len_mad_mèk_jed_van_sam'.split('_'), + timeSelect: 'chwazi tan', + today: 'Jodi a', + weekSelect: 'Chwazi yon semèn', + year: 'Ane', + yearFormat: 'YYYY', + yearSelect: 'Chwazi yon ane', }; export default locale; diff --git a/src/components/DateTimePicker/Internal/Locale/hu_HU.ts b/src/components/DateTimePicker/Internal/Locale/hu_HU.ts index a63cee812..35f706255 100644 --- a/src/components/DateTimePicker/Internal/Locale/hu_HU.ts +++ b/src/components/DateTimePicker/Internal/Locale/hu_HU.ts @@ -2,31 +2,33 @@ import type { Locale } from '../OcPicker.types'; const locale: Locale = { locale: 'hu_HU', - today: 'Ma', // 'Today', - now: 'Most', // 'Now', backToToday: 'Vissza a mai napra', // 'Back to today', - ok: 'OK', clear: 'Törlés', // 'Clear', - month: 'Hónap', // 'Month', - year: 'Év', // 'Year', - timeSelect: 'Időpont kiválasztása', // 'Select time', - dateSelect: 'Dátum kiválasztása', // 'Select date', - 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', + dateSelect: 'Dátum kiválasztása', // 'Select date', dateTimeFormat: 'YYYY/MM/DD HH:mm:ss', // 'M/D/YYYY HH:mm:ss', + dayFormat: 'DD', // 'D', + decadeSelect: 'Évtized kiválasztása', // 'Choose a decade', + month: 'Hónap', // 'Month', monthBeforeYear: true, - previousMonth: 'Előző hónap (PageUp)', // 'Previous month (PageUp)', + monthSelect: 'Hónap kiválasztása', // 'Choose a month', + nextCentury: 'Jövő évszázad', // 'Next century', + nextDecade: 'Következő évtized', // 'Next decade', nextMonth: 'Következő hónap (PageDown)', // 'Next month (PageDown)', - previousYear: 'Múlt év (Control + left)', // 'Last year (Control + left)', nextYear: 'Jövő év (Control + right)', // 'Next year (Control + right)', - previousDecade: 'Előző évtized', // 'Last decade', - nextDecade: 'Következő évtized', // 'Next decade', + now: 'Most', // 'Now', + ok: 'OK', previousCentury: 'Múlt évszázad', // 'Last century', - nextCentury: 'Jövő évszázad', // 'Next century', + previousDecade: 'Előző évtized', // 'Last decade', + previousMonth: 'Előző hónap (PageUp)', // 'Previous month (PageUp)', + previousYear: 'Múlt év (Control + left)', // 'Last year (Control + left)', + shortMonths: 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split('_'), + shortWeekDays: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'), + timeSelect: 'Időpont kiválasztása', // 'Select time', + today: 'Ma', // 'Today', + year: 'Év', // 'Year', + yearFormat: 'YYYY', + yearSelect: 'Év kiválasztása', // 'Choose a year', }; export default locale; diff --git a/src/components/DateTimePicker/Internal/Locale/it_IT.ts b/src/components/DateTimePicker/Internal/Locale/it_IT.ts index 3d6396cfc..272dae07e 100644 --- a/src/components/DateTimePicker/Internal/Locale/it_IT.ts +++ b/src/components/DateTimePicker/Internal/Locale/it_IT.ts @@ -2,31 +2,33 @@ import type { Locale } from '../OcPicker.types'; const locale: Locale = { locale: 'it_IT', - today: 'Oggi', - now: 'Adesso', backToToday: 'Torna ad oggi', - ok: 'OK', clear: 'Cancella', - month: 'Mese', - year: 'Anno', - timeSelect: "Seleziona l'ora", - dateSelect: 'Seleziona la data', - monthSelect: 'Seleziona il mese', - yearSelect: "Seleziona l'anno", - decadeSelect: 'Seleziona il decennio', - yearFormat: 'YYYY', dateFormat: 'D/M/YYYY', - dayFormat: 'D', + dateSelect: 'Seleziona la data', dateTimeFormat: 'D/M/YYYY HH:mm:ss', + dayFormat: 'D', + decadeSelect: 'Seleziona il decennio', + month: 'Mese', monthBeforeYear: true, - previousMonth: 'Il mese scorso (PageUp)', + monthSelect: 'Seleziona il mese', + nextCentury: 'Prossimo secolo', + nextDecade: 'Prossimo decennio', nextMonth: 'Il prossimo mese (PageDown)', - previousYear: "L'anno scorso (Control + sinistra)", nextYear: "L'anno prossimo (Control + destra)", - previousDecade: 'Ultimo decennio', - nextDecade: 'Prossimo decennio', + now: 'Adesso', + ok: 'OK', previousCentury: 'Secolo precedente', - nextCentury: 'Prossimo secolo', + previousDecade: 'Ultimo decennio', + previousMonth: 'Il mese scorso (PageUp)', + previousYear: "L'anno scorso (Control + sinistra)", + shortMonths: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'), + shortWeekDays: 'dom_lun_mar_mer_gio_ven_sab'.split('_'), + timeSelect: "Seleziona l'ora", + today: 'Oggi', + year: 'Anno', + yearFormat: 'YYYY', + yearSelect: "Seleziona l'anno", }; export default locale; diff --git a/src/components/DateTimePicker/Internal/Locale/ja_JP.ts b/src/components/DateTimePicker/Internal/Locale/ja_JP.ts index 775dc7fa7..506363167 100644 --- a/src/components/DateTimePicker/Internal/Locale/ja_JP.ts +++ b/src/components/DateTimePicker/Internal/Locale/ja_JP.ts @@ -2,31 +2,33 @@ import type { Locale } from '../OcPicker.types'; const locale: Locale = { locale: 'ja_JP', - today: '今日', - now: '現在時刻', backToToday: '今日に戻る', - ok: '決定', - timeSelect: '時間を選択', - dateSelect: '日時を選択', - weekSelect: '週を選択', clear: 'クリア', - month: '月', - year: '年', - previousMonth: '前月 (ページアップキー)', - nextMonth: '翌月 (ページダウンキー)', - monthSelect: '月を選択', - yearSelect: '年を選択', - decadeSelect: '年代を選択', - yearFormat: 'YYYY年', - dayFormat: 'D日', dateFormat: 'YYYY年M月D日', + dateSelect: '日時を選択', dateTimeFormat: 'YYYY年M月D日 HH時mm分ss秒', - previousYear: '前年 (Controlを押しながら左キー)', - nextYear: '翌年 (Controlを押しながら右キー)', - previousDecade: '前の年代', + dayFormat: 'D日', + decadeSelect: '年代を選択', + month: '月', + monthSelect: '月を選択', + nextCentury: '次の世紀', nextDecade: '次の年代', + nextMonth: '翌月 (ページダウンキー)', + nextYear: '翌年 (Controlを押しながら右キー)', + now: '現在時刻', + ok: '決定', previousCentury: '前の世紀', - nextCentury: '次の世紀', + previousDecade: '前の年代', + previousMonth: '前月 (ページアップキー)', + previousYear: '前年 (Controlを押しながら左キー)', + shortMonths: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'), + shortWeekDays: '日_月_火_水_木_金_土'.split('_'), + timeSelect: '時間を選択', + today: '今日', + weekSelect: '週を選択', + year: '年', + yearFormat: 'YYYY年', + yearSelect: '年を選択', }; export default locale; diff --git a/src/components/DateTimePicker/Internal/Locale/ko_KR.ts b/src/components/DateTimePicker/Internal/Locale/ko_KR.ts index 240a1cd6d..97af2b064 100644 --- a/src/components/DateTimePicker/Internal/Locale/ko_KR.ts +++ b/src/components/DateTimePicker/Internal/Locale/ko_KR.ts @@ -2,31 +2,33 @@ import type { Locale } from '../OcPicker.types'; const locale: Locale = { locale: 'ko_KR', - today: '오늘', - now: '현재 시각', backToToday: '오늘로 돌아가기', - ok: '확인', clear: '지우기', - month: '월', - year: '년', - timeSelect: '시간 선택', - dateSelect: '날짜 선택', - monthSelect: '달 선택', - yearSelect: '연 선택', - decadeSelect: '연대 선택', - yearFormat: 'YYYY년', dateFormat: 'YYYY-MM-DD', - dayFormat: 'Do', + dateSelect: '날짜 선택', dateTimeFormat: 'YYYY-MM-DD HH:mm:ss', + dayFormat: 'Do', + decadeSelect: '연대 선택', + month: '월', monthBeforeYear: false, - previousMonth: '이전 달 (PageUp)', + monthSelect: '달 선택', + nextCentury: '다음 세기', + nextDecade: '다음 연대', nextMonth: '다음 달 (PageDown)', - previousYear: '이전 해 (Control + left)', nextYear: '다음 해 (Control + right)', - previousDecade: '이전 연대', - nextDecade: '다음 연대', + now: '현재 시각', + ok: '확인', previousCentury: '이전 세기', - nextCentury: '다음 세기', + previousDecade: '이전 연대', + previousMonth: '이전 달 (PageUp)', + previousYear: '이전 해 (Control + left)', + shortMonths: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'), + shortWeekDays: '일_월_화_수_목_금_토'.split('_'), + timeSelect: '시간 선택', + today: '오늘', + year: '년', + yearFormat: 'YYYY년', + yearSelect: '연 선택', }; export default locale; diff --git a/src/components/DateTimePicker/Internal/Locale/ms_MY.ts b/src/components/DateTimePicker/Internal/Locale/ms_MY.ts index 316f0f1e8..a6e82e502 100644 --- a/src/components/DateTimePicker/Internal/Locale/ms_MY.ts +++ b/src/components/DateTimePicker/Internal/Locale/ms_MY.ts @@ -2,31 +2,33 @@ import type { Locale } from '../OcPicker.types'; const locale: Locale = { locale: 'ms_MY', - today: 'Hari ini', - now: 'Sekarang', backToToday: 'Kembali ke hari ini', - ok: 'OK', - timeSelect: 'Pilih masa', - dateSelect: 'Pilih tarikh', - weekSelect: 'Pilih minggu', clear: 'Padam', - month: 'Bulan', - year: 'Tahun', - previousMonth: 'Bulan lepas', - nextMonth: 'Bulan depan', - monthSelect: 'Pilih bulan', - yearSelect: 'Pilih tahun', - decadeSelect: 'Pilih dekad', - yearFormat: 'YYYY', - dayFormat: 'D', dateFormat: 'M/D/YYYY', + dateSelect: 'Pilih tarikh', dateTimeFormat: 'M/D/YYYY HH:mm:ss', - previousYear: 'Tahun lepas (Ctrl+left)', - nextYear: 'Tahun depan (Ctrl+right)', - previousDecade: 'Dekad lepas', + dayFormat: 'D', + decadeSelect: 'Pilih dekad', + month: 'Bulan', + monthSelect: 'Pilih bulan', + nextCentury: 'Abad depan', nextDecade: 'Dekad depan', + nextMonth: 'Bulan depan', + nextYear: 'Tahun depan (Ctrl+right)', + now: 'Sekarang', + ok: 'OK', previousCentury: 'Abad lepas', - nextCentury: 'Abad depan', + previousDecade: 'Dekad lepas', + previousMonth: 'Bulan lepas', + previousYear: 'Tahun lepas (Ctrl+left)', + shortMonths: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'), + shortWeekDays: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'), + timeSelect: 'Pilih masa', + today: 'Hari ini', + weekSelect: 'Pilih minggu', + year: 'Tahun', + yearFormat: 'YYYY', + yearSelect: 'Pilih tahun', }; export default locale; diff --git a/src/components/DateTimePicker/Internal/Locale/nb_NO.ts b/src/components/DateTimePicker/Internal/Locale/nb_NO.ts index 520db8699..6d8c12daa 100644 --- a/src/components/DateTimePicker/Internal/Locale/nb_NO.ts +++ b/src/components/DateTimePicker/Internal/Locale/nb_NO.ts @@ -2,32 +2,36 @@ import type { Locale } from '../OcPicker.types'; const locale: Locale = { locale: 'nb_NO', - today: 'I dag', - now: 'Nå', backToToday: 'Gå til i dag', - ok: 'OK', clear: 'Annuller', - month: 'Måned', - year: 'År', - timeSelect: 'Velg tidspunkt', - dateSelect: 'Velg dato', - weekSelect: 'Velg uke', - monthSelect: 'Velg måned', - yearSelect: 'Velg år', - decadeSelect: 'Velg tiår', - yearFormat: 'YYYY', dateFormat: 'DD.MM.YYYY', - dayFormat: 'DD', + dateSelect: 'Velg dato', dateTimeFormat: 'DD.MM.YYYY HH:mm:ss', + dayFormat: 'DD', + decadeSelect: 'Velg tiår', + month: 'Måned', monthBeforeYear: true, - previousMonth: 'Forrige måned (PageUp)', + monthSelect: 'Velg måned', + nextCentury: 'Neste århundre', + nextDecade: 'Neste tiår', nextMonth: 'Neste måned (PageDown)', - previousYear: 'Forrige år (Control + venstre)', nextYear: 'Neste år (Control + høyre)', - previousDecade: 'Forrige tiår', - nextDecade: 'Neste tiår', + now: 'Nå', + ok: 'OK', previousCentury: 'Forrige århundre', - nextCentury: 'Neste århundre', + previousDecade: 'Forrige tiår', + previousMonth: 'Forrige måned (PageUp)', + previousYear: 'Forrige år (Control + venstre)', + shortMonths: 'jan_feb_mars_april_mai_juni_juli_aug_sep_okt_nov_des'.split( + '_' + ), + shortWeekDays: 'sø_ma_ti_on_to_fr_lø'.split('_'), + timeSelect: 'Velg tidspunkt', + today: 'I dag', + weekSelect: 'Velg uke', + year: 'År', + yearFormat: 'YYYY', + yearSelect: 'Velg år', }; export default locale; diff --git a/src/components/DateTimePicker/Internal/Locale/nl_BE.ts b/src/components/DateTimePicker/Internal/Locale/nl_BE.ts index 91f21de3f..ee2bdcd09 100644 --- a/src/components/DateTimePicker/Internal/Locale/nl_BE.ts +++ b/src/components/DateTimePicker/Internal/Locale/nl_BE.ts @@ -2,31 +2,33 @@ import type { Locale } from '../OcPicker.types'; const locale: Locale = { locale: 'nl_BE', - today: 'Vandaag', - now: 'Nu', backToToday: 'Terug naar vandaag', - ok: 'OK', clear: 'Reset', - month: 'Maand', - year: 'Jaar', - timeSelect: 'Selecteer tijd', - dateSelect: 'Selecteer datum', - monthSelect: 'Kies een maand', - yearSelect: 'Kies een jaar', - decadeSelect: 'Kies een decennium', - yearFormat: 'YYYY', dateFormat: 'D-M-YYYY', - dayFormat: 'D', + dateSelect: 'Selecteer datum', dateTimeFormat: 'D-M-YYYY HH:mm:ss', + dayFormat: 'D', + decadeSelect: 'Kies een decennium', + month: 'Maand', monthBeforeYear: true, - previousMonth: 'Vorige maand (PageUp)', + monthSelect: 'Kies een maand', + nextCentury: 'Volgende eeuw', + nextDecade: 'Volgend decennium', nextMonth: 'Volgende maand (PageDown)', - previousYear: 'Vorig jaar (Control + left)', nextYear: 'Volgend jaar (Control + right)', - previousDecade: 'Vorig decennium', - nextDecade: 'Volgend decennium', + now: 'Nu', + ok: 'OK', previousCentury: 'Vorige eeuw', - nextCentury: 'Volgende eeuw', + previousDecade: 'Vorig decennium', + previousMonth: 'Vorige maand (PageUp)', + previousYear: 'Vorig jaar (Control + left)', + shortMonths: 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'), + shortWeekDays: 'zo_ma_di_wo_do_vr_za'.split('_'), + timeSelect: 'Selecteer tijd', + today: 'Vandaag', + year: 'Jaar', + yearFormat: 'YYYY', + yearSelect: 'Kies een jaar', }; export default locale; diff --git a/src/components/DateTimePicker/Internal/Locale/nl_NL.ts b/src/components/DateTimePicker/Internal/Locale/nl_NL.ts index 205532d24..65d1420d7 100644 --- a/src/components/DateTimePicker/Internal/Locale/nl_NL.ts +++ b/src/components/DateTimePicker/Internal/Locale/nl_NL.ts @@ -2,31 +2,33 @@ import type { Locale } from '../OcPicker.types'; const locale: Locale = { locale: 'nl_NL', - today: 'Vandaag', - now: 'Nu', backToToday: 'Terug naar vandaag', - ok: 'OK', clear: 'Reset', - month: 'Maand', - year: 'Jaar', - timeSelect: 'Selecteer tijd', - dateSelect: 'Selecteer datum', - monthSelect: 'Kies een maand', - yearSelect: 'Kies een jaar', - decadeSelect: 'Kies een decennium', - yearFormat: 'YYYY', dateFormat: 'D-M-YYYY', - dayFormat: 'D', + dateSelect: 'Selecteer datum', dateTimeFormat: 'D-M-YYYY HH:mm:ss', + dayFormat: 'D', + decadeSelect: 'Kies een decennium', + month: 'Maand', monthBeforeYear: true, - previousMonth: 'Vorige maand (PageUp)', + monthSelect: 'Kies een maand', + nextCentury: 'Volgende eeuw', + nextDecade: 'Volgend decennium', nextMonth: 'Volgende maand (PageDown)', - previousYear: 'Vorig jaar (Control + left)', nextYear: 'Volgend jaar (Control + right)', - previousDecade: 'Vorig decennium', - nextDecade: 'Volgend decennium', + now: 'Nu', + ok: 'OK', previousCentury: 'Vorige eeuw', - nextCentury: 'Volgende eeuw', + previousDecade: 'Vorig decennium', + previousMonth: 'Vorige maand (PageUp)', + previousYear: 'Vorig jaar (Control + left)', + shortMonths: 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'), + shortWeekDays: 'zo_ma_di_wo_do_vr_za'.split('_'), + timeSelect: 'Selecteer tijd', + today: 'Vandaag', + year: 'Jaar', + yearFormat: 'YYYY', + yearSelect: 'Kies een jaar', }; export default locale; diff --git a/src/components/DateTimePicker/Internal/Locale/pl_PL.ts b/src/components/DateTimePicker/Internal/Locale/pl_PL.ts index bd2d7d2df..c5e660d9a 100644 --- a/src/components/DateTimePicker/Internal/Locale/pl_PL.ts +++ b/src/components/DateTimePicker/Internal/Locale/pl_PL.ts @@ -2,31 +2,33 @@ import type { Locale } from '../OcPicker.types'; const locale: Locale = { locale: 'pl_PL', - today: 'Dzisiaj', - now: 'Teraz', backToToday: 'Ustaw dzisiaj', - ok: 'OK', clear: 'Wyczyść', - month: 'Miesiąc', - year: 'Rok', - timeSelect: 'Ustaw czas', - dateSelect: 'Ustaw datę', - monthSelect: 'Wybierz miesiąc', - yearSelect: 'Wybierz rok', - decadeSelect: 'Wybierz dekadę', - yearFormat: 'YYYY', dateFormat: 'D/M/YYYY', - dayFormat: 'D', + dateSelect: 'Ustaw datę', dateTimeFormat: 'D/M/YYYY HH:mm:ss', + dayFormat: 'D', + decadeSelect: 'Wybierz dekadę', + month: 'Miesiąc', monthBeforeYear: true, - previousMonth: 'Poprzedni miesiąc (PageUp)', + monthSelect: 'Wybierz miesiąc', + nextCentury: 'Następny wiek', + nextDecade: 'Następna dekada', nextMonth: 'Następny miesiąc (PageDown)', - previousYear: 'Ostatni rok (Ctrl + left)', nextYear: 'Następny rok (Ctrl + right)', - previousDecade: 'Ostatnia dekada', - nextDecade: 'Następna dekada', + now: 'Teraz', + ok: 'OK', previousCentury: 'Ostatni wiek', - nextCentury: 'Następny wiek', + previousDecade: 'Ostatnia dekada', + previousMonth: 'Poprzedni miesiąc (PageUp)', + previousYear: 'Ostatni rok (Ctrl + left)', + shortMonths: 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'), + shortWeekDays: 'ndz_pon_wt_śr_czw_pt_sob'.split('_'), + timeSelect: 'Ustaw czas', + today: 'Dzisiaj', + year: 'Rok', + yearFormat: 'YYYY', + yearSelect: 'Wybierz rok', }; export default locale; diff --git a/src/components/DateTimePicker/Internal/Locale/pt_BR.ts b/src/components/DateTimePicker/Internal/Locale/pt_BR.ts index c95d9b713..f8be5befd 100644 --- a/src/components/DateTimePicker/Internal/Locale/pt_BR.ts +++ b/src/components/DateTimePicker/Internal/Locale/pt_BR.ts @@ -2,46 +2,33 @@ import type { Locale } from '../OcPicker.types'; const locale: Locale = { locale: 'pt_BR', - today: 'Hoje', - now: 'Agora', backToToday: 'Voltar para hoje', - ok: 'OK', clear: 'Limpar', - month: 'Mês', - year: 'Ano', - timeSelect: 'Selecionar hora', - dateSelect: 'Selecionar data', - monthSelect: 'Escolher mês', - yearSelect: 'Escolher ano', - decadeSelect: 'Escolher década', - yearFormat: 'YYYY', dateFormat: 'D/M/YYYY', - dayFormat: 'D', + dateSelect: 'Selecionar data', dateTimeFormat: 'D/M/YYYY HH:mm:ss', + dayFormat: 'D', + decadeSelect: 'Escolher década', + month: 'Mês', monthBeforeYear: false, - previousMonth: 'Mês anterior (PageUp)', + monthSelect: 'Escolher mês', + nextCentury: 'Próximo século', + nextDecade: 'Próxima década', nextMonth: 'Próximo mês (PageDown)', - previousYear: 'Ano anterior (Control + esquerda)', nextYear: 'Próximo ano (Control + direita)', - previousDecade: 'Década anterior', - nextDecade: 'Próxima década', + now: 'Agora', + ok: 'OK', 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', - ], + previousDecade: 'Década anterior', + previousMonth: 'Mês anterior (PageUp)', + previousYear: 'Ano anterior (Control + esquerda)', + shortMonths: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'), + shortWeekDays: 'dom_seg_ter_qua_qui_sex_sáb'.split('_'), + timeSelect: 'Selecionar hora', + today: 'Hoje', + year: 'Ano', + yearFormat: 'YYYY', + yearSelect: 'Escolher ano', }; export default locale; diff --git a/src/components/DateTimePicker/Internal/Locale/pt_PT.ts b/src/components/DateTimePicker/Internal/Locale/pt_PT.ts index 475409420..83a03393a 100644 --- a/src/components/DateTimePicker/Internal/Locale/pt_PT.ts +++ b/src/components/DateTimePicker/Internal/Locale/pt_PT.ts @@ -2,46 +2,33 @@ import type { Locale } from '../OcPicker.types'; const locale: Locale = { locale: 'pt_PT', - today: 'Hoje', - now: 'Agora', backToToday: 'Hoje', - ok: 'OK', clear: 'Limpar', - month: 'Mês', - year: 'Ano', - timeSelect: 'Selecionar hora', - dateSelect: 'Selecionar data', - monthSelect: 'Selecionar mês', - yearSelect: 'Selecionar ano', - decadeSelect: 'Selecionar década', - yearFormat: 'YYYY', dateFormat: 'D/M/YYYY', - dayFormat: 'D', + dateSelect: 'Selecionar data', dateTimeFormat: 'D/M/YYYY HH:mm:ss', + dayFormat: 'D', + decadeSelect: 'Selecionar década', + month: 'Mês', monthBeforeYear: true, - previousMonth: 'Mês anterior (PageUp)', + monthSelect: 'Selecionar mês', + nextCentury: 'Século seguinte', + nextDecade: 'Década seguinte', nextMonth: 'Mês seguinte (PageDown)', - previousYear: 'Ano anterior (Control + left)', nextYear: 'Ano seguinte (Control + right)', - previousDecade: 'Década anterior', - nextDecade: 'Década seguinte', + now: 'Agora', + ok: 'OK', 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', - ], + previousDecade: 'Década anterior', + previousMonth: 'Mês anterior (PageUp)', + previousYear: 'Ano anterior (Control + left)', + shortMonths: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'), + shortWeekDays: 'dom_seg_ter_qua_qui_sex_sab'.split('_'), + timeSelect: 'Selecionar hora', + today: 'Hoje', + year: 'Ano', + yearFormat: 'YYYY', + yearSelect: 'Selecionar ano', }; export default locale; diff --git a/src/components/DateTimePicker/Internal/Locale/ru_RU.ts b/src/components/DateTimePicker/Internal/Locale/ru_RU.ts index 58ce1643f..848ffd4ce 100644 --- a/src/components/DateTimePicker/Internal/Locale/ru_RU.ts +++ b/src/components/DateTimePicker/Internal/Locale/ru_RU.ts @@ -2,31 +2,35 @@ import type { Locale } from '../OcPicker.types'; const locale: Locale = { locale: 'ru_RU', - today: 'Сегодня', - now: 'Сейчас', backToToday: 'Текущая дата', - ok: 'ОК', clear: 'Очистить', - month: 'Месяц', - year: 'Год', - timeSelect: 'Выбрать время', - dateSelect: 'Выбрать дату', - monthSelect: 'Выбрать месяц', - yearSelect: 'Выбрать год', - decadeSelect: 'Выбрать десятилетие', - yearFormat: 'YYYY', dateFormat: 'D-M-YYYY', - dayFormat: 'D', + dateSelect: 'Выбрать дату', dateTimeFormat: 'D-M-YYYY HH:mm:ss', + dayFormat: 'D', + decadeSelect: 'Выбрать десятилетие', + month: 'Месяц', monthBeforeYear: true, - previousMonth: 'Предыдущий месяц (PageUp)', + monthSelect: 'Выбрать месяц', + nextCentury: 'Следующий век', + nextDecade: 'Следущее десятилетие', nextMonth: 'Следующий месяц (PageDown)', - previousYear: 'Предыдущий год (Control + left)', nextYear: 'Следующий год (Control + right)', - previousDecade: 'Предыдущее десятилетие', - nextDecade: 'Следущее десятилетие', + now: 'Сейчас', + ok: 'ОК', previousCentury: 'Предыдущий век', - nextCentury: 'Следующий век', + previousDecade: 'Предыдущее десятилетие', + previousMonth: 'Предыдущий месяц (PageUp)', + previousYear: 'Предыдущий год (Control + left)', + shortMonths: 'янв_февр_мар_апр_мая_июня_июля_авг_сент_окт_нояб_дек'.split( + '_' + ), + shortWeekDays: 'вск_пнд_втр_срд_чтв_птн_сбт'.split('_'), + timeSelect: 'Выбрать время', + today: 'Сегодня', + year: 'Год', + yearFormat: 'YYYY', + yearSelect: 'Выбрать год', }; export default locale; diff --git a/src/components/DateTimePicker/Internal/Locale/sv_SE.ts b/src/components/DateTimePicker/Internal/Locale/sv_SE.ts index 3d48be0d0..8a0d1d54f 100644 --- a/src/components/DateTimePicker/Internal/Locale/sv_SE.ts +++ b/src/components/DateTimePicker/Internal/Locale/sv_SE.ts @@ -2,31 +2,33 @@ import type { Locale } from '../OcPicker.types'; const locale: Locale = { locale: 'sv_SE', - today: 'I dag', - now: 'Nu', backToToday: 'Till idag', - ok: 'OK', clear: 'Avbryt', - month: 'Månad', - year: 'År', - timeSelect: 'Välj tidpunkt', - dateSelect: 'Välj datum', - monthSelect: 'Välj månad', - yearSelect: 'Välj år', - decadeSelect: 'Välj årtionde', - yearFormat: 'YYYY', dateFormat: 'YYYY-MM-DD', - dayFormat: 'D', + dateSelect: 'Välj datum', dateTimeFormat: 'YYYY-MM-DD H:mm:ss', + dayFormat: 'D', + decadeSelect: 'Välj årtionde', + month: 'Månad', monthBeforeYear: true, - previousMonth: 'Förra månaden (PageUp)', + monthSelect: 'Välj månad', + nextCentury: 'Nästa århundrade', + nextDecade: 'Nästa årtionde', nextMonth: 'Nästa månad (PageDown)', - previousYear: 'Föreg år (Control + left)', nextYear: 'Nästa år (Control + right)', - previousDecade: 'Föreg årtionde', - nextDecade: 'Nästa årtionde', + now: 'Nu', + ok: 'OK', previousCentury: 'Föreg århundrade', - nextCentury: 'Nästa århundrade', + previousDecade: 'Föreg årtionde', + previousMonth: 'Förra månaden (PageUp)', + previousYear: 'Föreg år (Control + left)', + shortMonths: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'), + shortWeekDays: 'sön_mån_tis_ons_tor_fre_lör'.split('_'), + timeSelect: 'Välj tidpunkt', + today: 'I dag', + year: 'År', + yearFormat: 'YYYY', + yearSelect: 'Välj år', }; export default locale; diff --git a/src/components/DateTimePicker/Internal/Locale/th_TH.ts b/src/components/DateTimePicker/Internal/Locale/th_TH.ts index c09f8c7a4..a36d34c39 100644 --- a/src/components/DateTimePicker/Internal/Locale/th_TH.ts +++ b/src/components/DateTimePicker/Internal/Locale/th_TH.ts @@ -2,31 +2,34 @@ import type { Locale } from '../OcPicker.types'; const locale: Locale = { locale: 'th_TH', - today: 'วันนี้', - now: 'ตอนนี้', backToToday: 'กลับไปยังวันนี้', - ok: 'ตกลง', clear: 'ลบล้าง', - month: 'เดือน', - year: 'ปี', - timeSelect: 'เลือกเวลา', - dateSelect: 'เลือกวัน', - monthSelect: 'เลือกเดือน', - yearSelect: 'เลือกปี', - decadeSelect: 'เลือกทศวรรษ', - yearFormat: 'YYYY', dateFormat: 'D/M/YYYY', - dayFormat: 'D', + dateSelect: 'เลือกวัน', dateTimeFormat: 'D/M/YYYY HH:mm:ss', + dayFormat: 'D', + decadeSelect: 'เลือกทศวรรษ', + month: 'เดือน', monthBeforeYear: true, - previousMonth: 'เดือนก่อนหน้า (PageUp)', + monthSelect: 'เลือกเดือน', + nextCentury: 'ศตวรรษถัดไป', + nextDecade: 'ทศวรรษถัดไป', nextMonth: 'เดือนถัดไป (PageDown)', - previousYear: 'ปีก่อนหน้า (Control + left)', nextYear: 'ปีถัดไป (Control + right)', - previousDecade: 'ทศวรรษก่อนหน้า', - nextDecade: 'ทศวรรษถัดไป', + now: 'ตอนนี้', + ok: 'ตกลง', previousCentury: 'ศตวรรษก่อนหน้า', - nextCentury: 'ศตวรรษถัดไป', + previousDecade: 'ทศวรรษก่อนหน้า', + previousMonth: 'เดือนก่อนหน้า (PageUp)', + previousYear: 'ปีก่อนหน้า (Control + left)', + shortMonths: + 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split('_'), + shortWeekDays: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), + timeSelect: 'เลือกเวลา', + today: 'วันนี้', + year: 'ปี', + yearFormat: 'YYYY', + yearSelect: 'เลือกปี', }; export default locale; diff --git a/src/components/DateTimePicker/Internal/Locale/tr_TR.ts b/src/components/DateTimePicker/Internal/Locale/tr_TR.ts index c24f107f5..9e9caa8b6 100644 --- a/src/components/DateTimePicker/Internal/Locale/tr_TR.ts +++ b/src/components/DateTimePicker/Internal/Locale/tr_TR.ts @@ -2,31 +2,33 @@ import type { Locale } from '../OcPicker.types'; const locale: Locale = { locale: 'tr_TR', - today: 'Bugün', - now: 'Şimdi', backToToday: 'Bugüne Geri Dön', - ok: 'tamam', clear: 'Temizle', - month: 'Ay', - year: 'Yıl', - timeSelect: 'Zaman Seç', - dateSelect: 'Tarih Seç', - monthSelect: 'Ay Seç', - yearSelect: 'Yıl Seç', - decadeSelect: 'On Yıl Seç', - yearFormat: 'YYYY', dateFormat: 'M/D/YYYY', - dayFormat: 'D', + dateSelect: 'Tarih Seç', dateTimeFormat: 'M/D/YYYY HH:mm:ss', + dayFormat: 'D', + decadeSelect: 'On Yıl Seç', + month: 'Ay', monthBeforeYear: true, - previousMonth: 'Önceki Ay (PageUp)', + monthSelect: 'Ay Seç', + nextCentury: 'Sonraki Yüzyıl', + nextDecade: 'Sonraki On Yıl', nextMonth: 'Sonraki Ay (PageDown)', - previousYear: 'Önceki Yıl (Control + Sol)', nextYear: 'Sonraki Yıl (Control + Sağ)', - previousDecade: 'Önceki On Yıl', - nextDecade: 'Sonraki On Yıl', + now: 'Şimdi', + ok: 'tamam', previousCentury: 'Önceki Yüzyıl', - nextCentury: 'Sonraki Yüzyıl', + previousDecade: 'Önceki On Yıl', + previousMonth: 'Önceki Ay (PageUp)', + previousYear: 'Önceki Yıl (Control + Sol)', + shortMonths: 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'), + shortWeekDays: 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'), + timeSelect: 'Zaman Seç', + today: 'Bugün', + year: 'Yıl', + yearFormat: 'YYYY', + yearSelect: 'Yıl Seç', }; export default locale; diff --git a/src/components/DateTimePicker/Internal/Locale/uk_UA.ts b/src/components/DateTimePicker/Internal/Locale/uk_UA.ts index 0e91c3889..005309561 100644 --- a/src/components/DateTimePicker/Internal/Locale/uk_UA.ts +++ b/src/components/DateTimePicker/Internal/Locale/uk_UA.ts @@ -2,31 +2,35 @@ import type { Locale } from '../OcPicker.types'; const locale: Locale = { locale: 'uk_UA', - today: 'Сьогодні', - now: 'Зараз', backToToday: 'Поточна дата', - ok: 'OK', clear: 'Очистити', - month: 'Місяць', - year: 'Рік', - timeSelect: 'Обрати час', - dateSelect: 'Обрати дату', - monthSelect: 'Обрати місяць', - yearSelect: 'Обрати рік', - decadeSelect: 'Обрати десятиріччя', - yearFormat: 'YYYY', dateFormat: 'D-M-YYYY', - dayFormat: 'D', + dateSelect: 'Обрати дату', dateTimeFormat: 'D-M-YYYY HH:mm:ss', + dayFormat: 'D', + decadeSelect: 'Обрати десятиріччя', + month: 'Місяць', monthBeforeYear: true, - previousMonth: 'Попередній місяць (PageUp)', + monthSelect: 'Обрати місяць', + nextCentury: 'Наступне століття', + nextDecade: 'Наступне десятиріччя', nextMonth: 'Наступний місяць (PageDown)', - previousYear: 'Попередній рік (Control + left)', nextYear: 'Наступний рік (Control + right)', - previousDecade: 'Попереднє десятиріччя', - nextDecade: 'Наступне десятиріччя', + now: 'Зараз', + ok: 'OK', previousCentury: 'Попереднє століття', - nextCentury: 'Наступне століття', + previousDecade: 'Попереднє десятиріччя', + previousMonth: 'Попередній місяць (PageUp)', + previousYear: 'Попередній рік (Control + left)', + shortMonths: 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split( + '_' + ), + shortWeekDays: 'ндл_пнд_втр_срд_чтв_птн_сбт'.split('_'), + timeSelect: 'Обрати час', + today: 'Сьогодні', + year: 'Рік', + yearFormat: 'YYYY', + yearSelect: 'Обрати рік', }; export default locale; diff --git a/src/components/DateTimePicker/Internal/Locale/zh_CN.ts b/src/components/DateTimePicker/Internal/Locale/zh_CN.ts index 0bdd45129..35aa7ed02 100644 --- a/src/components/DateTimePicker/Internal/Locale/zh_CN.ts +++ b/src/components/DateTimePicker/Internal/Locale/zh_CN.ts @@ -2,31 +2,33 @@ import type { Locale } from '../OcPicker.types'; const locale: Locale = { locale: 'zh_CN', - today: '今天', - now: '此刻', backToToday: '返回今天', - ok: '确定', - timeSelect: '选择时间', - dateSelect: '选择日期', - weekSelect: '选择周', clear: '清除', - month: '月', - year: '年', - previousMonth: '上个月 (翻页上键)', - nextMonth: '下个月 (翻页下键)', - monthSelect: '选择月份', - yearSelect: '选择年份', - decadeSelect: '选择年代', - yearFormat: 'YYYY年', - dayFormat: 'D日', dateFormat: 'YYYY年M月D日', + dateSelect: '选择日期', dateTimeFormat: 'YYYY年M月D日 HH时mm分ss秒', - previousYear: '上一年 (Control键加左方向键)', - nextYear: '下一年 (Control键加右方向键)', - previousDecade: '上一年代', + dayFormat: 'D日', + decadeSelect: '选择年代', + month: '月', + monthSelect: '选择月份', + nextCentury: '下一世纪', nextDecade: '下一年代', + nextMonth: '下个月 (翻页下键)', + nextYear: '下一年 (Control键加右方向键)', + now: '此刻', + ok: '确定', previousCentury: '上一世纪', - nextCentury: '下一世纪', + previousDecade: '上一年代', + previousMonth: '上个月 (翻页上键)', + previousYear: '上一年 (Control键加左方向键)', + shortMonths: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'), + shortWeekDays: '周日_周一_周二_周三_周四_周五_周六'.split('_'), + timeSelect: '选择时间', + today: '今天', + weekSelect: '选择周', + year: '年', + yearFormat: 'YYYY年', + yearSelect: '选择年份', }; export default locale; diff --git a/src/components/DateTimePicker/Internal/Locale/zh_TW.ts b/src/components/DateTimePicker/Internal/Locale/zh_TW.ts index 79b17321a..345592470 100644 --- a/src/components/DateTimePicker/Internal/Locale/zh_TW.ts +++ b/src/components/DateTimePicker/Internal/Locale/zh_TW.ts @@ -2,32 +2,33 @@ import type { Locale } from '../OcPicker.types'; const locale: Locale = { locale: 'zh_TW', - - today: '今天', - now: '此刻', backToToday: '返回今天', - ok: '確定', - timeSelect: '選擇時間', - dateSelect: '選擇日期', - weekSelect: '選擇周', clear: '清除', - month: '月', - year: '年', - previousMonth: '上個月 (翻頁上鍵)', - nextMonth: '下個月 (翻頁下鍵)', - monthSelect: '選擇月份', - yearSelect: '選擇年份', - decadeSelect: '選擇年代', - yearFormat: 'YYYY年', - dayFormat: 'D日', dateFormat: 'YYYY年M月D日', + dateSelect: '選擇日期', dateTimeFormat: 'YYYY年M月D日 HH時mm分ss秒', - previousYear: '上一年 (Control鍵加左方向鍵)', - nextYear: '下一年 (Control鍵加右方向鍵)', - previousDecade: '上一年代', + dayFormat: 'D日', + decadeSelect: '選擇年代', + month: '月', + monthSelect: '選擇月份', + nextCentury: '下一世紀', nextDecade: '下一年代', + nextMonth: '下個月 (翻頁下鍵)', + nextYear: '下一年 (Control鍵加右方向鍵)', + now: '此刻', + ok: '確定', previousCentury: '上一世紀', - nextCentury: '下一世紀', + previousDecade: '上一年代', + previousMonth: '上個月 (翻頁上鍵)', + previousYear: '上一年 (Control鍵加左方向鍵)', + shortMonths: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'), + shortWeekDays: '週日_週一_週二_週三_週四_週五_週六'.split('_'), + timeSelect: '選擇時間', + today: '今天', + weekSelect: '選擇周', + year: '年', + yearFormat: 'YYYY年', + yearSelect: '選擇年份', }; export default locale; diff --git a/src/components/Slider/Slider.types.ts b/src/components/Slider/Slider.types.ts index 4e4e6ee1d..ac50b244a 100644 --- a/src/components/Slider/Slider.types.ts +++ b/src/components/Slider/Slider.types.ts @@ -50,13 +50,6 @@ export enum SliderTrackStatus { Warning = 'warning', } -export enum MarkerType { - Benchmark = 'benchmark', - Origin = 'origin', - Delta = 'delta', - Target = 'target', -} - export interface Marker { /** * Custom Marker class names. @@ -70,10 +63,6 @@ export interface Marker { * Custom Marker style. */ style?: React.CSSProperties; - /** - * The marker type. - */ - type?: boolean; } export interface SliderMarker extends Marker { diff --git a/src/components/Upload/Tests/uploadlist.test.tsx b/src/components/Upload/Tests/uploadlist.test.tsx index f01e929ee..334f87e75 100644 --- a/src/components/Upload/Tests/uploadlist.test.tsx +++ b/src/components/Upload/Tests/uploadlist.test.tsx @@ -1351,7 +1351,7 @@ describe('Upload List', () => { { setTestFileList([...info.fileList]); diff --git a/src/components/Upload/Upload.stories.tsx b/src/components/Upload/Upload.stories.tsx index b8a41ce08..41b36dae5 100644 --- a/src/components/Upload/Upload.stories.tsx +++ b/src/components/Upload/Upload.stories.tsx @@ -53,7 +53,7 @@ const snackArgs: Object = { const Basic_Story: ComponentStory = () => { const props: UploadProps = { name: 'file', - action: 'https://www.mocky.io/v2/5cc8019d300000980a055e76', + action: 'http://run.mocky.io/v3/35a4936d-4e32-4088-b9d1-47cd1002fefd', headers: { authorization: 'authorization-text', }, @@ -93,7 +93,7 @@ const Basic_Story: ComponentStory = () => { const Basic_With_Upload_List_Story: ComponentStory = () => { const props: UploadProps = { name: 'file', - action: 'https://www.mocky.io/v2/5cc8019d300000980a055e76', + action: 'http://run.mocky.io/v3/35a4936d-4e32-4088-b9d1-47cd1002fefd', headers: { authorization: 'authorization-text', }, @@ -134,7 +134,7 @@ const Drag_and_Drop_Single_Small_Story: ComponentStory = () => { const props: UploadProps = { name: 'file', maxCount: 1, - action: 'https://www.mocky.io/v2/5cc8019d300000980a055e76', + action: 'http://run.mocky.io/v3/35a4936d-4e32-4088-b9d1-47cd1002fefd', onChange(info) { const { status } = info.file; if (status !== 'uploading') { @@ -158,7 +158,12 @@ const Drag_and_Drop_Single_Small_Story: ComponentStory = () => { }, size: UploadSize.Small, }; - return ; + return ( + <> + + + + ); }; const Drag_and_Drop_Multiple_Small_Story: ComponentStory< @@ -167,7 +172,7 @@ const Drag_and_Drop_Multiple_Small_Story: ComponentStory< const props: UploadProps = { name: 'file', multiple: true, - action: 'https://www.mocky.io/v2/5cc8019d300000980a055e76', + action: 'http://run.mocky.io/v3/35a4936d-4e32-4088-b9d1-47cd1002fefd', onChange(info) { const { status } = info.file; if (status !== 'uploading') { @@ -191,14 +196,19 @@ const Drag_and_Drop_Multiple_Small_Story: ComponentStory< }, size: UploadSize.Small, }; - return ; + return ( + <> + + + + ); }; const Drag_and_Drop_Single_Medium_Story: ComponentStory = () => { const props: UploadProps = { name: 'file', maxCount: 1, - action: 'https://www.mocky.io/v2/5cc8019d300000980a055e76', + action: 'http://run.mocky.io/v3/35a4936d-4e32-4088-b9d1-47cd1002fefd', listType: 'picture', onChange(info) { const { status } = info.file; @@ -222,7 +232,12 @@ const Drag_and_Drop_Single_Medium_Story: ComponentStory = () => { console.log('Dropped files', e.dataTransfer.files); }, }; - return ; + return ( + <> + + + + ); }; const Drag_and_Drop_Multiple_Medium_Story: ComponentStory< @@ -231,7 +246,7 @@ const Drag_and_Drop_Multiple_Medium_Story: ComponentStory< const props: UploadProps = { name: 'file', multiple: true, - action: 'https://www.mocky.io/v2/5cc8019d300000980a055e76', + action: 'http://run.mocky.io/v3/35a4936d-4e32-4088-b9d1-47cd1002fefd', listType: 'picture', onChange(info) { const { status } = info.file; @@ -255,14 +270,19 @@ const Drag_and_Drop_Multiple_Medium_Story: ComponentStory< console.log('Dropped files', e.dataTransfer.files); }, }; - return ; + return ( + <> + + + + ); }; const Drag_and_Drop_Single_Large_Story: ComponentStory = () => { const props: UploadProps = { name: 'file', maxCount: 1, - action: 'https://www.mocky.io/v2/5cc8019d300000980a055e76', + action: 'http://run.mocky.io/v3/35a4936d-4e32-4088-b9d1-47cd1002fefd', listType: 'picture', onChange(info) { const { status } = info.file; @@ -287,7 +307,12 @@ const Drag_and_Drop_Single_Large_Story: ComponentStory = () => { }, size: UploadSize.Large, }; - return ; + return ( + <> + + + + ); }; const Drag_and_Drop_Multiple_Large_Story: ComponentStory< @@ -296,7 +321,7 @@ const Drag_and_Drop_Multiple_Large_Story: ComponentStory< const props: UploadProps = { name: 'file', multiple: true, - action: 'https://www.mocky.io/v2/5cc8019d300000980a055e76', + action: 'http://run.mocky.io/v3/35a4936d-4e32-4088-b9d1-47cd1002fefd', listType: 'picture', onChange(info) { const { status } = info.file; @@ -321,7 +346,12 @@ const Drag_and_Drop_Multiple_Large_Story: ComponentStory< }, size: UploadSize.Large, }; - return ; + return ( + <> + + + + ); }; const Image_List_Story: ComponentStory = () => { @@ -393,7 +423,7 @@ const Image_List_Story: ComponentStory = () => { return ( <> = () => { return ( Date: Fri, 24 Feb 2023 18:15:55 -0800 Subject: [PATCH 2/3] chore: configprovider: ensure dayjs locale is correct --- .../ConfigProvider/ConfigProvider.stories.tsx | 81 ++++++++++++++++++- 1 file changed, 79 insertions(+), 2 deletions(-) diff --git a/src/components/ConfigProvider/ConfigProvider.stories.tsx b/src/components/ConfigProvider/ConfigProvider.stories.tsx index 4c504812d..3317a2f9c 100644 --- a/src/components/ConfigProvider/ConfigProvider.stories.tsx +++ b/src/components/ConfigProvider/ConfigProvider.stories.tsx @@ -80,6 +80,42 @@ import ukUA from '../Locale/uk_UA'; // Yкраїнська import zhCN from '../Locale/zh_CN'; // 中文 (简体) import zhTW from '../Locale/zh_TW'; // 中文 (繁體) +// Dayjs locales +import 'dayjs/locale/cs'; +import 'dayjs/locale/da'; +import 'dayjs/locale/de'; +import 'dayjs/locale/el'; +import 'dayjs/locale/en'; +import 'dayjs/locale/en-gb'; +import 'dayjs/locale/es'; +import 'dayjs/locale/es-do'; +import 'dayjs/locale/es-mx'; +import 'dayjs/locale/fi'; +import 'dayjs/locale/fr'; // Use fr for fr-BE too +import 'dayjs/locale/fr-ca'; +import 'dayjs/locale/he'; +// import 'dayjs/locale/hi'; uncomment when Hindi locale is added +import 'dayjs/locale/hr'; +import 'dayjs/locale/ht'; +import 'dayjs/locale/hu'; +import 'dayjs/locale/it'; +import 'dayjs/locale/ja'; +import 'dayjs/locale/ko'; +import 'dayjs/locale/ms-my'; +import 'dayjs/locale/nb'; +import 'dayjs/locale/nl-be'; +import 'dayjs/locale/nl'; +import 'dayjs/locale/pl'; +import 'dayjs/locale/pt'; +import 'dayjs/locale/pt-br'; +import 'dayjs/locale/ru'; +import 'dayjs/locale/sv'; +import 'dayjs/locale/th'; +import 'dayjs/locale/tr'; +import 'dayjs/locale/uk'; +import 'dayjs/locale/zh-cn'; +import 'dayjs/locale/zh-tw'; + const { Dropzone } = Upload; const { RangePicker } = DatePicker; @@ -690,6 +726,47 @@ const Locale_Story: ComponentStory = (args) => { zh_TW: zhTW, }; + const localeToDayJsLocale = (locale: string): string => { + const localeMap: { [key: string]: string } = { + cs_CZ: 'cs', + da_DK: 'da', + de_DE: 'de', + el_GR: 'el', + en_GB: 'el-gb', + en_US: 'en', + es_ES: 'es', + es_DO: 'es-do', + es_MX: 'es-mx', + fi_FI: 'fi', + fr_BE: 'fr', // use fr for fr-be + fr_CA: 'fr-ca', + fr_FR: 'fr', + he_IL: 'he', + hr_HR: 'hr', + ht_HT: 'ht', + hu_HU: 'hu', + it_IT: 'it', + ja_JP: 'ja', + ko_KR: 'ko', + ms_MY: 'ms-my', + nb_NO: 'nb', + nl_BE: 'nl-be', + nl_NL: 'nl', + pl_PL: 'pl', + pt_BR: 'pt-br', + pt_PT: 'pt', + ru_RU: 'ru', + sv_SE: 'sv', + th_TH: 'th', + tr_TR: 'tr', + uk_UA: 'uk', + zh_CN: 'zh-cn', + zh_TW: 'zh-tw', + }; + + return localeMap[locale] || ''; + }; + const onLocaleChange = useCallback( (options: SelectOption[]) => { options.forEach((option: SelectOption) => { @@ -703,11 +780,11 @@ const Locale_Story: ComponentStory = (args) => { locale: locales[optionString], }); setLocaleValue(optionString); - dayjs.locale(optionString); + dayjs.locale(localeToDayJsLocale(optionString)); } }); }, - [args, locale, localeValues, locales, updateArgs] + [args, dayjs, locale, localeValues, locales, updateArgs] ); const onDateChange: DatePickerProps['onChange'] = ( From f0e69a304104a95c05cfad146f06cbf6c965e434 Mon Sep 17 00:00:00 2001 From: Dylan Kilgore Date: Mon, 27 Feb 2023 10:21:52 -0800 Subject: [PATCH 3/3] chore: picker: update locale short weekdays --- src/components/DateTimePicker/Internal/Locale/da_DK.ts | 2 +- src/components/DateTimePicker/Internal/Locale/el_GR.ts | 2 +- src/components/DateTimePicker/Internal/Locale/es_DO.ts | 2 +- src/components/DateTimePicker/Internal/Locale/es_ES.ts | 2 +- src/components/DateTimePicker/Internal/Locale/es_MX.ts | 2 +- src/components/DateTimePicker/Internal/Locale/fr_BE.ts | 2 +- src/components/DateTimePicker/Internal/Locale/fr_CA.ts | 2 +- src/components/DateTimePicker/Internal/Locale/fr_FR.ts | 2 +- src/components/DateTimePicker/Internal/Locale/he_IL.ts | 2 +- src/components/DateTimePicker/Internal/Locale/hr_HR.ts | 2 +- src/components/DateTimePicker/Internal/Locale/ht_HT.ts | 2 +- src/components/DateTimePicker/Internal/Locale/hu_HU.ts | 2 +- src/components/DateTimePicker/Internal/Locale/it_IT.ts | 2 +- src/components/DateTimePicker/Internal/Locale/ms_MY.ts | 2 +- src/components/DateTimePicker/Internal/Locale/pl_PL.ts | 2 +- src/components/DateTimePicker/Internal/Locale/pt_BR.ts | 2 +- src/components/DateTimePicker/Internal/Locale/pt_PT.ts | 2 +- src/components/DateTimePicker/Internal/Locale/ru_RU.ts | 2 +- src/components/DateTimePicker/Internal/Locale/sv_SE.ts | 2 +- src/components/DateTimePicker/Internal/Locale/th_TH.ts | 2 +- src/components/DateTimePicker/Internal/Locale/tr_TR.ts | 2 +- src/components/DateTimePicker/Internal/Locale/uk_UA.ts | 2 +- src/components/DateTimePicker/Internal/Locale/zh_CN.ts | 2 +- src/components/DateTimePicker/Internal/Locale/zh_TW.ts | 2 +- 24 files changed, 24 insertions(+), 24 deletions(-) diff --git a/src/components/DateTimePicker/Internal/Locale/da_DK.ts b/src/components/DateTimePicker/Internal/Locale/da_DK.ts index 658434335..df6103c7d 100644 --- a/src/components/DateTimePicker/Internal/Locale/da_DK.ts +++ b/src/components/DateTimePicker/Internal/Locale/da_DK.ts @@ -23,7 +23,7 @@ const locale: Locale = { previousMonth: 'Forrige måned (Page Up)', previousYear: 'Forrige år (Ctrl-venstre pil)', shortMonths: 'jan_feb_mar_apr_maj_juni_juli_aug_sept_okt_nov_dec'.split('_'), - shortWeekDays: 'søn_man_tirs_ons_tors_fre_lør'.split('_'), + shortWeekDays: 'sø_ma_ti_on_to_fr_lø'.split('_'), timeSelect: 'Vælg tidspunkt', today: 'I dag', year: 'År', diff --git a/src/components/DateTimePicker/Internal/Locale/el_GR.ts b/src/components/DateTimePicker/Internal/Locale/el_GR.ts index 4321f9516..5f6691c08 100644 --- a/src/components/DateTimePicker/Internal/Locale/el_GR.ts +++ b/src/components/DateTimePicker/Internal/Locale/el_GR.ts @@ -23,7 +23,7 @@ const locale: Locale = { previousMonth: 'Προηγούμενος μήνας (PageUp)', previousYear: 'Προηγούμενο έτος (Control + αριστερά)', shortMonths: 'Ιαν_Φεβ_Μαρ_Απρ_Μαι_Ιουν_Ιουλ_Αυγ_Σεπτ_Οκτ_Νοε_Δεκ'.split('_'), - shortWeekDays: 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'), + shortWeekDays: 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'), timeSelect: 'Επιλογή ώρας', today: 'Σήμερα', year: 'Έτος', diff --git a/src/components/DateTimePicker/Internal/Locale/es_DO.ts b/src/components/DateTimePicker/Internal/Locale/es_DO.ts index 108771c8c..30a86302f 100644 --- a/src/components/DateTimePicker/Internal/Locale/es_DO.ts +++ b/src/components/DateTimePicker/Internal/Locale/es_DO.ts @@ -23,7 +23,7 @@ const locale: Locale = { previousMonth: 'Mes anterior (PageUp)', previousYear: 'Año anterior (Control + left)', shortMonths: 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'), - shortWeekDays: 'dom_lun_mar_mié_jue_vie_sáb'.split('_'), + shortWeekDays: 'do_lu_ma_mi_ju_vi_sá'.split('_'), timeSelect: 'Seleccionar hora', today: 'Hoy', year: 'Año', diff --git a/src/components/DateTimePicker/Internal/Locale/es_ES.ts b/src/components/DateTimePicker/Internal/Locale/es_ES.ts index 539ba6eb9..156cab27b 100644 --- a/src/components/DateTimePicker/Internal/Locale/es_ES.ts +++ b/src/components/DateTimePicker/Internal/Locale/es_ES.ts @@ -23,7 +23,7 @@ const locale: Locale = { previousMonth: 'Mes anterior (PageUp)', previousYear: 'Año anterior (Control + left)', shortMonths: 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'), - shortWeekDays: 'dom_lun_mar_mié_jue_vie_sáb'.split('_'), + shortWeekDays: 'do_lu_ma_mi_ju_vi_sá'.split('_'), timeSelect: 'Seleccionar hora', today: 'Hoy', year: 'Año', diff --git a/src/components/DateTimePicker/Internal/Locale/es_MX.ts b/src/components/DateTimePicker/Internal/Locale/es_MX.ts index 1fca9c006..2a7066ecd 100644 --- a/src/components/DateTimePicker/Internal/Locale/es_MX.ts +++ b/src/components/DateTimePicker/Internal/Locale/es_MX.ts @@ -23,7 +23,7 @@ const locale: Locale = { previousMonth: 'Mes anterior (PageUp)', previousYear: 'Año anterior (Control + Left)', shortMonths: 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'), - shortWeekDays: 'dom_lun_mar_mié_jue_vie_sáb'.split('_'), + shortWeekDays: 'do_lu_ma_mi_ju_vi_sá'.split('_'), timeSelect: 'elegir hora', today: 'Hoy', weekSelect: 'elegir semana', diff --git a/src/components/DateTimePicker/Internal/Locale/fr_BE.ts b/src/components/DateTimePicker/Internal/Locale/fr_BE.ts index 01d7cc93b..e4d1c2e26 100644 --- a/src/components/DateTimePicker/Internal/Locale/fr_BE.ts +++ b/src/components/DateTimePicker/Internal/Locale/fr_BE.ts @@ -25,7 +25,7 @@ const locale: Locale = { shortMonths: 'janv_févr_mars_avr_mai_juin_juil_août_sept_oct_nov_déc'.split( '_' ), - shortWeekDays: 'dim_lun_mar_mer_jeu_ven_sam'.split('_'), + shortWeekDays: 'di_lu_ma_me_je_ve_sa'.split('_'), timeSelect: "Sélectionner l'heure", today: "Aujourd'hui", year: 'Année', diff --git a/src/components/DateTimePicker/Internal/Locale/fr_CA.ts b/src/components/DateTimePicker/Internal/Locale/fr_CA.ts index f494c9105..d469c8532 100644 --- a/src/components/DateTimePicker/Internal/Locale/fr_CA.ts +++ b/src/components/DateTimePicker/Internal/Locale/fr_CA.ts @@ -25,7 +25,7 @@ const locale: Locale = { shortMonths: 'janv_févr_mars_avr_mai_juin_juil_août_sept_oct_nov_déc'.split( '_' ), - shortWeekDays: 'dim_lun_mar_mer_jeu_ven_sam'.split('_'), + shortWeekDays: 'di_lu_ma_me_je_ve_sa'.split('_'), timeSelect: "Sélectionner l'heure", today: "Aujourd'hui", year: 'Année', diff --git a/src/components/DateTimePicker/Internal/Locale/fr_FR.ts b/src/components/DateTimePicker/Internal/Locale/fr_FR.ts index 99178edc5..16f907932 100644 --- a/src/components/DateTimePicker/Internal/Locale/fr_FR.ts +++ b/src/components/DateTimePicker/Internal/Locale/fr_FR.ts @@ -25,7 +25,7 @@ const locale: Locale = { shortMonths: 'janv_févr_mars_avr_mai_juin_juil_août_sept_oct_nov_déc'.split( '_' ), - shortWeekDays: 'dim_lun_mar_mer_jeu_ven_sam'.split('_'), + shortWeekDays: 'di_lu_ma_me_je_ve_sa'.split('_'), timeSelect: "Sélectionner l'heure", today: "Aujourd'hui", year: 'Année', diff --git a/src/components/DateTimePicker/Internal/Locale/he_IL.ts b/src/components/DateTimePicker/Internal/Locale/he_IL.ts index f50f7b4bf..46095bf0a 100644 --- a/src/components/DateTimePicker/Internal/Locale/he_IL.ts +++ b/src/components/DateTimePicker/Internal/Locale/he_IL.ts @@ -23,7 +23,7 @@ const locale: Locale = { previousMonth: 'חודש קודם (PageUp)', previousYear: 'שנה שעברה (Control + left)', shortMonths: 'ינו_פבר_מרץ_אפר_מאי_יונ_יול_אוג_ספט_אוק_נוב_דצמ'.split('_'), - shortWeekDays: 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'), + shortWeekDays: 'א׳_ב׳_ג׳_ד׳_ה׳_ו_ש׳'.split('_'), timeSelect: 'בחר שעה', today: 'היום', weekSelect: 'בחר שבוע', diff --git a/src/components/DateTimePicker/Internal/Locale/hr_HR.ts b/src/components/DateTimePicker/Internal/Locale/hr_HR.ts index fe81684dc..bfdee605f 100644 --- a/src/components/DateTimePicker/Internal/Locale/hr_HR.ts +++ b/src/components/DateTimePicker/Internal/Locale/hr_HR.ts @@ -23,7 +23,7 @@ const locale: Locale = { previousMonth: 'Prošli mjesec (PageUp)', previousYear: 'Prošla godina (Control + left)', shortMonths: 'sij_velj_ožu_tra_svi_lip_srp_kol_ruj_lis_stu_pro'.split('_'), - shortWeekDays: 'ned_pon_uto_sri_čet_pet_sub'.split('_'), + shortWeekDays: 'ne_po_ut_sr_če_pe_su'.split('_'), timeSelect: 'odaberite vrijeme', today: 'Danas', weekSelect: 'Odaberite tjedan', diff --git a/src/components/DateTimePicker/Internal/Locale/ht_HT.ts b/src/components/DateTimePicker/Internal/Locale/ht_HT.ts index 0aba34059..6cde2620c 100644 --- a/src/components/DateTimePicker/Internal/Locale/ht_HT.ts +++ b/src/components/DateTimePicker/Internal/Locale/ht_HT.ts @@ -23,7 +23,7 @@ const locale: Locale = { previousMonth: 'Mwa anvan (PageUp)', previousYear: 'Ane pase a (Control + left)', shortMonths: 'jan_fev_mas_avr_me_jen_jiyè_out_sept_okt_nov_des'.split('_'), - shortWeekDays: 'dim_len_mad_mèk_jed_van_sam'.split('_'), + shortWeekDays: 'di_le_ma_mè_je_va_sa'.split('_'), timeSelect: 'chwazi tan', today: 'Jodi a', weekSelect: 'Chwazi yon semèn', diff --git a/src/components/DateTimePicker/Internal/Locale/hu_HU.ts b/src/components/DateTimePicker/Internal/Locale/hu_HU.ts index 35f706255..ae549eab7 100644 --- a/src/components/DateTimePicker/Internal/Locale/hu_HU.ts +++ b/src/components/DateTimePicker/Internal/Locale/hu_HU.ts @@ -23,7 +23,7 @@ const locale: Locale = { previousMonth: 'Előző hónap (PageUp)', // 'Previous month (PageUp)', previousYear: 'Múlt év (Control + left)', // 'Last year (Control + left)', shortMonths: 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split('_'), - shortWeekDays: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'), + shortWeekDays: 'v_h_k_sze_cs_p_szo'.split('_'), timeSelect: 'Időpont kiválasztása', // 'Select time', today: 'Ma', // 'Today', year: 'Év', // 'Year', diff --git a/src/components/DateTimePicker/Internal/Locale/it_IT.ts b/src/components/DateTimePicker/Internal/Locale/it_IT.ts index 272dae07e..a48dc5835 100644 --- a/src/components/DateTimePicker/Internal/Locale/it_IT.ts +++ b/src/components/DateTimePicker/Internal/Locale/it_IT.ts @@ -23,7 +23,7 @@ const locale: Locale = { previousMonth: 'Il mese scorso (PageUp)', previousYear: "L'anno scorso (Control + sinistra)", shortMonths: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'), - shortWeekDays: 'dom_lun_mar_mer_gio_ven_sab'.split('_'), + shortWeekDays: 'do_lu_ma_me_gi_ve_sa'.split('_'), timeSelect: "Seleziona l'ora", today: 'Oggi', year: 'Anno', diff --git a/src/components/DateTimePicker/Internal/Locale/ms_MY.ts b/src/components/DateTimePicker/Internal/Locale/ms_MY.ts index a6e82e502..35ef1903d 100644 --- a/src/components/DateTimePicker/Internal/Locale/ms_MY.ts +++ b/src/components/DateTimePicker/Internal/Locale/ms_MY.ts @@ -22,7 +22,7 @@ const locale: Locale = { previousMonth: 'Bulan lepas', previousYear: 'Tahun lepas (Ctrl+left)', shortMonths: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'), - shortWeekDays: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'), + shortWeekDays: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'), timeSelect: 'Pilih masa', today: 'Hari ini', weekSelect: 'Pilih minggu', diff --git a/src/components/DateTimePicker/Internal/Locale/pl_PL.ts b/src/components/DateTimePicker/Internal/Locale/pl_PL.ts index c5e660d9a..5c5ce4198 100644 --- a/src/components/DateTimePicker/Internal/Locale/pl_PL.ts +++ b/src/components/DateTimePicker/Internal/Locale/pl_PL.ts @@ -23,7 +23,7 @@ const locale: Locale = { previousMonth: 'Poprzedni miesiąc (PageUp)', previousYear: 'Ostatni rok (Ctrl + left)', shortMonths: 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'), - shortWeekDays: 'ndz_pon_wt_śr_czw_pt_sob'.split('_'), + shortWeekDays: 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'), timeSelect: 'Ustaw czas', today: 'Dzisiaj', year: 'Rok', diff --git a/src/components/DateTimePicker/Internal/Locale/pt_BR.ts b/src/components/DateTimePicker/Internal/Locale/pt_BR.ts index f8be5befd..9048f380d 100644 --- a/src/components/DateTimePicker/Internal/Locale/pt_BR.ts +++ b/src/components/DateTimePicker/Internal/Locale/pt_BR.ts @@ -23,7 +23,7 @@ const locale: Locale = { previousMonth: 'Mês anterior (PageUp)', previousYear: 'Ano anterior (Control + esquerda)', shortMonths: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'), - shortWeekDays: 'dom_seg_ter_qua_qui_sex_sáb'.split('_'), + shortWeekDays: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'), timeSelect: 'Selecionar hora', today: 'Hoje', year: 'Ano', diff --git a/src/components/DateTimePicker/Internal/Locale/pt_PT.ts b/src/components/DateTimePicker/Internal/Locale/pt_PT.ts index 83a03393a..30dc648c2 100644 --- a/src/components/DateTimePicker/Internal/Locale/pt_PT.ts +++ b/src/components/DateTimePicker/Internal/Locale/pt_PT.ts @@ -23,7 +23,7 @@ const locale: Locale = { previousMonth: 'Mês anterior (PageUp)', previousYear: 'Ano anterior (Control + left)', shortMonths: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'), - shortWeekDays: 'dom_seg_ter_qua_qui_sex_sab'.split('_'), + shortWeekDays: 'Do_2ª_3ª_4ª_5ª_6ª_Sa'.split('_'), timeSelect: 'Selecionar hora', today: 'Hoje', year: 'Ano', diff --git a/src/components/DateTimePicker/Internal/Locale/ru_RU.ts b/src/components/DateTimePicker/Internal/Locale/ru_RU.ts index 848ffd4ce..69520f47d 100644 --- a/src/components/DateTimePicker/Internal/Locale/ru_RU.ts +++ b/src/components/DateTimePicker/Internal/Locale/ru_RU.ts @@ -25,7 +25,7 @@ const locale: Locale = { shortMonths: 'янв_февр_мар_апр_мая_июня_июля_авг_сент_окт_нояб_дек'.split( '_' ), - shortWeekDays: 'вск_пнд_втр_срд_чтв_птн_сбт'.split('_'), + shortWeekDays: 'вс_пн_вт_ср_чт_пт_сб'.split('_'), timeSelect: 'Выбрать время', today: 'Сегодня', year: 'Год', diff --git a/src/components/DateTimePicker/Internal/Locale/sv_SE.ts b/src/components/DateTimePicker/Internal/Locale/sv_SE.ts index 8a0d1d54f..8906e06ee 100644 --- a/src/components/DateTimePicker/Internal/Locale/sv_SE.ts +++ b/src/components/DateTimePicker/Internal/Locale/sv_SE.ts @@ -23,7 +23,7 @@ const locale: Locale = { previousMonth: 'Förra månaden (PageUp)', previousYear: 'Föreg år (Control + left)', shortMonths: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'), - shortWeekDays: 'sön_mån_tis_ons_tor_fre_lör'.split('_'), + shortWeekDays: 'sö_må_ti_on_to_fr_lö'.split('_'), timeSelect: 'Välj tidpunkt', today: 'I dag', year: 'År', diff --git a/src/components/DateTimePicker/Internal/Locale/th_TH.ts b/src/components/DateTimePicker/Internal/Locale/th_TH.ts index a36d34c39..ae3675f82 100644 --- a/src/components/DateTimePicker/Internal/Locale/th_TH.ts +++ b/src/components/DateTimePicker/Internal/Locale/th_TH.ts @@ -24,7 +24,7 @@ const locale: Locale = { previousYear: 'ปีก่อนหน้า (Control + left)', shortMonths: 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split('_'), - shortWeekDays: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), + shortWeekDays: 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'), timeSelect: 'เลือกเวลา', today: 'วันนี้', year: 'ปี', diff --git a/src/components/DateTimePicker/Internal/Locale/tr_TR.ts b/src/components/DateTimePicker/Internal/Locale/tr_TR.ts index 9e9caa8b6..542f72f7e 100644 --- a/src/components/DateTimePicker/Internal/Locale/tr_TR.ts +++ b/src/components/DateTimePicker/Internal/Locale/tr_TR.ts @@ -23,7 +23,7 @@ const locale: Locale = { previousMonth: 'Önceki Ay (PageUp)', previousYear: 'Önceki Yıl (Control + Sol)', shortMonths: 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'), - shortWeekDays: 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'), + shortWeekDays: 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'), timeSelect: 'Zaman Seç', today: 'Bugün', year: 'Yıl', diff --git a/src/components/DateTimePicker/Internal/Locale/uk_UA.ts b/src/components/DateTimePicker/Internal/Locale/uk_UA.ts index 005309561..2c3b06142 100644 --- a/src/components/DateTimePicker/Internal/Locale/uk_UA.ts +++ b/src/components/DateTimePicker/Internal/Locale/uk_UA.ts @@ -25,7 +25,7 @@ const locale: Locale = { shortMonths: 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split( '_' ), - shortWeekDays: 'ндл_пнд_втр_срд_чтв_птн_сбт'.split('_'), + shortWeekDays: 'нд_пн_вт_ср_чт_пт_сб'.split('_'), timeSelect: 'Обрати час', today: 'Сьогодні', year: 'Рік', diff --git a/src/components/DateTimePicker/Internal/Locale/zh_CN.ts b/src/components/DateTimePicker/Internal/Locale/zh_CN.ts index 35aa7ed02..07d2a52f2 100644 --- a/src/components/DateTimePicker/Internal/Locale/zh_CN.ts +++ b/src/components/DateTimePicker/Internal/Locale/zh_CN.ts @@ -22,7 +22,7 @@ const locale: Locale = { previousMonth: '上个月 (翻页上键)', previousYear: '上一年 (Control键加左方向键)', shortMonths: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'), - shortWeekDays: '周日_周一_周二_周三_周四_周五_周六'.split('_'), + shortWeekDays: '日_一_二_三_四_五_六'.split('_'), timeSelect: '选择时间', today: '今天', weekSelect: '选择周', diff --git a/src/components/DateTimePicker/Internal/Locale/zh_TW.ts b/src/components/DateTimePicker/Internal/Locale/zh_TW.ts index 345592470..e6b541b4c 100644 --- a/src/components/DateTimePicker/Internal/Locale/zh_TW.ts +++ b/src/components/DateTimePicker/Internal/Locale/zh_TW.ts @@ -22,7 +22,7 @@ const locale: Locale = { previousMonth: '上個月 (翻頁上鍵)', previousYear: '上一年 (Control鍵加左方向鍵)', shortMonths: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'), - shortWeekDays: '週日_週一_週二_週三_週四_週五_週六'.split('_'), + shortWeekDays: '日_一_二_三_四_五_六'.split('_'), timeSelect: '選擇時間', today: '今天', weekSelect: '選擇周',