use package instead because language packs use package

pull/133292/head
Tyler Leonhardt 2021-09-16 15:49:53 -07:00
parent b3aabcc8d0
commit 6dff4e5fde
No known key found for this signature in database
GPG Key ID: 1BC2B6244363E77E
2 changed files with 10 additions and 6 deletions

View File

@ -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;

View File

@ -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;