diff options
author | Sharang Dashputre <sharang.d@gmail.com> | 2019-03-12 03:33:54 +0530 |
---|---|---|
committer | Sharang Dashputre <sharang.d@gmail.com> | 2019-03-12 14:06:09 +0530 |
commit | 8201dbf6856602f811c0847853dca2526dccf471 (patch) | |
tree | a9c6c200fb002318b2dfe3a59d3737ec10657076 | |
parent | cfa22f1a4b5e8b95ee01a432168de2f831b3f788 (diff) | |
download | rails-8201dbf6856602f811c0847853dca2526dccf471.tar.gz rails-8201dbf6856602f811c0847853dca2526dccf471.tar.bz2 rails-8201dbf6856602f811c0847853dca2526dccf471.zip |
Add changelog entry for transliterate/parameterize accepting `locale` [ci skip]
-rw-r--r-- | activesupport/CHANGELOG.md | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/activesupport/CHANGELOG.md b/activesupport/CHANGELOG.md index ea84b54b3f..14d0ca047a 100644 --- a/activesupport/CHANGELOG.md +++ b/activesupport/CHANGELOG.md @@ -1,3 +1,13 @@ +* Add support for supplying `locale` to `transliterate` and `parameterize` + + I18n.backend.store_translations(:de, i18n: { transliterate: { rule: { "ü" => "ue" } } }) + + ActiveSupport::Inflector.transliterate("ü", locale: :de) => "ue" + "Fünf autos".parameterize(locale: :de) => "fuenf-autos" + ActiveSupport::Inflector.parameterize("Fünf autos", locale: :de) => "fuenf-autos" + + *Kaan Ozkan*, *Sharang Dashputre* + * Allow Array#excluding and Enumerable#excluding to deal with a passed array gracefully. [ 1, 2, 3, 4, 5 ].excluding([4, 5]) => [ 1, 2, 3 ] |