Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

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.

Install

npm i de-ch-locale

DownloadsWeekly Downloads

0

Version

1.0.0-0

License

ISC

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar