You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.3 KiB
YAML
35 lines
1.3 KiB
YAML
4 years ago
|
get:
|
||
|
tags:
|
||
|
- admin
|
||
|
summary: Get language settings
|
||
|
responses:
|
||
|
"200":
|
||
|
description: A JSON object containing available languages and settings
|
||
|
content:
|
||
|
application/json:
|
||
|
schema:
|
||
|
allOf:
|
||
|
- type: object
|
||
|
properties:
|
||
|
languages:
|
||
|
type: array
|
||
|
items:
|
||
|
type: object
|
||
|
properties:
|
||
|
name:
|
||
|
type: string
|
||
|
description: Localised name of the language
|
||
|
code:
|
||
|
type: string
|
||
|
description: A language code (similar to ISO-639)
|
||
|
dir:
|
||
|
type: string
|
||
|
description: Directionality of the language
|
||
|
enum: [ltr, rtl]
|
||
|
selected:
|
||
|
type: boolean
|
||
|
description: Denotes the currently selected default system language on the forum
|
||
|
autoDetectLang:
|
||
|
type: integer
|
||
|
description: Whether the forum will attempt to guess language based on browser's `Accept-Language` header
|
||
|
- $ref: ../../../components/schemas/CommonProps.yaml#/CommonProps
|