Skip to content

Commit

Permalink
Update names in editor when changing language
Browse files Browse the repository at this point in the history
  • Loading branch information
Blipz committed Sep 1, 2023
1 parent e1833fb commit 685d0c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/editor/Editor.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@
return el ? el.tagName === "image" : false;
}
const translateSafely = (group, key) => {
$: translateSafely = (group, key) => {
const isInDictionary = $dictionary?.[$locale]?.[group]?.[key];
return isInDictionary ? $t(`${group}.${key}`) : key;
};
Expand Down

0 comments on commit 685d0c3

Please sign in to comment.