themsaid / laravel-langman-gui

A GUI for managing JSON translation files in your laravel projects.
MIT License
513 stars 50 forks source link

Array translations #33

Closed joedixon closed 4 years ago

joedixon commented 7 years ago

This PR adds support for the array style languages files which should resolve #17

In order to facilitate this, I've added a new dropdown item to the nav which lists all of the files for the selected language. Selecting any filename will filter the keys available for translation.

If the value of a line in the array language file is an array, a textarea is rendered for each of the keys in that array. This will only work one level deep.

screen shot 2017-10-09 at 14 08 56

As part of this update, a default language file is created if none already exists with sample translation. This should fix #27

joedixon commented 7 years ago

I have an update coming for this which will update the scanning method to include file.key syntax used in array files so probably not worth merging until it's done.

joedixon commented 7 years ago

I have updated this PR so that scanning now includes array style translation files

themsaid commented 7 years ago

Thank you, will be looking into these two with the next release in the upcoming few weeks.

joedixon commented 7 years ago

No problem, happy to chat through it if needed :-)

jmarcher commented 5 years ago

Is there a way to port this to the actual version?