coding-socks / lost-in-translation

This package helps to find missing translation strings in your Laravel blade files.
MIT License
6 stars 1 forks source link

Question regarding en locale #2

Closed mkarnicki closed 2 months ago

mkarnicki commented 3 months ago

Hi,

Got two questions for you. I was checking out your package and noticed:

  1. There is no license. Have you considered MIT by any chance?
  2. Passing 'en' returns the following error:
Locale `en` must be different from `en`.

I was hoping to verify if the English translation files are missing translation keys used anywhere in Blade templates. Is your package suitable for this purpose?

Thanks a lot and thank you very much for sharing your code!

nerg4l commented 3 months ago

Hi,

The project released with MIT license. There is a license file here: https://github.com/coding-socks/lost-in-translation/blob/main/LICENSE

Regarding your second. I originally blocked finding base language translations because I mainly use translation strings and with that the base translation is already there. I guess in your case short keys are used where it is quite a useful feature.

I just pushed v0.3.3 which should allow using it with the base locale.