You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm trying to get a translation with a parameter and it won't work.
I'm using [email protected] and nativescript/[email protected].
So the translations work fine without params but not with them.
My i18n folder is inside the app folder.
I have added a .default.json file.
All .json files contain "app.name" key.
My en.default.json:
"Test": {
"Word %s": "Word %s"
},
Vue component where I use the filter:
<Label :text="'Test.Word %s' | L('a')"/>
Instead of returning me Word a it returns Test.Word a. So it includes the param but it's like if it was trying to find Word a instead of Word %s in my translation file.
Any idea?
Thanks!
UPDATE:
If I set the JSON like this:
"Test.Word %s": "Word %s"
Then it works. Its a bit odd because you never know when is looking for the key or accessing key.value.
The text was updated successfully, but these errors were encountered:
Hello, I'm trying to get a translation with a parameter and it won't work.
I'm using [email protected] and nativescript/[email protected].
So the translations work fine without params but not with them.
My en.default.json:
Vue component where I use the filter:
Instead of returning me
Word a
it returnsTest.Word a
. So it includes the param but it's like if it was trying to findWord a
instead ofWord %s
in my translation file.Any idea?
Thanks!
UPDATE:
If I set the JSON like this:
Then it works. Its a bit odd because you never know when is looking for the key or accessing key.value.
The text was updated successfully, but these errors were encountered: