Skip to content

Clarity around language codes which include a country code #207

Description

@morsssss
  1. I believe glossary/dictionary endpoints ignore country codes, but I don't think we spell this out.
  2. Currently we require country codes for language codes where we support variants, but just in client libraries. As in, you can't translate to pt using Python, just pt-PT or pt-BR. But you can translate to pt using an HTTP request. I think this situation is suboptimal, but we should at least document it and explain the reasoning (we want to encourage people to specify their language variant so that they get translations that most optimally match expectations).

Activity

  1. BriannaDelgado commented on Dec 23, 2025

    @BriannaDelgado
    Member

    For 1) we do have this blurb on the glossary overview page https://developers.deepl.com/api-reference/multilingual-glossaries#language-variants but I believe it's the only place atm. We could reuse the same language if we want to add it somewhere else

  2. morsssss commented on Dec 31, 2025

    @morsssss
    ContributorAuthor
  3. morsssss commented on Dec 31, 2025

    @morsssss
    ContributorAuthor
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