You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using contributes.jsonValidation to provide a schema for our own json settings file. VS Code displays description from the schema when hovering on keys in our settings file.
There doesn't appear to be a way to localize those descriptions in the schema, or a way to vary the schema path in package.json based on the current language.
If there is a way to accomplish this, let me know. Otherwise, I'd like to suggest VS Code add support for localization of schema json files either using a similar approach as package.json (package.nls.json), or allow a separate uri to be provided per supported language within the jsonValidation node in package.json.
You could consider using dynamically created schemas as described here: #77433 (comment)
The text document provider would let you load the schema of the current language.
We are using contributes.jsonValidation to provide a schema for our own json settings file. VS Code displays description from the schema when hovering on keys in our settings file.
There doesn't appear to be a way to localize those descriptions in the schema, or a way to vary the schema path in package.json based on the current language.
If there is a way to accomplish this, let me know. Otherwise, I'd like to suggest VS Code add support for localization of schema json files either using a similar approach as package.json (package.nls.json), or allow a separate uri to be provided per supported language within the jsonValidation node in package.json.
Related discussion on localization of schema files: json-schema-org/json-schema-spec#53
The text was updated successfully, but these errors were encountered: