Allow for multiple locale and stabilise set language call
This commit is contained in:
parent
8f1ea84eb6
commit
a43ad8d881
2 changed files with 2 additions and 2 deletions
|
@ -258,7 +258,7 @@ export default abstract class BasePlatform {
|
|||
return null;
|
||||
}
|
||||
|
||||
async setLanguage(language: string) {
|
||||
async setLanguage(preferredLangs: string[]) {
|
||||
throw new Error("Unimplemented");
|
||||
}
|
||||
|
||||
|
|
|
@ -194,8 +194,8 @@ export default class GeneralUserSettingsTab extends React.Component {
|
|||
this.setState({language: newLanguage});
|
||||
const platform = PlatformPeg.get();
|
||||
if (platform) {
|
||||
platform.reload();
|
||||
platform.setLanguage(newLanguage);
|
||||
platform.reload();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue