i18n with placeholder text not working in SSR build #15314
Unanswered
fdstevex
asked this question in
CLI - SSR mode
Replies: 1 comment 1 reply
-
|
May be related to this: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm having some trouble with i18n. Translation of simple strings works, but strings that have placeholder interpolation behave differently between local debug, and SSR build.
Some code:
Boot:
Messages:
In a component:
Running locally (
quasar dev -m ssr) the interpolation works fine and it prints 'Hello World'. When I build and run the built product:The interpolation stops working, and what's printed is "Hello {name}". Note that it did still find the correct message in the messages hierarchy, it just failed the interpolation.
Any idea what's going on? I'm guessing the $t I'm getting in the ssr build is different from what
quasar devis using but I don't know why that would happen.Thanks.
Beta Was this translation helpful? Give feedback.
All reactions