Files
jitsi-meet/react/features/base/i18n/configLanguageDetector.ts
Horatiu Muresan f1339644b0 fix(url-params) Sanitize url params (#17070)
- check the passed lang param is in allowed languages
- validate http/https on deployment URLs
2026-03-03 13:28:53 +02:00

25 lines
462 B
TypeScript

import { noop } from 'lodash-es';
declare let config: any;
/**
* Custom language detection, just returns the config property if any.
*/
export default {
cacheUserLanguage: noop,
/**
* Looks the language up in the config.
*
* @returns {string} The default language if any.
*/
lookup() {
return config.defaultLanguage;
},
/**
* Name of the language detector.
*/
name: 'configLanguageDetector'
};