Skip to content
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

Next Intl getFallbackMessage not working #864

Closed
brandanking-decently opened this issue Feb 15, 2024 · 1 comment
Closed

Next Intl getFallbackMessage not working #864

brandanking-decently opened this issue Feb 15, 2024 · 1 comment
Labels
bug Something isn't working unconfirmed Needs triage.

Comments

@brandanking-decently
Copy link

Description

The getFallbackMessage is not working and I am still getting missing_message error. My use case is that I have a bunch of options returned by the api. Most are predefined, which allows me to use the translation, however, some are provided by a user so I just want to show what they added themselves

Mandatory reproduction URL

https://codesandbox.io/p/devbox/next-intl-error-tl8gq7

Reproduction description

Steps to reproduce:

  1. Open reproduction
  2. See MISSING_MESSAGE error
  3. Check i18n file and see getMessageFallback is set

Expected behaviour

I'd expect to no longer see and error but just a regular console log & I'd also expect the getFallbackMessage to return the work "key" instead of the actual key

@brandanking-decently brandanking-decently added bug Something isn't working unconfirmed Needs triage. labels Feb 15, 2024
@brandanking-decently
Copy link
Author

Closing this as now seen that it was due to this not being also passed into my client provider

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unconfirmed Needs triage.
Projects
None yet
Development

No branches or pull requests

1 participant