Skip to content
Snippets Groups Projects
Commit 4a9a8337 authored by KDSBrowne's avatar KDSBrowne
Browse files

add browser locale detection override prop to settings.yml

parent 3093c75b
No related branches found
No related tags found
No related merge requests found
......@@ -81,7 +81,8 @@ WebApp.connectHandlers.use('/check', (req, res) => {
WebApp.connectHandlers.use('/locale', (req, res) => {
const APP_CONFIG = Meteor.settings.public.app;
const fallback = APP_CONFIG.defaultSettings.application.fallbackLocale;
const browserLocale = req.query.locale.split(/[-_]/g);
const override = APP_CONFIG.defaultSettings.application.overrideLocale;
const browserLocale = override ? override.split(/[-_]/g) : req.query.locale.split(/[-_]/g);
const localeList = [fallback];
const usableLocales = AVAILABLE_LOCALES
......
......@@ -29,6 +29,7 @@ public:
chatAudioAlerts: false
chatPushAlerts: false
fallbackLocale: en
overrideLocale:
audio:
inputDeviceId: undefined
outputDeviceId: undefined
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment