diff --git a/packages/vscode/src/client.ts b/packages/vscode/src/client.ts index 662fbd58..a94c8e38 100644 --- a/packages/vscode/src/client.ts +++ b/packages/vscode/src/client.ts @@ -1,5 +1,6 @@ import "./fill/require"; import * as paths from "./fill/paths"; +import "./fill/platform"; import "./fill/storageDatabase"; import "./fill/windowsService"; import "./fill/environmentService"; diff --git a/packages/vscode/src/fill/platform.ts b/packages/vscode/src/fill/platform.ts new file mode 100644 index 00000000..2d8fb863 --- /dev/null +++ b/packages/vscode/src/fill/platform.ts @@ -0,0 +1,12 @@ +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"; +}