i18n_screwdriver 12.1.0 → 12.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/i18n_screwdriver/version.rb +1 -1
- data/lib/i18n_screwdriver.rb +6 -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: 05aaf7ca5ff02f062cb0647e74017de3fdaca3b7fc38b73cbdaf4c2c4d53ed10
|
4
|
+
data.tar.gz: a4c4bf18d3c4f5d6317d8b94ad84b402788ceaebbf64352ab76c055cd79e0729
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae833ac1921bfc08952d204f71a842a5deec12eaabdef2d3709e3c1cb9011920a910a0dc0f548d9401b65825cb84f916979901151e256630807a2ebbdd9be7e3
|
7
|
+
data.tar.gz: 267af9014f6ece7300ad7d6ced01de29f106f3dfaffac0d7e2c8f5bd687ce953fb1970b564c74310c5a659cdc894bd522ab54eccc7e8e2ecd5fc272ceb3866ba
|
data/Gemfile.lock
CHANGED
data/lib/i18n_screwdriver.rb
CHANGED
@@ -176,7 +176,12 @@ module I18nScrewdriver
|
|
176
176
|
end
|
177
177
|
|
178
178
|
def self.translate(string, **options)
|
179
|
-
escaped_options = options.transform_values
|
179
|
+
escaped_options = options.transform_values do |value|
|
180
|
+
next value unless value.is_a?(String)
|
181
|
+
|
182
|
+
value.gsub("|", "<PIPE/>")
|
183
|
+
end
|
184
|
+
|
180
185
|
I18n.translate!(generate_key(string), **escaped_options).split("|").last.gsub("<PIPE/>", "|")
|
181
186
|
rescue I18n::MissingTranslationData
|
182
187
|
I18n.translate(string, **options)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: i18n_screwdriver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 12.1.
|
4
|
+
version: 12.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tobias Miesel
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2025-01-
|
12
|
+
date: 2025-01-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|