From 862a5f9cdbbda522c608ea63c1e296e81f44de10 Mon Sep 17 00:00:00 2001
From: Ben Beltran <ben@nsovocal.com>
Date: Sat, 20 Jun 2020 16:20:31 +0200
Subject: Add internationalization support

---
 app/components/error_block/error_block.svelte | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'app/components/error_block/error_block.svelte')

diff --git a/app/components/error_block/error_block.svelte b/app/components/error_block/error_block.svelte
index d649fb4..e46afa1 100644
--- a/app/components/error_block/error_block.svelte
+++ b/app/components/error_block/error_block.svelte
@@ -1,11 +1,11 @@
 <script>
   import { _ } from 'svelte-i18n';
-  export let message = $_('error.generic.message');
+  export let message;
 </script>
 
 <div>
   <h2>{$_('error.generic.title')}</h2>
-  <p>{message}</p>
+  <p>{message || $_('error.generic.message')}</p>
 </div>
 
 <style>
-- 
cgit 

