Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

i18next

Package Overview
Dependencies
Maintainers
2
Versions
504
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

i18next - npm Package Versions

1
51

1.7.6

Diff

Changelog

Source

1.7.6

  • fixes lng detection (i18next-client on npm)
jamuhl
published 1.7.4 •

Changelog

Source

1.7.4

  • add resource bundle gets deep extend flag i18n.addResourceBundle(lng, ns, { 'deep': { 'key2': 'value2' }}, true);
  • new functions to add one key value or multiple i18n.addResource(lng, ns, key, value);, i18n.addResources(lng, ns, {'key1': 'value1', 'deep.key2': 'value2'});
  • lngWhitelist merged
  • override postMissing function
  • allow floats for count
  • added indefinite functionality for plurals
  • optional set replacing vars to replace member to avoid collision with other options
  • experimental optional detectLngFromLocalStorage
  • fix for norwegian language
jamuhl
published 1.7.3 •

Changelog

Source

1.7.3

  • solves issue with ie8 not providing .trim function on string -> added to shim
  • set data using $(selector).i18n() on data-i18n='[data-someDataAttr]key'
  • more bullet proof state handling on failed file load
  • corrected latvian plurals based on issue 231
  • allow array of fallback languages
  • allow int in values passed to shortcut sprintf
  • setLng to 'cimode' will trigger a CI mode returning 'key' instead of translation
jamuhl
published 1.7.1 •

Changelog

Source

1.7.1

  • fixed some typo
  • allow translate to take an array of keys - take first found
  • allow numbers in object trees
jamuhl
published 1.7.0 •

Changelog

Source

1.7.0

  • test if initialisation finished before allowing calling t function
  • setting option fixLng=true will return t function on init or setLng with the lng fixed for every subsequent call to t
  • grab key from content if attr data-i18n has no value
  • setting shortcutFunction to 'defaultValue' allows calling i18n.t(key, defaultValue)
  • empty string in defaultValue is now valid no longer displaying key
  • allow option cookieDomain
  • fixes issue #115 out of stack exception in IE8 by recursing _translate in objectTrees
jamuhl
published 1.6.8 •

Changelog

Source

21.6.8

  • fix: respect skipOnVariables option passed in t function
jamuhl
published 1.6.7 •

Changelog

Source

21.6.7

  • fix: consistently lowercase new formatter names internally
jamuhl
published 1.6.6 •

Changelog

Source

21.6.6

  • fix: deepFind fallback when accessing missing flat dotted key 1719
jamuhl
published 1.6.5 •

Changelog

Source

21.6.5

  • fix: passed format parameter value truncation in options argument for custom formatter 1715
jamuhl
published 1.6.4 •

Changelog

Source

21.6.4

  • fix: skipOnVariables (and all other interpolation options should respect defaults) 1711
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc