"enable: false" does not works.
Hi, aderyabin.
I'm trying to disable some locales with .localer.yml.
BR, TR and AR are fine but zh-CN, zh-TW and de-CH does not works.
It seems that XX-YY locales does not works. how do I disable it?
Thanks.
I'm having the same issue and think it's due to the Locale keys in .localer.yml being down-cased before being compared to the locales in the app, e.g. even if you put
Locale:
zh-CN:
Enabled: false
in your config, it'll be converted to zh-cn before being compared. I'll submit a PR later, but in the meantime if you vendor the gem then change this line https://github.com/aderyabin/localer/blob/0b7bac9b2fd0ecec8bdb1c3a4ccd5fa2e6791b20/lib/localer/data/processor.rb#L21 to read
next unless config.locale[locale.downcase].enabled
then it should do what you need.