Skip to content

Releases: ruby-i18n/i18n

v1.3.0

01 Jan 21:23
Compare
Choose a tag to compare
  • Updated post-install message to be more explicit about what versions things changed in - #446
  • Fixed a regression in backends where keys were incorrectly typecast - #443, #444, #445, etc.

Please note that as of this release, only 5.x and greater versions of Rails are supported (it might help to think of it as ~> 5.0, sorta.)

v1.2.0

11 Dec 00:24
Compare
Choose a tag to compare
  • Provide a uniform API between Simple, KeyValue and Chain backends - #109 (one of our oldest PRs, and I am pleased that @kidpollo has persisted for all this time!)
  • Support translation hashes with numeric keys in Simple backend - #422
  • Add CacheFile backend module - #423
  • Add JSON backend module - #429
  • Updated README to point to the wiki - #438
  • Added plural rules for oc locale - #440
  • Removed tests from the bundled gem (leading to smaller download sizes) - #441
  • Added a post-install message about fallback breaking change introduced in v1.1.0 - #442

v1.1.1

14 Oct 09:25
Compare
Choose a tag to compare
  • Expose translations with an option to perform initialization (if it hasn't been done already) (#353 / #254)
  • Removed un-used Kernel core extension #436
  • Added project metadata for RubyGems #434

v1.1.0

07 Aug 22:19
Compare
Choose a tag to compare

BREAKING CHANGE: Fallbacks

  • Fallbacks now exclude default locale - #415, possibly fixes #413 + #338

Please check your Rails app for this line:

config.i18n.fallbacks = true

This setting is now incorrect as of this version of I18n. It should instead be:

config.i18n.fallbacks = [I18n.default_locale]

If not, fallbacks will be broken in your app by I18n 1.1.x.

Ensure that you are using config.i18n.fallbacks = [I18n.default_locale] if you intend on fallbacks behaving correctly in I18n.

Other fixes

  • Simplified default exception handler - #414
  • Fixed deprecated use of assert_nothing_raised #417
  • Fixed pluralization behavior for KeyValue backend with subtrees disabled - #419
  • Allow yaml file extension - #421

v1.0.1

18 Apr 04:59
Compare
Choose a tag to compare
  • Removed creation of some anonymous objects in I18n - #393
  • Added missing key exception_handler to reserved keys - #412

Thanks to @stereobooster and @tjoyal.

v1.0.0

14 Apr 03:20
Compare
Choose a tag to compare
  • Dropped Ruby 1.9.3 support (see #409)

v0.9.5

13 Feb 22:10
Compare
Choose a tag to compare
  • #404 reported a regression in 0.9.3, which wasn't fixed by 0.9.4. #408 fixes this issue.

Thanks @wjordan!

v0.9.4

09 Feb 05:23
Compare
Choose a tag to compare
  • Fixed a regression with chained backends introduced in v0.9.3 (#402) - #405 - bug report / #407 - PR to fix
  • Optimize Backend::Simple#available_locales - reports are that this is now 4x faster than previously - #406

v0.9.3

22 Jan 22:59
Compare
Choose a tag to compare

(For those wondering where v0.9.2 went: I got busy after I pushed the commit for the release, so there was no gem release that day. I am not busy today, so here is v0.9.3 in its stead. This changelog contains changes from v0.9.1 -> v0.9.3)

  • I18n no longer stores translations for unavailable locales. #391.
  • Added the ability to interpolate with arrays #395.
  • Documentation for lambda has been corrected. #396
  • I18n will use oj -- a faster JSON library -- but only if it is available. #398
  • Fixed an issue with translate and default: [false] as an option. #399
  • Fixed an issue with translate with nil and empty keys. #400
  • Fix issue with disabled subtrees and pluralization for KeyValue backend #402

Thank you to @stereobooster, @fatkodima and @lulalala for the patches that went towards this release. We appreciate your efforts!

v0.9.1

03 Nov 00:37
Compare
Choose a tag to compare
  • Reverted Hash#slice behaviour introduced with #250 - See #390.
  • Fixed a regression caused by #387, where translations may have returned a not-helpful error message - See #389