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)" } } 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)" } } 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)" } } 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],