Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scaffold localization in an extension #381

Open
TylerLeonhardt opened this issue Oct 24, 2022 · 0 comments
Open

Scaffold localization in an extension #381

TylerLeonhardt opened this issue Oct 24, 2022 · 0 comments
Assignees

Comments

@TylerLeonhardt
Copy link
Member

I wonder if we can update https://github.com/microsoft/vscode-generator-code to scaffold the l10n directory, add the required "l10n" key to the package.json (once the proposed API is finalized of course), and even include a sample script like the cli.ts. Then we could also have a step in the extension generator which asks you "Do you want to set up localization for this extension" or similar.

Yeah I like this a lot. I'm thinking such a script could:

  • create an l10n folder
  • update the l10n in package.json
  • add @vscode/l10n-dev as a dev dependency
  • create a package.nls.json with {} and a big useful comment

I think that @vscode/l10n's scenario is so uncommon that it's probably not worth including that in the generator IMO. Like it's only gonna be useful if your extension has like... a language server or debug adapter written in node (in other words... subprocesses that will only be used by VS Code that aren't in the extension host)

Originally posted by @TylerLeonhardt in microsoft/vscode#162023 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant