Skip to content

Commit 8fce020

Browse files
committed
feat: add Language
1 parent 6475492 commit 8fce020

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

messages/package_version_create.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,3 +230,13 @@ Version create.
230230
# packageVersionCreateFinalStatus
231231

232232
Create version status: %s
233+
234+
# language
235+
236+
The language for the package.
237+
238+
# languageLong
239+
240+
The language for the package. Specify the language using a language code listed under "Supported Languages" in Salesforce Help.
241+
242+
If no language is specified, the language defaults to the language of the Dev Hub user who created the package.

messages/package_version_list.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,3 +136,7 @@ Org-Dependent Unlocked Package
136136
# createdBy
137137

138138
Created By
139+
140+
# language
141+
142+
Language

src/commands/force/package/beta/version/create.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,10 @@ export class PackageVersionCreateCommand extends SfdxCommand {
149149
longDescription: messages.getMessage('longWait'),
150150
default: Duration.minutes(0),
151151
}),
152+
language: flags.string({
153+
description: messages.getMessage('language'),
154+
longDescription: messages.getMessage('languageLong'),
155+
}),
152156
};
153157

154158
public async run(): Promise<Partial<PackageVersionCreateRequestResult>> {

src/commands/force/package/beta/version/list.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ export class PackageVersionListCommand extends SfdxCommand {
193193
BuildDurationInSeconds: record.BuildDurationInSeconds == null ? '' : record.BuildDurationInSeconds,
194194
HasMetadataRemoved: hasMetadataRemoved,
195195
CreatedBy: record.CreatedById,
196+
Language: record.Language,
196197
});
197198
});
198199
this.ux.styledHeader(`Package Versions [${results.length}]`);
@@ -261,6 +262,7 @@ export class PackageVersionListCommand extends SfdxCommand {
261262
header: messages.getMessage('hasMetadataRemoved'),
262263
},
263264
CreatedBy: { header: messages.getMessage('createdBy') },
265+
Language: { header: messages.getMessage('language') },
264266
};
265267
}
266268
}

0 commit comments

Comments
 (0)