0

We have i18n-tasks normalize running as part of a husky git commit hook but since we have added other locales it is now extremely slow to run.

Is it possible to pass file paths to i18n-tasks normalize so that only locale files that have changed are normalized?

1 Answers1

0

I did a bit of research and checked source code

 def normalize(opt = {})
   i18n.normalize_store! locales: opt[:locales],
                         force_pattern_router: opt[:pattern_router]
end

So something like that should work.
i18n-tasks normalize --locales en
Or try with single dash

zhisme
  • 2,368
  • 2
  • 19
  • 28