mdbook-i18n-helpers
mdbook-i18n-helpers copied to clipboard
Add support for a 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 here -
Collect 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
This is about adding support for the translation context.
I am planning to work on this feature, assigned to myself.