Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 852 Bytes

README.md

File metadata and controls

39 lines (27 loc) · 852 Bytes

textr-locale Build Status

Detect the client locale for Textr

Install

npm install --save textr-locale

Usage

Plugin adds the client locale to textr defaults.

import textr from 'textr';
import locale from 'textr-locale';
import ellipses from 'typographic-ellipses';
import quotes from 'typographic-quotes';
import spaces from 'typographic-single-spaces';

const tf = textr()
  .use(locale) // en-us
  .use(spaces)
  .use(quotes)
  .use(ellipses);

tf('Hello  "world"...'); // Hello “world”…

License

MIT