How to use the @instructure/ui-i18n.Locale.browserLocale function in @instructure/ui-i18n

To help you get started, we’ve selected a few @instructure/ui-i18n examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github instructure / instructure-ui / packages / ui-forms / src / TimeInput / index.js View on Github external
locale () {
    return this.props.locale || this.context.locale || Locale.browserLocale()
  }
github instructure / instructure-ui / packages / ui-forms / src / DateInput / index.js View on Github external
_locale (props, context) {
    return props.locale || context.locale || Locale.browserLocale()
  }
github instructure / instructure-ui / packages / ui-forms / src / DateInput / DatePicker / index.js View on Github external
_locale (props, context) {
    return props.locale || context.locale || Locale.browserLocale()
  }
github instructure / instructure-ui / packages / ui-forms / src / DateTimeInput / index.js View on Github external
get locale () {
    return this.props.locale || this.context.locale || Locale.browserLocale()
  }