martinlindhe / laravel-vue-i18n-generator

Generates a vue-i18n compatible include file from your Laravel translations
MIT License
306 stars 207 forks source link

Cannot use : in text #14

Closed SemBakkum closed 7 years ago

SemBakkum commented 7 years ago

I’m trying to add : in a string as just plain text but the converter sees it as a variable and converts it to {}. Is there some way to only convert : with a variable name like ':name'.

martinlindhe commented 7 years ago

Hm, I thought we fixed such bug not too long ago, in commit https://github.com/martinlindhe/laravel-vue-i18n-generator/commit/e93134b266e97eb39a7e2887ce881fe97ac11c33

Are you using the latest version? The fix is included in 0.1.12

Either way, since ":" is not language, you can solve this by not trying to translate this.

martinlindhe commented 7 years ago

@SemBakkum Did you resolve this issue?

SemBakkum commented 7 years ago

@martinlindhe Yes we did, quite easily to be honest. We're using the colon html number and importing it as HTML with VueJS.