Fix translations when having an error on loading collections

This commit is contained in:
2026-04-03 15:54:14 +02:00
parent b48ab1e4de
commit 488e3763e3
3 changed files with 3 additions and 1 deletions

View File

@@ -33,7 +33,7 @@ function pageChange(newPageNumber) {
<template> <template>
<div> <div>
<div v-if="error">{{ $t('bookbrowser.error', { error: error.message }) }}</div> <div v-if="error">{{ $t('collections.error', { error: error.message }) }}</div>
<div v-else-if="data"> <div v-else-if="data">
<AddCollection @created="fetchData" /> <AddCollection @created="fetchData" />
<div class="collectionslist"> <div class="collectionslist">

View File

@@ -91,6 +91,7 @@
"textplaceholder": "Write my review..." "textplaceholder": "Write my review..."
}, },
"collections": { "collections": {
"error": "Error when loading collections: {error}",
"add": "Add a collection", "add": "Add a collection",
"name": "Nom" "name": "Nom"
} }

View File

@@ -91,6 +91,7 @@
"textplaceholder": "Écrire ma critique..." "textplaceholder": "Écrire ma critique..."
}, },
"collections": { "collections": {
"error": "Erreur pendant le chargement des listes: {error}",
"add": "Ajouter une liste", "add": "Ajouter une liste",
"name": "Nom" "name": "Nom"
} }