Socket
Socket
Sign inDemoInstall

node-polyglot

Package Overview
Dependencies
72
Maintainers
5
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
23Next

2.5.0

Diff

Changelog

Source

v2.5.0: January 23, 2023

  • [New] Add replace option for custom replace implementation (#171)
  • [New] Add Romanian and Macedonian (#176)
  • [Deps] update array.prototype.foreach, object.entries, string.prototype.trim (#172)
  • [Tests] Migrate tests to GitHub Actions (#169)
  • [Tests] Add passing tests (#168)
lencioni
published 2.4.2 •

Changelog

Source

v2.4.2: August 16, 2021

  • [Fix] Handle null and undefined gracefully in extend and unset (#161)
lencioni
published 2.4.1 •

Changelog

Source

v2.4.1: August 16, 2021

  • [Fix] French starts plural at 2 (#154)
  • [Refactor] Replace for-each with object.entries and array.prototype.foreach (#127)
  • [Performance] Add plural type name memoization (#158)
  • [Deps] Update string.prototype.trim (#127)
  • [Dev Deps] update chai, safe-publish-latest, eslint, eslint-plugin-import (#127)
schleyfox
published 2.4.0 •

Changelog

Source

v2.4.0: September 10, 2019

  • [New] add ability to configure pluralization rules (#138)
ljharb
published 2.3.1 •

Changelog

Source

v2.3.1: June 20, 2019

  • [Fix] fix plurals for Russian with n > 100 (#119)
  • [Performance] Remove unnecessary dollar signs replacement (#132)
  • [Docs] fix typo in the Czech example (#123)
  • [Deps] update warning
  • [Dev Deps] update chai, eslint, eslint-config-airbnb-base, eslint-plugin-import, safe-publish-latest, uglify-js
  • [Tests] on node v12, v11, v10
ljharb
published 2.3.0 •

Changelog

Source

v2.3.0: July 2, 2018

  • [New] add ability to change interpolation regex by specifying prefix and suffix (#106, #64)
  • [New] support for Serbian (Latin & Cyrillic), Bosnian (Latin & Cyrillic), Czech (#113)
  • [Fix] Moved lt to it's own group (#101)
  • [Fix] Moved tr from chinese to german group (#100)
  • [Fix] Move persian(fa) language to german group of pluralization (#86)
  • [Fix] Remove long-since-updated build files
  • [Fix] fix russian pluralization; add tests (#115)
  • [Fix] croatian is not russian (#114)
  • [Clarity] add more specific locales, even though language codes will match them (#115)
  • [Docs] document constructor options (#84)
  • [Docs] document all instance and static methods (#83)
  • [Docs] fix spelling of "delimiter" (#91)
  • [Docs] onMissingKey can (rather, should) return a value (#95)
  • [Docs] fix instructions to only recommend use with npm (#96)
  • [Docs] Added documentation for method has (#104)
  • [Docs] add example for languages with multiple plurals (#108)
  • [Docs] remove outdated sentence (#112, #110)
  • [Deps] update for-each, has, warning
  • [Dev Deps] update chai, eslint, eslint-config-airbnb-base, eslint-plugin-import, mocha; remove should
  • [Tests] up to node v10; use nvm install-latest-npm to ensure new npm doesn’t break old node; improve matrix
ljharb
published 2.1.3 •

Changelog

Source

v2.1.3: January 5, 2017

  • [Fix] revert unintentional breaking change of missing substitutions being untouched
ljharb
published 2.2.2 •

Changelog

Source

v2.2.2: January 5, 2017

  • [Fix] revert unintentional breaking change of missing substitutions being untouched
  • [Dev Deps] update eslint, eslint-config-airbnb-base, mocha, should; add safe-publish-latest
ljharb
published 2.2.1 •

Changelog

Source

v2.2.1: November 18, 2016

  • [Fix] restore behavior of explicit null/undefined not touching the substitution
ljharb
published 2.1.2 •

Changelog

Source

v2.1.2: November 18, 2016

  • [Fix] restore behavior of explicit null/undefined not touching the substitution
23Next
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc