registerTranslations static method
注册外部语言包
Register external language pack.
用于添加新的语言支持,如日语、韩语等。 Used to add new language support, such as Japanese, Korean, etc.
示例 / Example
AliPlayerWidgetGlobalSetting.registerTranslations(PlayerTranslationsKo());
AliPlayerWidgetGlobalSetting.setLocale(const Locale('ko'));
Implementation
static void registerTranslations(PlayerTranslations translations) {
PlayerI18n.registerTranslations(translations);
}