typographic-quotes-l10n-db
v1.0.0
Published
Raw data about typographic quotes
Downloads
32,019
Readme
typographic-quotes-l10n-db
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