From 504d04d668c6c35a2c6ad6f6af1ca72c6b0160e4 Mon Sep 17 00:00:00 2001 From: SamTV12345 <40429738+SamTV12345@users.noreply.github.com> Date: Thu, 5 Sep 2024 18:46:46 +0200 Subject: [PATCH] Readded text shortcut (#6634) --- src/static/js/vendors/html10n.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/static/js/vendors/html10n.ts b/src/static/js/vendors/html10n.ts index ea5a1cb24..678a00959 100644 --- a/src/static/js/vendors/html10n.ts +++ b/src/static/js/vendors/html10n.ts @@ -995,3 +995,9 @@ export default html10n // @ts-ignore window.html10n = html10n + +// gettext-like shortcut +if (window._ === undefined){ + // @ts-ignore + window._ = html10n.get; +}