Remove misused translation strings

This commit is contained in:
Manav Rathi 2024-05-06 10:14:57 +05:30
parent a288c8305a
commit 59d8b9bfbb
No known key found for this signature in database
2 changed files with 1 additions and 14 deletions

View file

@ -96,7 +96,6 @@ import {
ALL_SECTION,
ARCHIVE_SECTION,
CollectionSummaryType,
DUMMY_UNCATEGORIZED_COLLECTION,
HIDDEN_ITEMS_SECTION,
TRASH_SECTION,
} from "constants/collection";
@ -446,18 +445,7 @@ export default function Gallery() {
}
let collectionURL = "";
if (activeCollectionID !== ALL_SECTION) {
collectionURL += "?collection=";
if (activeCollectionID === ARCHIVE_SECTION) {
collectionURL += t("ARCHIVE_SECTION_NAME");
} else if (activeCollectionID === TRASH_SECTION) {
collectionURL += t("TRASH");
} else if (activeCollectionID === DUMMY_UNCATEGORIZED_COLLECTION) {
collectionURL += t("UNCATEGORIZED");
} else if (activeCollectionID === HIDDEN_ITEMS_SECTION) {
collectionURL += t("HIDDEN_ITEMS_SECTION_NAME");
} else {
collectionURL += activeCollectionID;
}
collectionURL = `?collection={activeCollectionID}`;
}
const href = `/gallery${collectionURL}`;
router.push(href, undefined, { shallow: true });

View file

@ -418,7 +418,6 @@
"ALL_HIDDEN_ALBUMS": "All hidden albums",
"HIDDEN_ALBUMS": "Hidden albums",
"HIDDEN_ITEMS": "Hidden items",
"HIDDEN_ITEMS_SECTION_NAME": "Hidden_items",
"ENTER_TWO_FACTOR_OTP": "Enter the 6-digit code from your authenticator app.",
"CREATE_ACCOUNT": "Create account",
"COPIED": "Copied",