Open mgeisler opened 3 months ago
Yeah, we haven't added that, though I suspect it can follow a similar pattern to how we're doing comments.
So probably a sketch of supporting this would be:
Define another HTML comment directive to let authors specify the ctxt, similar to what we're doing here
ctxt
Collect and thread that state when we're gathering groups for translation.
Finally, pass the ctxt here and call the builder method for setting the ctxt.
So I think this would be fairly straightforward extension.
_Originally posted by @dyoo in https://github.com/google/comprehensive-rust/pull/1973#discussion_r1563132168_
This is about adding support for the translation context.
Yeah, we haven't added that, though I suspect it can follow a similar pattern to how we're doing comments.
So probably a sketch of supporting this would be:
Define another HTML comment directive to let authors specify the
ctxt
, similar to what we're doing hereCollect and thread that state when we're gathering groups for translation.
Finally, pass the
ctxt
here and call the builder method for setting thectxt
.So I think this would be fairly straightforward extension.
_Originally posted by @dyoo in https://github.com/google/comprehensive-rust/pull/1973#discussion_r1563132168_