Skip to content

Commit c5979e7

Browse files
committed
Merge pull request rails#35575 from sharang-d/changelog-for-parameterize
Add changelog entry for transliterate/parameterize accepting `locale` [ci skip]
2 parents f2cd46b + 8201dbf commit c5979e7

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

activesupport/CHANGELOG.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
* Add support for supplying `locale` to `transliterate` and `parameterize`.
2+
3+
I18n.backend.store_translations(:de, i18n: { transliterate: { rule: { "ü" => "ue" } } })
4+
5+
ActiveSupport::Inflector.transliterate("ü", locale: :de) => "ue"
6+
"Fünf autos".parameterize(locale: :de) => "fuenf-autos"
7+
ActiveSupport::Inflector.parameterize("Fünf autos", locale: :de) => "fuenf-autos"
8+
9+
*Kaan Ozkan*, *Sharang Dashputre*
10+
111
* Allow Array#excluding and Enumerable#excluding to deal with a passed array gracefully.
212

313
[ 1, 2, 3, 4, 5 ].excluding([4, 5]) => [ 1, 2, 3 ]
@@ -10,12 +20,13 @@
1020
*DHH*
1121

1222
* Added Array#including and Enumerable#including to conveniently enlarge a collection with more members using a method rather than an operator:
13-
23+
1424
[ 1, 2, 3 ].including(4, 5) => [ 1, 2, 3, 4, 5 ]
1525
post.authors.including(Current.person) => All the authors plus the current person!
1626

1727
*DHH*
1828

29+
1930
## Rails 6.0.0.beta2 (February 25, 2019) ##
2031

2132
* New autoloading based on [Zeitwerk](https://github.com/fxn/zeitwerk).
@@ -44,6 +55,7 @@
4455

4556
*Guillermo Iguaran*
4657

58+
4759
## Rails 6.0.0.beta1 (January 18, 2019) ##
4860

4961
* Remove deprecated `Module#reachable?` method.

0 commit comments

Comments
 (0)