Skip to content

Instantly share code, notes, and snippets.

@cbejensen
Last active September 17, 2025 16:45
Show Gist options
  • Save cbejensen/cdde3552be1dc25b388d179c0bbba9e3 to your computer and use it in GitHub Desktop.
Save cbejensen/cdde3552be1dc25b388d179c0bbba9e3 to your computer and use it in GitHub Desktop.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"additionalProperties": false,
"patternProperties": {
"^.*$": {
"type": "object",
"properties": {
"translation": {
"oneOf": [
{
"type": "string",
"description": "Singular translation"
},
{
"type": "object",
"properties": {
"one": { "type": "string" },
"other": { "type": "string" }
},
"description": "Plural translation"
}
]
},
"notes": {
"type": "string",
"description": "Additional information for translators"
},
"context": {
"type": "string",
"description": "Context for translators, e.g. male/female; see https://lokalise.com/blog/the-3-pillars-of-context-that-will-improve-your-translations"
},
"limit": {
"type": "number",
"description": "Character limit"
},
"tags": {
"type": "array",
"items": { "type": "string" },
"description": "See https://docs.lokalise.com/en/articles/1475552-tags"
}
},
"required": ["translation"],
"additionalProperties": false
}
},
"description": "See https://docs.lokalise.com/en/articles/3229161-structured-json"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment