Archived
1
0
This repository has been archived on 2024-09-09. You can view files and clone it, but cannot push or open issues or pull requests.
code-server/packages/vscode/src/fill/platform.ts

13 lines
447 B
TypeScript

import * as platform from "vs/base/common/platform";
// Use en instead of en-US since that's vscode default and it uses
// that to determine whether to output aliases which will be redundant.
if (platform.locale === "en-US") {
// tslint:disable-next-line no-any to override const
(platform as any).locale = "en";
}
if (platform.language === "en-US") {
// tslint:disable-next-line no-any to override const
(platform as any).language = "en";
}