1.0.5 • Published 11 months ago

@just-web/formatjs v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

@just-web/formatjs

NPM version NPM downloads

@just-web/formatjs provides Format.JS support for @just-web applications.

It re-exports @formatjs/intl so that you can access all functionality of @formatjs/intl directly.

Install

# npm
npm install @just-web/formatjs

# yarn
yarn add @just-web/formatjs

# pnpm
pnpm install @just-web/formatjs

#rush
rush add -p @just-web/formatjs

Usage

The formatJSGizmoFn() accepts the same parameters as createIntl() in object from:

import { justApp } from '@just-web/app'
import { formatJSGizmoFn, createIntlCache } from '@just-web/formatjs'

const cache = createIntlCache()

const app = await justApp({ name: 'your-awesome-app' })
  .with(formatJSGizmoFn({
    config: { locale: 'en', messages: {} },
    cache
  }))
  .create()

app.formatjs.intl.formatMessage({ defaultMessage: 'hello world' })
1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago