From 5f45dfa710f4ba4cc66149abff6ff502a623d9d6 Mon Sep 17 00:00:00 2001 From: TJ Egan Date: Wed, 27 Jan 2021 09:37:34 -0800 Subject: [PATCH 1/2] fix(DatePicker): add more locales to valid locales --- .../react/src/components/DatePicker/DatePicker.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/packages/react/src/components/DatePicker/DatePicker.js b/packages/react/src/components/DatePicker/DatePicker.js index a2721ae000dc..99c3383f874d 100644 --- a/packages/react/src/components/DatePicker/DatePicker.js +++ b/packages/react/src/components/DatePicker/DatePicker.js @@ -162,9 +162,11 @@ export default class DatePicker extends Component { locale: PropTypes.oneOf([ 'ar', // Arabic 'at', // Austria + 'az', // Azerbaijan 'be', // Belarusian 'bg', // Bulgarian 'bn', // Bangla + 'bs', // Bosnia 'cat', // Catalan 'cs', // Czech 'cy', // Welsh @@ -176,16 +178,22 @@ export default class DatePicker extends Component { 'et', // Estonian 'fa', // Persian 'fi', // Finnish + 'fo', // Faroese 'fr', // French + 'ga', // Gaelic 'gr', // Greek 'he', // Hebrew 'hi', // Hindi 'hr', // Croatian 'hu', // Hungarian 'id', // Indonesian + 'is', // Icelandic 'it', // Italian 'ja', // Japanese + 'ka', // Georgian + 'km', // Khmer 'ko', // Korean + 'kz', // Kazakh 'lt', // Lithuanian 'lv', // Latvian 'mk', // Macedonian @@ -203,12 +211,15 @@ export default class DatePicker extends Component { 'sk', // Slovak 'sl', // Slovenian 'sq', // Albanian + 'sr-cyr', // Serbian Cyrillic 'sr', // Serbian 'sv', // Swedish 'th', // Thai 'tr', // Turkish 'uk', // Ukrainian + 'uz', // Uzbek 'vn', // Vietnamese + 'zh-tw', // Mandarin Traditional 'zh', // Mandarin ]), From 371edcbec41baffb0c75f2115e447aff7a039098 Mon Sep 17 00:00:00 2001 From: TJ Egan Date: Wed, 27 Jan 2021 12:05:41 -0800 Subject: [PATCH 2/2] chore(snapshot): update snapshots --- .../__tests__/__snapshots__/PublicAPI-test.js.snap | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap b/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap index 96f9df4e065f..3adc579ba009 100644 --- a/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap +++ b/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap @@ -2079,9 +2079,11 @@ Map { Array [ "ar", "at", + "az", "be", "bg", "bn", + "bs", "cat", "cs", "cy", @@ -2093,16 +2095,22 @@ Map { "et", "fa", "fi", + "fo", "fr", + "ga", "gr", "he", "hi", "hr", "hu", "id", + "is", "it", "ja", + "ka", + "km", "ko", + "kz", "lt", "lv", "mk", @@ -2120,12 +2128,15 @@ Map { "sk", "sl", "sq", + "sr-cyr", "sr", "sv", "th", "tr", "uk", + "uz", "vn", + "zh-tw", "zh", ], ],