Support other languages · Issue #147 · JoshData/python-email-validator · GitHub
Skip to content

Support other languages #147

Open
Open

Description

@jubuehrer

At the time email-validator does not support other languages in its error messages.
This leads us to check for the error messages and then replace them with our own messages which can be translated.
This is just a hacky solution which is causing trouble, like in the newest version where some messages has changed.

We need this messages in English and German. But i think developers of other countries would love to see the error messages an their language as well :).

If needed I will assist you on this task to translate to German.

Activity

  1. BrentHuang commented on Jul 9, 2024

    @BrentHuang

    I need Simplified Chinese, please.

    As fact, we need an i18n enhancement.

  2. JoshData commented on Jul 9, 2024

    @JoshData
    Owner

    Thanks, ok, I'll try to work on this as I have time.

  3. jubuehrer commented on Nov 4, 2024

    @jubuehrer
    Author

    A alternative for language support would be to just use status codes instead. That way every language is (kind of) supported.

  4. JoshData commented on Nov 4, 2024

    @JoshData
    Owner

    Many of the messages are interpolated with specific information from the input like an invalid character code, so a status code wouldn't solve the problem.

    Probably each exception should be made it's own, meaningful class. I had resisted doing that in the past but it's probably the easiest first step to eventually getting to localized messages.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions