X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fstore.js;h=94dcb0656dd544aac5466794ff62338a92a51645;hp=1cfb7c5a2ba3934efae21113a47c2a98ae49a07a;hb=4f8871051c030acd51172b73cd20aedce687c2a8;hpb=603b8a8b4a854efb168953da70e7b43ae99b50d9 diff --git a/client/src/store.js b/client/src/store.js index 1cfb7c5a..94dcb065 100644 --- a/client/src/store.js +++ b/client/src/store.js @@ -55,9 +55,9 @@ export const store = this.state.conn.onclose = this.socketCloseListener; const supportedLangs = ["en","es","fr"]; this.state.lang = localStorage["lang"] || - supportedLangs.includes(navigator.language) + (supportedLangs.includes(navigator.language) ? navigator.language - : "en"; + : "en"); this.setTranslations(); }, setTranslations: async function() {