Skip to content

Conversation

@vidarl
Copy link

@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:

image

Don't be confused by the fact that drop down only contains one client (Deepl). I only have DeepL, so just forced the use of drop-down anyway. The point is that it is not possible to disable the "DeepL" option in a convenient way when an unsupported language is selected.

For QA:

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 from 7022c49 to 57ec6bc Compare November 24, 2025 12:08
…lation" dialog takes supported languages into account
@vidarl vidarl force-pushed the IBX-10879__Deepl_Backoffice_shows_InvalidLanguageCodeException_for_unsupported_languages branch 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
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

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants