Releases: ruby-i18n/i18n
Releases · ruby-i18n/i18n
v0.9.3
(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
anddefault: [false]
as an option. #399 - Fixed an issue with
translate
withnil
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
v0.9.0
v0.8.6
v0.8.5
v0.8.4
v0.8.3
v0.8.2
v0.8.1
v0.8.0
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
inI18n::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_
toGetText::Helpers
- #121 - Added a
:default
option forI18n.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 topl
translation rules - #346 - Calling
I18n.t(:foo, default: nil)
OrI18n.t(:foo, default: false)
will now returnnil
orfalse
, rather than returning a missing translation exception - #144 - Setting
I18n.load_path
viaI18n.load_path=
will now reset the@@available_locales_set
setting. - #348 & #173 - The subclasses of
Hash
when callingHash#slice
are maintained - #250 - Fixed
I18n.interpolate
behaviour when it was passed anActiveSupport::SafeBuffer
object - #216