add support to xx@xxxx localization files
This commit is contained in:
parent
a17679834f
commit
c6c65c4aa0
@ -157,6 +157,7 @@ class IntlStartup extends Component {
|
||||
render() {
|
||||
const { fetching, normalizedLocale, messages } = this.state;
|
||||
const { children } = this.props;
|
||||
const locale = normalizedLocale?.replace('@', '-');
|
||||
|
||||
return (
|
||||
<>
|
||||
@ -164,7 +165,7 @@ class IntlStartup extends Component {
|
||||
|
||||
{normalizedLocale
|
||||
&& (
|
||||
<IntlProvider fallbackOnEmptyString={FALLBACK_ON_EMPTY_STRING} locale={normalizedLocale} messages={messages}>
|
||||
<IntlProvider fallbackOnEmptyString={FALLBACK_ON_EMPTY_STRING} locale={locale} messages={messages}>
|
||||
{children}
|
||||
</IntlProvider>
|
||||
)
|
||||
|
@ -22,5 +22,9 @@
|
||||
"oc": {
|
||||
"englishName": "Occitan",
|
||||
"nativeName": "Occitan"
|
||||
},
|
||||
"uz@Cyrl": {
|
||||
"englishName": "Uzbek (Cyrillic)",
|
||||
"nativeName": "ўзбек тили"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user