fractual_i18n 0.2.0 → 0.2.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 +5 -5
- data/lib/fractual_i18n/phrases.rb +3 -1
- data/lib/fractual_i18n/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e5aacd2276257d9ccac2eb87d145339f126774386b4f45a93451f95c58a8ebc
|
4
|
+
data.tar.gz: b790fcb59a1ee52037211e06ff22e8a99aad687e54e93be11a004045b7dfb058
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9c5b7a959d7c8106a92b0d50351932820be199890d108ec6262a0c83a7b989549f8ef0c6357f9df1e0f212a19500b5e09c81de77527a2342f6eca0ca35cf6ca
|
7
|
+
data.tar.gz: dbe0286b03399991829a565a114c1e580ea8def9aefef1ad40c1dd207147f0141cef181db73e7a1bc900df791aeabc8a551dd9e070ef2bf6628d963df92f2100
|
data/Gemfile.lock
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
fractual_i18n (0.2.
|
4
|
+
fractual_i18n (0.2.1)
|
5
5
|
i18n
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
concurrent-ruby (1.1.
|
11
|
-
i18n (1.8.
|
10
|
+
concurrent-ruby (1.1.8)
|
11
|
+
i18n (1.8.10)
|
12
12
|
concurrent-ruby (~> 1.0)
|
13
|
-
minitest (5.14.
|
13
|
+
minitest (5.14.4)
|
14
14
|
rake (12.3.3)
|
15
15
|
|
16
16
|
PLATFORMS
|
@@ -22,4 +22,4 @@ DEPENDENCIES
|
|
22
22
|
rake (~> 12.0)
|
23
23
|
|
24
24
|
BUNDLED WITH
|
25
|
-
2.
|
25
|
+
2.2.16
|
@@ -18,7 +18,9 @@ class FractualI18n::Phrases
|
|
18
18
|
keys << last_key
|
19
19
|
keys.map! { |key| key.delete_prefix("_") } # remove underscore from partial name
|
20
20
|
|
21
|
-
|
21
|
+
if new_content = translations.dig(locale.to_s, *keys)
|
22
|
+
content[locale.to_s] = content.fetch(locale.to_s, {}).merge(new_content)
|
23
|
+
end
|
22
24
|
|
23
25
|
File.write(filename, content.to_yaml(line_width: 200))
|
24
26
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fractual_i18n
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Sęk
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-04-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: i18n
|
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
requirements: []
|
72
|
-
rubygems_version: 3.
|
72
|
+
rubygems_version: 3.2.16
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Supports loading translation files from views folder
|