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
I have in place across the system translate pipes like this
{{'app-welcome' | translate: '{ defaultText : 'Welcome'}'}}
When i run the script to extract the translations, i need the default values for each property into en.json taken from defaultText
This is the script i am using to init the en.json file
ngx-translate-extract --input ./src --output ./src/assets/i18n/en.json --key-as-default-value --replace --format json
The result in en.json
{
"'app-welcome": "'app-welcome",
}
The preferred result in en.json should be
{
"'app-welcome": "'Welcome", // "Welcome" taken from defaultText passed in pipe as parameter
}
The text was updated successfully, but these errors were encountered:
I have in place across the system translate pipes like this
{{'app-welcome' | translate: '{ defaultText : 'Welcome'}'}}
When i run the script to extract the translations, i need the default values for each property into en.json taken from defaultText
This is the script i am using to init the en.json file
ngx-translate-extract --input ./src --output ./src/assets/i18n/en.json --key-as-default-value --replace --format json
The result in en.json
{
"'app-welcome": "'app-welcome",
}
The preferred result in en.json should be
{
"'app-welcome": "'Welcome", // "Welcome" taken from defaultText passed in pipe as parameter
}
The text was updated successfully, but these errors were encountered: