From 8050f772caeedafffab6e3ec2f309205a019f3d0 Mon Sep 17 00:00:00 2001 From: Ben Beltran Date: Sat, 20 Jun 2020 14:58:26 +0200 Subject: Add internationalized error block --- app/components/error_block/error_block.svelte | 31 +++++++++++++++++++++++++++ app/components/forum_list/forum_list.svelte | 5 +++++ app/components/topic_index/topic_index.svelte | 2 ++ app/config/i18n.js | 10 +++++++++ app/config/translations/en.json | 13 +++++++++++ app/forum.svelte | 6 ++++++ app/stores/forums.js | 5 ----- 7 files changed, 67 insertions(+), 5 deletions(-) create mode 100644 app/components/error_block/error_block.svelte create mode 100644 app/config/i18n.js create mode 100644 app/config/translations/en.json diff --git a/app/components/error_block/error_block.svelte b/app/components/error_block/error_block.svelte new file mode 100644 index 0000000..d649fb4 --- /dev/null +++ b/app/components/error_block/error_block.svelte @@ -0,0 +1,31 @@ + + +
+

{$_('error.generic.title')}

+

{message}

+
+ + + diff --git a/app/components/forum_list/forum_list.svelte b/app/components/forum_list/forum_list.svelte index f77c79a..c218bac 100644 --- a/app/components/forum_list/forum_list.svelte +++ b/app/components/forum_list/forum_list.svelte @@ -1,8 +1,13 @@