fnando / i18n-js

It's a small library to provide the I18n translations on the Javascript. It comes with Rails support.
MIT License
3.77k stars 520 forks source link

Bug: i18n lint fails when using plugins #705

Closed msayed98 closed 1 year ago

msayed98 commented 1 year ago

Description

running i18n lint:translations fails when using plugins in the config file with config has unexpected keys: [:export_files] (I18nJS::Schema::InvalidError) config file:

translations:
  - file: app/assets/javascripts/translations.json
    patterns:
      - "*"
export_files:
  enabled: true
  files:
    - template: config/i18n.erb
      output: "%{dir}/%{base_name}.js"

Software:

fnando commented 1 year ago

Looks like a bug where lint tasks are not loading plugins. I'll take a look. Thanks for reporting it.

fnando commented 1 year ago

Just released v4.2.3 with this fix. Thanks!

msayed98 commented 1 year ago

Thank you for your rapid response