microsoft / vscode-l10n

MIT License
66 stars 14 forks source link

Experimental Azure Translate feature #153

Closed TylerLeonhardt closed 10 months ago

TylerLeonhardt commented 10 months ago

This feature allows you to use Azure AI Translator to translate extension strings.

  1. Spin up an Azure Translator instance
  2. Set these env vars: AZURE_TRANSLATOR_KEY and AZURE_TRANSLATOR_REGION
  3. vscode-l10n-dev generate-azure ./foo.l10n.json

The default will translate for all the supported langauges of VS Code

Perhaps we can consider hosting an instance for customers.

jruales commented 7 months ago

@TylerLeonhardt This added a bunch of unnecessary software dependencies for folks who don't make use of this functionality. Any possibility of breaking this out into a separate package or another strategy to avoid adding these extra dependencies?

jruales commented 7 months ago

(Just to clarify, I have no immediate issues with the new dependencies, and it was more of a comment than a request. Just thinking about any future required Dependabot updates of those new dependencies.)

TylerLeonhardt commented 7 months ago

I don't think it changed the size by that much. After all, it just added some simple API wrappers... and it wouldn't be very discoverable kept as a separate package. Unless we get a ton of negative feedback, which... I haven't since this was released, I think we'll keep it the way it is.