Trying to get available list of langs in profile
This commit is contained in:
parent
e223ddb643
commit
829fae4f07
2 changed files with 1 additions and 2 deletions
|
|
@ -41,7 +41,6 @@ const i18nOpts = {
|
|||
}
|
||||
},
|
||||
whitelist: ['es', 'en', 'gl'], // allowed languages
|
||||
preload: ['es', 'en', 'gl'],
|
||||
load: 'languageOnly', // 'es' o 'en', previously: 'all', // es-ES -> es, en-US -> en
|
||||
debug: shouldDebug,
|
||||
ns: 'common',
|
||||
|
|
|
|||
|
|
@ -202,7 +202,7 @@ class Profile extends React.Component {
|
|||
{langName[i18n.language]}
|
||||
</button>
|
||||
<div className="dropdown-menu">
|
||||
{i18n.languages.map(lang => (
|
||||
{Object.keys(i18n.services.resourceStore.data).map(lang => (
|
||||
<button
|
||||
className="dropdown-item"
|
||||
onClick={() => this.onLangSelect(lang)}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue