mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-07-18 17:27:45 +00:00
- check the passed lang param is in allowed languages - validate http/https on deployment URLs
25 lines
462 B
TypeScript
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'
|
|
};
|