diff --git a/extra/update-language-files/index.js b/extra/update-language-files/index.js
index a90f9f363..7ba30cc05 100644
--- a/extra/update-language-files/index.js
+++ b/extra/update-language-files/index.js
@@ -26,10 +26,12 @@ const copyRecursiveSync = function (src, dest) {
}
};
-console.log("Arguments:", process.argv)
+console.log("Arguments:", process.argv);
const baseLangCode = process.argv[2] || "en";
console.log("Base Lang: " + baseLangCode);
-fs.rmdirSync("./languages", { recursive: true });
+if (fs.existsSync("./languages")) {
+ fs.rmdirSync("./languages", { recursive: true });
+}
copyRecursiveSync("../../src/languages", "./languages");
const en = (await import("./languages/en.js")).default;
@@ -39,7 +41,7 @@ console.log("Files:", files);
for (const file of files) {
if (!file.endsWith(".js")) {
- console.log("Skipping " + file)
+ console.log("Skipping " + file);
continue;
}
diff --git a/src/components/notifications/Matrix.vue b/src/components/notifications/Matrix.vue
index d1e973cd1..d47906461 100644
--- a/src/components/notifications/Matrix.vue
+++ b/src/components/notifications/Matrix.vue
@@ -1,25 +1,25 @@
- You can find the internal room ID by looking in the advanced section of the room settings in your Matrix client. It should look like !QMdRCpUIfLwsfjxye6:home.server.
-
- It is highly recommended you create a new user and do not use your own Matrix user's access token as it will allow full access to your account and all the rooms you joined. Instead, create a new user and only invite it to the room that you want to receive the notification in. You can get the access token by running curl -XPOST -d '{"type": "m.login.password", "identifier": {"user": "botusername", "type": "m.id.user"}, "password": "passwordforuser"}' "https://home.server/_matrix/client/r0/login"
.
+ {{ $t("matrixDesc1") }}
curl -XPOST -d '{"type": "m.login.password", "identifier": {"user": "botusername", "type": "m.id.user"}, "password": "passwordforuser"}' "https://home.server/_matrix/client/r0/login"
.
+