Skip to content

When should we use useSpeak vs config vs runtime #125

Answered by robisim74
nelsonprsousa asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @nelsonprsousa

  1. This library (like other libraries used by Qwik for i18n) inlines translations to client files at compile time. However, this library also offers the possibility of translating dynamic values at runtime: https://github.com/robisim74/qwik-speak/blob/main/docs/translate.md#runtime-translation
  2. It is not mandatory to add all JSON files in the assets property of speak-config.ts, but it is the simplest way, especially in small-medium sized apps. If your app is large, and there are different runtime files, or if you simply want to work with scoped translations, you can use the lazy translation: https://github.com/robisim74/qwik-speak/blob/main/docs/lazy-loading.md
  3. You are not …

Replies: 2 comments

Comment options

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

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants