1.0.0 • Published 9 years ago

typographic-quotes-l10n-db v1.0.0

Weekly downloads
13,274
License
MIT
Repository
github
Last release
9 years ago

typographic-quotes-l10n-db

NPM version Dependency Status DevDependency Status

Raw data about typographic quotes

Raw data about typographic quotes per language from the appropriate wikipedia page. Language codes are using ISO 639 standard.

Install

npm install --save typographic-quotes-l10n-db

Usage

Pass language code and quotesDB will return string with 4 symbols. First two are primary quotes, second ones are secondary.

var quotesDB = require('typographic-quotes-l10n-db');

quotesDB('zh-Hans'); // “”‘’   Chinese, simplified
quotesDB('en-uk');   // ‘’“”   English, UK
quotesDB('en-us');   // “”‘’   English, US; English, Canada
quotesDB('ru');      // «»„“   Russian
quotesDB('da');      // »«›‹   Danish
quotesDB('sv');      // ””’’   Swedish

License

MIT © Vladimir Starkov