-
-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
t.raw is not a function #52
Comments
Sorry, this does not actually reproduce the issue I'm seeing, |
This does actually reproduce the issue: |
It doesn't, something's wrong with my setup. |
There is some kind of state where this issue appears however, I did see the error message in codesandbox but after a refresh it was gone. I ended up running |
The function was only introduced recently in v1.5.1 (#51). The version you mentioned above didn't contain the feature. |
Describe the bug
Hi,
first off I'm really sorry if I waste your time on this, it is probably just my confusion.
I use
next-intl@1.3.3
and try to uset.raw
to access an array of strings from my translation to render a list of product features butt.raw
seems to be undefined.To Reproduce
I reproduced this using
use-intl
instead ofnext-intl
as mocking next/router in codesandbox sucks.https://codesandbox.io/s/hidden-pine-rsmnl?file=/src/App.js
Steps to reproduce the behavior:
Expected behavior
I'd expect
t.raw
to be there and return the raw array so I can render my list from the input strings.The text was updated successfully, but these errors were encountered: