Merge pull request #104 in DNS/adguard-dns from fix/442 to master

* commit '903c1da993c24ab4a338a3cee22c947a8fcc2e19':
  Remove change_language call on loading app
  Pass two-letter language code
This commit is contained in:
Ildar Kamalov 2018-11-26 12:26:45 +03:00
commit 4ae91f0c1b
1 changed files with 1 additions and 3 deletions

View File

@ -39,9 +39,7 @@ class App extends Component {
const { processing, language } = this.props.dashboard;
if (!processing) {
if (!language) {
this.props.changeLanguage(i18n.language);
} else {
if (language) {
i18n.changeLanguage(language);
}
}