Replies: 2 comments 7 replies
-
@longlho what is the general philosophy around adding to |
Beta Was this translation helpful? Give feedback.
6 replies
-
latest version should fix this |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, we are able to supply text descriptions for a particular string through the MessageDescriptor interface. These are great but in-context imagery is the best way to ensure the highest quality translations.
My proposal is to add the ability to provide a URL to an image that can accompany text descriptions. They would behave the same as the description field and get removed at compile time.
Implementation
Existing MessageDescriptor interface:
There are two possible ways to do this:
In Typescript the MessageDescriptor is already of type
string | object
so option 2 appears to be a viable path, but overloading description like this feels unintuitive, which is why I would recommend adding a new field altogetherExtraction
The existing custom formatter pattern can be used when extracting strings to target the
img
fieldBeta Was this translation helpful? Give feedback.
All reactions