Angular 9+
It looks like you can specify the translated strings inside of the survey definition like this. In our case we sometimes need to massage our text a bit using javascript/typescript functions ex) format strings, building strings, translating text in "type": "html" elements, etc…
One way we were thinking about was either making a custom locale file with our strings and accessing them, or appending to existing language files.
Accessing it like: Survey.surveyLocalization.locales[locale][locStringId]
- Any suggestions on this; as it feels weird and not the correct way to go
- Is there a way to reference translation variables in the survey definition instead of specifying every language ex)
Code text: {
default: "5 (the best)",
de: "5 (Das beste)",
fr: "...",
...
}
},