ArbTranslation class
对 arb 文件内容的解析 使intl能够使用 arb 规则说明:https://github.com/google/app-resource-bundle/wiki/ApplicationResourceBundleSpecification 目前仅使用了简单的无@描述形式,也无ICU语法,所以仅解析了message规则的,可重写对应规则增加需要的 @author jm
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
-
parseFile(
{File? file, String? contentJson, required String locale}) → ArbMessage? - arb文件解析 message(String messageText, {String desc = '', Map<String, Object> examples, String locale, String name, List
-
parseFileForArgs(
{File? file, String? contentJson, required String locale}) → Map< String, List< ?Object> > - 解析生成对应的args
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited