Fix "auto webtoon mode" detection

The detection didn't work properly in case the selected manga was in a different language than English or the current active translation.
In that case it didn't work because the translation for that locale wasn't loaded.

So to ensure that the translation exists for each language, we have to hardcode it.
This commit is contained in:
schroda
2026-02-21 21:22:54 +01:00
parent 576cf85c38
commit 41fe42f29b
7 changed files with 223 additions and 28 deletions

View File

@@ -26,6 +26,7 @@
"dayjs:gen-locales-array": "tsx tools/scripts/dayjs/generateDayJsLocales.ts",
"dayjs:gen-locales-import": "tsx tools/scripts/dayjs/generateDayJsLocalesImport.ts",
"dayjs:gen-locales": "yarn dayjs:gen-locales-array && yarn dayjs:gen-locales-import",
"manga:gen-type-tags": "tsx tools/scripts/manga/generateMangaTypeTags.ts",
"prepare": "husky"
},
"engines": {