nymus
Transform ICU messages into React components.
Last updated 2 months ago by janpotoms .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install nymus 
SYNC missed versions from official npm registry.

???? nymus

Version License: MIT nymus test status

Transform ICU messages into React components.

Usage

Example

npx nymus ./messages.json

given a ./messages.json file:

{
  "Welcome": "It's {name}, {gender, select, male {his} female {her} other {their}} birthday is {birthday, date, long}"
}

nymus will generate a module containing React components that can be readily imported in your project as follows:

import * as React from 'react';
import { Welcome } from './messages';

export function HomePage() {
  return <Welcome name="John" gender="male" birthday={new Date(1985, 11, 3)} />;
}

Documentation

Author

???? Jan Potoms

Current Tags

  • 0.1.16                                ...           latest (2 months ago)

16 Versions

  • 0.1.16                                ...           2 months ago
  • 0.1.14                                ...           2 months ago
  • 0.1.13                                ...           2 months ago
  • 0.1.12                                ...           2 months ago
  • 0.1.11                                ...           2 months ago
  • 0.1.10                                ...           2 months ago
  • 0.1.9                                ...           2 months ago
  • 0.1.8                                ...           2 months ago
  • 0.1.7                                ...           3 months ago
  • 0.1.6                                ...           3 months ago
  • 0.1.5                                ...           3 months ago
  • 0.1.4                                ...           3 months ago
  • 0.1.3                                ...           3 months ago
  • 0.1.2                                ...           3 months ago
  • 0.1.1                                ...           3 months ago
  • 0.1.0                                ...           3 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 3
Last Month 16
Dev Dependencies (21)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |