mirror of
https://github.com/Microsoft/vscode
synced 2024-09-18 01:58:27 +00:00
Use localized language name when available
This commit is contained in:
parent
9ce14ae424
commit
549c1a1ba0
|
@ -159,7 +159,7 @@ export class LocalizationWorkbenchContribution extends Disposable implements IWo
|
|||
TPromise.join([this.galleryService.getManifest(extensionToFetchTranslationsFrom), this.galleryService.getCoreTranslation(extensionToFetchTranslationsFrom, locale)])
|
||||
.then(([manifest, translation]) => {
|
||||
const loc = manifest && manifest.contributes && manifest.contributes.localizations && manifest.contributes.localizations.filter(x => x.languageId.toLowerCase() === locale)[0];
|
||||
const languageDisplayName = loc && loc.languageName ? loc.languageName : locale;
|
||||
const languageDisplayName = loc ? (loc.languageNameLocalized || loc.languageName || locale) : locale;
|
||||
const translations = {
|
||||
...minimumTranslatedStrings,
|
||||
...(translation && translation.contents ? translation.contents['vs/platform/node/minimalTranslations'] : {})
|
||||
|
|
Loading…
Reference in a new issue