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

[Docs]: Change "messages" variable name to "timeZone" #1599

Closed
IlyaMinarov opened this issue Dec 10, 2024 · 1 comment
Closed

[Docs]: Change "messages" variable name to "timeZone" #1599

IlyaMinarov opened this issue Dec 10, 2024 · 1 comment
Labels
documentation Improvements or additions to documentation unconfirmed Needs triage.

Comments

@IlyaMinarov
Copy link

Link to page

https://next-intl-docs.vercel.app/docs/usage/configuration#time-zone

Describe the problem

From the page:

// Regular components
import {useTimeZone} from 'next-intl';
const messages = useTimeZone();
 
// Async Server Components
import {getTimeZone} from 'next-intl/server';
const timeZone = await getTimeZone();

For consistency the above should be:
const timeZone = useTimeZone();

@IlyaMinarov IlyaMinarov added documentation Improvements or additions to documentation unconfirmed Needs triage. labels Dec 10, 2024
@amannn amannn closed this as completed in 529ce6e Dec 11, 2024
@amannn
Copy link
Owner

amannn commented Dec 11, 2024

Of course, yes—thanks for noticing! 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation unconfirmed Needs triage.
Projects
None yet
Development

No branches or pull requests

2 participants