Skip to content

Missing new languages recently incorporated to the API: CA, GL, EU #72

Closed

Description

@brauliodiez

Describe the bug
Some days ago, Deepl announced new languages available: CA - Catalan, GL- Galician, EU - Basque, they are officially listed in the Deepl API Documentation:

https://developers.deepl.com/docs/getting-started/supported-languages

But if we make a call to getSourceLanguage, we get the following list:

[
  {
    name: "Arabic",
    code: "ar",
  },
  {
    name: "Bulgarian",
    code: "bg",
  },
  {
    name: "Czech",
    code: "cs",
  },
  {
    name: "Danish",
    code: "da",
  },
  {
    name: "German",
    code: "de",
  },
  {
    name: "Greek",
    code: "el",
  },
  {
    name: "English",
    code: "en",
  },
  {
    name: "Spanish",
    code: "es",
  },
  {
    name: "Estonian",
    code: "et",
  },
  {
    name: "Finnish",
    code: "fi",
  },
  {
    name: "French",
    code: "fr",
  },
  {
    name: "Hebrew",
    code: "he",
  },
  {
    name: "Hungarian",
    code: "hu",
  },
  {
    name: "Indonesian",
    code: "id",
  },
  {
    name: "Italian",
    code: "it",
  },
  {
    name: "Japanese",
    code: "ja",
  },
  {
    name: "Korean",
    code: "ko",
  },
  {
    name: "Lithuanian",
    code: "lt",
  },
  {
    name: "Latvian",
    code: "lv",
  },
  {
    name: "Norwegian",
    code: "nb",
  },
  {
    name: "Dutch",
    code: "nl",
  },
  {
    name: "Polish",
    code: "pl",
  },
  {
    name: "Portuguese",
    code: "pt",
  },
  {
    name: "Romanian",
    code: "ro",
  },
  {
    name: "Russian",
    code: "ru",
  },
  {
    name: "Slovak",
    code: "sk",
  },
  {
    name: "Slovenian",
    code: "sl",
  },
  {
    name: "Swedish",
    code: "sv",
  },
  {
    name: "Thai",
    code: "th",
  },
  {
    name: "Turkish",
    code: "tr",
  },
  {
    name: "Ukrainian",
    code: "uk",
  },
  {
    name: "Vietnamese",
    code: "vi",
  },
  {
    name: "Chinese",
    code: "zh",
  },
]

To Reproduce
Steps to reproduce the behavior:

  1. Create a blank vanilla nodejs project.
  2. Install deepl library
  3. Setup the api token
  4. Create a main file and invoke deepClient.getSourceLanguages()

Expected behavior
The new available languages should be listed: CA,GL, EU

Activity

  1. JanEbbing commented on Nov 11, 2025

    @JanEbbing
    Contributor

    We do not list them in the languages endpoint yet because they are in Beta and can only be used with the opt-in flag. Does this work for you? I think we need a redesign of the entire endpoint in order to facilitate things like this without forcing users to hardcode languages in their implementation, which will change over time.

  2. brauliodiez commented on Nov 11, 2025

    @brauliodiez
    Author

    Thanks for the feedback, we are trying the following:

      // Source: es, Target: ca
      const result = await deeplClient.translateText(text, source, target, {
        extraRequestParameters: { enable_beta_languages: 'true' },
      });

    We have tried as well:

      const result = await deeplClient.translateText(text, source, target, {
        extraRequestParameters: { enable_beta_languages: true }, // Typing error
      });

    But we got

    "Bad request, message: "Value for 'target_lang' not supported"

    what are we doing wrong?

    Thanks

  3. brauliodiez commented on Nov 11, 2025

    @brauliodiez
    Author

    Ok, just realized, enable_beta_languages: "1"

    It should be an string with the value "1".

    Thanks

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