Trying to get available list of langs in profile

This commit is contained in:
Vicente J. Ruiz Jurado 2018-08-17 05:39:03 +02:00
parent e223ddb643
commit 829fae4f07
2 changed files with 1 additions and 2 deletions

View file

@ -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',

View file

@ -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)}