Skip to content

Commit 7b755e9

Browse files
committed
fix: update warning for now fallback in createFormatter
1 parent bfcd251 commit 7b755e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/use-intl/src/core/createFormatter.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ export default function createFormatter(props: Props) {
223223
new IntlError(
224224
IntlErrorCode.ENVIRONMENT_FALLBACK,
225225
process.env.NODE_ENV !== 'production'
226-
? `The \`now\` parameter wasn't provided and there is no global default configured, therefore the current time will be used as a fallback. To avoid markup mismatches caused by environment differences, either provide the \`now\` parameter or configure a global default. Learn more: https://next-intl-docs.vercel.app/docs/configuration#now`
226+
? `The \`now\` parameter wasn't provided to \`relativeTime\` and there is no global default configured, therefore the current time will be used as a fallback. See https://next-intl-docs.vercel.app/docs/usage/dates-times#relative-times-usenow`
227227
: undefined
228228
)
229229
);

0 commit comments

Comments
 (0)