Recent Releases of https://github.com/ruby-i18n/i18n
https://github.com/ruby-i18n/i18n - v1.14.8
Full Changelog: https://github.com/ruby-i18n/i18n/compare/v1.14.7...v1.14.8
What's Changed
- Remove unused
cgirequire for Ruby 3.5 compatibility by @Earlopain in https://github.com/ruby-i18n/i18n/pull/713 - Explicitly require
pathnameby @voxik in https://github.com/ruby-i18n/i18n/pull/708 - CI: Add Ruby 3.4 to CI Matrix by @taketo1113 in https://github.com/ruby-i18n/i18n/pull/722
- Fix: I18n.locale reset in Fiber context by using Thread#thread_variable by @lee266 in https://github.com/ruby-i18n/i18n/pull/724
- CI: Use actions/checkout@v5 by @olleolleolle in https://github.com/ruby-i18n/i18n/pull/721
- Fix compatibility with
--enable-frozen-string-literalby @byroot in https://github.com/ruby-i18n/i18n/pull/726
New Contributors
- @Earlopain made their first contribution in https://github.com/ruby-i18n/i18n/pull/713
- @taketo1113 made their first contribution in https://github.com/ruby-i18n/i18n/pull/722
- @lee266 made their first contribution in https://github.com/ruby-i18n/i18n/pull/724
- @byroot made their first contribution in https://github.com/ruby-i18n/i18n/pull/726
Full Changelog: https://github.com/ruby-i18n/i18n/compare/v1.14.7...v1.14.8
- Ruby
Published by radar 2 months ago
https://github.com/ruby-i18n/i18n - v1.14.7
What's Changed
- Ruby 3.4
Hash#inspectcompatibility. by @voxik in https://github.com/ruby-i18n/i18n/pull/709 - Removed (annoying) post-install message that was triggering on all Rubies, rather than the specified versions.
Full Changelog: https://github.com/ruby-i18n/i18n/compare/v1.14.6...v1.14.7
- Ruby
Published by radar about 1 year ago
https://github.com/ruby-i18n/i18n - v1.14.6
What's Changed
Ruby < 3.2 support will be dropped April 2025. Upgrade now to continue using i18n after that date.
- fix issues with RDoc generation by @davetron5000 in https://github.com/ruby-i18n/i18n/pull/698
- Fix loading of .rb locale files when
load_pathis not a string by @stevegeek in https://github.com/ruby-i18n/i18n/pull/701 - Fixes strings being interpolated multiple times by @alexpls in https://github.com/ruby-i18n/i18n/pull/699
- Optimize pluralization logic in test data by @zachmargolis in https://github.com/ruby-i18n/i18n/pull/697
- [FIX] Raise ArgumentError on nil key in exists? by @KinWang-2013 in https://github.com/ruby-i18n/i18n/pull/696
New Contributors
- @davetron5000 made their first contribution in https://github.com/ruby-i18n/i18n/pull/698
- @stevegeek made their first contribution in https://github.com/ruby-i18n/i18n/pull/701
- @alexpls made their first contribution in https://github.com/ruby-i18n/i18n/pull/699
- @zachmargolis made their first contribution in https://github.com/ruby-i18n/i18n/pull/697
- @KinWang-2013 made their first contribution in https://github.com/ruby-i18n/i18n/pull/696
Full Changelog: https://github.com/ruby-i18n/i18n/compare/v1.14.5...v1.14.6
- Ruby
Published by radar over 1 year ago
https://github.com/ruby-i18n/i18n - v1.14.5
What's Changed
- Explicitly bundle racc gem for Ruby 3.3+ by @amatsuda in https://github.com/ruby-i18n/i18n/pull/690
- Optimize I18n::Locale::Fallbacks#[] for recursive locale mappings by @uiur in https://github.com/ruby-i18n/i18n/pull/692
- Add I18n.interpolation_keys by @tom-lord in https://github.com/ruby-i18n/i18n/pull/682
- Fix syntax in documentation for I18n::Backend::Base.interpolate by @tom-lord in https://github.com/ruby-i18n/i18n/pull/691
- Fix that escaped interpolations with reserved keywords raised ReservedInterpolationKey by @Bilka2 in https://github.com/ruby-i18n/i18n/pull/688
New Contributors
- @uiur made their first contribution in https://github.com/ruby-i18n/i18n/pull/692
- @tom-lord made their first contribution in https://github.com/ruby-i18n/i18n/pull/682
- @Bilka2 made their first contribution in https://github.com/ruby-i18n/i18n/pull/688
Full Changelog: https://github.com/ruby-i18n/i18n/compare/v1.14.4...v1.14.5
- Ruby
Published by radar almost 2 years ago
https://github.com/ruby-i18n/i18n - v1.14.4
What's Changed
Note: the racc dependency will be coming back in Version 2.
- undo strict racc dependency on this branch by @radar in https://github.com/ruby-i18n/i18n/pull/687
Full Changelog: https://github.com/ruby-i18n/i18n/compare/v1.14.3...v1.14.4
- Ruby
Published by radar almost 2 years ago
https://github.com/ruby-i18n/i18n - v1.14.3
What's Changed
- Pass options to along to exists? super calls by @radar in https://github.com/ruby-i18n/i18n/pull/671
- Improve TOKENIZER by 23% by @kbrock in https://github.com/ruby-i18n/i18n/pull/668
- Regex part deux - INTERPOLATION_SYNTAX by @kbrock in https://github.com/ruby-i18n/i18n/pull/669
- Raise when translated entry contains interpolations for reserved keywords and no substitutions provided by @fatkodima in https://github.com/ruby-i18n/i18n/pull/678
- Implement
Fallbacks#inspectandFallbacks#empty?by @fatkodima in https://github.com/ruby-i18n/i18n/pull/683
Upkeep
- Update
mochagem by @fatkodima in https://github.com/ruby-i18n/i18n/pull/677 - Update workflows by @yykamei in https://github.com/ruby-i18n/i18n/pull/684
New Contributors
- @kbrock made their first contribution in https://github.com/ruby-i18n/i18n/pull/668
Full Changelog: https://github.com/ruby-i18n/i18n/compare/v1.14.1...v1.14.3
- Ruby
Published by radar almost 2 years ago
https://github.com/ruby-i18n/i18n - v1.14.1
Included in this release
- Simplify the "Translation missing" message when default is an empty Array by @amatsuda in https://github.com/ruby-i18n/i18n/pull/662
Maintenance stuff
- Skip CIing on jruby against Rails 5.2 by @amatsuda in https://github.com/ruby-i18n/i18n/pull/664
- A fix for failing CI against edge Rails by @amatsuda in https://github.com/ruby-i18n/i18n/pull/663
- Add documentation hint for fallback values by @mark-a in https://github.com/ruby-i18n/i18n/pull/659
- CI against Ruby 3.2 by @amatsuda in https://github.com/ruby-i18n/i18n/pull/665
- Fix build warnings in the CI by using actions/checkout@v3 by @amatsuda in https://github.com/ruby-i18n/i18n/pull/666
Thanks to @amatsuda for these PRs!
New Contributors
- @mark-a made their first contribution in https://github.com/ruby-i18n/i18n/pull/659
Full Changelog: https://github.com/ruby-i18n/i18n/compare/v1.14.0...v1.14.1
- Ruby
Published by radar over 2 years ago
https://github.com/ruby-i18n/i18n - v1.14.0
What's Changed
- fix LazyLoadable#available_locales duplicating locales by @ccutrer in https://github.com/ruby-i18n/i18n/pull/655
- Add more helpful translation error when :default option is provided. by @Nerian in https://github.com/ruby-i18n/i18n/pull/654
- Fix I18n::Locale::Fallbacks not initializing itself on Ruby 3 by @yheuhtozr in https://github.com/ruby-i18n/i18n/pull/653
- Fix I18n.t when locale contains separator by @tubaxenor in https://github.com/ruby-i18n/i18n/pull/656
- This reverts a change from #651, that was released in v1.13.0
New Contributors
- @ccutrer made their first contribution in https://github.com/ruby-i18n/i18n/pull/655
- @Nerian made their first contribution in https://github.com/ruby-i18n/i18n/pull/654
- @yheuhtozr made their first contribution in https://github.com/ruby-i18n/i18n/pull/653
- @tubaxenor made their first contribution in https://github.com/ruby-i18n/i18n/pull/656
Full Changelog: https://github.com/ruby-i18n/i18n/compare/v1.13.0...v1.14.0
- Ruby
Published by radar almost 3 years ago
https://github.com/ruby-i18n/i18n - v1.13.0
What's Changed
- Fix symbol resolving with pluralization by @movermeyer in https://github.com/ruby-i18n/i18n/pull/636
- Updating DEFAULT_APPROXIMATIONS with capitalised German Eszett character for consistency by @lucapericlp in https://github.com/ruby-i18n/i18n/pull/627
- Fix load_path example in README.md by @nickcampbell18 in https://github.com/ruby-i18n/i18n/pull/642
- Add support for meridian indicators on
Dateobjects by @movermeyer in https://github.com/ruby-i18n/i18n/pull/640 - Make translations loading thread-safe by @mensfeld in https://github.com/ruby-i18n/i18n/pull/644
- Get closer to full CLDR pluralization support by @movermeyer in https://github.com/ruby-i18n/i18n/pull/634
- Allow passing scope argument to exists? by @misdoro in https://github.com/ruby-i18n/i18n/pull/647
- Revert #503 changes for
Backend::Baseby @movermeyer in https://github.com/ruby-i18n/i18n/pull/637 - Properly stub constants by @fatkodima in https://github.com/ruby-i18n/i18n/pull/650
- Optimize
I18n.tby @fatkodima in https://github.com/ruby-i18n/i18n/pull/651 - Return same string object when no interpolations were made by @fatkodima in https://github.com/ruby-i18n/i18n/pull/649
New Contributors
- @lucapericlp made their first contribution in https://github.com/ruby-i18n/i18n/pull/627
- @nickcampbell18 made their first contribution in https://github.com/ruby-i18n/i18n/pull/642
- @mensfeld made their first contribution in https://github.com/ruby-i18n/i18n/pull/644
- @misdoro made their first contribution in https://github.com/ruby-i18n/i18n/pull/647
Full Changelog: https://github.com/ruby-i18n/i18n/compare/v1.12.0...v1.13.0
- Ruby
Published by radar almost 3 years ago
https://github.com/ruby-i18n/i18n - v1.12.0
What's Changed
- Revert "Add support for CLDR data in
I18n::Backend::Pluralization" by @radar in https://github.com/ruby-i18n/i18n/pull/633 -- this was causing breaking changes unintentionally.
Full Changelog: https://github.com/ruby-i18n/i18n/compare/v1.11.0...v1.12.0
- Ruby
Published by radar over 3 years ago
https://github.com/ruby-i18n/i18n - v1.11.0
What's Changed
- Consistently return array from bulk lookup, even if translation(s) missing by @sambostock in https://github.com/ruby-i18n/i18n/pull/628
- Fix typos by @movermeyer in https://github.com/ruby-i18n/i18n/pull/631
- Add support for CLDR data in
I18n::Backend::Pluralizationby @movermeyer in https://github.com/ruby-i18n/i18n/pull/630
New Contributors
- @sambostock made their first contribution in https://github.com/ruby-i18n/i18n/pull/628
Full Changelog: https://github.com/ruby-i18n/i18n/compare/v1.10.0...v1.11.0
- Ruby
Published by radar over 3 years ago
https://github.com/ruby-i18n/i18n - v1.10.0
What's Changed
New Features
- LazyLoadable Backend by @paarthmadan in https://github.com/ruby-i18n/i18n/pull/612
- Add a version badge to README by @mishina2228 in https://github.com/ruby-i18n/i18n/pull/621
Bug fixes
- Remove warning: assigned but unused variable by @mishina2228 in https://github.com/ruby-i18n/i18n/pull/611
- Minor
I18n.normalize_keysimprovement by @codealchemy in https://github.com/ruby-i18n/i18n/pull/616 - Allow overriding of entry resolving entry resolving separate from defaults by @movermeyer in https://github.com/ruby-i18n/i18n/pull/622
Other changes
- Remove pry from Gemfile as it is not used by @dvzrv in https://github.com/ruby-i18n/i18n/pull/608
New Contributors
- @dvzrv made their first contribution in https://github.com/ruby-i18n/i18n/pull/608
- @mishina2228 made their first contribution in https://github.com/ruby-i18n/i18n/pull/611
Full Changelog: https://github.com/ruby-i18n/i18n/compare/v1.9.1...v1.10.0
- Ruby
Published by radar about 4 years ago
https://github.com/ruby-i18n/i18n - v1.9.1
What's Changed
- Revert "Fix missing requires of i18n/core_ext/hash" by @radar in https://github.com/ruby-i18n/i18n/pull/602
- CI: Lint the GitHub Actions YAML by @olleolleolle in https://github.com/ruby-i18n/i18n/pull/604
Full Changelog: https://github.com/ruby-i18n/i18n/compare/v1.9.0...v1.9.1
- Ruby
Published by radar about 4 years ago
https://github.com/ruby-i18n/i18n - v1.9.0
Minor version bump: The number of changes in this release are more than I would feel comfortable including in a point release. Therefore, I have bumped the minor version number here. -- @radar
What's Changed
- No longer rely on refinements for Hash utility methods. by @casperisfine in https://github.com/ruby-i18n/i18n/pull/573
- Fix typo: function is missing closing parenthesis by @patrickgramatowski in https://github.com/ruby-i18n/i18n/pull/585
- CI: ruby/setup-ruby with cache by @olleolleolle in https://github.com/ruby-i18n/i18n/pull/582
- Test on Ruby 3.1 & Rails 7.0x by @radar in https://github.com/ruby-i18n/i18n/pull/597
- Fix lookups of
0keys by @movermeyer in https://github.com/ruby-i18n/i18n/pull/594 - Only deep_symbolize_keys when needed by @paarthmadan in https://github.com/ruby-i18n/i18n/pull/588
- Symbolize names and freeze values when loading from JSON by @paarthmadan in https://github.com/ruby-i18n/i18n/pull/587
- Clean up unneeded test aliases by @paarthmadan in https://github.com/ruby-i18n/i18n/pull/589
- Resolve
Symbols using the original fallback locale by @movermeyer in https://github.com/ruby-i18n/i18n/pull/591 - Conditionally assert load_json returns symbolized data by @paarthmadan in https://github.com/ruby-i18n/i18n/pull/601
- Symbolize keys and freeze values when loading from YAML by @paarthmadan in https://github.com/ruby-i18n/i18n/pull/583
- fix ReDoS by @ooooooo-q in https://github.com/ruby-i18n/i18n/pull/600
- Exclude MissingTranslation options that are not used by the instance by @sundling in https://github.com/ruby-i18n/i18n/pull/581
- Remove references to
default_localein fallbacks comment by @movermeyer in https://github.com/ruby-i18n/i18n/pull/576 - API for marking a key as reserved by @ghiculescu in https://github.com/ruby-i18n/i18n/pull/579
- Fix missing requires of i18n/core_ext/hash by @razum2um in https://github.com/ruby-i18n/i18n/pull/574
- Fix ArgumentError when Fallbacks#map used as in Hash by @bagilevi in https://github.com/ruby-i18n/i18n/pull/570
New Contributors
- @patrickgramatowski made their first contribution in https://github.com/ruby-i18n/i18n/pull/585
- @olleolleolle made their first contribution in https://github.com/ruby-i18n/i18n/pull/582
- @movermeyer made their first contribution in https://github.com/ruby-i18n/i18n/pull/594
- @paarthmadan made their first contribution in https://github.com/ruby-i18n/i18n/pull/588
- @ooooooo-q made their first contribution in https://github.com/ruby-i18n/i18n/pull/600
- @sundling made their first contribution in https://github.com/ruby-i18n/i18n/pull/581
- @razum2um made their first contribution in https://github.com/ruby-i18n/i18n/pull/574
- @bagilevi made their first contribution in https://github.com/ruby-i18n/i18n/pull/570
Full Changelog: https://github.com/ruby-i18n/i18n/compare/v1.8.11...v1.9.0
- Ruby
Published by radar about 4 years ago
https://github.com/ruby-i18n/i18n - v1.8.11
What's Changed
- Fix typo in documentation by @rkh in https://github.com/ruby-i18n/i18n/pull/565
- Improve available locale check in Simple backend by @codealchemy in https://github.com/ruby-i18n/i18n/pull/566
- Fix typo in Simple backend JSON test by @codealchemy in https://github.com/ruby-i18n/i18n/pull/572
- Fix a build error when using Psych 4.0 by @koic in https://github.com/ruby-i18n/i18n/pull/569
New Contributors
- @rkh made their first contribution in https://github.com/ruby-i18n/i18n/pull/565
- @codealchemy made their first contribution in https://github.com/ruby-i18n/i18n/pull/566
- @koic made their first contribution in https://github.com/ruby-i18n/i18n/pull/569
Full Changelog: https://github.com/ruby-i18n/i18n/compare/v1.8.10...v1.8.11
- Ruby
Published by radar over 4 years ago
https://github.com/ruby-i18n/i18n - 1.8.10
- Fix string locale will trigger on_fallback hook - #562
- Ruby
Published by radar almost 5 years ago
https://github.com/ruby-i18n/i18n - 1.8.9
- Rely on Ruby 3's native
Hash#exceptmethod -- #557
This release also contains several build related updates -- rather than listing them out here, you can see the compare view between 1.8.8 and 1.8.9.
- Ruby
Published by radar about 5 years ago
https://github.com/ruby-i18n/i18n - 1.8.8
- Fixed threadsafety issues in Simple backend: #554
- Re-attempt to fix threadsafety of fallbacks: #548
- Use
OpenSSL::Digestinstead of usualDigestlibraries: #549 - Goodbye, post-install message #552
- Use Rails' main branch, instead of master #553
- Ruby
Published by radar about 5 years ago
https://github.com/ruby-i18n/i18n - 1.8.7
- Fixed a regression with fallback logic: see issues #547, #546 and #542.
- Ruby
Published by radar about 5 years ago
https://github.com/ruby-i18n/i18n - 1.8.6
- Fallbacks are now stored in
Thread.currentfor multi-threading compatibility: #542 - no-op arguments are no longer allowed for
I18n.tcalls -- fixes an incompatibility with Ruby 3.0: #545
This gem's GitHub workflow files have been updated to ensure compatibility between new Rails versions (6.1) and the new Ruby release (3.0). See the "Actions" tab on GitHub for the full range of supported Rails and Ruby versions.
- Ruby
Published by radar about 5 years ago
https://github.com/ruby-i18n/i18n - v1.8.5
- Fixed an issue where users could not use their own custom fallback classes - #536
- Ruby
Published by radar over 5 years ago
https://github.com/ruby-i18n/i18n - v1.8.4
- Fixed issue where fallbacks were not working when
I18n.fallbackswas an array - #534 - Fixed conditional around deprecating constant of
INTERPOLATION_PATTERN- #531
- Ruby
Published by radar over 5 years ago
https://github.com/ruby-i18n/i18n - v1.8.3
Compare view: https://github.com/ruby-i18n/i18n/compare/v1.8.2...v1.8.3
Features / Improvements
- Memory and speed improvements - #527+ #528
- Add option to disable fallbacks for I18n.exists? check - #482
- Add an
on_fallbackhook to allow users to be notified when a fallback happens - #520
Bug Fixes
- Fix an issue with deep_merge and chain fallback backends - #499 & #509
- Fix an issue with Rails ordinal number proc and keyword splatting - #521
- Pass options as keyword arguments to translation procs - #529
- Fix pluralize on unknown locale with attributes - #519
- Ruby
Published by radar over 5 years ago
https://github.com/ruby-i18n/i18n - v1.8.2
- Restoration of #499 via #509 -
deep_merge!&deep_mergemethods appear again in theHashrefinement. - An issue was introduced in v1.7.0 where some translations were returned as hashes, see #510. This was fixed in https://github.com/ruby-i18n/i18n/commit/1b5e34553003ca3b42b842769e86c98d5e3b71d4, and is available in this release.
- Ruby
Published by radar about 6 years ago
https://github.com/ruby-i18n/i18n - v1.8.1
- Reverted #499 in #508 due to #507 - missing
deep_mergemethod.
- Ruby
Published by radar about 6 years ago
https://github.com/ruby-i18n/i18n - v1.8.0
- Use Rails' implementation of
deep_mergewhen chaining fallback backends - #499.
- Ruby
Published by radar about 6 years ago
https://github.com/ruby-i18n/i18n - v1.7.1
-
I18n is now tested with GitHub Actions, instead of Travis CI.
-
Fixed issue introduced in v1.7.0 (https://github.com/ruby-i18n/i18n/commit/04a814bab173d495c44fe683309aaff18a42593e) where
countoption was not preserved - #503 -
#501 adds a comment that explains that you will need to double-splat keyword arguments given to
I18n.tto avoid warnings in Ruby 2.7.
- Ruby
Published by radar about 6 years ago
https://github.com/ruby-i18n/i18n - v1.7.0
- Added ability to interpolate values that have a pipe - #491
- Splat keyword arguments to prevent warnings in Ruby 2.7 - #486
- Reduce object allocations for I18n#default - #488
- I18n is disabled during bootup if locale is false - #475
I18n::Backend::Chain#translationsnow merges translations from all backends - #470
- Ruby
Published by radar about 6 years ago
https://github.com/ruby-i18n/i18n - v1.6.0
Major updates
- Added support for eagerloading I18n -- which probably improves boot times for applications if implemented correctly - See #469 for more details.
- Added ability to disable I18n translation resolution by setting
I18n.locale = false. See #471 for more information.
Bugfixes / other improvements
- Add support for uppercased date format directives - #468
Other changes
- Fixed flaky test issue with JRuby - #459 / #460
- gemspec homepage now points to ruby-i18n/i18n - #465
- Update README to point to ruby-i18n/i18n - #473
- Ruby
Published by radar about 7 years ago
https://github.com/ruby-i18n/i18n - v1.5.3
Fix issue where localize would return strange messages if the translation was missing - #464
- Ruby
Published by radar about 7 years ago
https://github.com/ruby-i18n/i18n - v1.5.2
- Fixed a bug where the
required_ruby_versionwas not set correctly in thegemspec- #462
- Ruby
Published by radar about 7 years ago
https://github.com/ruby-i18n/i18n - v1.5.1
(Note that there is no v1.5.0 release. was prepping this release and found some more changes to make. So v1.5.1 is the first release for the v1.5.x series)
- Fixed a regression that happened when numeric translation keys contained leading zeros: #456 / #457
- Removed support for Ruby versions older than 2.3. Ruby 2.2 is now 4 years old. Applications have had ample time to upgrade, and if they haven't done so, now is an opportune time to do so.
- Removed some code that was checking for
RUBY_VERSION <= 1.9 - Began testing over Ruby 2.6.
- Ruby
Published by radar about 7 years ago
https://github.com/ruby-i18n/i18n - v1.4.0
- Fixed two issues with i18n and JRuby compat (commit fb0c8beb29cf75fbb82b66339284e8e3f31ecaff and #455). See #447.
- Fixed issue where keys in an array were not symbolised #450
- Fixed issue where ActiveSupport::HashWithIndifferentAccess was not handled correctly #454
- Ruby
Published by radar about 7 years ago
https://github.com/ruby-i18n/i18n -
- 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.)
- Ruby
Published by radar about 7 years ago
https://github.com/ruby-i18n/i18n - v1.2.0
- 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
CacheFilebackend module - #423 - Add
JSONbackend module - #429 - Updated README to point to the wiki - #438
- Added plural rules for
oclocale - #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
- Ruby
Published by radar about 7 years ago
https://github.com/ruby-i18n/i18n - v1.1.1
- 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
- Ruby
Published by radar over 7 years ago
https://github.com/ruby-i18n/i18n - v1.1.0
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
KeyValuebackend with subtrees disabled - #419 - Allow
yamlfile extension - #421
- Ruby
Published by radar over 7 years ago
https://github.com/ruby-i18n/i18n - v1.0.1
- Removed creation of some anonymous objects in I18n - #393
- Added missing key
exception_handlerto reserved keys - #412
Thanks to @stereobooster and @tjoyal.
- Ruby
Published by radar almost 8 years ago
https://github.com/ruby-i18n/i18n - v1.0.0
- Dropped Ruby 1.9.3 support (see #409)
- Ruby
Published by radar almost 8 years ago
https://github.com/ruby-i18n/i18n - v0.9.5
- #404 reported a regression in 0.9.3, which wasn't fixed by 0.9.4. #408 fixes this issue.
Thanks @wjordan!
- Ruby
Published by radar about 8 years ago
https://github.com/ruby-i18n/i18n - v0.9.4
- 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
- Ruby
Published by radar about 8 years ago
https://github.com/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
translateanddefault: [false]as an option. #399 - Fixed an issue with
translatewithniland 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!
- Ruby
Published by radar about 8 years ago
https://github.com/ruby-i18n/i18n -
- 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
- Ruby
Published by radar over 8 years ago
https://github.com/ruby-i18n/i18n - v0.9.0
- Made
Backend::Memoizethreadsafe. See #51 and #352. - Added a middleware
I18n::Middlewarethat should be used to ensure that i18n config is reset correctly between requests. See #381 and #382.
- Ruby
Published by radar over 8 years ago
https://github.com/ruby-i18n/i18n - v0.8.6
Fixed a small regression introduced in v0.8.5 when using fallbacks - See #378
- Ruby
Published by radar over 8 years ago
https://github.com/ruby-i18n/i18n - v0.8.5
- Improved error message for MissingPluralizationKey error - See #371
- Fixed a thread issue when calling translate when fallbacks were enabled - See #369
- Ruby
Published by radar over 8 years ago
https://github.com/ruby-i18n/i18n - v0.8.4
Reverted #236 - "Don't allow nil to be submitted as a key to I18n.translate" - See #370
- Ruby
Published by radar over 8 years ago
https://github.com/ruby-i18n/i18n - v0.8.3
I18n::Gettext#plural_keys will now return a hash from Gettext if no arguments are provided -
https://github.com/svenfuchs/i18n/pull/122
Fixed a bug where passing false to translate would not translate that value - https://github.com/svenfuchs/i18n/pull/367
- Ruby
Published by radar almost 9 years ago
https://github.com/ruby-i18n/i18n - v0.8.2
Do not allow nil to be passed to translate - https://github.com/svenfuchs/i18n/pull/236
- Ruby
Published by radar almost 9 years ago
https://github.com/ruby-i18n/i18n - v0.8.1
- Allow disabling fallback explicitly when calling translate - https://github.com/svenfuchs/i18n/pull/354
- Fixed transliteration to default replacement character - https://github.com/svenfuchs/i18n/pull/362
- Ruby
Published by radar about 9 years ago
https://github.com/ruby-i18n/i18n - v0.8.0
This release is the same as the v0.8.0.beta1 gem.
Notable changes
- You can now set
I18n.cache_key_digestto 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_formatinI18n::Backendclasses to customize how localize will perform. See https://github.com/svenfuchs/i18n/pull/347#issuecomment-258963454 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
:defaultoption forI18n.localize- #251
Bug fixes
- Reverted a commit which made it so that the great documentation for
I18n.translatewasn't made visible through a yard documentation generation. - bc926ebf98a9ae8f2db843ce16a33a5282d18d35 I18n.MissingTranslation.newcan now be called with two arguments. It will no longer raise a "TypeError: can't dup NilClass" exception - #295- I18n's
Hash#slicemethod no longer fails if the hash does not have the specified key - #289 I18n::Backend::Metadatawill now no longer attempt to set@translation_metadataon frozen objects - #305- Added missing
manyrule topltranslation rules - #346 - Calling
I18n.t(:foo, default: nil)OrI18n.t(:foo, default: false)will now returnnilorfalse, rather than returning a missing translation exception - #144 - Setting
I18n.load_pathviaI18n.load_path=will now reset the@@available_locales_setsetting. - #348 & #173 - The subclasses of
Hashwhen callingHash#sliceare maintained - #250 - Fixed
I18n.interpolatebehaviour when it was passed anActiveSupport::SafeBufferobject - #216
- Ruby
Published by radar about 9 years ago
https://github.com/ruby-i18n/i18n - 0.8.0.beta1
Notable changes
- You can now set
I18n.cache_key_digestto 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_formatinI18n::Backendclasses to customize how localize will perform. See https://github.com/svenfuchs/i18n/pull/347#issuecomment-258963454 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
:defaultoption forI18n.localize- #251
Bug fixes
- Reverted a commit which made it so that the great documentation for
I18n.translatewasn't made visible through a yard documentation generation. - bc926ebf98a9ae8f2db843ce16a33a5282d18d35 I18n.MissingTranslation.newcan now be called with two arguments. It will no longer raise a "TypeError: can't dup NilClass" exception - #295- I18n's
Hash#slicemethod no longer fails if the hash does not have the specified key - #289 I18n::Backend::Metadatawill now no longer attempt to set@translation_metadataon frozen objects - #305- Added missing
manyrule topltranslation rules - #346 - Calling
I18n.t(:foo, default: nil)OrI18n.t(:foo, default: false)will now returnnilorfalse, rather than returning a missing translation exception - #144 - Setting
I18n.load_pathviaI18n.load_path=will now reset the@@available_locales_setsetting. - #348 & #173 - The subclasses of
Hashwhen callingHash#sliceare maintained - #250 - Fixed
I18n.interpolatebehaviour when it was passed anActiveSupport::SafeBufferobject - #216
- Ruby
Published by radar over 9 years ago