updateLocale static method

void updateLocale(
  1. Locale value
)

Switches the language without saving it.

Implementation

static void updateLocale(Locale value) => locale.value = value;