Files
BlackMarkandClaude Opus 5.5 45424e6fd6 Vermietungs-Tool
A local web app for a small room-rental business in Austria: guest register,
room ledger, occupancy plan, invoices, the monthly tourist-tax report and the
quarterly VAT list. Application code only; it ships no data.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 16:52:27 +01:00

12 lines
357 B
Python

"""Tiny localization lookup. All UI text comes from locales/de.json via t()."""
import json
from pathlib import Path
_FILE = Path(__file__).resolve().parent.parent / "locales" / "de.json"
_strings = json.loads(_FILE.read_text(encoding="utf-8"))
def t(key, **kwargs):
text = _strings.get(key, key)
return text.format(**kwargs) if kwargs else text