@Title()
New in 2.0Generate titles
Text InformationSince 2.0.0
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| dict | — | — | Custom value dictionary, multiple values separated by '|' | |
| locale | — | — | Internationalized languages, currently only supporting Chinese (zh_CN) and English (en), default zh_CN |
Usage
@Title(arg0)Generate title using specified dictionary
Example:
@Title(做好疫情防护|乌俄局势)
Output:
做好疫情防护@Title(arg0)Generate title in specified locale
Example:
@Title(en)
Output:
Do a good job in epidemic prevention@Title()Generate title (Chinese, 2-20 characters)
Example:
@Title()
Output:
做好疫情防护