diff --git a/components/Giscus.tsx b/components/Giscus.tsx index f5e36a491..0c532aa66 100644 --- a/components/Giscus.tsx +++ b/components/Giscus.tsx @@ -1,6 +1,6 @@ import { useContext, useEffect } from 'react'; import { AuthContext, ConfigContext } from '../lib/context'; -import { useGiscusTranslation } from '../lib/i18n'; +import { Trans, useGiscusTranslation } from '../lib/i18n'; import { emitData } from '../lib/messages'; import { IMetadataMessage } from '../lib/types/giscus'; import { useFrontBackDiscussion } from '../services/giscus/discussions'; @@ -115,16 +115,19 @@ export default function Giscus({ onDiscussionCreateRequest, onError }: IGiscusPr ) : null} {shouldShowBranding ? ( - {' '} - {t('poweredBy')}{' '} - - giscus - + + ), + }} + /> ) : null} diff --git a/locales/en/common.json b/locales/en/common.json index 15b0a94e4..a086aa560 100644 --- a/locales/en/common.json +++ b/locales/en/common.json @@ -31,7 +31,7 @@ "loading": "Loading", "loadingComments": "Loading comments…", "loadingPreview": "Loading preview…", - "poweredBy": "– powered by", + "poweredBy": "– powered by giscus", "showPreviousReplies": { "0": "Show {{count}} previous replies", "one": "Show {{count}} previous reply", diff --git a/locales/pl/common.json b/locales/pl/common.json index 7090cc031..910056eee 100644 --- a/locales/pl/common.json +++ b/locales/pl/common.json @@ -41,7 +41,7 @@ "loading": "Wczytywanie", "loadingComments": "Wczytywanie komentarzy…", "loadingPreview": "Wczytywanie podglądu…", - "poweredBy": "– zasilane przez", + "poweredBy": "– zasilane przez giscus", "showPreviousReplies": { "0": "Pokaż {{count}} poprzednich odpowiedzi", "one": "Pokaż poprzednią odpowiedź", diff --git a/locales/ro/common.json b/locales/ro/common.json index d953f555e..0d4512509 100644 --- a/locales/ro/common.json +++ b/locales/ro/common.json @@ -36,7 +36,7 @@ "loading": "Încărcare", "loadingComments": "Încărcare comentarii…", "loadingPreview": "Încărcare previzualizare…", - "poweredBy": "– oferit de", + "poweredBy": "– oferit de giscus", "showPreviousReplies": { "0": "Arată {{count}} răspunsuri anterioare", "one": "Arată {{count}} răspuns anterior",