Could we get a way to provide additional context to the translation API so it can disambiguate better?
e.g. translator.translate('Lead') it's unclear if you mean 'Lead' in the business contact sense or as a type of metal.
Developers could provide context over the existing options hash:
translator.translate('Lead', { context: 'business contact' });
translator.translate('Lead', { context: 'metal' });
My use case is I'm interested in translating a bunch of small strings throughout a web page, but the strings may be headings, list items, etc where there isn't enough context clues to infer meaning.
I think the AI translator could be superior to the browser's existing "Translate Page" in situations where the web developer knows which strings should and shouldn't be translated. As well as in frontend frameworks where the existing page-wide tool often breaks reactivity.