mirror of https://github.com/vector-im/riot-web
Allow for multiple locale and stabilise set language call
parent
8f1ea84eb6
commit
a43ad8d881
|
@ -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 New Issue