Skip to content

iamstarkov/typographic-quotes-l10n-db

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Raw data about typographic quotes

Resources

Stars

Watchers

Forks

Packages

No packages published