This commit is contained in:
Sean Yesmunt 2019-12-06 10:42:05 -05:00
parent d4256feabd
commit 26499e06a3

View file

@ -91,7 +91,7 @@ export function doSetDarkTime(value, options) {
export function doSetLanguage(language) {
return (dispatch, getState) => {
const { settings } = getState();
if (settings.language !== language || (settings.loadedLanguages && !settings.loadedLanguages.include(language))) {
if (settings.language !== language || (settings.loadedLanguages && !settings.loadedLanguages.includes(language))) {
// this should match the behavior/logic in index-web.html
fetch('https://lbry.com/i18n/get/lbry-desktop/app-strings/' + language + '.json')
.then(r => r.json())