Skip to content
This repository was archived by the owner on Aug 19, 2025. It is now read-only.
This repository was archived by the owner on Aug 19, 2025. It is now read-only.

Customizing error messages & internationalization. #28

Description

@lovelydinosaur
  • We'll want to mark up our error messages as translatable strings.
  • Support an errors = {} argument for overriding the error strings.
  • Support errors as an attribute adding the the defaults, rather than overriding them.

Activity

  1. smartexpert commented on Feb 13, 2022

    @smartexpert
    • We'll want to mark up our error messages as translatable strings.
    • Support an errors = {} argument for overriding the error strings.
    • Support errors as an attribute adding the the defaults, rather than overriding them.

    In my forked version of the repo, I've added the ability to override error messages via passing over additional optional keyword arguments to the Field class. I also needed to pass an optional placeholder message for the input form. It can address some of these issues.

    This is sort of my first real attempt at contributing to a project so not sure what protocol I should follow. I read the contribution guidelines about prior discussion.

    Are you open to me submitting a PR? @aminalaee

  2. aminalaee commented on Feb 13, 2022

    @aminalaee
    Contributor

    @smartexpert Hey, that looks good.

    To be honest I think we won't be adding new features to the project as it's not being maintained actively.

    If you want maybe you can do #124 in typesystem but the main focus is on projects pinned in the Encode organisation like HTTPX, Starlette and Uvicorn and any kind of contribution is welcome :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions