Languages
Panel > Systems > Languages
Menu Title | Key Name | Default Key Value | Value Type | Description |
---|---|---|---|---|
Enable Multilingual | language_status | true | boolean | true or false |
Language configuration list | language_menus | array | Language list JSON data | |
Default language | default_language | zh-Hans | string | Language Tag |
Language list JSON data
json
[
{
"order": "Sort Order",
"langCode": "Language code",
"langName": "Language name (read from dictionary and store)",
"continentId": "Continent ID",
"areaStatus": "Area enable status, true or false",
"areaCode": "Area code (can be empty)",
"areaName": "Area name (can be empty, read from dictionary and store)",
"langTag": "Language tag (combination of language name and area code)",
"writingDirection": "Language writing direction (read from dictionary and store)",
"lengthUnit": "Length unit",
"dateFormat": "Date format",
"timeFormatMinute": "Minute time format naming",
"timeFormatHour": "Hour time format naming",
"timeFormatDay": "Day time format naming",
"timeFormatMonth": "Month time format naming",
"timeFormatYear": "Year time format naming",
"isEnabled": "true or false"
},
{
"order": 1,
"langCode": "zh-Hans",
"langName": "Simplified Chinese",
"continentId": 1,
"areaStatus": true,
"areaCode": "SG",
"areaName": "Singapore",
"langTag": "zh-Hans-SG",
"writingDirection": "ltr",
"lengthUnit": "km",
"dateFormat": "yyyy-mm-dd",
"timeFormatMinute": "{n} minutes ago",
"timeFormatHour": "{n} hours ago",
"timeFormatDay": "{n} days ago",
"timeFormatMonth": "{n} months ago",
"timeFormatYear": "{n} years ago",
"isEnabled": true
}
]
Humanized Time Format
API output content, humanize the time
Format | Example | Description |
---|---|---|
n minutes ago | 5 minutes ago | Posted within 60 minutes |
n hours ago | 5 hours ago | Posted over 60 minutes, but within 24 hours |
n days ago | 5 days ago | Posted over 24 hours, but within 30 days |
n months ago | 5 months ago | Posted over 30 days, but within this year |
n years ago | 1 years ago | Posted over 365 days |