i18n-js 4.2.2 → 4.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f4299c989d73925fef9ee5651623b38c8b89f334dba54781e91e093860dc4ebf
4
- data.tar.gz: 07d036910ef839e283030f481e6845fab011f77311fe48def9a564885009ecbd
3
+ metadata.gz: '08fcf5b6b9e3cff755d11708a88e88cc8d30609251cba16f52e396a86014ac85'
4
+ data.tar.gz: 90b3fa30d3e6115fe76f81b5621caba070160cf585890f122aa8f646ee10fd2e
5
5
  SHA512:
6
- metadata.gz: c45b7571d0854ce7eb5b225b382628ee3d4c682a640864f050e357d299fc9416f9885ed94518abf192e4a99956c10ab1ccfa6f7a61f954f89ce3efd60a6c78b6
7
- data.tar.gz: '0087a9c072c0f84fac37fff95bddcc541e0a247ad6c924f4754c062ed066da77ed2d5c96d6511ffcb607ff4c0459296f9e1af42b6c6036d3365080c47a6dae4f'
6
+ metadata.gz: 02d7a1a0d46b452727465a35cc9a9c46f4e8fe3d0baee2680e75d70fd6512972c7a28481795f9d0a07295612bd8553b932fb27fae2e86f83adc39e4d8aec5209
7
+ data.tar.gz: 9987a9679a3aa39f50f70e4b7b67469c2c7549b61b738f3104b837119a1afeb253e932119f24bdb39f29ffdb9b1840aa4f9b20035d1a70f71e51cfc8f0310b03
@@ -44,7 +44,7 @@ jobs:
44
44
  hashFiles('package.json') }}
45
45
 
46
46
  - name: Set up Node
47
- uses: actions/setup-node@v3.5.1
47
+ uses: actions/setup-node@v3.6.0
48
48
  with:
49
49
  node-version: ${{ matrix.node }}
50
50
 
data/CHANGELOG.md CHANGED
@@ -11,6 +11,10 @@ Prefix your message with one of the following:
11
11
  - [Security] in case of vulnerabilities.
12
12
  -->
13
13
 
14
+ ## v4.2.3 - Mar 29, 2023
15
+
16
+ - [Fixed] Load plugins when running `i18n lint:*` commands.
17
+
14
18
  ## v4.2.2 - Dec 30, 2022
15
19
 
16
20
  - [Changed] Do not re-export files whose contents haven't changed.
@@ -167,6 +167,7 @@ translations:
167
167
  - file: "app/assets/javascripts/everything_else.js"
168
168
  patterns:
169
169
  # Notice the exclamation mark.
170
+ - "*"
170
171
  - "!*.activerecord"
171
172
  - "!*.admin.*.title"
172
173
  - "!*.date.formats"
@@ -80,6 +80,8 @@ module I18nJS
80
80
  end
81
81
 
82
82
  config = load_config_file(config_file)
83
+ I18nJS.load_plugins!
84
+ I18nJS.initialize_plugins!(config: config)
83
85
  Schema.validate!(config)
84
86
 
85
87
  load_require_file!(require_file) if require_file
@@ -68,6 +68,8 @@ module I18nJS
68
68
  end
69
69
 
70
70
  config = load_config_file(config_file)
71
+ I18nJS.load_plugins!
72
+ I18nJS.initialize_plugins!(config: config)
71
73
  Schema.validate!(config)
72
74
 
73
75
  load_require_file!(require_file) if require_file
@@ -82,7 +84,7 @@ module I18nJS
82
84
  .map {|key| key.gsub(/^.*?\./, "") }
83
85
  end
84
86
 
85
- default_locale_keys = mapping.delete(default_locale)
87
+ default_locale_keys = mapping.delete(default_locale) || mapping
86
88
 
87
89
  if ignored_keys.any?
88
90
  ui.stdout_print "=> Check #{options[:config_file].inspect} for " \
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module I18nJS
4
- VERSION = "4.2.2"
4
+ VERSION = "4.2.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i18n-js
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.2
4
+ version: 4.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nando Vieira
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-12-30 00:00:00.000000000 Z
11
+ date: 2023-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: glob
@@ -225,10 +225,10 @@ metadata:
225
225
  rubygems_mfa_required: 'true'
226
226
  homepage_uri: https://github.com/fnando/i18n-js
227
227
  bug_tracker_uri: https://github.com/fnando/i18n-js/issues
228
- source_code_uri: https://github.com/fnando/i18n-js/tree/v4.2.2
229
- changelog_uri: https://github.com/fnando/i18n-js/tree/v4.2.2/CHANGELOG.md
230
- documentation_uri: https://github.com/fnando/i18n-js/tree/v4.2.2/README.md
231
- license_uri: https://github.com/fnando/i18n-js/tree/v4.2.2/LICENSE.md
228
+ source_code_uri: https://github.com/fnando/i18n-js/tree/v4.2.3
229
+ changelog_uri: https://github.com/fnando/i18n-js/tree/v4.2.3/CHANGELOG.md
230
+ documentation_uri: https://github.com/fnando/i18n-js/tree/v4.2.3/README.md
231
+ license_uri: https://github.com/fnando/i18n-js/tree/v4.2.3/LICENSE.md
232
232
  post_install_message:
233
233
  rdoc_options: []
234
234
  require_paths:
@@ -244,7 +244,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
244
244
  - !ruby/object:Gem::Version
245
245
  version: '0'
246
246
  requirements: []
247
- rubygems_version: 3.4.1
247
+ rubygems_version: 3.4.6
248
248
  signing_key:
249
249
  specification_version: 4
250
250
  summary: Export i18n translations and use them on JavaScript.