L10nItem class sealed
L10n 词条基类(sealed)
每个词条对应 Excel 中的一个 key(含子键聚合后的结果)。 子类通过 valueFor 返回各语言的展示值:
- 简单/占位符词条返回原始模板字符串
- Plural/Select/Ordinal 返回聚合后的 ICU 字符串
- ICU 词条直接返回原始 ICU 字符串
- Implementers
Properties
- description → String?
-
词条描述,来自 Excel description 列(注解行为 null)
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
valueFor(
String language) → String? - 获取指定语言的值,若该语言无翻译则 fallback 到首个非空语言
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited