Skip to content

Commit 7baf73d

Browse files
committed
fix: revert default text
1 parent 32810b0 commit 7baf73d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/pluggableWidgets/datagrid-web/src/features/select-all/SelectAllBar.viewModel.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,15 @@ export class SelectAllBarViewModel implements SetupComponent {
7171
}
7272

7373
private get selectAllFormat(): string {
74-
return this.props.selectAllTemplate?.value ?? "select.all.n.items";
74+
return this.props.selectAllTemplate?.value ?? "Select all %d rows in the data source";
7575
}
7676

7777
private get selectAllText(): string {
78-
return this.props.selectAllText?.value ?? "select.all.items";
78+
return this.props.selectAllText?.value ?? "Select all rows in the data source";
7979
}
8080

8181
private get allSelectedText(): string {
82-
const str = this.props.allSelectedText?.value ?? "all.selected";
82+
const str = this.props.allSelectedText?.value ?? "All %d rows selected.";
8383
return str.replace("%d", `${this.count.selectedCount}`);
8484
}
8585

packages/shared/widget-plugin-grid/src/selection-counter/SelectionCounter.viewModel.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ export class SelectionCounterViewModel {
2323
}
2424

2525
private get formatSingular(): string {
26-
return this.props.selectedCountTemplateSingular?.value || "%d.row.selected";
26+
return this.props.selectedCountTemplateSingular?.value || "%d row selected";
2727
}
2828

2929
private get formatPlural(): string {
30-
return this.props.selectedCountTemplatePlural?.value || "%d.rows.selected";
30+
return this.props.selectedCountTemplatePlural?.value || "%d rows selected";
3131
}
3232

3333
get isTopCounterVisible(): boolean {
@@ -41,7 +41,7 @@ export class SelectionCounterViewModel {
4141
}
4242

4343
get clearButtonLabel(): string {
44-
return this.props.clearSelectionButtonLabel?.value || "clear.selection";
44+
return this.props.clearSelectionButtonLabel?.value || "Clear selection";
4545
}
4646

4747
get selectedCount(): number {

0 commit comments

Comments
 (0)