WIP: Locale strings
This commit is contained in:
@@ -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
|
||||
),
|
||||
)
|
||||
|
Reference in New Issue
Block a user