@allthings/cdn-intl-provider
TypeScript icon, indicating that this package has built-in type declarations

3.0.1 • Public • Published

CDNIntlProvider

Install

yarn add @allthings/cdn-intl-provider

This project uses following peer dependencies, which need to be installed in your project:

  • react >= 16.8
  • react-intl >= 3.0

Description

This is a thin wrapper around react-intls IntlProvider for Allthings purposes.

Example usage

import CDNIntlProvider from '@allthings/cdn-intl-provider'

// …

const App = () => (
  <CDNIntlProvider
    resourcePath="https://static.allthings.me"
    locale="de"
    project="app"
    stage="production"
    variation="default"
  >
    <Main />
  </CDNIntlProvider>
)

Readme

Keywords

none

Package Sidebar

Install

npm i @allthings/cdn-intl-provider

Weekly Downloads

153

Version

3.0.1

License

MIT

Unpacked Size

22.7 kB

Total Files

14

Last publish

Collaborators

  • egeallthings
  • dmz23
  • allthings-bot