Skip to content

Commit

Permalink
fix(DatePicker): add more locales to valid locales (#7666)
Browse files Browse the repository at this point in the history
* fix(DatePicker): add more locales to valid locales

* chore(snapshot): update snapshots
  • Loading branch information
tw15egan authored Jan 28, 2021
1 parent 1f4d506 commit 12451fc
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2082,9 +2082,11 @@ Map {
Array [
"ar",
"at",
"az",
"be",
"bg",
"bn",
"bs",
"cat",
"cs",
"cy",
Expand All @@ -2096,16 +2098,22 @@ Map {
"et",
"fa",
"fi",
"fo",
"fr",
"ga",
"gr",
"he",
"hi",
"hr",
"hu",
"id",
"is",
"it",
"ja",
"ka",
"km",
"ko",
"kz",
"lt",
"lv",
"mk",
Expand All @@ -2123,12 +2131,15 @@ Map {
"sk",
"sl",
"sq",
"sr-cyr",
"sr",
"sv",
"th",
"tr",
"uk",
"uz",
"vn",
"zh-tw",
"zh",
],
],
Expand Down
11 changes: 11 additions & 0 deletions packages/react/src/components/DatePicker/DatePicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
]),

Expand Down

0 comments on commit 12451fc

Please sign in to comment.