You've already forked element-web
mirror of
https://github.com/element-hq/element-web.git
synced 2025-07-02 06:42:31 +03:00
25 lines
661 B
JavaScript
25 lines
661 B
JavaScript
/*
|
|
Copyright 2025 New Vector Ltd.
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial
|
|
Please see LICENSE files in the repository root for full details.
|
|
*/
|
|
|
|
export default class ExampleModule {
|
|
static moduleApiVersion = "^1.0.0";
|
|
constructor(api) {
|
|
this.api = api;
|
|
|
|
this.api.i18n.register({
|
|
key: {
|
|
en: "%(brand)s module loading successful!",
|
|
de: "%(brand)s-Module erfolgreich geladen!",
|
|
},
|
|
});
|
|
}
|
|
async load() {
|
|
const brand = this.api.config.get("brand");
|
|
alert(this.api.i18n.translate("key", { brand }));
|
|
}
|
|
}
|