textr-locale
0.1.2 • Public • Published textr-locale
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)
.use(spaces)
.use(quotes)
.use(ellipses);
tf('Hello "world"...');
License
MIT
Package Sidebar
Install
Weekly Downloads