Enable all languages in translators mode

This commit is contained in:
Pieter Vander Vennet 2022-04-03 03:00:45 +02:00
parent 86d9047e5e
commit a037d04577
3 changed files with 25 additions and 8 deletions

View file

@ -66,10 +66,6 @@ export default class UserRelatedState extends ElementsState {
}
});
QueryParameters.GetBooleanQueryParameter("fs-translation-mode",false,"If set, will show the translation buttons")
.addCallbackAndRunD(tr => Locale.showLinkToWeblate.setData(Locale.showLinkToWeblate.data || tr))
this.changes = new Changes(this, layoutToUse?.isLeftRightSensitive() ?? false)
@ -126,6 +122,9 @@ export default class UserRelatedState extends ElementsState {
if (layoutToUse === undefined) {
return;
}
if(Locale.showLinkToWeblate.data){
return true; // Disable auto switching as we are in translators mode
}
if (this.layoutToUse.language.indexOf(currentLanguage) < 0) {
console.log(
"Resetting language to",