dynamic_intl library
Classes
- ArbMessage
- ArbTranslation
- 对 arb 文件内容的解析 使intl能够使用 arb 规则说明:https://github.com/google/app-resource-bundle/wiki/ApplicationResourceBundleSpecification 目前仅使用了简单的无@描述形式,也无ICU语法,所以仅解析了message规则的,可重写对应规则增加需要的 @author jm
-
BaseLocalizationsDynamicDelegate<
T> -
动态多语言 delegate
使用BaseLocalizationsDynamicDelegate替换原来的,不要和官方那个同时使用
T
为自己项目中生成的类,默认是S - CompositeMessageLookup
- This is a message lookup mechanism that delegates to one of a collection of individual MessageLookupByLibrary instances.
- LanguageSetting
- 语言包配置
- LanguageUtil
- 多语言 管理 @author jm
- MessageLookupByLibrary
- This provides an abstract class for messages looked up in generated code. Each locale will have a separate subclass of this class with its set of messages. See generate_localized.dart.
Properties
-
supportedLocalesLibraries
↔ List<
Locale> -
read / write
Functions
-
getLookupArgs(
String name) → List< Object> -
initializeDefaultArgs(
{String? contentJson}) → Future -
initializeDynamicMessages(
String localeName) → Future< bool> -
User programs should call this before using
localeName
for messages. -
updateLanguageLibrary(
List< Locale> languages) → dynamic - 更新语言library
-
updateLookupMessage(
String localeName) → void
Typedefs
- LibraryLoader = Future Function()