Skip to content

Commit

Permalink
Use localized language name if it exists (#172069)
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerLeonhardt committed Jan 23, 2023
1 parent 449ac66 commit d2e4648
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1510,7 +1510,8 @@ export class ExtensionsWorkbenchService extends Disposable implements IExtension
if (locale === language) {
return;
}
return this.localeService.setLocale({ id: locale, galleryExtension: extension.gallery, extensionId: extension.identifier.id, label: extension.displayName });
const localizedLanguageName = extension.gallery?.properties?.localizedLanguages?.[0];
return this.localeService.setLocale({ id: locale, galleryExtension: extension.gallery, extensionId: extension.identifier.id, label: localizedLanguageName ?? extension.displayName });
}

setEnablement(extensions: IExtension | IExtension[], enablementState: EnablementState): Promise<void> {
Expand Down

0 comments on commit d2e4648

Please sign in to comment.