amiranagram / localizator

Scan your Laravel project and generate language files ready to translate in language(s) of choosing.
Other
226 stars 28 forks source link

Write default php translations to json #57

Open Duncan-hrn opened 1 year ago

Duncan-hrn commented 1 year ago

I am not sure if this is something others would want to make use of:

Scenario: To simplify the translation task I want to be able to send a single file to my translator in json format.

Current solution: I can see from the source code that by overriding the binding of localizator.writers.default in my AppServiceProvider I am able to achieve this

        $this->app->bind('localizator.writers.default', JsonWriter::class);

I have put the above solution in place, but it would be nice to have this as an option in the configuration?