var WSC_RPC_API_URL = '{link controller="Api" id="rpc"}{/link}';
{* The SECURITY_TOKEN is defined in wcf.globalHelper.js *}
var LANGUAGE_ID = {@$__wcf->getLanguage()->languageID};
+ var LANGUAGE_CODE = "{@$__wcf->getLanguage()->languageCode}";
var LANGUAGE_USE_INFORMAL_VARIANT = {if LANGUAGE_USE_INFORMAL_VARIANT}true{else}false{/if};
var TIME_NOW = {@TIME_NOW};
var LAST_UPDATE_TIME = {@LAST_UPDATE_TIME};
--- /dev/null
+import { wheneverSeen } from "WoltLabSuite/Core/Helper/Selector";
+import { Picker } from "emoji-picker-element";
+
+import "emoji-picker-element";
+
+void import("emoji-picker-element/i18n/de").then((emojiLanguage) => {
+ wheneverSeen("emoji-picker", (emojiPicker: Picker) => {
+ emojiPicker.locale = window.LANGUAGE_CODE;
+ emojiPicker.i18n = emojiLanguage.default;
+ });
+});
[key: string]: Reaction;
};
TIME_NOW: number;
+ LANGUAGE_CODE: string;
getFontAwesome6IconMetadata: (name: string) => IconMetadata | undefined;
import "./woltlab-core-notice.ts";
import "./woltlab-core-pagination.ts";
import "./woltlab-core-reaction-summary.ts";
-import "emoji-picker-element";
+import "./emoji-picker.ts";
ENABLE_DEBUG_MODE: boolean;
ENABLE_DEVELOPER_TOOLS: boolean;
LANGUAGE_ID: number;
+ LANGUAGE_CODE: string;
PAGE_TITLE: string;
REACTION_TYPES: {
[key: string]: Reaction;