Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application language support #96

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
120 changes: 68 additions & 52 deletions schemas/json/layout/layoutSettings.schema.v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,61 +6,77 @@
"type": "object",
"additionalProperties": true,
"properties": {
"components": {
"type": "object",
"$ref": "#/definitions/components"
},
"pages": {
"type": "object",
"$ref": "#/definitions/pages"
}
"components": {
"type": "object",
"$ref": "#/definitions/components"
},
"pages": {
"type": "object",
"$ref": "#/definitions/pages"
}
},
"definitions": {
"components": {
"type": "object",
"additionalProperties": false,
"description": "Settings regarding components",
"properties": {
"excludeFromPdf": {
"$ref": "#/definitions/excludeFromPdf"
}
}
},
"pages": {
"type": "object",
"additionalProperties": false,
"description": "Settings regarding layout pages",
"properties": {
"order": {
"$ref": "#/definitions/order"
},
"excludeFromPdf": {
"$ref": "#/definitions/excludeFromPdf"
},
"triggers": {
"$ref": "https://altinncdn.no/schemas/json/layout/layout.schema.v1.json#/definitions/triggers",
"title": "Triggers",
"description": "Triggers that apply for all navigation components across all pages. Can be overrided at the component level."
}
}
},
"order": {
"additionalProperties": false,
"description": "An array specifying which order the pages should appear in the application",
"type": "array",
"items": {
"description": "A layout name, for instance 'Page1'",
"type": "string"
"components": {
"type": "object",
"additionalProperties": false,
"description": "Settings regarding components",
"properties": {
"excludeFromPdf": {
"$ref": "#/definitions/excludeFromPdf"
}
},
"excludeFromPdf": {
"additionalProperties": false,
"description": "An array specifying which pages to exclude from the pdf",
"type": "array",
"items": {
"description": "A layout name, for instance 'Page1'",
"type": "string"
}
},
"pages": {
"type": "object",
"additionalProperties": false,
"description": "Settings regarding layout pages",
"properties": {
"order": {
"$ref": "#/definitions/order"
},
"excludeFromPdf": {
"$ref": "#/definitions/excludeFromPdf"
},
"triggers": {
"$ref": "https://altinncdn.no/schemas/json/layout/layout.schema.v1.json#/definitions/triggers",
"title": "Triggers",
"description": "Triggers that apply for all navigation components across all pages. Can be overrided at the component level."
},
"hideCloseButton": {
"$ref": "#/definitions/hideCloseButton"
},
"showLanguageSelector": {
"$ref": "#/definitions/showLanguageSelector"
}
}
},
"order": {
"additionalProperties": false,
"description": "An array specifying which order the pages should appear in the application",
"type": "array",
"items": {
"description": "A layout name, for instance 'Page1'",
"type": "string"
}
},
"excludeFromPdf": {
"additionalProperties": false,
"description": "An array specifying which pages to exclude from the pdf",
"type": "array",
"items": {
"description": "A layout name, for instance 'Page1'",
"type": "string"
}
},
"hideCloseButton": {
"additionalProperties": false,
"description": "An attribute specifiying if the close button should be hidden",
"type": "boolean"
},
"showLanguageSelector": {
"additionalProperties": false,
"description": "An attribute specifying if the translation dropdown menu should be visible",
"type": "boolean"
}
}
}
}