From 5ced38934e5b2245006e31973a018017f55a99f8 Mon Sep 17 00:00:00 2001 From: Fredrik Jonsson Date: Fri, 28 Mar 2025 23:11:58 +0100 Subject: [PATCH] Add i18n string_permalink and fix focus styling for anchors. --- assets/sass/components/anchor/_anchor.scss | 3 ++- i18n/ar.toml | 3 +++ i18n/da.toml | 3 +++ i18n/de.toml | 3 +++ i18n/en.toml | 3 +++ i18n/fi.toml | 3 +++ i18n/fr.toml | 3 +++ i18n/he.toml | 3 +++ i18n/id.toml | 3 +++ i18n/nb.toml | 3 +++ i18n/pt.toml | 3 +++ i18n/sr.toml | 3 +++ i18n/sv.toml | 3 +++ i18n/sw.toml | 3 +++ i18n/zh-cn.toml | 3 +++ 15 files changed, 44 insertions(+), 1 deletion(-) diff --git a/assets/sass/components/anchor/_anchor.scss b/assets/sass/components/anchor/_anchor.scss index 3d5b595..c706ba4 100644 --- a/assets/sass/components/anchor/_anchor.scss +++ b/assets/sass/components/anchor/_anchor.scss @@ -15,9 +15,10 @@ a { opacity: 0; text-decoration: none; + width: fit-content; } - &:focus-visible, + &:has(:focus-visible), &:hover { a { opacity: var(--anchor-opacity); diff --git a/i18n/ar.toml b/i18n/ar.toml index cbef073..e6c2e57 100644 --- a/i18n/ar.toml +++ b/i18n/ar.toml @@ -58,6 +58,9 @@ other = "Edit" [string_view] other = "View" +[string_permalink] +other = "Permalink" + [js_required] other = "يجب تفعيل جافاسكريبت في المتصفح لاستخدام هذه الوظيفة." diff --git a/i18n/da.toml b/i18n/da.toml index 6ce8a54..17f8508 100644 --- a/i18n/da.toml +++ b/i18n/da.toml @@ -58,6 +58,9 @@ other = "Edit" [string_view] other = "View" +[string_permalink] +other = "Permalink" + [js_required] other = "Du skal have Javascript slået til for at bruge denne funktion." diff --git a/i18n/de.toml b/i18n/de.toml index 449948c..e3cfc66 100644 --- a/i18n/de.toml +++ b/i18n/de.toml @@ -58,6 +58,9 @@ other = "Edit" [string_view] other = "View" +[string_permalink] +other = "Permalink" + [js_required] other = "Javascript muss aktiviert sein um dieses Kontaktformular zu nutzen." diff --git a/i18n/en.toml b/i18n/en.toml index 7627e30..28ce2a2 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -58,6 +58,9 @@ other = "Edit" [string_view] other = "View" +[string_permalink] +other = "Permalink" + [js_required] other = "You must have Javascript enabled to use this function." diff --git a/i18n/fi.toml b/i18n/fi.toml index 4fa703b..f05f159 100644 --- a/i18n/fi.toml +++ b/i18n/fi.toml @@ -58,6 +58,9 @@ other = "Edit" [string_view] other = "View" +[string_permalink] +other = "Permalink" + [js_required] other = "Javascript-teknologia täytyy olla tuettuna jotta tämä toiminto on käytössä." diff --git a/i18n/fr.toml b/i18n/fr.toml index 77671cb..04fcd5e 100644 --- a/i18n/fr.toml +++ b/i18n/fr.toml @@ -58,6 +58,9 @@ other = "Edit" [string_view] other = "View" +[string_permalink] +other = "Permalink" + [js_required] other = "Javascript doit être activé pour utiliser ce formulaire de contact." diff --git a/i18n/he.toml b/i18n/he.toml index 92ca4b2..fd80fe7 100644 --- a/i18n/he.toml +++ b/i18n/he.toml @@ -58,6 +58,9 @@ other = "Edit" [string_view] other = "View" +[string_permalink] +other = "Permalink" + [js_required] other = "javascript פונקציה זו חייבת" diff --git a/i18n/id.toml b/i18n/id.toml index f63334b..e33f899 100644 --- a/i18n/id.toml +++ b/i18n/id.toml @@ -58,6 +58,9 @@ other = "Edit" [string_view] other = "View" +[string_permalink] +other = "Permalink" + [js_required] other = "Anda harus mengaktifkan Javascript untuk menggunakan fasilitas ini." diff --git a/i18n/nb.toml b/i18n/nb.toml index 123ef1f..c7d4000 100644 --- a/i18n/nb.toml +++ b/i18n/nb.toml @@ -58,6 +58,9 @@ other = "Edit" [string_view] other = "View" +[string_permalink] +other = "Permalink" + [js_required] other = "Du må ha skrudd på Javascript for å bruke denne funksjonen." diff --git a/i18n/pt.toml b/i18n/pt.toml index 1c21ebe..5d8a19a 100644 --- a/i18n/pt.toml +++ b/i18n/pt.toml @@ -59,6 +59,9 @@ other = "Edit" [string_view] other = "View" +[string_permalink] +other = "Permalink" + [js_required] other = "Você deve ter o Javascript habilitado para usar este formulário de contato" diff --git a/i18n/sr.toml b/i18n/sr.toml index 41ff50e..2eea05d 100644 --- a/i18n/sr.toml +++ b/i18n/sr.toml @@ -58,6 +58,9 @@ other = "Edit" [string_view] other = "View" +[string_permalink] +other = "Permalink" + [js_required] other = "Морате имати омогућен Јаваскрипт да би користили ову функцију." diff --git a/i18n/sv.toml b/i18n/sv.toml index 348f788..985c601 100644 --- a/i18n/sv.toml +++ b/i18n/sv.toml @@ -58,6 +58,9 @@ other = "Redigera" [string_view] other = "Visa" +[string_permalink] +other = "Länk" + [js_required] other = "Du behöver ha Javascript aktiverat för att använda denna funktion." diff --git a/i18n/sw.toml b/i18n/sw.toml index adb097a..4849a75 100644 --- a/i18n/sw.toml +++ b/i18n/sw.toml @@ -58,6 +58,9 @@ other = "Hariri" [string_view] other = "Tazama" +[string_permalink] +other = "Permalink" + [js_required] other = "Javascript lazima iwezeshwe ili kutumia chaguo hili la kukokotoa." diff --git a/i18n/zh-cn.toml b/i18n/zh-cn.toml index 50b2944..aee2aab 100644 --- a/i18n/zh-cn.toml +++ b/i18n/zh-cn.toml @@ -58,6 +58,9 @@ other = "Edit" [string_view] other = "View" +[string_permalink] +other = "Permalink" + [js_required] other = "要使用此功能, 必须先启用 JavaScript"