From a955fdfefafb8bf8470fb6b4453d2ae60b382ce8 Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Wed, 24 Jun 2020 16:12:29 +0800 Subject: [PATCH] add `t` to global `blessing` variable --- resources/assets/src/scripts/i18n.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/assets/src/scripts/i18n.ts b/resources/assets/src/scripts/i18n.ts index 42e4b6890..7374c9f54 100644 --- a/resources/assets/src/scripts/i18n.ts +++ b/resources/assets/src/scripts/i18n.ts @@ -25,3 +25,4 @@ export function t(key: string, parameters = Object.create(null)): string { } Object.assign(window, { trans: t }) +Object.assign(blessing, { t })