mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
Allow extensions to use new API and it get included in Language Packs (#163493)
* Allow extensions to use new API and it get included in Language Packs This leverages the l10n-dev package to analyze ts files for `l10n.t` calls. * delete console.logs
This commit is contained in:
committed by
GitHub
parent
8a942246fb
commit
a8108049ab
@@ -68,7 +68,7 @@ function update(options) {
|
||||
console.log(`Importing translations for ${languageId} form '${location}' to '${translationDataFolder}' ...`);
|
||||
let translationPaths = [];
|
||||
gulp.src(path.join(location, '**', languageId, '*.xlf'), { silent: false })
|
||||
.pipe(i18n.prepareI18nPackFiles(i18n.externalExtensionsWithTranslations, translationPaths))
|
||||
.pipe(i18n.prepareI18nPackFiles(translationPaths))
|
||||
.on('error', (error) => {
|
||||
console.log(`Error occurred while importing translations:`);
|
||||
translationPaths = undefined;
|
||||
|
||||
Reference in New Issue
Block a user