route_translator 11.0.1 → 12.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/route_translator/translator/path/segment.rb +2 -2
- data/lib/route_translator/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67af9e1b02cca5669da31e3de5ee80a70010828cdf8b7b40ad9e281a4b336384
|
4
|
+
data.tar.gz: 9464d33a1006b8208ecddb10bac6fbea0b582d0183cc8be3b726307e665ace80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e65a1a4017de472931459fa414e0066ebf9f3c1dadcfc2889093bda3ea67a7e2aa031e89e2e39d9c6821e5b55d25b3fa0d5084c9604413fe6176d45a0b90619
|
7
|
+
data.tar.gz: ad478ac354cfd4aa7732aa6bc9921cf2f9f544e716e6a2e3d8b1f4788b4aff3f0a0274348f4b41c10098a22ac70c789598cfb2ca7fa557c34892090946d9e83f
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 12.0.0 / 2021-11-28
|
4
|
+
|
5
|
+
* [BUGFIX] Fix disable_fallback behavior ([#241](https://github.com/enriclluelles/route_translator/issues/241))
|
6
|
+
* [ENHANCEMENT] Update development dependencies
|
7
|
+
|
3
8
|
## 11.0.1 / 2021-11-15
|
4
9
|
|
5
10
|
* [ENHANCEMENT] Require MFA to publish gems
|
@@ -9,7 +9,7 @@ module RouteTranslator
|
|
9
9
|
|
10
10
|
def fallback_options(str, locale)
|
11
11
|
if RouteTranslator.config.disable_fallback && locale.to_s != I18n.default_locale.to_s
|
12
|
-
{ scope: :routes, fallback:
|
12
|
+
{ scope: :routes, fallback: false }
|
13
13
|
else
|
14
14
|
{ scope: :routes, default: str }
|
15
15
|
end
|
@@ -25,7 +25,7 @@ module RouteTranslator
|
|
25
25
|
opts = { locale: locale, scope: scope }
|
26
26
|
|
27
27
|
if I18n.t(str, **opts.merge(exception_handler: handler)).is_a?(I18n::MissingTranslation)
|
28
|
-
I18n.t str, **opts.merge(fallback_options(str, locale))
|
28
|
+
I18n.t! str, **opts.merge(fallback_options(str, locale))
|
29
29
|
else
|
30
30
|
I18n.t str, **opts
|
31
31
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: route_translator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 12.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Geremia Taglialatela
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2021-11-
|
13
|
+
date: 2021-11-28 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: actionpack
|