Skip to content

I do not understand how to reuse messages #1307

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

You must be logged in to vote

Maybe this section from the structuring messages docs is helpful to you:

To retrieve all available messages in a component, you can omit the namespace path:

const t = useTranslations();
t('About.title');

You can use that to access all translations, from any namespace.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by OguzcanKarakoc
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