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.6.1

Diff

Changelog

Source

1.6.1

  • PR #106 optionally un/escape interpolated content
  • PR #101 automatic gettext like sprintf syntax detection + postprocess injection
  • customload will get called on dynamicLoad too
  • fixes namespace array settings if loaded resourcebundle or additional namespaces
  • lookup of not existend resources can be fallbacked to other namespaces - see option fallbackNS (array or string if one ns to fallback to)
  • defaultValues get postProcessed
  • BREAKING: per default null values in resources get translated to fallback. This can be changed by setting option fallbackOnNull to false
  • PR #81 added support for passing options to nested resources
  • PR #88 added an exists method to check for the existence of a key in the resource store
  • fixed issue with null value throws in applyReplacement function
  • fixed issue #80 empty string lookup ends in fallback instead of returning result in language
  • fixed issue with null value in resources not returning expected value
  • optimized tests to use on server (nodejs) too
  • allow zepto as drop in replacement for $
  • using testacular as runner
  • upgraded to grunt 0.4.0
  • fixed optional interpolation prefix/suffix not used in plural translation cases
  • optimized check if there are multiple keys for the data-i18n attribute to parse
jamuhl
published 1.6.0 •

Changelog

Source

1.6.0

  • option to specify target to set attributes with jquery function by using 'data-i18n-target attribute'
  • function to set new options for nesting functionality
  • function to add resources after init
  • option to lookup in default namespace if value is not found in given namespace
  • option to change interpolation prefix and suffix via translation options
  • fixed issue with using ns/keyseparator on plurals, context,...
  • fixed issue with posting missing when not using jquery
  • post missing in correct lng if lng is given in translation options
  • proper usage of deferred object in init function
  • fixed issue replacing values in objectTree
jamuhl
published 1.5.16 •

jamuhl
published 1.5.15 •

jamuhl
published 1.5.14 •

jamuhl
published 1.5.13 •

published 1.5.12 •

published 1.5.11 •

published 1.5.10 •

Changelog

Source

1.5.10

  • BREAKING: fixed plural rules for languages with extended plural forms (more than 2 forms)
  • merged pull #61 - custom loader (enables jsonp or other loading custom loading strategies)
  • escaping interpolation prefix/suffix for proper regex replace
published 1.5.9 •

Changelog

Source

1.5.9

  • functions to load additional namespaces after init and to set default namespace to something else
  • set if you don't want to read defaultValues from content while using jquery fc
  • set dataAttribute to different value
  • set cookieName to different value
  • some smallbugfixes
  • typesafe use of console if in debug mode
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