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

i18next

Package Overview
Dependencies
Maintainers
1
Versions
501
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.3

Diff

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
published 1.6.3 •

Changelog

Source

1.6.3

  • option to parse key if missing
  • fixes issue where plural don't get translated if language is passed in t options
  • fixes issue where key or defaultValue aren't postProcessed with itself as value
  • fixes issue with fallbackLng = false in combination with sendMissingTo = fallback
  • fixes namespace fallback loop to only loop if array has really a ns in it
published 1.6.2 •

Changelog

Source

1.6.2

  • fixes some var typo
  • fixes sendMissing to correct namespace
  • fixes sendMissing in combination with fallbackNS
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