Skip to content

Commit

Permalink
Fix languageId typo
Browse files Browse the repository at this point in the history
  • Loading branch information
sandy081 committed Jan 23, 2018
1 parent 91e8887 commit 35aa8fb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ export class LanguagePackExtensions extends Disposable {
if (extension && extension.manifest && extension.manifest.contributes && extension.manifest.contributes.localizations && extension.manifest.contributes.localizations.length) {
const extensionIdentifier = { id: getGalleryExtensionIdFromLocal(extension), uuid: extension.identifier.uuid };
for (const localizationContribution of extension.manifest.contributes.localizations) {
if (localizationContribution.languagId && localizationContribution.translations) {
const languageSources = languagePacks[localizationContribution.languagId] || [];
if (localizationContribution.languageId && localizationContribution.translations) {
const languageSources = languagePacks[localizationContribution.languageId] || [];
languageSources.splice(0, 0, { extensionIdentifier, translations: join(extension.path, localizationContribution.translations), version: extension.manifest.version });
languagePacks[localizationContribution.languagId] = languageSources;
languagePacks[localizationContribution.languageId] = languageSources;
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export interface IColor {
}

export interface ILocalization {
languagId: string;
languageId: string;
languageName?: string;
translations: string;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ suite('ExtensionEnablementService Test', () => {
});

test('test canChangeEnablement return false for language packs', () => {
assert.equal(testObject.canChangeEnablement(aLocalExtension('pub.a', { localizations: [{ languagId: 'gr', translations: 'somepath' }] })), false);
assert.equal(testObject.canChangeEnablement(aLocalExtension('pub.a', { localizations: [{ languageId: 'gr', translations: 'somepath' }] })), false);
});
});

Expand Down

0 comments on commit 35aa8fb

Please sign in to comment.