-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Several date/time components use locales correctly (#2440)
- v./29.5
- v2.8.0-rc.1
- v2.8.0-rc.0
- v2.7.3
- v2.7.2
- v2.7.1
- v2.7.0
- v2.7.0-rc.2
- v2.7.0-rc.1
- v2.7.0-rc.0
- v2.6.3
- v2.6.2
- v2.6.2-rc.0
- v2.6.1
- v2.6.0
- v2.6.0-rc.5
- v2.6.0-rc.4
- v2.6.0-rc.3
- v2.6.0-rc.2
- v2.6.0-rc.1
- v2.6.0-rc.0
- v2.5.2
- v2.5.1
- v2.5.0
- v2.5.0-rc.3
- v2.5.0-rc.2
- v2.5.0-rc.1
- v2.5.0-rc.0
- v2.4.1-rc.0
- v2.4.0
- v2.4.0-rc.4
- v2.4.0-rc.3
- v2.4.0-rc.2
- v2.4.0-rc.1
- v2.4.0-rc.0
- v2.3.1-rc.0
- v2.3.0
- v2.3.0-rc.3
- v2.3.0-rc.2
- v2.3.0-rc.1
- v2.3.0-rc.0
- v2.2.0
- v2.2.0-rc.3
- v2.2.0-rc.2
- v2.2.0-rc.1
- v2.2.0-rc.0
- v2.1.2
- v2.1.1
- v2.1.0
- v2.1.0-rc.3
- v2.1.0-rc.2
- v2.1.0-rc.1
- v2.1.0-rc.0
- v2.0.1
- v2.0.0
- v2.0.0-rc.6
- v2.0.0-rc.5
- v2.0.0-rc.4
- v2.0.0-rc.3
- v2.0.0-rc.2
- v2.0.0-rc.1
- v2.0.0-rc.0
- v1.24.16
- v1.24.15
- v1.24.14
- v1.24.13
- v1.24.12
- v1.24.11
- v1.24.10
- v1.24.9
- v1.24.8
- v1.24.7
- v1.24.6
- v1.24.5
- v1.24.4
- v1.24.3
- v1.24.2
- v1.24.1
- v1.24.0
- v1.24.0-rc.4
- v1.24.0-rc.3
- v1.24.0-rc.2
- v1.24.0-rc.1
- v1.24.0-rc.0
- v1.23.3
- v1.23.2
- v1.23.1
- v1.23.1-rc.0
- v1.23.0
- v1.23.0-rc.5
- v1.23.0-rc.4
- v1.23.0-rc.3
- v1.23.0-rc.2
- v1.23.0-rc.1
- v1.23.0-rc.0
- v1.22.1-rc.0
- v1.22.0
- v1.22.0-rc.3
- v1.22.0-rc.2
- v1.22.0-rc.1
- v1.22.0-rc.0
- v1.21.2
- v1.21.1
- v1.21.0
- v1.21.0-rc.5
- v1.21.0-rc.4
- v1.21.0-rc.3
- v1.21.0-rc.2
- v1.21.0-rc.1
- v1.21.0-rc.0
- v1.20.1
- v1.20.0
- v1.20.0-rc.3
- v1.20.0-rc.2
- v1.20.0-rc.1
- v1.20.0-rc.0
- v1.19.1
- v1.19.0
- v1.19.0-rc.3
- v1.19.0-rc.2
- v1.19.0-rc.1
- v1.19.0-rc.0
- v1.18.1-rc.0
- v1.18.0
- v1.18.0-rc.2
- v1.18.0-rc.1
- v1.18.0-rc.0
- v1.17.4
- v1.17.3
- v1.17.2
- v1.17.1
- v1.17.0
- v1.17.0-rc.2
- v1.17.0-rc.1
- v1.17.0-rc.0
- v1.16.0
- v1.16.0-rc.4
- v1.16.0-rc.3
- v1.16.0-rc.2
- v1.16.0-rc.1
- v1.16.0-rc.0
- v1.15.1
- v1.15.0
- v1.15.0-rc.2
- v1.15.0-rc.1
- v1.15.0-rc.0
- v1.14.7
- v1.14.6
- v1.14.5
- v1.14.4
- v1.14.3
- v1.14.2
- v1.14.1
- v1.14.0
- v1.14.0-rc.2
- v1.14.0-rc.1
- v1.14.0-rc.0
- v1.13.3
- v1.13.2
- v1.13.1
- v1.13.0
- v1.13.0-rc.5
- v1.13.0-rc.4
- v1.13.0-rc.3
- v1.13.0-rc.2
- v1.13.0-rc.1
- v1.13.0-rc.0
- v1.12.2
- v1.12.1
- v1.12.0
- v1.12.0-rc.3
- v1.12.0-rc.2
- v1.12.0-rc.1
- v1.12.0-rc.0
- v1.11.3
- v1.11.2
- v1.11.1
- v1.11.0
- v1.11.0-rc.4
- v1.11.0-rc.3
- v1.11.0-rc.2
- v1.11.0-rc.1
- v1.11.0-rc.0
- v1.10.7
- v1.10.6
- v1.10.5
- v1.10.4
- v1.10.4-rc.0
- v1.10.3
- v1.10.2
- v1.10.1
- v1.10.0
- v1.9.5
- v1.9.4
- v1.9.3
- v1.9.2
- v1.9.1
- v1.9.0
- v1.8.0
- v1.7.5
- v1.7.4
- v1.7.3
- v1.7.2
- v1.7.1
- v1.7.0
- v1.6.0
- v1.5.0
- v1.4.0
- v1.3.1
- v1.3.0
- v1.2.9
- v.1.2.7
- v1.2.6
- v1.2.5
- v1.2.4
- v1.2.3
- v1.2.2
- v1.2.1
- v1.2.0
- v1.1.2
- v1.1.1
- v1.1.0
- v1.0.2
- v1.0.1
- v1.0.0
- v1.0.0-rc.16
- v1.0.0-rc.15
- v1.0.0-rc.14
- v1.0.0-rc.13
- v1.0.0-rc.12
- v1.0.0-rc.11
- v1.0.0-rc.10
- v0.33.0
- v0.31.27
- v0.31.26
- v0.31.25
- v0.31.24
- v0.31.23
- v0.31.22
- v0.31.21
- v0.31.20
- v0.31.19
- v0.31.18
- v0.31.17
- v0.31.16
- v0.31.15
- v0.31.14
- v0.31.13
- v0.31.12
- v0.31.11
- v0.31.10
- v0.31.9
- v0.31.8
- v0.31.7
- v0.31.6
- v0.31.1
- v0.31.0
- v0.29.20
- v0.29.19
- v0.29.18
- v0.29.17
- v0.29.16
- v0.29.15
- v0.29.9
- v0.29.8
- v0.29.6
- v0.29.5
- v0/29/5
- v0.29.4
- v0.29.3
- v0.29.2
- v0.29.1
- v0.29.0
- v0.29
- v0.27.3
- v0.27.2
- v0.27.1
- v0.27.0
- v0.0.0-dd8065714
- v0.0.0-7b49a7ff1
1 parent
095204f
commit dd87a53
Showing
11 changed files
with
70 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import LocaleData from "./LocaleData.js"; | ||
|
||
const cache = new Map(); | ||
|
||
const getCachedLocaleDataInstance = locale => { | ||
if (!cache.has(locale)) { | ||
cache.set(locale, LocaleData.getInstance(locale)); | ||
} | ||
|
||
return cache.get(locale); | ||
}; | ||
|
||
export default getCachedLocaleDataInstance; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters