From 486a7bdc7e4668ef66499e68d71670861ee6b9d3 Mon Sep 17 00:00:00 2001 From: Jan Amann Date: Fri, 15 Nov 2024 14:22:15 +0100 Subject: [PATCH] docs: minor fixes --- docs/src/pages/docs/usage/dates-times.mdx | 2 +- docs/src/pages/docs/workflows/typescript.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/pages/docs/usage/dates-times.mdx b/docs/src/pages/docs/usage/dates-times.mdx index 8ad9ceccc..71c90acaf 100644 --- a/docs/src/pages/docs/usage/dates-times.mdx +++ b/docs/src/pages/docs/usage/dates-times.mdx @@ -94,7 +94,7 @@ function FormattedDate({date}) { In contrast to simply calling `new Date()` in your component, `useNow` has some benefits: -1. The returned value is consistent across re-renders. +1. The returned value is consistent across re-renders on the client side. 2. The value can optionally be [updated continuously](#relative-times-update) based on an interval. 3. The value can optionally be initialized from a [global value](/docs/usage/configuration#now), e.g. allowing you to use a static `now` value to ensure consistency when running tests. diff --git a/docs/src/pages/docs/workflows/typescript.mdx b/docs/src/pages/docs/workflows/typescript.mdx index e48ded0e9..088abf28b 100644 --- a/docs/src/pages/docs/workflows/typescript.mdx +++ b/docs/src/pages/docs/workflows/typescript.mdx @@ -157,7 +157,7 @@ import {createNextIntlPlugin} from 'next-intl/plugin'; const withNextIntl = createNextIntlPlugin({ experimental: { - // Use the path to the messages that you're using in `AppConfig` + // Provide the path to the messages that you're using in `AppConfig` createMessagesDeclaration: './messages/en.json' } // ...