Glebsky / laravel-lang-generator

Searches for multilingual phrases in Laravel project and automatically generates language files for you.
16 stars 5 forks source link

Add short_tags config option #8

Closed Bernier154 closed 3 months ago

Bernier154 commented 5 months ago

In my project, i used translations as key.

The current parser is trying to check if there is a space in the key to avoid splitting sentences, but id there is no space, it breaks it down.

( in my case it was an abbreviation that was getting split. I could have just added a space, but i didn't want my team to think there was a bug in the parser )

My pull request only adds a config and a conditional in the if that check if there is a split.

Bernier154 commented 1 month ago

Could you make a new version out of this one? I'm still using my fork in my project and if you publish 1.01 it will be updatable in composer.

Thanks.