Closed joedixon closed 4 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.
I have updated this PR so that scanning now includes array style translation files
Thank you, will be looking into these two with the next release in the upcoming few weeks.
No problem, happy to chat through it if needed :-)
Is there a way to port this to the actual version?
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.
As part of this update, a default language file is created if none already exists with sample translation. This should fix #27