IztroTranslationService class
紫微斗数库的翻译服务
- Inheritance
-
- Object
- Translations
- IztroTranslationService
Constructors
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- currentCountryCode → String
-
获取当前国家代码
no setter
- currentLanguageCode → String
-
获取当前语言的代码
no setter
- currentLocale → Locale?
-
获取当前语言
no setter
-
supportedLocales
→ List<
Map< String, dynamic> > -
支持的语言列表
final
Static Methods
-
addAppTranslations(
Map< String, Map< translations) → voidString, String> > - 添加应用层的翻译
-
changeLocale(
String locale) → void - 设置当前语言
-
init(
{String? initialLocale}) → void - 初始化翻译服务