Starting i18n language file support

This commit is contained in:
João Moura
2024-04-01 04:53:10 -03:00
parent f85bf00409
commit bbd4e58b65
2 changed files with 41 additions and 1 deletions

View File

@@ -7,7 +7,7 @@ from pydantic import BaseModel, Field, PrivateAttr, ValidationError, model_valid
class I18N(BaseModel):
_translations: Dict[str, Dict[str, str]] = PrivateAttr()
language_file: str = Field(
language_file: Optional[str] = Field(
default=None,
description="Path to the translation file to load",
)