@Word()

New in 2.0

Generate words

Text InformationSince 2.0.0

Parameters

NameTypeRequiredDefaultDescription
dictCustom value dictionary, multiple values separated by '|'
localeInternationalized languages, currently only supporting Chinese (zh_CN) and English (en), default zh_CN

Usage

@Word(arg0)

Generate word using specified dictionary

Example:
@Word(开开心心|快快乐乐|红红火火))
Output:
开开心心快快乐乐
@Word(arg0)

Generate word in specified locale

Example:
@Word(en)
Output:
alongdesigner
@Word()

Generate word (Chinese)

Example:
@Word()
Output:
弯弯曲曲千家万户
← Back to Function Reference