Switch translation mode on Shift+T

This commit is contained in:
Pieter Vander Vennet 2024-08-26 17:23:04 +02:00
parent ef16058249
commit 9b505f33d0
2 changed files with 62 additions and 53 deletions

View file

@ -704,7 +704,12 @@ export default class ThemeViewState implements SpecialVisualizationState {
},
Translations.t.hotkeyDocumentation.translationMode,
() => {
Locale.showLinkToWeblate.setData(!Locale.showLinkToWeblate.data)
const tm = this.userRelatedState.translationMode
if(tm.data === "false"){
tm.setData("true")
} else {
tm.setData("false")
}
}
)
}