feat: add i18n support for a11y

This commit is contained in:
ZhenShuo Leo
2025-07-22 03:04:30 +08:00
parent 4351bb10fb
commit d7220bd0ee
25 changed files with 149 additions and 4 deletions
+6
View File
@@ -25,6 +25,12 @@ article:
part: "جزء" part: "جزء"
this_article: "هذه المقالة" this_article: "هذه المقالة"
a11y:
disable_blur: "تعطيل التمويه"
disable_images: "تعطيل الصور"
show_link_underline: "إظهار خط تحت الروابط"
font_size: "حجم الخط"
author: author:
byline_title: "الناشر" byline_title: "الناشر"
+6
View File
@@ -26,6 +26,12 @@ article:
this_article: "Тази Статия" this_article: "Тази Статия"
related_articles: "Подобни" related_articles: "Подобни"
a11y:
disable_blur: "Изключване на замъгляването"
disable_images: "Изключване на изображенията"
show_link_underline: "Показване на подчертаване на връзките"
font_size: "Размер на шрифта"
author: author:
byline_title: "Автор" byline_title: "Автор"
+6
View File
@@ -29,6 +29,12 @@ article:
enable: "Activar mode zen" enable: "Activar mode zen"
disable: "Desactivar mode zen" disable: "Desactivar mode zen"
a11y:
disable_blur: "Desactiva el desenfocament"
disable_images: "Desactiva les imatges"
show_link_underline: "Mostra el subratllat dels enllaços"
font_size: "Mida de la lletra"
author: author:
byline_title: "Autor" byline_title: "Autor"
+6
View File
@@ -26,6 +26,12 @@ article:
this_article: "Tento článek" this_article: "Tento článek"
related_articles: "Related" related_articles: "Related"
a11y:
disable_blur: "Zakázat rozmazání"
disable_images: "Zakázat obrázky"
show_link_underline: "Zobrazit podtržení odkazů"
font_size: "Velikost písma"
author: author:
byline_title: "Autor" byline_title: "Autor"
+6
View File
@@ -29,6 +29,12 @@ article:
enable: "Enable zen mode" enable: "Enable zen mode"
disable: "Disable zen mode" disable: "Disable zen mode"
a11y:
disable_blur: "Disable blur"
disable_images: "Disable images"
show_link_underline: "Show link underline"
font_size: "Font size"
author: author:
byline_title: "Author" byline_title: "Author"
+6
View File
@@ -29,6 +29,12 @@ article:
enable: "Ŝalti zen-reĝimon" enable: "Ŝalti zen-reĝimon"
disable: "Malŝalti zen-reĝimon" disable: "Malŝalti zen-reĝimon"
a11y:
disable_blur: "Malŝalti malklarigon"
disable_images: "Malŝalti bildojn"
show_link_underline: "Montri substrekojn de ligiloj"
font_size: "Tipara grandeco"
author: author:
byline_title: "Aŭtoro" byline_title: "Aŭtoro"
+6
View File
@@ -29,6 +29,12 @@ article:
enable: "فعال کردن حالت تمام متن" enable: "فعال کردن حالت تمام متن"
disable: "غیر فعال کردن حالت تمام متن" disable: "غیر فعال کردن حالت تمام متن"
a11y:
disable_blur: "غیرفعال کردن تاری"
disable_images: "غیرفعال کردن تصاویر"
show_link_underline: "نمایش زیرخط لینک"
font_size: "اندازه فونت"
author: author:
byline_title: "نویسنده" byline_title: "نویسنده"
+6
View File
@@ -20,6 +20,12 @@ article:
this_article: "This Article" this_article: "This Article"
related_articles: "Related" related_articles: "Related"
a11y:
disable_blur: "Poista sumennus käytöstä"
disable_images: "Poista kuvat käytöstä"
show_link_underline: "Näytä linkkien alleviivaus"
font_size: "Fonttikoko"
author: author:
byline_title: "Kirjoittaja" byline_title: "Kirjoittaja"
+6
View File
@@ -29,6 +29,12 @@ article:
enable: "Activar modo zen" enable: "Activar modo zen"
disable: "Desactivar modo zen" disable: "Desactivar modo zen"
a11y:
disable_blur: "Desactivar o desenfoque"
disable_images: "Desactivar as imaxes"
show_link_underline: "Mostrar subliñado da ligazón"
font_size: "Tamaño de letra"
author: author:
byline_title: "Autor" byline_title: "Autor"
+6
View File
@@ -20,6 +20,12 @@ article:
this_article: "This Article" this_article: "This Article"
related_articles: "Related" related_articles: "Related"
a11y:
disable_blur: "השבת טשטוש"
disable_images: "השבת תמונות"
show_link_underline: "הצג קו תחתון לקישורים"
font_size: "גודל גופן"
author: author:
byline_title: "מחבר" byline_title: "מחבר"
+6
View File
@@ -20,6 +20,12 @@ article:
this_article: "This Article" this_article: "This Article"
related_articles: "Related" related_articles: "Related"
a11y:
disable_blur: "Elmosódás kikapcsolása"
disable_images: "Képek kikapcsolása"
show_link_underline: "Link aláhúzásának megjelenítése"
font_size: "Betűméret"
author: author:
byline_title: "Szerző" byline_title: "Szerző"
+6
View File
@@ -26,6 +26,12 @@ article:
this_article: "Artikel ini" this_article: "Artikel ini"
related_articles: "Terkait" related_articles: "Terkait"
a11y:
disable_blur: "Nonaktifkan blur"
disable_images: "Nonaktifkan gambar"
show_link_underline: "Tampilkan garis bawah tautan"
font_size: "Ukuran font"
author: author:
byline_title: "Penulis" byline_title: "Penulis"
+6
View File
@@ -29,6 +29,12 @@ article:
enable: "Zenモードを有効にする" enable: "Zenモードを有効にする"
disable: "Zenモードを無効にする" disable: "Zenモードを無効にする"
a11y:
disable_blur: "ぼかしを無効にする"
disable_images: "画像を無効にする"
show_link_underline: "リンクの下線を表示する"
font_size: "フォントサイズ"
author: author:
byline_title: "著者" byline_title: "著者"
+6
View File
@@ -26,6 +26,12 @@ article:
this_article: "이 글" this_article: "이 글"
related_articles: "관련 글" related_articles: "관련 글"
a11y:
disable_blur: "흐림 효과 끄기"
disable_images: "이미지 끄기"
show_link_underline: "링크 밑줄 표시"
font_size: "글꼴 크기"
author: author:
byline_title: "작성자" byline_title: "작성자"
+6
View File
@@ -26,6 +26,12 @@ article:
this_article: "This Article" this_article: "This Article"
related_articles: "Related" related_articles: "Related"
a11y:
disable_blur: "Wyłącz rozmycie"
disable_images: "Wyłącz obrazy"
show_link_underline: "Pokaż podkreślenie linków"
font_size: "Rozmiar czcionki"
author: author:
byline_title: "Autor" byline_title: "Autor"
+6
View File
@@ -23,6 +23,12 @@ article:
this_article: "Esse Artigo" this_article: "Esse Artigo"
related_articles: "Relacionados" related_articles: "Relacionados"
a11y:
disable_blur: "Desativar desfoque"
disable_images: "Desativar imagens"
show_link_underline: "Mostrar sublinhado de links"
font_size: "Tamanho da fonte"
author: author:
byline_title: "Autor" byline_title: "Autor"
+6
View File
@@ -20,6 +20,12 @@ article:
this_article: "This Article" this_article: "This Article"
related_articles: "Related" related_articles: "Related"
a11y:
disable_blur: "Dezactivează estomparea"
disable_images: "Dezactivează imaginile"
show_link_underline: "Afișează sublinierea linkurilor"
font_size: "Dimensiunea fontului"
author: author:
byline_title: "Autor" byline_title: "Autor"
+6
View File
@@ -26,6 +26,12 @@ article:
this_article: "This Article" this_article: "This Article"
related_articles: "Related" related_articles: "Related"
a11y:
disable_blur: "Отключить размытие"
disable_images: "Отключить изображения"
show_link_underline: "Показать подчеркивание ссылок"
font_size: "Размер шрифта"
author: author:
byline_title: "Автор" byline_title: "Автор"
+6
View File
@@ -20,6 +20,12 @@ article:
this_article: "Denna artikel" this_article: "Denna artikel"
related_articles: "Relaterade" related_articles: "Relaterade"
a11y:
disable_blur: "Inaktivera suddighet"
disable_images: "Inaktivera bilder"
show_link_underline: "Visa länkunderstrykning"
font_size: "Teckenstorlek"
author: author:
byline_title: "Författare" byline_title: "Författare"
+6
View File
@@ -29,6 +29,12 @@ article:
enable: "เปิดโหมดเซน" enable: "เปิดโหมดเซน"
disable: "ปิดโหมดเซน" disable: "ปิดโหมดเซน"
a11y:
disable_blur: "ปิดการเบลอ"
disable_images: "ปิดการแสดงรูปภาพ"
show_link_underline: "แสดงเส้นใต้ลิงก์"
font_size: "ขนาดตัวอักษร"
author: author:
byline_title: "ผู้เขียน" byline_title: "ผู้เขียน"
+6
View File
@@ -33,6 +33,12 @@ article:
enable: "Enable zen mode" enable: "Enable zen mode"
disable: "Disable zen mode" disable: "Disable zen mode"
a11y:
disable_blur: "Вимкнути розмиття"
disable_images: "Вимкнути зображення"
show_link_underline: "Показати підкреслення посилань"
font_size: "Розмір шрифту"
author: author:
byline_title: "Автор" byline_title: "Автор"
+6
View File
@@ -29,6 +29,12 @@ article:
enable: "Bật zen mode" enable: "Bật zen mode"
disable: "Tắt zen mode" disable: "Tắt zen mode"
a11y:
disable_blur: "Tắt làm mờ"
disable_images: "Tắt hình ảnh"
show_link_underline: "Hiển thị gạch chân liên kết"
font_size: "Cỡ chữ"
author: author:
byline_title: "Tác giả" byline_title: "Tác giả"
+6
View File
@@ -19,6 +19,12 @@ article:
this_article: "本文" this_article: "本文"
related_articles: "相关文章" related_articles: "相关文章"
a11y:
disable_blur: "禁用模糊效果"
disable_images: "禁用图片"
show_link_underline: "显示链接下划线"
font_size: "字体大小"
author: author:
byline_title: "作者" byline_title: "作者"
+6
View File
@@ -19,6 +19,12 @@ article:
this_article: "本文" this_article: "本文"
related_articles: "相關文章" related_articles: "相關文章"
a11y:
disable_blur: "停用模糊效果"
disable_images: "停用圖片"
show_link_underline: "顯示連結底線"
font_size: "字體大小"
author: author:
byline_title: "作者" byline_title: "作者"
+5 -4
View File
@@ -199,11 +199,12 @@
<div class="space-y-5"> <div class="space-y-5">
{{- $toggles := slice {{- $toggles := slice
(dict "id" (print $prefix "disable-blur") "label" "Disable background blur") (dict "id" (print $prefix "disable-blur") "label" (i18n "a11y.disable_blur"))
(dict "id" (print $prefix "disable-images") "label" "Disable background image") (dict "id" (print $prefix "disable-images") "label" (i18n "a11y.disable_images"))
(dict "id" (print $prefix "underline-links") "label" "Show link underline") (dict "id" (print $prefix "underline-links") "label" (i18n "a11y.show_link_underline"))
-}} -}}
{{- range $toggles }} {{- range $toggles }}
<div class="flex items-center justify-between"> <div class="flex items-center justify-between">
<label for="{{ .id }}" class="text-sm font-medium text-neutral-700 dark:text-neutral-300"> <label for="{{ .id }}" class="text-sm font-medium text-neutral-700 dark:text-neutral-300">
@@ -220,7 +221,7 @@
<label <label
for="{{ $prefix }}font-size-select" for="{{ $prefix }}font-size-select"
class="text-sm font-medium text-neutral-700 dark:text-neutral-300"> class="text-sm font-medium text-neutral-700 dark:text-neutral-300">
Font size {{ i18n "a11y.font_size" }}
</label> </label>
<select <select
id="{{ $prefix }}font-size-select" id="{{ $prefix }}font-size-select"