You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It works, but results in the pretty annoying, irrelevant error:
IntlError: MISSING_MESSAGE: Could not resolve seo.og.title in site.home.
at getFallbackFromErrorAndNotify (webpack-internal:///(rsc)/./node_modules/use-intl/dist/development/createIntl-dfba4462.js:131:23)
at translateBaseFn (webpack-internal:///(rsc)/./node_modules/use-intl/dist/development/createIntl-dfba4462.js:153:20)
at translateFn (webpack-internal:///(rsc)/./node_modules/use-intl/dist/development/createIntl-dfba4462.js:222:24)
at base (webpack-internal:///(rsc)/./node_modules/use-intl/dist/development/core.js:24:16)
at eval (webpack-internal:///(rsc)/./lib/i18n.ts:26:34)
at Array.find ()
at t (webpack-internal:///(rsc)/./lib/i18n.ts:26:20)
at async Promise.all (index 4)
at async localizedPageMetadata (webpack-internal:///(rsc)/./lib/seo.ts:44:82) {
code: 'MISSING_MESSAGE',
originalMessage: 'Could not resolve seo.tw.title in site.home.'
}
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
For Next.js 13 Metadata, I want to do the following:
Describe the solution you'd like
Either will do:
t.optional('home')
that'd to return""
or other fals-y value. Similar tot.rich()
.t('seo.og.title', null, t('seo.title', null, t('title')))
, where the 3rd arguments is a fallback value.Describe alternatives you've considered
As of now, I'm doing it with my customized version of the
t()
function:It works, but results in the pretty annoying, irrelevant error:
The text was updated successfully, but these errors were encountered: