From: Tim Düsterhus Date: Fri, 5 Feb 2021 10:22:14 +0000 (+0100) Subject: Implement Language#addObject() in terms of Language#add() X-Git-Tag: 5.4.0_Alpha_1~300^2~3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f1b262fcfee8d1574a0f0483f4e0b7fe551b76cf;p=GitHub%2FWoltLab%2FWCF.git Implement Language#addObject() in terms of Language#add() --- 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;