r18n v4.0.0 Release Notes
Release Date: 2020-01-29 // about 5 years ago-
- ⬇️ Drop Ruby 2.3 support (by Alexander Popov).
- ⬇️ Drop
R18n::Utils.hash_map
(by Alexander Popov). - ➕ Add Ruby 2.6 and 2.7 for CI (by Alexander Popov).
- 👍 Allow to add custom (per-project) locales (by Alexander Popov).
- ➕ Add block for
R18n.change
(change affects only code inside block) (by Alexander Popov). - ➕ Add
language
andregion
readers forLocale
(by Alexander Popov). - 👍 Allow upcased region in translation file names (like
en-US.yml
) (by Alexander Popov). - 🌐 Load
base
translations from parent locale (by Alexander Popov). - Downcase locales with regions for
Translated
, likename_en_us
instead ofname_en-US
(by Alexander Popov). - ➕ Add Spanish Chile (
es-CL
) (by Juan Gil Miqueo). - ➕ Add
:with_seconds
option for Time formatting (by Alexander Popov). - Replace custom
gsub
inR18n::Utils.escape_html
withCGI.escapeHTML
(by Alexander Popov). - 👌 Improve Indonesian translation (by Mohammad Satrio).
- 👌 Improve documentation (by Alexander Popov).
- 🛠 Fix issue with wildcard in
Accept-Language
header (by Alexander Popov).
Previous changes from v3.2.0
-
- 👌 Support
*.yaml
files (by Alexander Popov). - 👍 Locate processed
code
inUnsupportedLocale
, like inLocale
(by Alexander Popov). - 🛠 Fix
TranslatedString#to_ary
, don't returnUntranslated
(by Alexander Popov). - ➕ Add Welsh language (
cy
) (by Mei Gwilym). - ➕ Add support for custom classes localizing (
R18n.l
) (by Alexander Popov). - Replace blank-padded day in date with no-padded (by Alexander Popov).
- 🛠 Fix
TranslatedString#to_hash
(by Christian Höppner and Alexander Popov).
- 👌 Support