Skip to content

Commit

Permalink
Better message
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-rao-a committed May 21, 2018
1 parent 43d48b1 commit 4ed9641
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,15 +116,16 @@ export class LocalizationWorkbenchContribution extends Disposable implements IWo
}

const bundledTranslations = (product['bundledTranslations'] || {})[platform.locale];
if (language === platform.locale || !bundledTranslations) {
if (language === platform.locale || !bundledTranslations || !bundledTranslations['languageName']) {
return;
}

// The initial value for below dont get used. We just have it here so that they get localized.
// The localized strings get pulled into the "product.json" file during endgame to get shipped
let searchForLanguagePacks = localize('searchForLanguagePacks', "Your locale is not supported by VS Code. There are extensions in the marketplace that can localize VS Code.");
let searchForLanguagePacks = localize('searchForLanguagePacks', "There are extensions in the Marketplace that can localize VS Code using the ${0} language.", bundledTranslations['languageName']);
let searchMarketplace = localize('searchMarketplace', "Search Marketplace");
let dontShowAgain = localize('neverAgain', "Don't Show Again");

searchForLanguagePacks = bundledTranslations['searchForLanguagePacks'];
searchMarketplace = bundledTranslations['searchMarketplace'];
dontShowAgain = bundledTranslations['neverAgain'];
Expand Down

0 comments on commit 4ed9641

Please sign in to comment.