1.0.7 - polski interfejs i porządki w dokumentacji
Wydanie WGTools-Extended / release (push) Successful in 8s

This commit is contained in:
asminme committed 2026-10-30 15:04:45 +01:00
1 parent 97f73a6277
commit babbdee26d
39 files changed
+142 -24356

No files matched your search

+1 -6
View File
@@ -55,7 +55,7 @@ from app.core.nodes import (
BASE_DIR = Path(__file__).resolve().parent
LOCALE_DIR = BASE_DIR / "locales"
SUPPORTED_LANGUAGES = {"en", "ru", "de", "fr", "it", "es", "pl"}
SUPPORTED_LANGUAGES = {"pl"}
DEFAULT_LANGUAGE = "pl"
PROCESS_INSTANCE = secrets.token_urlsafe(12)
MFA_CHALLENGE_MAX_AGE_SECONDS = 5 * 60
@@ -75,11 +75,6 @@ def _load_locales() -> dict[str, dict[str, str]]:
LOCALES = _load_locales()
# Sparse translation overrides are resolved against English at startup.
# This preserves meaning for untranslated strings and newly added keys.
for _lang, _messages in LOCALES.items():
if _lang != "en":
LOCALES[_lang] = {**LOCALES.get("en", {}), **_messages}
templates = Jinja2Templates(directory=str(BASE_DIR / "templates"))
app = FastAPI(title=APP_NAME, version=VERSION, docs_url=None, redoc_url=None)
app.mount("/static", StaticFiles(directory=str(BASE_DIR / "static")), name="static")