polyglot v2.1.0 Release Notes

Release Date: 2016-11-11 // over 7 years ago
    • [New] Merge choosePluralForm & interpolate into one exported function: transformPhrase (#75)
    • [New] Allow locales to have regions (#70)
    • [New] Support Arabic pluralization (#71)
    • [New] Added Lithuanian locale to russian group of pluralization (#68)
    • [Deps] update object.assign, warning
    • [Dev Deps] pin uglify-js because it does not follow semver
    • [Dev Deps] update eslint-config-airbnb-base, eslint, eslint-plugin-import, mocha, should, uglify-js
    • [Performance] instead of creating a new regex for each token, use the function form of replace (#19)
    • [Refactor] use warning package for warnings
    • [Robustness] Use has package to properly check “has own property”
    • [Robustness] use string.prototype.trim rather than a homegrown trim polyfill
    • [Tests] only test on latest node v7, v6, v5, v4, and iojs; improve test matrix
    • [Tests] add linting