X-Git-Url: https://git.r.bdr.sh/rbdr/forum/blobdiff_plain/66dc4cae4cd37e82d773dc30be046d82d380ec4d..862a5f9cdbbda522c608ea63c1e296e81f44de10:/app/components/forum_list/forum_list.svelte

diff --git a/app/components/forum_list/forum_list.svelte b/app/components/forum_list/forum_list.svelte
index e49c8d8..5ce4dc1 100644
--- a/app/components/forum_list/forum_list.svelte
+++ b/app/components/forum_list/forum_list.svelte
@@ -1,14 +1,19 @@
 <script>
-  import {forums, addForum} from '../../stores/forums.js'
+  import { _ } from 'svelte-i18n';
+  import { forums } from '../../stores/forums.js';
+  import ErrorBlock from '../error_block/error_block.svelte';
 </script>
 
 <nav title="List of Forums">
+  {#if !$forums.length}
+    <ErrorBlock message={$_('forum_list.error.unavailable')} />
+  {/if}
   <ul>
     {#each $forums as forum}
       <li>
         <a href="/f/{forum.id}">
           <span aria-hidden="true" class="navigation-glyph {forum.glyph}">{forum.glyph}</span>
-          <span class="navigation-label">{forum.label}</span>
+          <span class="navigation-label">{$_(forum.label)}</span>
         </a>
       </li>
     {/each}
