Switches the language of this instance and persists it (the language is remembered).
Calls in the same tick are debounced to the last one, and all returned Promises resolve together when the switch completes. The debounce state is kept per instance.
Parameters
language: string
The language code, such as 'en' or 'zh-CN'.
Returns Promise<void>
A Promise that resolves once the language is switched.
Switches the language of this instance and persists it (the language is remembered). Calls in the same tick are debounced to the last one, and all returned Promises resolve together when the switch completes. The debounce state is kept per instance.