WIP: Locale strings

This commit is contained in:
2023-08-29 16:32:37 +02:00
parent 029a965860
commit 9cda8859da
14 changed files with 214 additions and 78 deletions

View File

@@ -22,8 +22,6 @@ async def remind(app: PyroClient) -> None:
for user_db in users:
user = PyroUser(**user_db)
logger.info("Processing %s...", user.id)
if not user.enabled or user.location is None:
continue
@@ -61,7 +59,7 @@ async def remind(app: PyroClient) -> None:
await app.send_message(
user.id,
"**Garbage Collection**\n\nType: {type}\nDate: {date}\n\nDon't forget to prepare your bin for collection!".format(
app._("reminder", "messages", locale=user.locale).format(
type=garbage_type, date=garbage_date
),
)