From b1f176260b8615da91bbcf7930e7a2a2e3e7f961 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sat, 24 Jul 2021 21:40:21 +0100 Subject: [PATCH] :world_map: Adds default value for language, English --- src/utils/defaults.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/utils/defaults.js b/src/utils/defaults.js index bde25c4c..d146508c 100644 --- a/src/utils/defaults.js +++ b/src/utils/defaults.js @@ -11,6 +11,8 @@ module.exports = { }, /* Default appConfig to be used, if user does not specify their own */ appConfig: {}, + /* Default language code */ + language: 'en', /* Default icon size to be applied on initial load */ iconSize: 'medium', /* Default layout to be applied on initial load */ @@ -58,6 +60,7 @@ module.exports = { }, /* Key names for local storage identifiers */ localStorageKeys: { + LANGUAGE: 'language', HIDE_WELCOME_BANNER: 'hideWelcomeHelpers', LAYOUT_ORIENTATION: 'layoutOrientation', COLLAPSE_STATE: 'collapseState', @@ -87,6 +90,7 @@ module.exports = { REBUILD_APP: 'REBUILD_APP', THEME_MAKER: 'THEME_MAKER', ABOUT_APP: 'ABOUT_APP', + LANG_SWITCHER: 'LANG_SWITCHER', }, /* Key names for the top-level objects in conf.yml */ topLevelConfKeys: {