From efb6f8afe3fe87b75e65be9e96216b26e9afbc30 Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Thu, 12 Dec 2024 14:26:43 -0800 Subject: [PATCH] Proper fix on locale message type (#1894) --- src/i18n.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/i18n.ts b/src/i18n.ts index 4d63320ca..8fbef52fa 100644 --- a/src/i18n.ts +++ b/src/i18n.ts @@ -15,11 +15,7 @@ import ruCommands from './locales/ru/commands.json' import jaCommands from './locales/ja/commands.json' import koCommands from './locales/ko/commands.json' -function buildLocale( - main: typeof en, - nodes: typeof enNodes, - commands: typeof enCommands -) { +function buildLocale(main: M, nodes: N, commands: C) { return { ...main, nodeDefs: nodes,