提交 549c1a1b 编写于 作者: R Ramya Achutha Rao

Use localized language name when available

上级 9ce14ae4
......@@ -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'] : {})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册