jiti-meet/react/features/base/i18n/configLanguageDetector.js

30 lines
536 B
JavaScript

/* @flow */
declare var config: Object;
/**
* Custom language detection, just returns the config property if any.
*/
export default {
/**
* Does not support caching.
*
* @returns {void}
*/
cacheUserLanguage: Function.prototype,
/**
* 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'
};