The discussion is about issues with getting tooltips to work with components in the Discourse form toolkit. pfaffman initially tried using a component as described in the documentation, but it didn’t render. Arkshine suggested returning a <DTooltip> component, but pfaffman found that the @tooltip attribute only accepts a string. To resolve the issue, pfaffman created a function that returns a translated string using i18n and passed it to the @tooltip attribute. This suggests that the documentation may be incorrect, and the @tooltip attribute only supports strings, not components.
that’s in the form-kit test. If I use a component then no tooltip renders.
I can’t find an example of a component being used in core or in all-the-plugins, so, it looks like it’s impossible to use i18n with a tooltip in a form? (I was hoping that maybe I could just not figure this out)
I tried both of these imports, the latter from the test (why are there two? Maybe it’s two ways to call the same file? I see only on in core):
// import DTooltip from "discourse/components/d-tooltip";
import DTooltip from "float-kit/components/d-tooltip";