Skip to content

Commit

Permalink
fix: use correct translations for home and recipe edit
Browse files Browse the repository at this point in the history
  • Loading branch information
matteopolak committed Feb 19, 2024
1 parent c49bfe9 commit 2d025d4
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 7 deletions.
4 changes: 3 additions & 1 deletion src/lib/translations/de/toast.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"create-recipe-loading": "Rezept wird erstellt...",
"create-recipe-done": "Rezept erstellt!"
"create-recipe-done": "Rezept erstellt!",
"update-recipe-loading": "Rezept wird aktualisiert...",
"update-recipe-done": "Rezept aktualisiert!"
}
4 changes: 3 additions & 1 deletion src/lib/translations/en/toast.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"create-recipe-loading": "Creating recipe...",
"create-recipe-done": "Recipe created!"
"create-recipe-done": "Recipe created!",
"update-recipe-loading": "Updating recipe...",
"update-recipe-done": "Recipe updated!"
}
4 changes: 3 additions & 1 deletion src/lib/translations/es/toast.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"create-recipe-loading": "Creando receta...",
"create-recipe-done": "¡Receta creada!"
"create-recipe-done": "¡Receta creada!",
"update-recipe-loading": "Actualizando receta...",
"update-recipe-done": "¡Receta actualizada!"
}
4 changes: 3 additions & 1 deletion src/lib/translations/fr/toast.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"create-recipe-loading": "Création de la recette...",
"create-recipe-done": "Recette créée !"
"create-recipe-done": "Recette créée !",
"update-recipe-loading": "Mise à jour de la recette...",
"update-recipe-done": "Recette mise à jour !"
}
2 changes: 1 addition & 1 deletion src/routes/(sidebar)/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
{
children: [
{
name: $t('label.name'),
name: $t('label.home'),
href: '/',
icon: Home,
},
Expand Down
4 changes: 2 additions & 2 deletions src/routes/(sidebar)/recipes/[id=integer]/edit/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@
url: recipe.url,
}),
{
loading: $t('toast.create-recipe-loading'),
success: $t('toast.create-recipe-done'),
loading: $t('toast.update-recipe-loading'),
success: $t('toast.update-recipe-done'),
error: e => {
if (e instanceof TRPCClientError) {
return e.message;
Expand Down

0 comments on commit 2d025d4

Please sign in to comment.