This month we released some new tooling for extension authors to use Azure Translate to translate their extensions. The hope is that since Azure Translator comes with a free tier, that extension authors will want to support more users by localizing their extensions for free!
Here's the process:
Have an extension that uses vscode.l10n.t() or package.nls.json (you can see how to use these in the README
I recommend you set the l10n property in your package.json to like ./l10n. Keeps things organized (and gives you web localization support 😄 )
Then you want to use @vscode/l10n-dev's CLI to do the rest:
Refs: https://github.com/microsoft/vscode-l10n/issues/154
Complexity: 4
Create Issue
This month we released some new tooling for extension authors to use Azure Translate to translate their extensions. The hope is that since Azure Translator comes with a free tier, that extension authors will want to support more users by localizing their extensions for free!
Here's the process:
vscode.l10n.t()
orpackage.nls.json
(you can see how to use these in the READMEl10n
property in your package.json to like./l10n
. Keeps things organized (and gives you web localization support 😄 )@vscode/l10n-dev
's CLI to do the rest:generate-azure
command documented here: https://github.com/microsoft/vscode-l10n/tree/main/l10n-dev#azure-ai-translator-experimentalQuick start for creating an Azure Translator:
generate-azure
section of the README