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

29 lines
521 B
TypeScript
Raw Normal View History

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