Validates BCP-47 Language Tags using the npm package 'bcp-47' and formats them in a unique way to ensure consistency.
published version 1.0.0, 7 years agoRetrieves the language information saved in window.navigator.languages in a backwards compatible way.
published version 2.0.2, 7 years agoProvides an HOC (higher-order component) for Next.js / After.js and populates the component props and the getInitialProps args object with an env property, which gives access to cookies, ipAddress, language(s) and userAgent on server-side and client-side
published version 1.2.7, 7 years ago