add translation

This commit is contained in:
Tom (plebeius.eth)
2024-09-10 19:19:39 +02:00
parent b38948bbc9
commit ac232c430f
37 changed files with 78 additions and 37 deletions
@@ -83,6 +83,10 @@
text-transform: none !important;
}
.mobileBoardButtons {
text-transform: capitalize;
}
.mobileBoardButtons .filteredThreadsCount {
display: block;
margin-top: 3px;
@@ -222,6 +222,7 @@ export const TimeFilter = ({ isInAllView, isInCatalogView, isInSubscriptionsView
};
export const MobileBoardButtons = () => {
const { t } = useTranslation();
const params = useParams();
const location = useLocation();
const isInAllView = isAllView(location.pathname, params);
@@ -265,7 +266,7 @@ export const MobileBoardButtons = () => {
{isInCatalogView && filteredCount > 0 && (
<span className={styles.filteredThreadsCount}>
{' '}
Filtered threads: <strong>{filteredCount}</strong>
{t('filtered_threads')}: <strong>{filteredCount}</strong>
</span>
)}
{isInCatalogView && (
@@ -311,6 +312,7 @@ const PostPageStats = () => {
};
export const DesktopBoardButtons = () => {
const { t } = useTranslation();
const params = useParams();
const location = useLocation();
const accountComment = useAccountComment({ commentIndex: params?.accountCommentIndex as any });
@@ -363,7 +365,7 @@ export const DesktopBoardButtons = () => {
{isInCatalogView && filteredCount > 0 && (
<span className={styles.filteredThreadsCount}>
{' '}
Filtered threads: <strong>{filteredCount}</strong>
{t('filtered_threads')}: <strong>{filteredCount}</strong>
</span>
)}
<span className={styles.rightSideButtons}>