mirror of
https://github.com/Microsoft/vscode
synced 2024-10-05 19:02:54 +00:00
Disable locale info check.
This commit is contained in:
parent
48c787d9f3
commit
1a3fd783fe
|
@ -37,14 +37,15 @@ export function setup(opts: minimist.ParsedArgs) {
|
|||
}
|
||||
return;
|
||||
} else {
|
||||
const localeInfo = await app.workbench.localization.getLocaleInfo();
|
||||
if (localeInfo.locale === undefined || localeInfo.locale.toLowerCase() !== 'de') {
|
||||
throw new Error(`The requested locale for VS Code was not German. The received value is: ${localeInfo.locale === undefined ? 'not set' : localeInfo.locale}`);
|
||||
}
|
||||
// todo@dirkb enable after 1.58 has shipped.
|
||||
// const localeInfo = await app.workbench.localization.getLocaleInfo();
|
||||
// if (localeInfo.locale === undefined || localeInfo.locale.toLowerCase() !== 'de') {
|
||||
// throw new Error(`The requested locale for VS Code was not German. The received value is: ${localeInfo.locale === undefined ? 'not set' : localeInfo.locale}`);
|
||||
// }
|
||||
|
||||
if (localeInfo.language.toLowerCase() !== 'de') {
|
||||
throw new Error(`The UI language is not German. It is ${localeInfo.language}`);
|
||||
}
|
||||
// if (localeInfo.language.toLowerCase() !== 'de') {
|
||||
// throw new Error(`The UI language is not German. It is ${localeInfo.language}`);
|
||||
// }
|
||||
|
||||
if (result.open.toLowerCase() !== 'öffnen' || result.close.toLowerCase() !== 'schließen' || result.find.toLowerCase() !== 'finden') {
|
||||
throw new Error(`Received wrong German localized strings: ${JSON.stringify(result, undefined, 0)}`);
|
||||
|
|
Loading…
Reference in a new issue