RinkAttendant6 / JsonI18n

Simple PHP internationalization library using JSON data
Mozilla Public License 2.0
4 stars 1 forks source link

Allow addResource to accept PHP arrays and JSON strings #9

Closed RinkAttendant6 closed 9 years ago

RinkAttendant6 commented 9 years ago

Localization resources may not always come from files and it would be useful to be able to add resources that are in array form (e.g. coming from a database) or in a string of JSON.

This should be easily achieved using json_decode.

Data needs to be validated, perhaps using JSON Schema.