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

Add Localization #2051

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

nagilson
Copy link
Member

Test adding localization to the extension using the new L10N Method devised by VS Code.

Has some bad Japanese which is done via google translate. Proof of concept.

Need to verify strings with args and that setting the language in vscode actually impacts the language of the tool.

Some errors need to get put into the log in english and put into the user window (error handler) not in english. But they have embedded args which are part of the string that need to go into the log and are not available past the time the error is thrown, We will likely need to create our own simple localizableString class with string and the args array that the log will parse and then l10n can parse for the user facing output.

We can do the same and handle event strings in the output channel observer, etc.

Does not include @vscode/l10n @vscode/l10n-dev in the package jsons as that seems to be a - for vscode internal, and b - a global npm tool invoke-able via npx.

Test adding localization to the extension using the new L10N Method devised by VS Code.

Has some bad Japanese which is done via google translate. Proof of concept.

Need to verify strings with args and that setting the language in vscode actually impacts the language of the tool.

Some errors need to get put into the log in english and put into the user window (error handler) not in english. But they have embedded args which are part of the string that need to go into the log and are not available past the time the error is thrown, We will likely need to create our own simple localizableString class with string and the args array that the log will parse and then l10n can parse for the user facing output.

We can do the same and handle event strings in the output channel observer, etc.

Does not include @vscode/l10n @vscode/l10n-dev in the package jsons as that seems to be a - for vscode internal, and b - a global npm tool invoke-able via npx.
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

Successfully merging this pull request may close these issues.

1 participant