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>
This commit is contained in:
commit
45424e6fd6
47 files changed
+6701
No files matched your search
+11
@@ -0,0 +1,11 @@
|
||||
"""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
|
||||
Reference in new issue
Block a user