Skip to content

Commit 43c8095

Browse files
author
Developer
committed
fix: defer tooltip localization to prevent startup errors
1 parent d875c35 commit 43c8095

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

js/block.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ const TooltipManager = {
205205
this.init();
206206
clearTimeout(this.timeout);
207207
this.timeout = setTimeout(() => {
208-
this.element.textContent = text;
208+
this.element.textContent = _(text);
209209
this.element.classList.add("show");
210210
this.position(x, y);
211211
}, 200);

js/utils/tooltips-data.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@
66
const TooltipsData = {
77
// Block level tooltips
88
blocks: {
9-
vibrato: _("Vibrato adds a pulsating change in pitch (like a singer's voice)."),
10-
chorus: _("Chorus makes a sound richer by layering it with slightly delayed copies."),
11-
tremolo: _("Tremolo adds a trembling effect by rapidly changing the volume.")
9+
vibrato: "Vibrato adds a pulsating change in pitch (like a singer's voice).",
10+
chorus: "Chorus makes a sound richer by layering it with slightly delayed copies.",
11+
tremolo: "Tremolo adds a trembling effect by rapidly changing the volume."
1212
},
1313

1414
// Parameter level tooltips
1515
parameters: {
16-
"rate": _("How fast the effect pulsates or repeats."),
17-
"depth": _("How strong or intense the effect is."),
18-
"intensity": _("The amount of pitch variation in the vibrato."),
19-
"delay (ms)": _("The delay time between the original and layered sounds.")
16+
"rate": "How fast the effect pulsates or repeats.",
17+
"depth": "How strong or intense the effect is.",
18+
"intensity": "The amount of pitch variation in the vibrato.",
19+
"delay (ms)": "The delay time between the original and layered sounds."
2020
}
2121
};
2222

0 commit comments

Comments
 (0)