Skip to content

I18n in the @sit-onyx/nuxt package #2334

Answered by markbrockhoff
bergser asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @bergser, I'm not entirely sure which differences you're refering to, maybe you could give an example :)

But in general the way our module works is that we check if the nuxt-i18n module is installed parallel to the onyx module. If that's the case we basically "hand over" the handling of translations to nuxt-i18n instead of the default translation handling built into onyx.
To make nuxt-i18n aware of the default translations provided by onyx they are registered like mentioned inside the nuxt-i18n docs. You can find that part here:

nuxt.hook("i18n:registerModule", registerOnyxLocales);

The part you linked in your quest…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by larsrickert
Comment options

bergser
Dec 13, 2024
Collaborator Author

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

@markbrockhoff
Comment options

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