mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 00:24:47 -07:00
Webatrice: improve language dropdown (#4589)
* useLocaleSort hook, translate language dropdown * add pt-BR translation * fix pt-BR flag Co-authored-by: Jeremy Letto <jeremy.letto@datasite.com>
This commit is contained in:
parent
21f7dd5eba
commit
533045445a
10 changed files with 314 additions and 278 deletions
|
|
@ -17,9 +17,9 @@ i18n
|
|||
.use(initReactI18next)
|
||||
// for all options read: https://www.i18next.com/overview/configuration-options
|
||||
.init({
|
||||
fallbackLng: Language['en'],
|
||||
fallbackLng: Language['en-US'],
|
||||
resources: {
|
||||
[Language['en']]: { translation },
|
||||
[Language['en-US']]: { translation },
|
||||
},
|
||||
partialBundledLanguages: true,
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue