Error with Gettext.gettext/2

I’m working on updating an old project that uses ExAdmin (yes, I’m asking a question about my own package). I’m pulling in the ex_admin dependency with {:ex_admin, path: "../ex_admin"}. I’m getting an error with gettext. Here is a iex session showing the same error I get in the ContactDemo project I’m using.

iex(4)> Gettext.gettext ContactDemo.Gettext, "test"
"test"
iex(5)> Gettext.gettext ExAdmin.Gettext, "test"
** (UndefinedFunctionError) function Gettext.Interpolation.interpolate/3 is undefined or private. Did you mean one of:

      * interpolate/2

    (gettext) Gettext.Interpolation.interpolate(["test"], :default, %{})
    (gettext) lib/gettext.ex:562: Gettext.dgettext/4
iex(5)>

Anyone seen this type of error before? I’m using gettext 0.13.1

1 Like

There was something wrong with my ExAdmin branch. I pulled it again, and everything seems to be working fine.

1 Like