isomorfeus-i18n 1.0.0.zeta2 → 1.0.0.zeta3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isomorfeus/i18n/config.rb +3 -3
- data/lib/isomorfeus/i18n/init.rb +1 -1
- data/lib/isomorfeus/i18n/version.rb +1 -1
- data/lib/lucid_translation/mixin.rb +6 -6
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee759498034f223d763dd0bbb9a5b5f8f9ef49988c8c26f3d553f5ee130d2a07
|
4
|
+
data.tar.gz: a9b64bbaa53da1a3c8e2fbe49175b4201194c2c5f24298bb091320105deb33c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3d763b7efa1a0515e6d66441869e02eff90a6e56d336bb56d6138f272969cbb0f708a5f20d23cc2a5ad87fc5687d9d78f082bcef5415e4086ef578a8830934e
|
7
|
+
data.tar.gz: ad76ccec03b576d03143e09f3faf18abc344baaf3cd0f1ab6f1a5a5fabaa6ab05c3aba13b0c5ecd98d28d6ad1f5324a11e74523413eb50f36d53f204f8306e6e
|
@@ -5,12 +5,12 @@ module Isomorfeus
|
|
5
5
|
|
6
6
|
if RUBY_ENGINE == 'opal'
|
7
7
|
def available_locales
|
8
|
-
result = Redux.
|
8
|
+
result = Redux.fetch_by_path(:i18n_state, :available_locales)
|
9
9
|
result ? result : ['en']
|
10
10
|
end
|
11
11
|
|
12
12
|
def i18n_domain
|
13
|
-
result = Redux.
|
13
|
+
result = Redux.fetch_by_path(:i18n_state, :domain)
|
14
14
|
result ? result : 'app'
|
15
15
|
end
|
16
16
|
|
@@ -20,7 +20,7 @@ module Isomorfeus
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def locale
|
23
|
-
result = Redux.
|
23
|
+
result = Redux.fetch_by_path(:i18n_state, :locale)
|
24
24
|
result ? result : available_locales.first
|
25
25
|
end
|
26
26
|
|
data/lib/isomorfeus/i18n/init.rb
CHANGED
@@ -16,7 +16,7 @@ module LucidTranslation
|
|
16
16
|
def _(*keys, &block)
|
17
17
|
domain = Isomorfeus.i18n_domain
|
18
18
|
locale = Isomorfeus.locale
|
19
|
-
result = Redux.
|
19
|
+
result = Redux.fetch_by_path(:i18n_state, domain, locale, '_', keys)
|
20
20
|
return result if result
|
21
21
|
if Isomorfeus::I18n::Init.initialized?
|
22
22
|
Isomorfeus::Transport.promise_send_path('Isomorfeus::I18n::Handler::LocaleHandler', domain, locale, '_', keys).then do |response|
|
@@ -33,7 +33,7 @@ module LucidTranslation
|
|
33
33
|
def n_(*keys, count, &block)
|
34
34
|
domain = Isomorfeus.i18n_domain
|
35
35
|
locale = Isomorfeus.locale
|
36
|
-
result = Redux.
|
36
|
+
result = Redux.fetch_by_path(:i18n_state, domain, locale, 'n_', keys + [count])
|
37
37
|
return result if result
|
38
38
|
if Isomorfeus::I18n::Init.initialized?
|
39
39
|
Isomorfeus::Transport.promise_send_path('Isomorfeus::I18n::Handler::LocaleHandler', domain, locale, 'n_', keys + [count]).then do |response|
|
@@ -58,7 +58,7 @@ module LucidTranslation
|
|
58
58
|
def ns_(*args, &block)
|
59
59
|
domain = Isomorfeus.i18n_domain
|
60
60
|
locale = Isomorfeus.locale
|
61
|
-
result = Redux.
|
61
|
+
result = Redux.fetch_by_path(:i18n_state, domain, locale, 'ns_', args)
|
62
62
|
return result if result
|
63
63
|
if Isomorfeus::I18n::Init.initialized?
|
64
64
|
Isomorfeus::Transport.promise_send_path('Isomorfeus::I18n::Handler::LocaleHandler', domain, locale, 'ns_', args).then do |response|
|
@@ -76,7 +76,7 @@ module LucidTranslation
|
|
76
76
|
domain = Isomorfeus.i18n_domain
|
77
77
|
locale = Isomorfeus.locale
|
78
78
|
args = separator ? [namespace, key, separator] : [namespace, key]
|
79
|
-
result = Redux.
|
79
|
+
result = Redux.fetch_by_path(:i18n_state, domain, locale, 'p_', args)
|
80
80
|
return result if result
|
81
81
|
if Isomorfeus::I18n::Init.initialized?
|
82
82
|
Isomorfeus::Transport.promise_send_path('Isomorfeus::I18n::Handler::LocaleHandler', domain, locale, 'p_', args).then do |response|
|
@@ -94,7 +94,7 @@ module LucidTranslation
|
|
94
94
|
domain = Isomorfeus.i18n_domain
|
95
95
|
locale = Isomorfeus.locale
|
96
96
|
args = separator ? [key, separator] : [key]
|
97
|
-
result = Redux.
|
97
|
+
result = Redux.fetch_by_path(:i18n_state, domain, locale, 's_', args)
|
98
98
|
return result if result
|
99
99
|
if Isomorfeus::I18n::Init.initialized?
|
100
100
|
Isomorfeus::Transport.promise_send_path('Isomorfeus::I18n::Handler::LocaleHandler', domain, locale, 's_', args).then do |response|
|
@@ -130,7 +130,7 @@ module LucidTranslation
|
|
130
130
|
define_method("D#{method}") do |*args, &block|
|
131
131
|
domain = Isomorfeus.i18n_domain
|
132
132
|
locale = Isomorfeus.locale
|
133
|
-
result = Redux.
|
133
|
+
result = Redux.fetch_by_path(:i18n_state, domain, locale, "D#{method}", args)
|
134
134
|
return result if result
|
135
135
|
if Isomorfeus::I18n::Init.initialized?
|
136
136
|
Isomorfeus::Transport.promise_send_path('Isomorfeus::I18n::Handler::LocaleHandler', domain, locale, "D#{method}", args).then do |response|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: isomorfeus-i18n
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.zeta3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Biedermann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-08-
|
11
|
+
date: 2019-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -114,70 +114,70 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 16.9.
|
117
|
+
version: 16.9.17
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 16.9.
|
124
|
+
version: 16.9.17
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: isomorfeus-redux
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: 4.0.
|
131
|
+
version: 4.0.12
|
132
132
|
type: :runtime
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: 4.0.
|
138
|
+
version: 4.0.12
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: isomorfeus-transport
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
143
|
- - '='
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: 1.0.0.
|
145
|
+
version: 1.0.0.zeta3
|
146
146
|
type: :runtime
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - '='
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: 1.0.0.
|
152
|
+
version: 1.0.0.zeta3
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: isomorfeus-data
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
157
|
- - '='
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: 1.0.0.
|
159
|
+
version: 1.0.0.zeta3
|
160
160
|
type: :runtime
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - '='
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: 1.0.0.
|
166
|
+
version: 1.0.0.zeta3
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: isomorfeus-installer
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
171
|
- - '='
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version: 1.0.0.
|
173
|
+
version: 1.0.0.zeta3
|
174
174
|
type: :development
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
178
|
- - '='
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version: 1.0.0.
|
180
|
+
version: 1.0.0.zeta3
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
name: opal-webpack-loader
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|