vue-i18n
vue-i18n copied to clipboard
$ref should be supported
trafficstars
Clear and concise description of the problem
I'm looking for a an easy and dev-friendly way to split up my big language JSON files into multiple files. One possible solution could be to have support for JSON-Schemas $ref.
Imagine the following directory structure:
- en.json
- en/CategoryA.json
- en/CategoryB.json
en.json would just contain:
{
"CategoryA": { "$ref": "en/CategoryA.json"},
"CategoryB": { "$ref": "en/CategoryB.json"}
}
See: http://json-schema.org/understanding-json-schema/structuring.html#ref
What you think? Could this be an interesting feature to add?
Suggested solution
probably somewhere in the message-compiler module? :smile:
Alternative
No response
Additional context
No response
Validations
- [X] Read the Contributing Guidelines
- [X] Read the Documentation
- [X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.