From f1b262fcfee8d1574a0f0483f4e0b7fe551b76cf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 5 Feb 2021 11:22:14 +0100 Subject: [PATCH] Implement Language#addObject() in terms of Language#add() --- ts/WoltLabSuite/Core/Language.ts | 2 +- wcfsetup/install/files/js/WoltLabSuite/Core/Language.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ts/WoltLabSuite/Core/Language.ts b/ts/WoltLabSuite/Core/Language.ts index 9b34920ef7..05dc5539a2 100644 --- a/ts/WoltLabSuite/Core/Language.ts +++ b/ts/WoltLabSuite/Core/Language.ts @@ -17,7 +17,7 @@ const _languageItems = new Map(); */ export function addObject(object: LanguageItems): void { Object.keys(object).forEach((key) => { - _languageItems.set(key, object[key]); + add(key, object[key]); }); } diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Language.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Language.js index fa38716264..0c3c01a5d5 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Language.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Language.js @@ -18,7 +18,7 @@ define(["require", "exports", "tslib", "./Template"], function (require, exports */ function addObject(object) { Object.keys(object).forEach((key) => { - _languageItems.set(key, object[key]); + add(key, object[key]); }); } exports.addObject = addObject; -- 2.20.1