Skip to content

Commit

Permalink
Remove %0 from undoLabel: cross-axis-mapping.undo.delete
Browse files Browse the repository at this point in the history
  • Loading branch information
ollimeier committed Oct 22, 2024
1 parent e321546 commit 9bbb708
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/fontra/client/lang/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export const strings = {
"cross-axis-mapping.new": "New cross-axis mapping",
"cross-axis-mapping.title": "Cross-axis mapping",
"cross-axis-mapping.undo.add": "add cross-axis mapping",
"cross-axis-mapping.undo.delete": "delete cross-axis mapping %0",
"cross-axis-mapping.undo.delete": "delete cross-axis mapping",
"cross-axis-mapping.undo.reorder": "reorder cross-axis mapping",
"designspace-navigation.edit-all-compatible-sources": "Edit all compatible sources",
"development-status-definitions.title": "Status definitions",
Expand Down
2 changes: 1 addition & 1 deletion src/fontra/client/lang/fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export const strings = {
"cross-axis-mapping.new": "New cross-axis mapping",
"cross-axis-mapping.title": "Cross-axis mapping",
"cross-axis-mapping.undo.add": "add cross-axis mapping",
"cross-axis-mapping.undo.delete": "delete cross-axis mapping %0",
"cross-axis-mapping.undo.delete": "delete cross-axis mapping",
"cross-axis-mapping.undo.reorder": "reorder cross-axis mapping",
"designspace-navigation.edit-all-compatible-sources":
"Éditer toutes les sources compatibles",
Expand Down
2 changes: 1 addition & 1 deletion src/fontra/client/lang/nl.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export const strings = {
"cross-axis-mapping.new": "New cross-axis mapping",
"cross-axis-mapping.title": "Cross-axis mapping",
"cross-axis-mapping.undo.add": "add cross-axis mapping",
"cross-axis-mapping.undo.delete": "delete cross-axis mapping %0",
"cross-axis-mapping.undo.delete": "delete cross-axis mapping",
"cross-axis-mapping.undo.reorder": "reorder cross-axis mapping",
"designspace-navigation.edit-all-compatible-sources":
"Wijzig alle compatibele sources",
Expand Down
2 changes: 1 addition & 1 deletion src/fontra/client/lang/zh-CN.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export const strings = {
"cross-axis-mapping.new": "New cross-axis mapping",
"cross-axis-mapping.title": "Cross-axis mapping",
"cross-axis-mapping.undo.add": "add cross-axis mapping",
"cross-axis-mapping.undo.delete": "delete cross-axis mapping %0",
"cross-axis-mapping.undo.delete": "delete cross-axis mapping",
"cross-axis-mapping.undo.reorder": "reorder cross-axis mapping",
"designspace-navigation.edit-all-compatible-sources": "编辑所有匹配的图层",
"development-status-definitions.title": "Status definitions",
Expand Down
5 changes: 1 addition & 4 deletions src/fontra/views/fontinfo/panel-cross-axis-mapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,7 @@ class CrossAxisMappingBox extends HTMLElement {
}

deleteCrossAxisMapping() {
const undoLabel = translate(
"cross-axis-mapping.undo.delete",
this.mapping.description || this.mappingIndex
);
const undoLabel = translate("cross-axis-mapping.undo.delete");
const root = { axes: this.fontController.axes };
const changes = recordChanges(root, (root) => {
root.axes.mappings.splice(this.mappingIndex, 1);
Expand Down

0 comments on commit 9bbb708

Please sign in to comment.