jiti-meet/react/features/base/translation/ConfigLanguageDetector.js

26 lines
466 B
JavaScript

/* global config */
/**
* Custom language detection, just returns the config property if any.
*/
export default {
/**
* Name of the language detector.
*/
name: 'configLanguageDetector',
/**
* The actual lookup.
*
* @returns {string} the default language if any.
*/
lookup() {
return config.defaultLanguage;
},
/**
* Doesn't support caching.
*/
cacheUserLanguage: Function.prototype
};