impr(typing): always allow lazy mode when in custom mode, no matter the current language selection

closes #5071
This commit is contained in:
Miodec 2024-02-22 23:14:13 +01:00
parent 81b388af4a
commit 8076acf333
2 changed files with 4 additions and 2 deletions

View file

@ -471,7 +471,8 @@ export async function init(): Promise<void> {
UpdateConfig.setTapeMode("off");
}
if (Config.lazyMode && language.noLazyMode) {
const allowLazyMode = !language.noLazyMode || Config.mode === "custom";
if (Config.lazyMode && !allowLazyMode) {
rememberLazyMode = true;
Notifications.add("This language does not support lazy mode.", 0, {
important: true,

View file

@ -338,7 +338,8 @@ function applyLazyModeToWord(
word: string,
language: MonkeyTypes.LanguageObject
): string {
if (Config.lazyMode && !language.noLazyMode) {
const allowLazyMode = !language.noLazyMode || Config.mode === "custom";
if (Config.lazyMode && allowLazyMode) {
word = LazyMode.replaceAccents(word, language.additionalAccents);
}
return word;