Skip to content

Releases: ruby-i18n/i18n

v0.9.0

15 Oct 22:37
Compare
Choose a tag to compare
  • Made Backend::Memoize threadsafe. See #51 and #352.
  • Added a middleware I18n::Middleware that should be used to ensure that i18n config is reset correctly between requests. See #381 and #382.

v0.8.6

10 Jul 05:40
Compare
Choose a tag to compare

Fixed a small regression introduced in v0.8.5 when using fallbacks - See #378

v0.8.5

10 Jul 05:37
Compare
Choose a tag to compare
  • Improved error message for MissingPluralizationKey error - See #371
  • Fixed a thread issue when calling translate when fallbacks were enabled - See #369

v0.8.4

10 Jul 05:34
Compare
Choose a tag to compare

Reverted #236 - "Don't allow nil to be submitted as a key to I18n.translate" - See #370

v0.8.3

30 May 22:40
Compare
Choose a tag to compare

I18n::Gettext#plural_keys will now return a hash from Gettext if no arguments are provided -
#122
Fixed a bug where passing false to translate would not translate that value - #367

v0.8.2

30 May 22:37
Compare
Choose a tag to compare

Do not allow nil to be passed to translate - #236

v0.8.1

22 Feb 02:52
Compare
Choose a tag to compare
  • Allow disabling fallback explicitly when calling translate - #354
  • Fixed transliteration to default replacement character - #362

v0.8.0

01 Feb 21:30
Compare
Choose a tag to compare

This release is the same as the v0.8.0.beta1 gem.

Notable changes

  • You can now set I18n.cache_key_digest to determine how cache keys are calculated. If you were seeing issues where the same value stored in a cache produced a different key, then this fix will interest you. For more information, see #285.
  • You can now override translate_format in I18n::Backend classes to customize how localize will perform. See #347 (comment) for more details.
  • You can now interpolate the value of a key inside another key. See #300 for more information.
  • The exists? method was added to the fallback backend, to match other backend implementations - #326
  • Added N_ to GetText::Helpers - #121
  • Added a :default option for I18n.localize - #251

Bug fixes

  • Reverted a commit which made it so that the great documentation for I18n.translate wasn't made visible through a yard documentation generation. - bc926eb
  • I18n.MissingTranslation.new can now be called with two arguments. It will no longer raise a "TypeError: can't dup NilClass" exception - #295
  • I18n's Hash#slice method no longer fails if the hash does not have the specified key - #289
  • I18n::Backend::Metadata will now no longer attempt to set @translation_metadata on frozen objects - #305
  • Added missing many rule to pl translation rules - #346
  • Calling I18n.t(:foo, default: nil) Or I18n.t(:foo, default: false) will now return nil or false, rather than returning a missing translation exception - #144
  • Setting I18n.load_path via I18n.load_path= will now reset the @@available_locales_set setting. - #348 & #173
  • The subclasses of Hash when calling Hash#slice are maintained - #250
  • Fixed I18n.interpolate behaviour when it was passed an ActiveSupport::SafeBuffer object - #216

0.8.0.beta1

21 Nov 00:40
Compare
Choose a tag to compare

Notable changes

  • You can now set I18n.cache_key_digest to determine how cache keys are calculated. If you were seeing issues where the same value stored in a cache produced a different key, then this fix will interest you. For more information, see #285.
  • You can now override translate_format in I18n::Backend classes to customize how localize will perform. See #347 (comment) for more details.
  • You can now interpolate the value of a key inside another key. See #300 for more information.
  • The exists? method was added to the fallback backend, to match other backend implementations - #326
  • Added N_ to GetText::Helpers - #121
  • Added a :default option for I18n.localize - #251

Bug fixes

  • Reverted a commit which made it so that the great documentation for I18n.translate wasn't made visible through a yard documentation generation. - bc926eb
  • I18n.MissingTranslation.new can now be called with two arguments. It will no longer raise a "TypeError: can't dup NilClass" exception - #295
  • I18n's Hash#slice method no longer fails if the hash does not have the specified key - #289
  • I18n::Backend::Metadata will now no longer attempt to set @translation_metadata on frozen objects - #305
  • Added missing many rule to pl translation rules - #346
  • Calling I18n.t(:foo, default: nil) Or I18n.t(:foo, default: false) will now return nil or false, rather than returning a missing translation exception - #144
  • Setting I18n.load_path via I18n.load_path= will now reset the @@available_locales_set setting. - #348 & #173
  • The subclasses of Hash when calling Hash#slice are maintained - #250
  • Fixed I18n.interpolate behaviour when it was passed an ActiveSupport::SafeBuffer object - #216