cyon / vue-translation-manager

Interactively translate strings in Vue single file components
26 stars 12 forks source link

Whitespaces are incorrectly trimmed #8

Open aschempp opened 6 years ago

aschempp commented 6 years ago

If a label contains leading or trailing whitespaces, they are trimmed on the input. This can lead to incorrect content.

Example input:

<span>€ {{ price }}.–</span> / Monat <span>inkl. MwSt.</span>

Example output:

<span>€ {{ plan.price }}.–</span>{{ $t('component.Monat') }}<span>{{ $t('component.inklMwst') }}</span>

The leading and trailing whitespace around / Monat is lost in the translation.