mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-25 04:36:23 +00:00
Create language specific nls files for extensions
This commit is contained in:
@@ -27,6 +27,8 @@ var compilations = glob.sync('**/tsconfig.json', {
|
||||
ignore: '**/out/**'
|
||||
});
|
||||
|
||||
var languages = ['chs', 'cht', 'jpn', 'kor', 'deu', 'fra', 'esn', 'rus', 'ita'];
|
||||
|
||||
var tasks = compilations.map(function(tsconfigFile) {
|
||||
var absolutePath = path.join(extensionsPath, tsconfigFile);
|
||||
var options = require(absolutePath).compilerOptions;
|
||||
@@ -64,6 +66,7 @@ var tasks = compilations.map(function(tsconfigFile) {
|
||||
includeContent: false
|
||||
}))
|
||||
.pipe(tsFilter.restore)
|
||||
.pipe(nlsDev.createAdditionalLanguageFiles(languages, path.join(__dirname, '..', 'i18n'), path.join('extensions', name)))
|
||||
.pipe(quiet ? es.through() : reporter.end());
|
||||
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user