Skip to content

Commit

Permalink
refactor(card)!: remove deprecated deselected message (#8099)
Browse files Browse the repository at this point in the history
**Related Issue:** #6660

## Summary

BREAKING CHANGE: Removed the `deselect` message property – this property
was deprecated in #6657 as it is no longer being rendered.
  • Loading branch information
jcfranco authored and benelan committed Nov 23, 2023
1 parent afb01d7 commit 80846d8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"select": "Selectable card",
"deselect": "Deselect",
"loading": "Loading"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"select": "Selectable card",
"deselect": "Deselect",
"loading": "Loading"
}
7 changes: 6 additions & 1 deletion packages/calcite-components/support/generateT9nDocsJSON.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@
const messagesFile = JSON.parse(await readFile(resolve(t9nPath, messagesFilename), { encoding: "utf-8" }));

for (const [key, value] of Object.entries(messagesFile)) {
data[component][key][lang] = value;
const translationEntries = data[component][key];

// translation bundles might still have references to strings removed in the `main` and `en` bundle
if (translationEntries) {
translationEntries[lang] = value;
}
}
}
}
Expand Down

0 comments on commit 80846d8

Please sign in to comment.