You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lint Translations is showing every single translation, even after builds work correctly and app is correctly configured.
Description
Every single locale defined by rails is being compared with my default locale, even though my translation file only lists 3 locales, and my available_locales are listed explicitly in my app config.
Create config/locales/en.ymlconfig/locales/es.yml and config/locales/pl.yml files. In each create a single key: "frontend: { index: "Hello" }"
Run i18n export notice that it works fine, exporting the default rails datetime/time content as well as your custom frontend: key. In the English (or your default locale in this app) translation add an extra key so that it's missing from spanish and polish.
Run i18n lint:translations > missing_i18n.txt Be sure to redirect because otherwise you lose the history unless your terminal has a lot more lines than mine.
The lint configuration is unaware of patterns used by translations, as they're essentially two different plugins. The official way of doing what you want is by using the lint_translations.ignore config. It currently doesn't accept glob patterns, but given how you're planning to use it, I think it makes sense adding support for it. I'll work on that.
Lint Translations is showing every single translation, even after builds work correctly and app is correctly configured.
Description
Every single locale defined by rails is being compared with my default locale, even though my translation file only lists 3 locales, and my
available_locales
are listed explicitly in my app config.How to reproduce
config/locales/en.yml
config/locales/es.yml
andconfig/locales/pl.yml
files. In each create a single key: "frontend: { index: "Hello" }"i18n export
notice that it works fine, exporting the default rails datetime/time content as well as your custom frontend: key. In the English (or your default locale in this app) translation add an extra key so that it's missing from spanish and polish.i18n lint:translations > missing_i18n.txt
Be sure to redirect because otherwise you lose the history unless your terminal has a lot more lines than mine.Translation File Contents
What do you expect
I expect only en, es, and pl to be compared, and further that the ignored patterns from my translations also get ignored in the linter.
What happened instead
130166 line "missing_translations.txt" file with every single locale built into rails listed, and even the pattern keys listed.
Software:
Full backtrace
N/A
The text was updated successfully, but these errors were encountered: