Files
jitsi-meet/react/features/base/i18n/configLanguageDetector.ts

29 lines
521 B
TypeScript
Raw Normal View History

2017-02-28 20:55:12 -06:00
declare let config: any;
/**
* Custom language detection, just returns the config property if any.
*/
export default {
/**
2017-02-28 20:55:12 -06:00
* Does not support caching.
*
* @returns {void}
*/
2017-02-28 20:55:12 -06:00
cacheUserLanguage: Function.prototype,
/**
2017-02-28 20:55:12 -06:00
* Looks the language up in the config.
*
* @returns {string} The default language if any.
*/
lookup() {
return config.defaultLanguage;
},
/**
2017-02-28 20:55:12 -06:00
* Name of the language detector.
*/
2017-02-28 20:55:12 -06:00
name: 'configLanguageDetector'
};