KingWu / gen_lang

gen_lang is a dart library for internationalization. Extracts messages to generate dart files required by Intl, inspired by Intl_translation and Flutter i18n
BSD 2-Clause "Simplified" License
100 stars 23 forks source link

Translation issue with quote #2

Closed dariof28 closed 5 years ago

dariof28 commented 5 years ago

Declaring a string that contains ' (for example l'aggiornamento) the resulting generation will contains double quotes.

Futhermore if you insert a \n the resulting string will be broken because in the generated file the \n breaks the line (it's not kept inside the text) and the string it's splitted into 2 strings and this results in a broken file that cannot be compiled

Possible solution: use double quote when initialize the string object in the generated file

KingWu commented 5 years ago

Fixed this issue. Released v0.1.2