setLocale static method

void setLocale(
  1. Locale locale
)

设置当前语言

Set current locale.

用于运行时切换语言,UI 会自动刷新。 Used for runtime language switching, UI will auto-refresh.

Implementation

static void setLocale(Locale locale) {
  PlayerI18n.setLocale(locale);
}