Gettext custom plural_forms module not working

Thanks for the suggestion @APB9785, yes, I read the same thing and that’s how I configure my custom plural module. It works perfectly when running the app but the mix task still fails.

There’s an easy workaround, you can provide the plural forms as an argument like this mix gettext.merge priv/gettext/ --locale custom_locale --plural-forms 2 as the task only seems to need the plural module to find the number of plural forms, but it would still be nice to understand what I’m doing wrong. I can also go into iex (with -S mix) and call the functions in my module just fine, though I guess that doesn’t prove much of anything.

I may well be doing something wrong, but it seems to at least be something missing from the docs about how to get this working in a Phoenix context.