textr-locale

0.1.2 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.2
    1
  • 0.1.1
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i textr-locale

Weekly Downloads

1

Version

0.1.2

License

MIT

Last publish

Collaborators

  • andrepolischuk