I'm working with Angular 7. I need to translate texts with variables. Let's say I want to translate it to German. The words(variables) needs to change positions because of the language properties.
Example:
EN: Logged in as Robert.
DE: Als Robert angemeldet.
Can't decide how can i deal with the situation properly. Can somebody answer for me with an easy example? Thank you for your feedback.
Usually, I'm dealing with translations like this:
In component:
{{'Dashboard' | translate}}
i18n DE.json:
"Dashboard": "Armaturenbrett"
I need to translate strings like these:
description: "{{example.asd@qwe.com}} user uploads {{fileType}}{{fileName}} for {{company}} via {{deviceType}}."
summary: "days: {{daysNumber}}; distance: {{distanceCount}}"