diff --git a/messages/ar.json b/messages/ar.json index cdeb4617..338d49e1 100644 --- a/messages/ar.json +++ b/messages/ar.json @@ -27,6 +27,7 @@ "close": "إغلاق", "all": "الكل", "none": "لا شيء", + "ad": "إعلان", "moreLines": "+{count} سطر إضافي", "codeView": "كود", "treeView": "شجرة", diff --git a/messages/az.json b/messages/az.json index 5ade3890..21ffbdae 100644 --- a/messages/az.json +++ b/messages/az.json @@ -27,6 +27,7 @@ "close": "Bağla", "all": "Hamısı", "none": "Heç biri", + "ad": "Reklam", "moreLines": "+{count} daha çox sətir", "codeView": "Kod", "treeView": "Ağac", diff --git a/messages/de.json b/messages/de.json index f28e1325..505b344d 100644 --- a/messages/de.json +++ b/messages/de.json @@ -27,6 +27,7 @@ "close": "Schließen", "all": "Alle", "none": "Keine", + "ad": "Anzeige", "moreLines": "+{count} weitere Zeilen", "codeView": "Code", "treeView": "Baumansicht", diff --git a/messages/el.json b/messages/el.json index 165a542a..57514c55 100644 --- a/messages/el.json +++ b/messages/el.json @@ -27,6 +27,7 @@ "close": "Κλείσιμο", "all": "Όλα", "none": "Κανένα", + "ad": "Διαφήμιση", "moreLines": "+{count} επιπλέον γραμμές", "codeView": "Κώδικας", "treeView": "Δέντρο", diff --git a/messages/en.json b/messages/en.json index 926d2e3c..bfcdacd1 100644 --- a/messages/en.json +++ b/messages/en.json @@ -27,6 +27,7 @@ "close": "Close", "all": "All", "none": "None", + "ad": "Ad", "moreLines": "+{count} more lines", "codeView": "Code", "treeView": "Tree", diff --git a/messages/es.json b/messages/es.json index 66297575..76e3016e 100644 --- a/messages/es.json +++ b/messages/es.json @@ -27,6 +27,7 @@ "close": "Cerrar", "all": "Todos", "none": "Ninguno", + "ad": "Anuncio", "moreLines": "+{count} líneas más", "codeView": "Código", "treeView": "Árbol", diff --git a/messages/fa.json b/messages/fa.json index a5232dc2..ec65df0f 100644 --- a/messages/fa.json +++ b/messages/fa.json @@ -27,6 +27,7 @@ "close": "بستن", "all": "همه", "none": "هیچکدام", + "ad": "تبلیغ", "moreLines": "+{count} خط دیگر", "codeView": "کد", "treeView": "درختی", diff --git a/messages/fr.json b/messages/fr.json index 9d9c67a5..aa9a0ae7 100644 --- a/messages/fr.json +++ b/messages/fr.json @@ -27,6 +27,7 @@ "close": "Fermer", "all": "Tout", "none": "Aucun", + "ad": "Publicité", "moreLines": "+{count} lignes supplémentaires", "codeView": "Code", "treeView": "Arborescence", diff --git a/messages/he.json b/messages/he.json index c07bd3b5..8da32f02 100644 --- a/messages/he.json +++ b/messages/he.json @@ -27,6 +27,7 @@ "close": "סגור", "all": "הכל", "none": "ללא", + "ad": "מודעה", "moreLines": "+{count} שורות נוספות", "codeView": "קוד", "treeView": "עץ", diff --git a/messages/it.json b/messages/it.json index da09fc5b..1de9c0be 100644 --- a/messages/it.json +++ b/messages/it.json @@ -27,6 +27,7 @@ "close": "Chiudi", "all": "Tutti", "none": "Nessuno", + "ad": "Annuncio", "moreLines": "+{count} altre righe", "codeView": "Codice", "treeView": "Albero", diff --git a/messages/ja.json b/messages/ja.json index e43940b7..627366ce 100644 --- a/messages/ja.json +++ b/messages/ja.json @@ -27,6 +27,7 @@ "close": "閉じる", "all": "すべて", "none": "なし", + "ad": "広告", "moreLines": "+{count}行", "codeView": "コード", "treeView": "ツリー", diff --git a/messages/ko.json b/messages/ko.json index 89760d36..dc6e1504 100644 --- a/messages/ko.json +++ b/messages/ko.json @@ -27,6 +27,7 @@ "close": "닫기", "all": "전체", "none": "없음", + "ad": "광고", "moreLines": "+{count}줄 더", "codeView": "코드", "treeView": "트리", diff --git a/messages/nl.json b/messages/nl.json index 0041dbff..7c3779ef 100644 --- a/messages/nl.json +++ b/messages/nl.json @@ -27,6 +27,7 @@ "close": "Sluiten", "all": "Alles", "none": "Geen", + "ad": "Advertentie", "moreLines": "+{count} meer regels", "codeView": "Code", "treeView": "Boom", diff --git a/messages/pt.json b/messages/pt.json index b3239497..efefd69b 100644 --- a/messages/pt.json +++ b/messages/pt.json @@ -27,6 +27,7 @@ "close": "Fechar", "all": "Todos", "none": "Nenhum", + "ad": "Anúncio", "moreLines": "+{count} mais linhas", "codeView": "Código", "treeView": "Árvore", diff --git a/messages/ru.json b/messages/ru.json index 4a7ff452..d37c3c1f 100644 --- a/messages/ru.json +++ b/messages/ru.json @@ -27,6 +27,7 @@ "close": "Закрыть", "all": "Все", "none": "Нет", + "ad": "Реклама", "moreLines": "+{count} строк", "codeView": "Код", "treeView": "Дерево", diff --git a/messages/tr.json b/messages/tr.json index 6257c9f9..b69db441 100644 --- a/messages/tr.json +++ b/messages/tr.json @@ -27,6 +27,7 @@ "close": "Kapat", "all": "Tümü", "none": "Hiçbiri", + "ad": "Reklam", "moreLines": "+{count} satır daha", "codeView": "Kod", "treeView": "Ağaç", diff --git a/messages/zh.json b/messages/zh.json index dc39fac6..5812f511 100644 --- a/messages/zh.json +++ b/messages/zh.json @@ -27,6 +27,7 @@ "close": "关闭", "all": "全部", "none": "无", + "ad": "广告", "moreLines": "+{count}行", "codeView": "代码", "treeView": "树形视图", diff --git a/src/components/ads/ezoic-placeholder.tsx b/src/components/ads/ezoic-placeholder.tsx index f98b72e7..afabbf90 100644 --- a/src/components/ads/ezoic-placeholder.tsx +++ b/src/components/ads/ezoic-placeholder.tsx @@ -1,6 +1,7 @@ "use client"; import { useEffect, useState } from "react"; +import { useTranslations } from "next-intl"; import { runEzoic } from "@/lib/ezoic"; interface EzoicPlaceholderProps { @@ -8,6 +9,7 @@ interface EzoicPlaceholderProps { } export function EzoicPlaceholder({ id }: EzoicPlaceholderProps) { + const t = useTranslations("common"); const [isRendered, setIsRendered] = useState(false); useEffect(() => { @@ -32,8 +34,15 @@ export function EzoicPlaceholder({ id }: EzoicPlaceholderProps) { }, [id]); return ( -