vue-i18n icon indicating copy to clipboard operation
vue-i18n copied to clipboard

$ref should be supported

Open OlliL opened this issue 2 years ago • 0 comments
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

OlliL avatar Feb 25 '23 16:02 OlliL