diff --git a/build/azure-pipelines/upload-nlsmetadata.js b/build/azure-pipelines/upload-nlsmetadata.js index dec71eff933..7292b3b58de 100644 --- a/build/azure-pipelines/upload-nlsmetadata.js +++ b/build/azure-pipelines/upload-nlsmetadata.js @@ -25,15 +25,17 @@ function main() { switch (file.basename) { case 'package.nls.json': // put package.nls.json content in Core NlsMetadata format + // language packs use the key "package" to specify that + // translations are for the package.json file parsedJson = { messages: { - 'package.nls.json': Object.values(parsedJson) + package: Object.values(parsedJson) }, keys: { - 'package.nls.json': Object.keys(parsedJson) + package: Object.keys(parsedJson) }, bundles: { - main: ['package.nls.json'] + main: ['package'] } }; break; diff --git a/build/azure-pipelines/upload-nlsmetadata.ts b/build/azure-pipelines/upload-nlsmetadata.ts index b2d7f158fe0..db0b551161b 100644 --- a/build/azure-pipelines/upload-nlsmetadata.ts +++ b/build/azure-pipelines/upload-nlsmetadata.ts @@ -40,15 +40,17 @@ function main() { switch (file.basename) { case 'package.nls.json': // put package.nls.json content in Core NlsMetadata format + // language packs use the key "package" to specify that + // translations are for the package.json file parsedJson = { messages: { - 'package.nls.json': Object.values(parsedJson) + package: Object.values(parsedJson) }, keys: { - 'package.nls.json': Object.keys(parsedJson) + package: Object.keys(parsedJson) }, bundles: { - main: ['package.nls.json'] + main: ['package'] } }; break;