Open beardwin opened 3 years ago
It seems that we can't pass functions in gatsby-config
's options...
So this is a limitation of Gatsby's config API then and not an issue with (react-)i8next. We'll need to build our own clie3nt-side formatted and pass in the formatted date ready to go, is that correct.
Hello!
I'm currently doing up my first Gatsby site. So far so good. Where I'm stuck right now is trying to properly format currencies in my translation, which doesn't seem to be working.
For example:
I tried updating the
i18nextOptions
in mygatsby-config
in a feeble attempt to create a custom formatter, such as the following:When i try the above I don't get any errors, but i also don't see anything emitted in the console, nor are my values in
some.object.value
being properly formatted, so I'm lead to believe thei18nextOptions.interpolation.format
isn't doing anything.Is there a way to achieve what i want here? This is my first foray into building a static site in like, 7 years, so.... to say I'm rusty would be an understatement.
cheers!