diff --git a/browser/translations.asar b/browser/translations.asar new file mode 100644 index 000000000..675adebe8 Binary files /dev/null and b/browser/translations.asar differ diff --git a/src/utils/translation.ts b/src/utils/translation.ts index d59ddf6fc..e9d9fb3bd 100644 --- a/src/utils/translation.ts +++ b/src/utils/translation.ts @@ -4,7 +4,7 @@ * SPDX-License-Identifier: GPL-3.0-or-later */ -import { FluentBundle, FluentResource } from "@fluent/bundle"; +import { FluentBundle, FluentResource, type FluentVariable } from "@fluent/bundle"; import { negotiateLanguages } from "@fluent/langneg"; import { mapBundleSync } from "@fluent/sequence"; import { FluxDispatcher, i18n } from "@webpack/common"; @@ -45,7 +45,7 @@ export function getTranslations(context: string) { * @param variables The variables to interpolate into the resultant string. * @returns A translated string. */ - return function t(key: string, variables?: Record): string { + return function t(key: string, variables?: Record): string { // adding the caching here speeds up retrieving translations for this key later if (messageCache[key]) { const bundle = messageCache[key];