INNER CODE UNIT · Python

app_name

GHJJ123/brainrotguard · i18n/__init__.py:71

def app_name(locale: str | None) -> str:
    """Return the localized application name."""
    return t(locale, "App Name")


def category_label(category: str, locale: str | None, short: bool = False) -> str:
    """Return localized category label."""
    if short:
        if category == "edu":
            return t(locale, "Edu")
        return t(locale, "Fun")
    if category == "edu":
        return t(locale, "Educational")
    return t(locale, "Entertainment")


def day_label(day: str, locale: str | None, short: bool = False) -> str:
    """Return localized day label from canonical day code."""

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…