Skip to content

IBX-10879: Deepl: Backoffice shows `InvalidLanguageCodeException´ for unsupported languages#33

Open
vidarl wants to merge 7 commits into4.6from
IBX-10879__Deepl_Backoffice_shows_InvalidLanguageCodeException_for_unsupported_languages
Open

IBX-10879: Deepl: Backoffice shows `InvalidLanguageCodeException´ for unsupported languages#33
vidarl wants to merge 7 commits into4.6from
IBX-10879__Deepl_Backoffice_shows_InvalidLanguageCodeException_for_unsupported_languages

Conversation

@vidarl
Copy link
Copy Markdown

@vidarl vidarl commented Nov 21, 2025

🎫 Issue IBX-10879

Description:

Currently, admin-ui throws exception if you have languages not supported by the translation client (like DeepL)

I have also changed so that the "Create a new translation" dialog adapts to which languages are supported by translation client:
image
Here, the checkbox is disabled if any of the languages selected (source or target language) are unsupported

However, there is a problem if you have multiple translation clients configured. Then the checkbox is replaced with a drop-down. However, the current drop-down component doesn't support enabling/disabling options at run-time. Therefore I agreed with @dew326 to commit this PR as is and let the front-end team address that:

When multiple translation clients are available, the checkbox will be replaced with and drop-down. Now, options in that drop-down are disabled if they don't support a given language.
image

For QA:

  • Install automated-translation
  • Configure first only deepl
  • Add nor-NO (in additional to eng-GB) to the installation
  • Check that checkbox is disabled if Norwegian is select as source or target language
  • Then add google as translation client ( checkbox will be replaced with drop-down
  • See that "deepl" will be disabled once Norwegian is selected in source or target language

Documentation:

@vidarl vidarl marked this pull request as draft November 21, 2025 14:23
@vidarl vidarl force-pushed the IBX-10879__Deepl_Backoffice_shows_InvalidLanguageCodeException_for_unsupported_languages branch 2 times, most recently from 57ec6bc to 5e6a992 Compare November 24, 2025 12:17
@vidarl vidarl marked this pull request as ready for review November 24, 2025 12:35
@vidarl
Copy link
Copy Markdown
Author

vidarl commented Nov 24, 2025

@dew326 : PR created as we discussed on Friday. JS code for enabling/disabling option in drop-down is missing

@vidarl vidarl requested a review from dew326 November 24, 2025 12:37
@vidarl vidarl force-pushed the IBX-10879__Deepl_Backoffice_shows_InvalidLanguageCodeException_for_unsupported_languages branch from 5e6a992 to 0b56d1e Compare November 24, 2025 12:42
@sonarqubecloud
Copy link
Copy Markdown

@vidarl vidarl force-pushed the IBX-10879__Deepl_Backoffice_shows_InvalidLanguageCodeException_for_unsupported_languages branch from 50f20d1 to 4b4926a Compare April 27, 2026 12:10
@vidarl vidarl force-pushed the IBX-10879__Deepl_Backoffice_shows_InvalidLanguageCodeException_for_unsupported_languages branch from 4b4926a to 34355f1 Compare April 28, 2026 09:10
…rvice option and removing empty-string ambiguity in transformer and js
@vidarl vidarl force-pushed the IBX-10879__Deepl_Backoffice_shows_InvalidLanguageCodeException_for_unsupported_languages branch from 34355f1 to 6690dc7 Compare April 28, 2026 09:12
@sonarqubecloud
Copy link
Copy Markdown

@vidarl vidarl requested a review from a team April 28, 2026 10:22
@vidarl
Copy link
Copy Markdown
Author

vidarl commented Apr 28, 2026

@dew326 : PR created as we discussed on Friday. JS code for enabling/disabling option in drop-down is missing

@dew326
I have now added PR for enabling/disabling option in drop-down in admin-ui (Related PR) and completed this PR

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants