File tree 3 files changed +9
-1
lines changed
3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ Prefix your message with one of the following:
11
11
- [Security] in case of vulnerabilities.
12
12
-->
13
13
14
+ ## Unreleased
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.
Original file line number Diff line number Diff line change @@ -80,6 +80,8 @@ class LintScriptsCommand < Command
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
Original file line number Diff line number Diff line change @@ -68,6 +68,8 @@ class LintTranslationsCommand < Command
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 @@ class LintTranslationsCommand < Command
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 " \
You can’t perform that action at this time.
0 commit comments