From dadd501843f76720905030b8679485f34ecd9a4d Mon Sep 17 00:00:00 2001 From: Ben Phelps Date: Thu, 29 Sep 2022 11:40:09 +0300 Subject: [PATCH 1/4] fix case with empty bookmarks and widgets --- src/utils/config/api-response.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/utils/config/api-response.js b/src/utils/config/api-response.js index 1b4c1b5fb..809927d1b 100644 --- a/src/utils/config/api-response.js +++ b/src/utils/config/api-response.js @@ -14,6 +14,8 @@ export async function bookmarksResponse() { const fileContents = await fs.readFile(bookmarksYaml, "utf8"); const bookmarks = yaml.load(fileContents); + if (!bookmarks) return []; + // map easy to write YAML objects into easy to consume JS arrays const bookmarksArray = bookmarks.map((group) => ({ name: Object.keys(group)[0], @@ -33,6 +35,8 @@ export async function widgetsResponse() { const fileContents = await fs.readFile(widgetsYaml, "utf8"); const widgets = yaml.load(fileContents); + if (!widgets) return []; + // map easy to write YAML objects into easy to consume JS arrays const widgetsArray = widgets.map((group) => ({ type: Object.keys(group)[0], From 12279e9bda2a602fa7f58043054bddded76a12c8 Mon Sep 17 00:00:00 2001 From: Sascha Jelinek Date: Wed, 28 Sep 2022 18:13:13 +0000 Subject: [PATCH 2/4] Translated using Weblate (German) Currently translated at 100.0% (118 of 118 strings) Translation: Homepage/Homepage Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/de/ --- public/locales/de/common.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/locales/de/common.json b/public/locales/de/common.json index 18c91ac23..b40fec4c2 100644 --- a/public/locales/de/common.json +++ b/public/locales/de/common.json @@ -170,8 +170,8 @@ "transferRate": "Bewerten" }, "authentik": { - "users": "Users", - "loginsLast24H": "Logins (24h)", - "failedLoginsLast24H": "Failed Logins (24h)" + "users": "Benutzer", + "loginsLast24H": "Anmeldungen (24h)", + "failedLoginsLast24H": "fehlerhafte Anmeldungen (24h)" } } From 6b0659af1f098f6d35a0a5dc931cda812ace56f7 Mon Sep 17 00:00:00 2001 From: Nonoss117 Date: Thu, 29 Sep 2022 07:59:49 +0000 Subject: [PATCH 3/4] Translated using Weblate (French) Currently translated at 100.0% (118 of 118 strings) Translation: Homepage/Homepage Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/fr/ --- public/locales/fr/common.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/locales/fr/common.json b/public/locales/fr/common.json index bda5998b4..a1ff63c16 100644 --- a/public/locales/fr/common.json +++ b/public/locales/fr/common.json @@ -170,8 +170,8 @@ "transferRate": "Débit" }, "authentik": { - "users": "Users", - "loginsLast24H": "Logins (24h)", - "failedLoginsLast24H": "Failed Logins (24h)" + "users": "Utilisateurs", + "loginsLast24H": "Cnx. (24h)", + "failedLoginsLast24H": "Cnx. échouées (24h)" } } From 512a6cd4b937b5c36609407c7824717e1951b7a7 Mon Sep 17 00:00:00 2001 From: C8opmBM Date: Wed, 28 Sep 2022 21:44:17 +0000 Subject: [PATCH 4/4] Translated using Weblate (Romanian) Currently translated at 100.0% (118 of 118 strings) Translation: Homepage/Homepage Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/ro/ --- public/locales/ro/common.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/locales/ro/common.json b/public/locales/ro/common.json index 8789cd638..ea00d35c1 100644 --- a/public/locales/ro/common.json +++ b/public/locales/ro/common.json @@ -170,8 +170,8 @@ "domain_count": "Domenii" }, "authentik": { - "users": "Users", - "loginsLast24H": "Logins (24h)", - "failedLoginsLast24H": "Failed Logins (24h)" + "users": "Utilizatori", + "loginsLast24H": "Autentificări (24h)", + "failedLoginsLast24H": "Conectări eșuate (24h)" } }