Follow-up from "Enhance CI/CD variable drawer UI with popovers for help content"

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

The following discussion from !179531 (merged) should be addressed:

@opysaryuk However, (out of scope of the current MR) I looked around the nearby context of this UI on the screenshots, and got curious about this text: Description (optional):

CleanShot 2025-02-04 at 21.38.32@2x.png

It does not come from this string in the .pot file: msgid "Description (optional)" (which is likely used in the labels template).

It rather seems to be a construct of two fragments: label Description, + the string (optional) from the gl-form-group component: https://gitlab.com/gitlab-org/gitlab-ui/-/blob/main/src/components/base/form/form_group/form_group.vue

Looks like when the optional prop is there, the text (optional) gets appended to the label Description. Which is a very curious localizability problem, because the component works so that it makes the text (optional) unavailable to be translated, thus the text won't show to non-English users in their language

Seems to be a feature of the component, that ideally may need to be refactored in order to support translatability 🌐 Worth a new issue

Edited by 🤖 GitLab Bot 🤖