micheleangioni / laravel-js-lang-converter

Laravel lang files conversion to Javacript
MIT License
25 stars 8 forks source link

Support for Translation Strings #14

Open kskrlin opened 6 years ago

kskrlin commented 6 years ago

Does this support Translation Strings (the ones which are by default saved in resources/lang as xy.json)?

I tried this package with default config and I didn't find my Translation Strings in messages.js file.

So, something like this won't work Lang.get('Register'), with de.json file:

{
    "Register": "Registrieren",
    "Password": "Passwort",
    "Login": "Einloggen"
}
micheleangioni commented 6 years ago

Nope, at the moment .json files are not supported. Somewhere in the future support will be added, feel free to contribute :)