From 6dff4e5fde1fac47f56dd83d8681a7af06521545 Mon Sep 17 00:00:00 2001 From: Tyler Leonhardt Date: Thu, 16 Sep 2021 15:49:53 -0700 Subject: [PATCH] use package instead because language packs use package --- build/azure-pipelines/upload-nlsmetadata.js | 8 +++++--- build/azure-pipelines/upload-nlsmetadata.ts | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) 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;