mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
add translation
This commit is contained in:
@@ -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}>
|
||||
|
||||
Reference in New Issue
Block a user