Skip to content

Drawbacks of manually supplying messages to context provider over using getMessages? #1419

Answered by amannn
ChristianIvicevic asked this question in Q&A
Discussion options

You must be logged in to vote

Your approach with passing messages from getClientMessages is absolutely fine!

There's a bit more about this here:

  1. Using internationalization in Client Components
  2. Configuration: Client- and Server Components

The ultimate goal would be to automatically detect which messages are needed for the client side btw.: #1.

Is your tool that lints for client messages available somewhere? Or can you briefly explain how it works? Would be curious :)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ChristianIvicevic
Comment options

@amannn
Comment options

Answer selected by ChristianIvicevic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants