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

The language pack extension cannot be installed, Is it possible to replace the default language during the build? #261

Closed
sevilen opened this issue Dec 16, 2021 · 5 comments

Comments

@sevilen
Copy link

sevilen commented Dec 16, 2021

Unable to install language pack in openvscode-server. For some beginners, they may need localization to learn how to use vscode.

Can I build with language packs built in?

@sevilen
Copy link
Author

sevilen commented Dec 16, 2021

I found the following code in src/vs/node/languagePacks.js

function getLanguagePackConfigurations(userDataPath) {
	const configFile = path.join(userDataPath, 'languagepacks.json');
	try {
		return nodeRequire(configFile);
	} catch (err) {
		// Do nothing. If we can't read the file we have no
		// language pack config.
	}
	return undefined;
}

What should be included in languagepacks.json?

@jeanp413
Copy link
Member

@sevilen currently translations are not supported for vscode web. Related upstream issue microsoft#82595

@sevilen
Copy link
Author

sevilen commented Dec 20, 2021

@jeanp413 Ok, I got it, thanks for your reply.

@sevilen sevilen closed this as completed Dec 22, 2021
@wzxinchen
Copy link

microsoft/vscode-nls#42

Does the pr as above can support chinese? If so , what should I do?

@jeanp413
Copy link
Member

Not possible yet sadly.
Language packs extensions are not used for web, instead some json file is used and is hosted in MS servers and the endpoint is configured in product.json and as far as I know we cannot legally use the MS endpoint in our product.json.
I think we can somehow derive from the extensions the needed json files and host it ourselves in the future, this will only apply for the workbench localization. For extensions localization, I created an issue about it microsoft#152403 as some scripts are required to generate the localization files

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

3 participants