de-ch-locale

1.0.0-0 • Public • Published

Swiss German Locale Definition

The locale definition for use with d3-format (number formatting) and d3-time-format (date and time formatting).

Usage

React (ES2015) and D3.js

// Import
import {timeFormatDefaultLocale} from 'd3-time-format';
import {formatDefaultLocale} from 'd3-format';
 
const localeDefinition = require('json!ta-de-ch-locale');
 
// Create Locale
const deChTimeLocale = timeFormatDefaultLocale(localeDefinition);
const deChNumberLocale = formatDefaultLocale(localeDefinition);
 
// Create Formats!
const percentFormat = deChNumberLocale.format('%');
// etc.

Readme

Keywords

Package Sidebar

Install

npm i de-ch-locale

Weekly Downloads

0

Version

1.0.0-0

License

ISC

Last publish

Collaborators

  • s1co
  • dariush-mehdiaraghi
  • mrdz_tx
  • mathiaslutz
  • sebaa
  • xeophin