From ca5f24fcd9ec4d28f69a20fc127972b034a65c73 Mon Sep 17 00:00:00 2001 From: Alexander Brown Date: Thu, 11 Dec 2025 11:32:54 -0800 Subject: [PATCH] Fix: revert st function change (#7387) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update the 'st' function to use fallback message correctly. ## Summary Will follow-up to figure out why some custom node descriptions trigger an issue here. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-7387-Fix-revert-st-function-change-2c66d73d3650816991a3ecc2a4740716) by [Unito](https://www.unito.io) --- src/i18n.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/i18n.ts b/src/i18n.ts index 4f09619f6..46841c16c 100644 --- a/src/i18n.ts +++ b/src/i18n.ts @@ -205,8 +205,8 @@ export const { t, te, d } = i18n.global * * @param key - The key to translate. * @param fallbackMessage - The fallback message to use if the key is not found. - * @deprecated Remove, use the defaultMsg overload */ export function st(key: string, fallbackMessage: string) { - return t(key, fallbackMessage) + // The normal defaultMsg overload fails in some cases for custom nodes + return te(key) ? t(key) : fallbackMessage }