IztroTranslationService class

紫微斗数库的翻译服务

Inheritance
  • Object
  • Translations
  • IztroTranslationService

Properties

hashCode int
The hash code for this object.
no setterinherited
keys Map<String, Map<String, String>>
no setteroverride
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

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<String, String>> translations) → void
添加应用层的翻译
changeLocale(String locale) → void
设置当前语言
init({String? initialLocale}) → void
初始化翻译服务