
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
pydantic-errors-messages-translations
Advanced tools
It's a collection of translations for pydantic errors in any languages
It's a collection of translations for pydantic errors in any languages;
Use the package manager pip to install foobar.
pip install pydantic-errors-messages-translations pydantic-i18n
from pydantic_errors_messages_translations import translations, convert_error_to_human_readable
YOUR_LANGUAGE = 'pt_BR'
error_translation = PydanticI18n(translations, default_locale=YOUR_LANGUAGE)
class User(BaseModel):
name: str = Field(min_length=40)
email: str = Field(min_length=24)
city: str
try:
wrong_user = User(
name='Irineu Evangelista de Sousa',
city= 'Maua'
)
except ValidationError as e:
errors_as_dict = error_translation.translate(e.errors(), YOUR_LANGUAGE)
raise Exception(convert_error_to_human_readable(errors_as_dict))
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
FAQs
It's a collection of translations for pydantic errors in any languages
We found that pydantic-errors-messages-translations demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.