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.

languageDetector.native.js 412B

123456789101112131415161718192021222324
  1. /* @flow */
  2. import locale from 'react-native-locale-detector';
  3. /**
  4. * The singleton language detector for React Native which uses the system-wide
  5. * locale.
  6. */
  7. export default {
  8. /**
  9. * Does not support caching.
  10. *
  11. * @returns {void}
  12. */
  13. cacheUserLanguage: Function.prototype,
  14. detect() {
  15. return locale;
  16. },
  17. init: Function.prototype,
  18. type: 'languageDetector'
  19. };