userfrosting / UserFrosting

Modern PHP user login and management framework
https://www.userfrosting.com
Other
1.64k stars 366 forks source link

Replace php arrays for json/yaml files for language `key => message` definitions #1091

Open lcharette opened 4 years ago

lcharette commented 4 years ago

Title is pretty self explanatory. Yaml/Json file are easier to manipulate and validate than the arrays, which needs to actually be be included and could pose a security risk.

Silic0nS0ldier commented 4 years ago

Re the JSON, would be nice if a JSON Schema definition could be created to validate it. Also helps in supports IDEs like VSCode as you get autocompletion.