You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ConfigLanguageDetector.js 466B

12345678910111213141516171819202122232425
  1. /* global config */
  2. /**
  3. * Custom language detection, just returns the config property if any.
  4. */
  5. export default {
  6. /**
  7. * Name of the language detector.
  8. */
  9. name: 'configLanguageDetector',
  10. /**
  11. * The actual lookup.
  12. *
  13. * @returns {string} the default language if any.
  14. */
  15. lookup() {
  16. return config.defaultLanguage;
  17. },
  18. /**
  19. * Doesn't support caching.
  20. */
  21. cacheUserLanguage: Function.prototype
  22. };