feat: added i18n to email protection

This commit is contained in:
Niklas 2024-10-22 00:39:44 +02:00
parent ceb6263204
commit 3e5fdfe654
11 changed files with 7 additions and 133 deletions

View File

@ -1,6 +1,7 @@
table_of_contents = "Inhaltsverzeichnis" table_of_contents = "Inhaltsverzeichnis"
open_main_menu = "Hauptmenü öffnen" open_main_menu = "Hauptmenü öffnen"
open_lang_switcher = "Sprache wechseln öffnen" open_lang_switcher = "Sprache wechseln öffnen"
email_protection = "E-Mail Adresse anzeigen"
[reading_time] [reading_time]
one = "Lesezeit eine Minute" one = "Lesezeit eine Minute"
other = "Lesezeit {{ .Count }} Minuten" other = "Lesezeit {{ .Count }} Minuten"

View File

@ -1,6 +1,7 @@
table_of_contents = "Table of Contents" table_of_contents = "Table of Contents"
open_main_menu = "Open main menu" open_main_menu = "Open main menu"
open_lang_switcher = "Open language switcher" open_lang_switcher = "Open language switcher"
email_protection = "Reveal email"
[reading_time] [reading_time]
one = "One minute to read" one = "One minute to read"
other = "{{ .Count }} minutes to read" other = "{{ .Count }} minutes to read"

View File

@ -1,6 +1,7 @@
table_of_contents = "Tabla de contenido" table_of_contents = "Tabla de contenido"
open_main_menu = "Abrir menú principal" open_main_menu = "Abrir menú principal"
open_lang_switcher = "Abrir cambiador de idioma" open_lang_switcher = "Abrir cambiador de idioma"
email_protection = "Mostrar dirección de correo electrónico"
[reading_time] [reading_time]
one = "Un minuto de lectura" one = "Un minuto de lectura"
other = "{{ .Count }} minutos de lectura" other = "{{ .Count }} minutos de lectura"

View File

@ -1,6 +1,7 @@
table_of_contents = "Table des matières" table_of_contents = "Table des matières"
open_main_menu = "Ouvrir le menu principal" open_main_menu = "Ouvrir le menu principal"
open_lang_switcher = "Ouvrir le sélecteur de langue" open_lang_switcher = "Ouvrir le sélecteur de langue"
email_protection = "Afficher l'adresse e-mail"
[reading_time] [reading_time]
one = "Une minute de lecture" one = "Une minute de lecture"
other = "{{ .Count }} minutes de lecture" other = "{{ .Count }} minutes de lecture"

View File

@ -1,33 +0,0 @@
table_of_contents = "विषय-सूची"
open_main_menu = "मुख्य मेनू खोलें"
open_lang_switcher = "भाषा स्विचर खोलें"
[reading_time]
one = "पढ़ने में एक मिनट का समय लगेगा।"
other = "पढ़ने में {{ .Count }} मिनट का समय लगेगा।"
[search]
title = "खोजें"
empty_result = "कोई परिणाम नहीं मिला।"
placeholder = "खोजें..."
[header]
darkmode_toggle = "डार्क मोड टॉगल करें"
[404]
go_back_home = "होम पर वापस जाएं"
sorry = "क्षमा करें, हम आपके द्वारा खोजे गए पेज को नहीं ढूँढ पाए।"
page_not_found = "पेज नहीं मिला"
[footer]
powered_by = "{{ .Generator }} {{ .Heart }} {{ .Theme }} द्वारा संचालित"
copyright_with_since ="{{ .CopyrightSign }} {{ .SinceYear }} - {{ .CurrentYear}} {{ .Copyright }}"
copyright_wo_since ="{{ .CopyrightSign }} {{ .CurrentYear}} {{ .Copyright }}"
[paginator]
newer_posts = "नई पोस्ट्स"
older_posts = "पुरानी पोस्ट्स"
[taxonomies]
categories = "श्रेणियाँ"
tags = "टैग्स"
series = "श्रृंखला"

View File

@ -1,33 +0,0 @@
table_of_contents = "目次"
open_main_menu = "メインメニューを開く"
open_lang_switcher = "言語スイッチャーを開く"
[reading_time]
one = "1分読む"
other = "{{ .Count }}分読む"
[search]
title = "検索"
empty_result = "結果なし"
placeholder = "検索..."
[header]
darkmode_toggle = "ダークモードを切り替える"
[404]
go_back_home = "ホームに戻る"
sorry = "申し訳ありませんが、ご希望のページが見つかりませんでした。"
page_not_found = "ページが見つかりません"
[footer]
powered_by = "Powered by {{ .Generator }} {{ .Heart }} {{ .Theme }}"
copyright_with_since ="{{ .CopyrightSign }} {{ .SinceYear }} - {{ .CurrentYear }} {{ .Copyright }}"
copyright_wo_since ="{{ .CopyrightSign }} {{ .CurrentYear }} {{ .Copyright }}"
[paginator]
newer_posts = "新しい投稿"
older_posts = "古い投稿"
[taxonomies]
categories = "カテゴリー"
tags = "タグ"
series = "シリーズ"

View File

@ -1,6 +1,7 @@
table_of_contents = "Inhoudsopgave" table_of_contents = "Inhoudsopgave"
open_main_menu = "Hoofdmenu openen" open_main_menu = "Hoofdmenu openen"
open_lang_switcher = "Taalwisseler openen" open_lang_switcher = "Taalwisseler openen"
email_protection = "E-mailadres tonen"
[reading_time] [reading_time]
one = "Eén minuut lezen" one = "Eén minuut lezen"
other = "{{ .Count }} minuten om te lezen" other = "{{ .Count }} minuten om te lezen"

View File

@ -1,6 +1,7 @@
table_of_contents = "Spis treści" table_of_contents = "Spis treści"
open_main_menu = "Otwórz menu główne" open_main_menu = "Otwórz menu główne"
open_lang_switcher = "Zmień język" open_lang_switcher = "Zmień język"
email_protection = "Pokaż adres e-mail"
[reading_time] [reading_time]
one = "Jedna minuta czytania" one = "Jedna minuta czytania"
many = "{{ .Count }} minut czytania" many = "{{ .Count }} minut czytania"

View File

@ -1,33 +0,0 @@
table_of_contents = "Содержание"
open_main_menu = "Открыть главное меню"
open_lang_switcher = "Открыть переключатель языка"
[reading_time]
one = "Одну минуту для чтения"
other = "{{ .Count }} минут для чтения"
[search]
title = "Поиск"
empty_result = "Ничего не найдено."
placeholder = "Поиск..."
[header]
darkmode_toggle = "Включить темный режим"
[404]
go_back_home = "Вернуться на главную"
sorry = "Извините, мы не смогли найти страницу, которую вы ищете."
page_not_found = "Страница не найдена"
[footer]
powered_by = "Работает на {{ .Generator }} {{ .Heart }} {{ .Theme }}"
copyright_with_since ="{{ .CopyrightSign }} {{ .SinceYear }} - {{ .CurrentYear }} {{ .Copyright }}"
copyright_wo_since ="{{ .CopyrightSign }} {{ .CurrentYear }} {{ .Copyright }}"
[paginator]
newer_posts = "Более новые сообщения"
older_posts = "Более старые сообщения"
[taxonomies]
categories = "Категории"
tags = "Теги"
series = "Серии"

View File

@ -1,33 +0,0 @@
table_of_contents = "目录"
open_main_menu = "打开菜单"
open_lang_switcher = "打开语言切换"
[reading_time]
one = "阅读时长{{ .Count }}分钟"
other = "阅读时长{{ .Count }}分钟"
[search]
title = "搜索"
empty_result = "无结果。"
placeholder = "搜索..."
[header]
darkmode_toggle = "切换夜间模式"
[404]
go_back_home = "回到首页"
sorry = "对不起,暂未找到您请求的页面"
page_not_found = "页面未找到"
[footer]
powered_by = "Powered by {{ .Generator }} {{ .Heart }} {{ .Theme }}"
copyright_with_since ="{{ .CopyrightSign }} {{ .SinceYear }} - {{ .CurrentYear}} {{ .Copyright }}"
copyright_wo_since ="{{ .CopyrightSign }} {{ .CurrentYear}} {{ .Copyright }}"
[paginator]
newer_posts = "新文章"
older_posts = "旧文章"
[taxonomies]
categories = "分类"
tags = "标签"
series = "系列"

View File

@ -10,7 +10,7 @@
data-domain="{{ $domain }}" data-domain="{{ $domain }}"
data-tld="{{ $tld }}" data-tld="{{ $tld }}"
onclick="decodeEmail(this);return false;"> onclick="decodeEmail(this);return false;">
Click to reveal email {{ T "email_protection" }}
</a> </a>
{{ if not (.Page.Scratch.Get "protectedEmailJS") }} {{ if not (.Page.Scratch.Get "protectedEmailJS") }}