From 939d2362ac92ee26eae7045c4c6bf86fa5c2d19f Mon Sep 17 00:00:00 2001 From: Eban Date: Fri, 12 Jul 2024 11:31:28 +0200 Subject: [PATCH] feat: Add i18n support ! --- components/About.vue | 8 +- components/InlineArticles.vue | 8 +- components/Organizations.vue | 2 +- components/Projects.vue | 4 +- components/TopNav.vue | 20 +- i18n.config.ts | 24 + nuxt.config.ts | 126 +- package.json | 1 + pages/index.vue | 4 +- yarn.lock | 5580 +++++++++++++++------------------ 10 files changed, 2600 insertions(+), 3177 deletions(-) create mode 100644 i18n.config.ts diff --git a/components/About.vue b/components/About.vue index 00542cc..bf60034 100644 --- a/components/About.vue +++ b/components/About.vue @@ -1,9 +1,7 @@ @@ -29,4 +27,4 @@ p { padding-top: 150px; } } - \ No newline at end of file + diff --git a/components/InlineArticles.vue b/components/InlineArticles.vue index 7352390..9750299 100644 --- a/components/InlineArticles.vue +++ b/components/InlineArticles.vue @@ -4,12 +4,12 @@

Bytes of insight

-

articles i’ve written

+

{{ $t('articleListDesc') }}

@@ -68,7 +68,7 @@ a:first-child { margin-left: 15px; } - + a:last-child { margin-right: 15px; } @@ -85,4 +85,4 @@ const useRouter = useNuxtApp().$router const {data, pending, error} = await useAsyncData("all_posts", fetchArticles); const posts = data._value.posts.filter(x => x.Highlighted) - \ No newline at end of file + diff --git a/components/Organizations.vue b/components/Organizations.vue index ab8fb92..cc8877e 100644 --- a/components/Organizations.vue +++ b/components/Organizations.vue @@ -1,7 +1,7 @@