Python backend for a Slack's kudos plugin.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: locale to es_ES

+9
+1
kefi/config/__init__.py
··· 17 17 PLAZA_DEFAULT_HOUR: int = 10 18 18 PLAZA_DEFAULT_MINUTE: int = 0 19 19 PLAZA_SIZE: int = 3 20 + LOCALE: str = "es_ES" 20 21 21 22 class Config: 22 23 env_file = ".env"
+5
kefi/main.py
··· 1 + import locale 2 + 1 3 from fastapi import FastAPI 2 4 from sqlmodel import Session 3 5 6 + from kefi.config import settings 4 7 from kefi.models.core.helpers import create_users 5 8 from kefi.models.database import engine 6 9 from kefi.models.kudos.helpers import create_default_actions ··· 9 12 app = FastAPI() 10 13 app.include_router(commands.router) 11 14 app.include_router(interactivity.router) 15 + 16 + locale.setlocale(locale.LC_TIME, settings.LOCALE) 12 17 13 18 14 19 @app.on_event("startup")
+3
manage.py
··· 1 1 #!/usr/bin/env python 2 + import locale 3 + 2 4 from IPython import start_ipython 3 5 4 6 ··· 20 22 engine, 21 23 ) 22 24 25 + locale.setlocale(locale.LC_TIME, settings.LOCALE) 23 26 session = Session(engine) 24 27 return { 25 28 "Action": Action,