Skip to content

Languages

Panel > Systems > Languages

Menu TitleKey NameDefault Key ValueValue TypeDescription
Enable multilinguallanguage_statustruebooleantrue or false
Language configuration listlanguage_menusarrayLanguage list JSON data
Default languagedefault_languagezh-HansstringLanguage Tag

Composition of language tags

View examples and flowcharts

Language List JSON Data

json
[
    {
        "rating": "Sorting",
        "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",
        "packVersion": "Language pack version",
        "isEnabled": "true or false"
    },
    {
        "rating": 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",
        "packVersion": 1,
        "isEnabled": true
    }
]

Humanized Time Format

API output content, humanize the time

FormatExampleDescription
n minutes ago5 minutes agoPosted within 60 minutes
n hours ago5 hours agoPosted over 60 minutes, but within 24 hours
n days ago5 days agoPosted over 24 hours, but within 30 days
n months ago5 months agoPosted over 30 days, but within this year
n years ago1 years agoPosted over 365 days

Help

Multilingual supported configurationsPanel Path
Site nameSystems > General
Site introductionSystems > General
Terms of serviceSystems > Policy > Content
Privacy policySystems > Policy > Content
Cookies policySystems > Policy > Content
Logout instructionsSystems > Policy > Content
Verification code templateSystems > Send > Template > Config Template
Wallet payment extension nameSystems > Wallet > Recharge Services > Name
Wallet withdrawal extension nameSystems > Wallet > Withdraw Services > Name
Naming configurationOperations > Rename
Sticker pack nameOperations > Stickers > Group Name
Post publishing rule tipsOperations > Publish > Post > Publish Post Rules > Rule Tip
Comment publishing rule tipsOperations > Publish > Comment > Publish Post Rules > Rule Tip
User role nameOperations > Roles > Name
Content group nameOperations > Groups > Name
Content group descriptionOperations > Groups > Description
Editor extension nameExtends > Editor > Name
Search type extension nameExtends > Content Type > Name
Management extension nameExtends > Manage > Name
Group extension nameExtends > Group > Name
User feature extension nameExtends > User Feature > Name
User profile extension nameExtends > User Profile > Name
Menu configurationClients > Menus
Column configurationClients > Columns
Language pack configurationClients > Language Packs

Released under the Apache-2.0 License