i18n-js 3.9.2 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/CODEOWNERS +4 -0
- data/.github/FUNDING.yml +1 -1
- data/.github/ISSUE_TEMPLATE/bug_report.md +41 -0
- data/.github/ISSUE_TEMPLATE/config.yml +5 -0
- data/.github/ISSUE_TEMPLATE/feature_request.md +23 -0
- data/.github/PULL_REQUEST_TEMPLATE.md +38 -0
- data/.github/dependabot.yml +15 -0
- data/.github/workflows/ruby-tests.yml +52 -0
- data/.gitignore +11 -7
- data/.rubocop.yml +16 -0
- data/CHANGELOG.md +12 -571
- data/CODE_OF_CONDUCT.md +74 -0
- data/CONTRIBUTING.md +79 -0
- data/Gemfile +3 -0
- data/LICENSE.md +20 -0
- data/README.md +180 -1003
- data/Rakefile +10 -20
- data/exe/i18n +5 -0
- data/i18n-js.gemspec +48 -29
- data/images/i18njs-check.gif +0 -0
- data/lib/guard/i18n-js/templates/Guardfile +10 -0
- data/lib/guard/i18n-js/version.rb +13 -0
- data/lib/guard/i18n-js.rb +78 -0
- data/lib/i18n-js/cli/check_command.rb +157 -0
- data/lib/i18n-js/cli/command.rb +69 -0
- data/lib/i18n-js/cli/export_command.rb +81 -0
- data/lib/i18n-js/cli/init_command.rb +52 -0
- data/lib/i18n-js/cli/ui.rb +64 -0
- data/lib/i18n-js/cli/version_command.rb +18 -0
- data/lib/i18n-js/cli.rb +55 -0
- data/lib/i18n-js/listen.rb +81 -0
- data/lib/i18n-js/schema.rb +104 -0
- data/lib/i18n-js/version.rb +5 -0
- data/lib/i18n-js.rb +73 -1
- metadata +127 -198
- data/.editorconfig +0 -24
- data/.github/workflows/tests.yaml +0 -106
- data/.npmignore +0 -27
- data/Appraisals +0 -52
- data/app/assets/javascripts/i18n/filtered.js.erb +0 -23
- data/app/assets/javascripts/i18n/shims.js +0 -240
- data/app/assets/javascripts/i18n/translations.js +0 -3
- data/app/assets/javascripts/i18n.js +0 -1095
- data/gemfiles/i18n_0_6.gemfile +0 -7
- data/gemfiles/i18n_0_7.gemfile +0 -7
- data/gemfiles/i18n_0_8.gemfile +0 -7
- data/gemfiles/i18n_0_9.gemfile +0 -7
- data/gemfiles/i18n_1_0.gemfile +0 -7
- data/gemfiles/i18n_1_1.gemfile +0 -7
- data/gemfiles/i18n_1_10.gemfile +0 -7
- data/gemfiles/i18n_1_2.gemfile +0 -7
- data/gemfiles/i18n_1_3.gemfile +0 -7
- data/gemfiles/i18n_1_4.gemfile +0 -7
- data/gemfiles/i18n_1_5.gemfile +0 -7
- data/gemfiles/i18n_1_6.gemfile +0 -7
- data/gemfiles/i18n_1_7.gemfile +0 -7
- data/gemfiles/i18n_1_8.gemfile +0 -7
- data/gemfiles/i18n_1_9.gemfile +0 -7
- data/lib/i18n/js/dependencies.rb +0 -67
- data/lib/i18n/js/engine.rb +0 -87
- data/lib/i18n/js/fallback_locales.rb +0 -70
- data/lib/i18n/js/formatters/base.rb +0 -25
- data/lib/i18n/js/formatters/js.rb +0 -39
- data/lib/i18n/js/formatters/json.rb +0 -13
- data/lib/i18n/js/middleware.rb +0 -82
- data/lib/i18n/js/private/config_store.rb +0 -31
- data/lib/i18n/js/private/hash_with_symbol_keys.rb +0 -36
- data/lib/i18n/js/segment.rb +0 -81
- data/lib/i18n/js/utils.rb +0 -91
- data/lib/i18n/js/version.rb +0 -7
- data/lib/i18n/js.rb +0 -274
- data/lib/rails/generators/i18n/js/config/config_generator.rb +0 -19
- data/lib/rails/generators/i18n/js/config/templates/i18n-js.yml +0 -27
- data/lib/tasks/export.rake +0 -8
- data/package.json +0 -25
- data/spec/fixtures/custom_path.yml +0 -5
- data/spec/fixtures/default.yml +0 -5
- data/spec/fixtures/erb.yml +0 -5
- data/spec/fixtures/except_condition.yml +0 -7
- data/spec/fixtures/js_available_locales_custom.yml +0 -1
- data/spec/fixtures/js_export_dir_custom.yml +0 -7
- data/spec/fixtures/js_export_dir_none.yml +0 -6
- data/spec/fixtures/js_extend_parent.yml +0 -6
- data/spec/fixtures/js_extend_segment.yml +0 -6
- data/spec/fixtures/js_file_per_locale.yml +0 -7
- data/spec/fixtures/js_file_per_locale_with_fallbacks_as_default_locale_symbol.yml +0 -4
- data/spec/fixtures/js_file_per_locale_with_fallbacks_as_hash.yml +0 -6
- data/spec/fixtures/js_file_per_locale_with_fallbacks_as_locale.yml +0 -4
- data/spec/fixtures/js_file_per_locale_with_fallbacks_as_locale_without_fallback_translations.yml +0 -4
- data/spec/fixtures/js_file_per_locale_with_fallbacks_enabled.yml +0 -4
- data/spec/fixtures/js_file_per_locale_without_fallbacks.yml +0 -4
- data/spec/fixtures/js_file_with_namespace_prefix_and_pretty_print.yml +0 -9
- data/spec/fixtures/js_sort_translation_keys_false.yml +0 -6
- data/spec/fixtures/js_sort_translation_keys_true.yml +0 -6
- data/spec/fixtures/json_only.yml +0 -18
- data/spec/fixtures/locales.yml +0 -133
- data/spec/fixtures/merge_plurals.yml +0 -6
- data/spec/fixtures/merge_plurals_with_no_overrides.yml +0 -4
- data/spec/fixtures/merge_plurals_with_partial_overrides.yml +0 -4
- data/spec/fixtures/millions.yml +0 -4
- data/spec/fixtures/multiple_conditions.yml +0 -7
- data/spec/fixtures/multiple_conditions_per_locale.yml +0 -7
- data/spec/fixtures/multiple_files.yml +0 -7
- data/spec/fixtures/no_config.yml +0 -2
- data/spec/fixtures/no_scope.yml +0 -4
- data/spec/fixtures/simple_scope.yml +0 -5
- data/spec/js/currency.spec.js +0 -62
- data/spec/js/current_locale.spec.js +0 -19
- data/spec/js/dates.spec.js +0 -276
- data/spec/js/defaults.spec.js +0 -31
- data/spec/js/extend.spec.js +0 -110
- data/spec/js/interpolation.spec.js +0 -124
- data/spec/js/jasmine/MIT.LICENSE +0 -20
- data/spec/js/jasmine/jasmine-html.js +0 -190
- data/spec/js/jasmine/jasmine.css +0 -166
- data/spec/js/jasmine/jasmine.js +0 -2476
- data/spec/js/jasmine/jasmine_favicon.png +0 -0
- data/spec/js/json_parsable.spec.js +0 -14
- data/spec/js/locales.spec.js +0 -31
- data/spec/js/localization.spec.js +0 -78
- data/spec/js/numbers.spec.js +0 -174
- data/spec/js/placeholder.spec.js +0 -24
- data/spec/js/pluralization.spec.js +0 -228
- data/spec/js/prepare_options.spec.js +0 -41
- data/spec/js/require.js +0 -2083
- data/spec/js/specs.html +0 -49
- data/spec/js/specs_requirejs.html +0 -72
- data/spec/js/translate.spec.js +0 -304
- data/spec/js/translations.js +0 -188
- data/spec/js/utility_functions.spec.js +0 -20
- data/spec/ruby/i18n/js/fallback_locales_spec.rb +0 -84
- data/spec/ruby/i18n/js/segment_spec.rb +0 -286
- data/spec/ruby/i18n/js/utils_spec.rb +0 -138
- data/spec/ruby/i18n/js_spec.rb +0 -797
- data/spec/spec_helper.rb +0 -80
- data/yarn.lock +0 -138
metadata
CHANGED
@@ -1,221 +1,210 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: i18n-js
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nando Vieira
|
8
|
-
autorequire:
|
9
|
-
bindir:
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: glob
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: i18n
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
16
30
|
requirements:
|
17
31
|
- - ">="
|
18
32
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0
|
33
|
+
version: '0'
|
20
34
|
type: :runtime
|
21
35
|
prerelease: false
|
22
36
|
version_requirements: !ruby/object:Gem::Requirement
|
23
37
|
requirements:
|
24
38
|
- - ">="
|
25
39
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: activesupport
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: minitest
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
27
69
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
70
|
+
name: minitest-utils
|
29
71
|
requirement: !ruby/object:Gem::Requirement
|
30
72
|
requirements:
|
31
|
-
- - "
|
73
|
+
- - ">="
|
32
74
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
75
|
+
version: '0'
|
34
76
|
type: :development
|
35
77
|
prerelease: false
|
36
78
|
version_requirements: !ruby/object:Gem::Requirement
|
37
79
|
requirements:
|
38
|
-
- - "
|
80
|
+
- - ">="
|
39
81
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
82
|
+
version: '0'
|
41
83
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
84
|
+
name: pry-meta
|
43
85
|
requirement: !ruby/object:Gem::Requirement
|
44
86
|
requirements:
|
45
|
-
- - "
|
87
|
+
- - ">="
|
46
88
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
89
|
+
version: '0'
|
48
90
|
type: :development
|
49
91
|
prerelease: false
|
50
92
|
version_requirements: !ruby/object:Gem::Requirement
|
51
93
|
requirements:
|
52
|
-
- - "
|
94
|
+
- - ">="
|
53
95
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
96
|
+
version: '0'
|
55
97
|
- !ruby/object:Gem::Dependency
|
56
98
|
name: rake
|
57
99
|
requirement: !ruby/object:Gem::Requirement
|
58
100
|
requirements:
|
59
|
-
- - "
|
101
|
+
- - ">="
|
60
102
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
103
|
+
version: '0'
|
62
104
|
type: :development
|
63
105
|
prerelease: false
|
64
106
|
version_requirements: !ruby/object:Gem::Requirement
|
65
107
|
requirements:
|
66
|
-
- - "
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rubocop
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
67
123
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
124
|
+
version: '0'
|
69
125
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
126
|
+
name: rubocop-fnando
|
71
127
|
requirement: !ruby/object:Gem::Requirement
|
72
128
|
requirements:
|
73
129
|
- - ">="
|
74
130
|
- !ruby/object:Gem::Version
|
75
|
-
version: '0
|
131
|
+
version: '0'
|
76
132
|
type: :development
|
77
133
|
prerelease: false
|
78
134
|
version_requirements: !ruby/object:Gem::Requirement
|
79
135
|
requirements:
|
80
136
|
- - ">="
|
81
137
|
- !ruby/object:Gem::Version
|
82
|
-
version: '0
|
138
|
+
version: '0'
|
83
139
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
140
|
+
name: simplecov
|
85
141
|
requirement: !ruby/object:Gem::Requirement
|
86
142
|
requirements:
|
87
143
|
- - ">="
|
88
144
|
- !ruby/object:Gem::Version
|
89
|
-
version: '0
|
145
|
+
version: '0'
|
90
146
|
type: :development
|
91
147
|
prerelease: false
|
92
148
|
version_requirements: !ruby/object:Gem::Requirement
|
93
149
|
requirements:
|
94
150
|
- - ">="
|
95
151
|
- !ruby/object:Gem::Version
|
96
|
-
version: '0
|
97
|
-
description:
|
152
|
+
version: '0'
|
153
|
+
description: Export i18n translations and use them on JavaScript.
|
98
154
|
email:
|
99
|
-
- fnando.
|
100
|
-
executables:
|
155
|
+
- me@fnando.com
|
156
|
+
executables:
|
157
|
+
- i18n
|
101
158
|
extensions: []
|
102
159
|
extra_rdoc_files: []
|
103
160
|
files:
|
104
|
-
- ".
|
161
|
+
- ".github/CODEOWNERS"
|
105
162
|
- ".github/FUNDING.yml"
|
106
|
-
- ".github/
|
163
|
+
- ".github/ISSUE_TEMPLATE/bug_report.md"
|
164
|
+
- ".github/ISSUE_TEMPLATE/config.yml"
|
165
|
+
- ".github/ISSUE_TEMPLATE/feature_request.md"
|
166
|
+
- ".github/PULL_REQUEST_TEMPLATE.md"
|
167
|
+
- ".github/dependabot.yml"
|
168
|
+
- ".github/workflows/ruby-tests.yml"
|
107
169
|
- ".gitignore"
|
108
|
-
- ".
|
109
|
-
- Appraisals
|
170
|
+
- ".rubocop.yml"
|
110
171
|
- CHANGELOG.md
|
172
|
+
- CODE_OF_CONDUCT.md
|
173
|
+
- CONTRIBUTING.md
|
111
174
|
- Gemfile
|
175
|
+
- LICENSE.md
|
112
176
|
- README.md
|
113
177
|
- Rakefile
|
114
|
-
-
|
115
|
-
- app/assets/javascripts/i18n/filtered.js.erb
|
116
|
-
- app/assets/javascripts/i18n/shims.js
|
117
|
-
- app/assets/javascripts/i18n/translations.js
|
118
|
-
- gemfiles/i18n_0_6.gemfile
|
119
|
-
- gemfiles/i18n_0_7.gemfile
|
120
|
-
- gemfiles/i18n_0_8.gemfile
|
121
|
-
- gemfiles/i18n_0_9.gemfile
|
122
|
-
- gemfiles/i18n_1_0.gemfile
|
123
|
-
- gemfiles/i18n_1_1.gemfile
|
124
|
-
- gemfiles/i18n_1_10.gemfile
|
125
|
-
- gemfiles/i18n_1_2.gemfile
|
126
|
-
- gemfiles/i18n_1_3.gemfile
|
127
|
-
- gemfiles/i18n_1_4.gemfile
|
128
|
-
- gemfiles/i18n_1_5.gemfile
|
129
|
-
- gemfiles/i18n_1_6.gemfile
|
130
|
-
- gemfiles/i18n_1_7.gemfile
|
131
|
-
- gemfiles/i18n_1_8.gemfile
|
132
|
-
- gemfiles/i18n_1_9.gemfile
|
178
|
+
- exe/i18n
|
133
179
|
- i18n-js.gemspec
|
134
180
|
- i18njs.png
|
181
|
+
- images/i18njs-check.gif
|
182
|
+
- lib/guard/i18n-js.rb
|
183
|
+
- lib/guard/i18n-js/templates/Guardfile
|
184
|
+
- lib/guard/i18n-js/version.rb
|
135
185
|
- lib/i18n-js.rb
|
136
|
-
- lib/i18n/
|
137
|
-
- lib/i18n
|
138
|
-
- lib/i18n
|
139
|
-
- lib/i18n
|
140
|
-
- lib/i18n
|
141
|
-
- lib/i18n
|
142
|
-
- lib/i18n
|
143
|
-
- lib/i18n
|
144
|
-
- lib/i18n
|
145
|
-
- lib/i18n
|
146
|
-
|
147
|
-
- lib/i18n/js/utils.rb
|
148
|
-
- lib/i18n/js/version.rb
|
149
|
-
- lib/rails/generators/i18n/js/config/config_generator.rb
|
150
|
-
- lib/rails/generators/i18n/js/config/templates/i18n-js.yml
|
151
|
-
- lib/tasks/export.rake
|
152
|
-
- package.json
|
153
|
-
- spec/fixtures/custom_path.yml
|
154
|
-
- spec/fixtures/default.yml
|
155
|
-
- spec/fixtures/erb.yml
|
156
|
-
- spec/fixtures/except_condition.yml
|
157
|
-
- spec/fixtures/js_available_locales_custom.yml
|
158
|
-
- spec/fixtures/js_export_dir_custom.yml
|
159
|
-
- spec/fixtures/js_export_dir_none.yml
|
160
|
-
- spec/fixtures/js_extend_parent.yml
|
161
|
-
- spec/fixtures/js_extend_segment.yml
|
162
|
-
- spec/fixtures/js_file_per_locale.yml
|
163
|
-
- spec/fixtures/js_file_per_locale_with_fallbacks_as_default_locale_symbol.yml
|
164
|
-
- spec/fixtures/js_file_per_locale_with_fallbacks_as_hash.yml
|
165
|
-
- spec/fixtures/js_file_per_locale_with_fallbacks_as_locale.yml
|
166
|
-
- spec/fixtures/js_file_per_locale_with_fallbacks_as_locale_without_fallback_translations.yml
|
167
|
-
- spec/fixtures/js_file_per_locale_with_fallbacks_enabled.yml
|
168
|
-
- spec/fixtures/js_file_per_locale_without_fallbacks.yml
|
169
|
-
- spec/fixtures/js_file_with_namespace_prefix_and_pretty_print.yml
|
170
|
-
- spec/fixtures/js_sort_translation_keys_false.yml
|
171
|
-
- spec/fixtures/js_sort_translation_keys_true.yml
|
172
|
-
- spec/fixtures/json_only.yml
|
173
|
-
- spec/fixtures/locales.yml
|
174
|
-
- spec/fixtures/merge_plurals.yml
|
175
|
-
- spec/fixtures/merge_plurals_with_no_overrides.yml
|
176
|
-
- spec/fixtures/merge_plurals_with_partial_overrides.yml
|
177
|
-
- spec/fixtures/millions.yml
|
178
|
-
- spec/fixtures/multiple_conditions.yml
|
179
|
-
- spec/fixtures/multiple_conditions_per_locale.yml
|
180
|
-
- spec/fixtures/multiple_files.yml
|
181
|
-
- spec/fixtures/no_config.yml
|
182
|
-
- spec/fixtures/no_scope.yml
|
183
|
-
- spec/fixtures/simple_scope.yml
|
184
|
-
- spec/js/currency.spec.js
|
185
|
-
- spec/js/current_locale.spec.js
|
186
|
-
- spec/js/dates.spec.js
|
187
|
-
- spec/js/defaults.spec.js
|
188
|
-
- spec/js/extend.spec.js
|
189
|
-
- spec/js/interpolation.spec.js
|
190
|
-
- spec/js/jasmine/MIT.LICENSE
|
191
|
-
- spec/js/jasmine/jasmine-html.js
|
192
|
-
- spec/js/jasmine/jasmine.css
|
193
|
-
- spec/js/jasmine/jasmine.js
|
194
|
-
- spec/js/jasmine/jasmine_favicon.png
|
195
|
-
- spec/js/json_parsable.spec.js
|
196
|
-
- spec/js/locales.spec.js
|
197
|
-
- spec/js/localization.spec.js
|
198
|
-
- spec/js/numbers.spec.js
|
199
|
-
- spec/js/placeholder.spec.js
|
200
|
-
- spec/js/pluralization.spec.js
|
201
|
-
- spec/js/prepare_options.spec.js
|
202
|
-
- spec/js/require.js
|
203
|
-
- spec/js/specs.html
|
204
|
-
- spec/js/specs_requirejs.html
|
205
|
-
- spec/js/translate.spec.js
|
206
|
-
- spec/js/translations.js
|
207
|
-
- spec/js/utility_functions.spec.js
|
208
|
-
- spec/ruby/i18n/js/fallback_locales_spec.rb
|
209
|
-
- spec/ruby/i18n/js/segment_spec.rb
|
210
|
-
- spec/ruby/i18n/js/utils_spec.rb
|
211
|
-
- spec/ruby/i18n/js_spec.rb
|
212
|
-
- spec/spec_helper.rb
|
213
|
-
- yarn.lock
|
214
|
-
homepage: https://rubygems.org/gems/i18n-js
|
186
|
+
- lib/i18n-js/cli.rb
|
187
|
+
- lib/i18n-js/cli/check_command.rb
|
188
|
+
- lib/i18n-js/cli/command.rb
|
189
|
+
- lib/i18n-js/cli/export_command.rb
|
190
|
+
- lib/i18n-js/cli/init_command.rb
|
191
|
+
- lib/i18n-js/cli/ui.rb
|
192
|
+
- lib/i18n-js/cli/version_command.rb
|
193
|
+
- lib/i18n-js/listen.rb
|
194
|
+
- lib/i18n-js/schema.rb
|
195
|
+
- lib/i18n-js/version.rb
|
196
|
+
homepage: https://github.com/fnando/i18n-js
|
215
197
|
licenses:
|
216
198
|
- MIT
|
217
|
-
metadata:
|
218
|
-
|
199
|
+
metadata:
|
200
|
+
rubygems_mfa_required: 'true'
|
201
|
+
homepage_uri: https://github.com/fnando/i18n-js
|
202
|
+
bug_tracker_uri: https://github.com/fnando/i18n-js/issues
|
203
|
+
source_code_uri: https://github.com/fnando/i18n-js/tree/v4.0.0
|
204
|
+
changelog_uri: https://github.com/fnando/i18n-js/tree/v4.0.0/CHANGELOG.md
|
205
|
+
documentation_uri: https://github.com/fnando/i18n-js/tree/v4.0.0/README.md
|
206
|
+
license_uri: https://github.com/fnando/i18n-js/tree/v4.0.0/LICENSE.md
|
207
|
+
post_install_message:
|
219
208
|
rdoc_options: []
|
220
209
|
require_paths:
|
221
210
|
- lib
|
@@ -223,75 +212,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
223
212
|
requirements:
|
224
213
|
- - ">="
|
225
214
|
- !ruby/object:Gem::Version
|
226
|
-
version: 2.
|
215
|
+
version: 2.6.0
|
227
216
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
228
217
|
requirements:
|
229
218
|
- - ">="
|
230
219
|
- !ruby/object:Gem::Version
|
231
220
|
version: '0'
|
232
221
|
requirements: []
|
233
|
-
rubygems_version: 3.3.
|
234
|
-
signing_key:
|
222
|
+
rubygems_version: 3.3.7
|
223
|
+
signing_key:
|
235
224
|
specification_version: 4
|
236
|
-
summary:
|
237
|
-
test_files:
|
238
|
-
- spec/fixtures/custom_path.yml
|
239
|
-
- spec/fixtures/default.yml
|
240
|
-
- spec/fixtures/erb.yml
|
241
|
-
- spec/fixtures/except_condition.yml
|
242
|
-
- spec/fixtures/js_available_locales_custom.yml
|
243
|
-
- spec/fixtures/js_export_dir_custom.yml
|
244
|
-
- spec/fixtures/js_export_dir_none.yml
|
245
|
-
- spec/fixtures/js_extend_parent.yml
|
246
|
-
- spec/fixtures/js_extend_segment.yml
|
247
|
-
- spec/fixtures/js_file_per_locale.yml
|
248
|
-
- spec/fixtures/js_file_per_locale_with_fallbacks_as_default_locale_symbol.yml
|
249
|
-
- spec/fixtures/js_file_per_locale_with_fallbacks_as_hash.yml
|
250
|
-
- spec/fixtures/js_file_per_locale_with_fallbacks_as_locale.yml
|
251
|
-
- spec/fixtures/js_file_per_locale_with_fallbacks_as_locale_without_fallback_translations.yml
|
252
|
-
- spec/fixtures/js_file_per_locale_with_fallbacks_enabled.yml
|
253
|
-
- spec/fixtures/js_file_per_locale_without_fallbacks.yml
|
254
|
-
- spec/fixtures/js_file_with_namespace_prefix_and_pretty_print.yml
|
255
|
-
- spec/fixtures/js_sort_translation_keys_false.yml
|
256
|
-
- spec/fixtures/js_sort_translation_keys_true.yml
|
257
|
-
- spec/fixtures/json_only.yml
|
258
|
-
- spec/fixtures/locales.yml
|
259
|
-
- spec/fixtures/merge_plurals.yml
|
260
|
-
- spec/fixtures/merge_plurals_with_no_overrides.yml
|
261
|
-
- spec/fixtures/merge_plurals_with_partial_overrides.yml
|
262
|
-
- spec/fixtures/millions.yml
|
263
|
-
- spec/fixtures/multiple_conditions.yml
|
264
|
-
- spec/fixtures/multiple_conditions_per_locale.yml
|
265
|
-
- spec/fixtures/multiple_files.yml
|
266
|
-
- spec/fixtures/no_config.yml
|
267
|
-
- spec/fixtures/no_scope.yml
|
268
|
-
- spec/fixtures/simple_scope.yml
|
269
|
-
- spec/js/currency.spec.js
|
270
|
-
- spec/js/current_locale.spec.js
|
271
|
-
- spec/js/dates.spec.js
|
272
|
-
- spec/js/defaults.spec.js
|
273
|
-
- spec/js/extend.spec.js
|
274
|
-
- spec/js/interpolation.spec.js
|
275
|
-
- spec/js/jasmine/MIT.LICENSE
|
276
|
-
- spec/js/jasmine/jasmine-html.js
|
277
|
-
- spec/js/jasmine/jasmine.css
|
278
|
-
- spec/js/jasmine/jasmine.js
|
279
|
-
- spec/js/jasmine/jasmine_favicon.png
|
280
|
-
- spec/js/json_parsable.spec.js
|
281
|
-
- spec/js/locales.spec.js
|
282
|
-
- spec/js/localization.spec.js
|
283
|
-
- spec/js/numbers.spec.js
|
284
|
-
- spec/js/placeholder.spec.js
|
285
|
-
- spec/js/pluralization.spec.js
|
286
|
-
- spec/js/prepare_options.spec.js
|
287
|
-
- spec/js/require.js
|
288
|
-
- spec/js/specs.html
|
289
|
-
- spec/js/specs_requirejs.html
|
290
|
-
- spec/js/translate.spec.js
|
291
|
-
- spec/js/translations.js
|
292
|
-
- spec/js/utility_functions.spec.js
|
293
|
-
- spec/ruby/i18n/js/fallback_locales_spec.rb
|
294
|
-
- spec/ruby/i18n/js/segment_spec.rb
|
295
|
-
- spec/ruby/i18n/js/utils_spec.rb
|
296
|
-
- spec/ruby/i18n/js_spec.rb
|
297
|
-
- spec/spec_helper.rb
|
225
|
+
summary: Export i18n translations and use them on JavaScript.
|
226
|
+
test_files: []
|
data/.editorconfig
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
# EditorConfig is awesome: https://EditorConfig.org
|
2
|
-
|
3
|
-
# top-most EditorConfig file
|
4
|
-
root = true
|
5
|
-
|
6
|
-
# default configuration
|
7
|
-
[*]
|
8
|
-
indent_style = space
|
9
|
-
indent_size = 2
|
10
|
-
insert_final_newline = true
|
11
|
-
trim_trailing_whitespace = true
|
12
|
-
|
13
|
-
# Unix-style newlines with a newline ending every file
|
14
|
-
end_of_line = lf
|
15
|
-
|
16
|
-
# Set default charset
|
17
|
-
charset = utf-8
|
18
|
-
|
19
|
-
# Tab indentation (no size specified)
|
20
|
-
[Makefile]
|
21
|
-
indent_style = tab
|
22
|
-
|
23
|
-
[*.{md,markdown}]
|
24
|
-
trim_trailing_whitespace = false
|
@@ -1,106 +0,0 @@
|
|
1
|
-
name: Tests
|
2
|
-
|
3
|
-
on:
|
4
|
-
pull_request:
|
5
|
-
branches:
|
6
|
-
- main
|
7
|
-
- v3
|
8
|
-
paths-ignore:
|
9
|
-
- 'README.md'
|
10
|
-
push:
|
11
|
-
branches:
|
12
|
-
- main
|
13
|
-
- v3
|
14
|
-
paths-ignore:
|
15
|
-
- 'README.md'
|
16
|
-
|
17
|
-
jobs:
|
18
|
-
ruby_unit_tests:
|
19
|
-
name: Ruby Unit Tests
|
20
|
-
if: "contains(github.event.commits[0].message, '[ci skip]') == false"
|
21
|
-
strategy:
|
22
|
-
fail-fast: false
|
23
|
-
matrix:
|
24
|
-
os:
|
25
|
-
- ubuntu
|
26
|
-
ruby:
|
27
|
-
- 2.4
|
28
|
-
- 2.5
|
29
|
-
- 2.6
|
30
|
-
- 2.7
|
31
|
-
- '3.0'
|
32
|
-
- 3.1
|
33
|
-
gemfile:
|
34
|
-
- gemfiles/i18n_0_6.gemfile
|
35
|
-
- gemfiles/i18n_0_7.gemfile
|
36
|
-
- gemfiles/i18n_0_8.gemfile
|
37
|
-
- gemfiles/i18n_0_9.gemfile
|
38
|
-
- gemfiles/i18n_1_0.gemfile
|
39
|
-
- gemfiles/i18n_1_1.gemfile
|
40
|
-
- gemfiles/i18n_1_2.gemfile
|
41
|
-
- gemfiles/i18n_1_3.gemfile
|
42
|
-
- gemfiles/i18n_1_4.gemfile
|
43
|
-
- gemfiles/i18n_1_5.gemfile
|
44
|
-
- gemfiles/i18n_1_6.gemfile
|
45
|
-
- gemfiles/i18n_1_7.gemfile
|
46
|
-
- gemfiles/i18n_1_8.gemfile
|
47
|
-
- gemfiles/i18n_1_9.gemfile
|
48
|
-
- gemfiles/i18n_1_10.gemfile
|
49
|
-
allow_failures:
|
50
|
-
- false
|
51
|
-
include:
|
52
|
-
- os: ubuntu
|
53
|
-
ruby: ruby-head
|
54
|
-
gemfile: gemfiles/i18n_1_8.gemfile
|
55
|
-
allow_failures: true
|
56
|
-
env:
|
57
|
-
BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
|
58
|
-
ALLOW_FAILURES: "${{ matrix.allow_failures }}"
|
59
|
-
runs-on: ${{ matrix.os }}-latest
|
60
|
-
continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }}
|
61
|
-
steps:
|
62
|
-
- name: Checkout
|
63
|
-
uses: actions/checkout@v2
|
64
|
-
- name: Setup Ruby
|
65
|
-
uses: ruby/setup-ruby@v1
|
66
|
-
with:
|
67
|
-
ruby-version: ${{ matrix.ruby }}
|
68
|
-
bundler-cache: true
|
69
|
-
- name: Test
|
70
|
-
run: bundle exec rake spec:ruby || $ALLOW_FAILURES
|
71
|
-
|
72
|
-
js_unit_tests:
|
73
|
-
name: JS Unit Tests
|
74
|
-
if: "contains(github.event.commits[0].message, '[ci skip]') == false"
|
75
|
-
strategy:
|
76
|
-
fail-fast: false
|
77
|
-
matrix:
|
78
|
-
os:
|
79
|
-
- ubuntu
|
80
|
-
node:
|
81
|
-
- 10
|
82
|
-
- 12
|
83
|
-
- 14
|
84
|
-
runs-on: ${{ matrix.os }}-latest
|
85
|
-
steps:
|
86
|
-
- name: Checkout
|
87
|
-
uses: actions/checkout@v2
|
88
|
-
- name: Setup node
|
89
|
-
uses: actions/setup-node@v1
|
90
|
-
with:
|
91
|
-
node-version: ${{ matrix.node }}
|
92
|
-
- name: Get yarn cache directory path
|
93
|
-
id: yarn-cache-dir-path
|
94
|
-
run: echo "::set-output name=dir::$(yarn cache dir)"
|
95
|
-
- uses: actions/cache@v2
|
96
|
-
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
|
97
|
-
with:
|
98
|
-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
99
|
-
key: ${{ runner.os }}-yarn-${{ github.ref }}-${{ github.sha }}
|
100
|
-
restore-keys: |
|
101
|
-
${{ runner.os }}-yarn-${{ github.ref }}-
|
102
|
-
${{ runner.os }}-yarn-
|
103
|
-
- name: Install JS Dependencies
|
104
|
-
run: yarn install
|
105
|
-
- name: Test
|
106
|
-
run: npm test
|
data/.npmignore
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
# https://docs.npmjs.com/misc/developers#keeping-files-out-of-your-package
|
2
|
-
|
3
|
-
# tests
|
4
|
-
spec
|
5
|
-
coverage
|
6
|
-
|
7
|
-
# build tools
|
8
|
-
.travis.yml
|
9
|
-
|
10
|
-
# linters
|
11
|
-
.jscsrc
|
12
|
-
.jshintrc
|
13
|
-
.eslintrc*
|
14
|
-
|
15
|
-
# editor settings
|
16
|
-
.idea
|
17
|
-
.editorconfig
|
18
|
-
|
19
|
-
# Ruby code
|
20
|
-
app/assets/javascripts/i18n/
|
21
|
-
gemfiles
|
22
|
-
lib
|
23
|
-
Gemfile*
|
24
|
-
*.gemspec
|
25
|
-
Rakefile
|
26
|
-
Appraisals
|
27
|
-
|
data/Appraisals
DELETED
@@ -1,52 +0,0 @@
|
|
1
|
-
|
2
|
-
appraise "i18n_0_8" do
|
3
|
-
gem "i18n", "~> 0.8.0"
|
4
|
-
end
|
5
|
-
|
6
|
-
appraise "i18n_0_9" do
|
7
|
-
gem "i18n", "~> 0.9.0"
|
8
|
-
end
|
9
|
-
|
10
|
-
appraise "i18n_1_0" do
|
11
|
-
gem "i18n", "~> 1.0.0"
|
12
|
-
end
|
13
|
-
|
14
|
-
appraise "i18n_1_1" do
|
15
|
-
gem "i18n", "~> 1.1.0"
|
16
|
-
end
|
17
|
-
|
18
|
-
appraise "i18n_1_2" do
|
19
|
-
gem "i18n", "~> 1.2.0"
|
20
|
-
end
|
21
|
-
|
22
|
-
appraise "i18n_1_3" do
|
23
|
-
gem "i18n", "~> 1.3.0"
|
24
|
-
end
|
25
|
-
|
26
|
-
appraise "i18n_1_4" do
|
27
|
-
gem "i18n", "~> 1.4.0"
|
28
|
-
end
|
29
|
-
|
30
|
-
appraise "i18n_1_5" do
|
31
|
-
gem "i18n", "~> 1.5.1"
|
32
|
-
end
|
33
|
-
|
34
|
-
appraise "i18n_1_6" do
|
35
|
-
gem "i18n", "~> 1.6.0"
|
36
|
-
end
|
37
|
-
|
38
|
-
appraise "i18n_1_7" do
|
39
|
-
gem "i18n", "~> 1.7.0"
|
40
|
-
end
|
41
|
-
|
42
|
-
appraise "i18n_1_8" do
|
43
|
-
gem "i18n", "~> 1.8.0"
|
44
|
-
end
|
45
|
-
|
46
|
-
appraise "i18n_1_9" do
|
47
|
-
gem "i18n", "~> 1.9.0"
|
48
|
-
end
|
49
|
-
|
50
|
-
appraise "i18n_1_10" do
|
51
|
-
gem "i18n", "~> 1.10.0"
|
52
|
-
end
|
@@ -1,23 +0,0 @@
|
|
1
|
-
<%# encoding: utf-8 %>
|
2
|
-
|
3
|
-
// Using UMD pattern from
|
4
|
-
// https://github.com/umdjs/umd#regular-module
|
5
|
-
// `returnExports.js` version
|
6
|
-
;(function (root, factory) {
|
7
|
-
if (typeof define === 'function' && define.amd) {
|
8
|
-
// AMD. Register as an anonymous module.
|
9
|
-
define(["i18n"], factory);
|
10
|
-
} else if (typeof module === 'object' && module.exports) {
|
11
|
-
// Node. Does not work with strict CommonJS, but
|
12
|
-
// only CommonJS-like environments that support module.exports,
|
13
|
-
// like Node.
|
14
|
-
factory(require("i18n"));
|
15
|
-
} else {
|
16
|
-
// Browser globals (root is window)
|
17
|
-
factory(root.I18n);
|
18
|
-
}
|
19
|
-
}(this, function(I18n) {
|
20
|
-
"use strict";
|
21
|
-
|
22
|
-
I18n.translations = <%= I18n::JS.filtered_translations.to_json %>;
|
23
|
-
}));
|