Commit 240cdc0
fix(ubuntu_localizations): use fallback if locale is 'POSIX' or 'und' (#476)
If `Intl.defaultLocale` is initialized with `und` (undefined) or `POSIX`
localizing a `DateTime` with `DateFormat` (and possibly other things)
will throw an exception. See
ubuntu/app-center#1659 for more details.
A simple workaround has been suggested
[here](ubuntu/app-center#1884 (comment)).
---------
Co-authored-by: ashuntu <ashton.nelson@canonical.com>1 parent eb3a19a commit 240cdc0
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
| |||
0 commit comments