[web] Enable German (#1620)
German translation has reached almost 100% coverage, time to enable it.
Thank you to all the translators in Crowdin 🙏
This commit is contained in:
commit
78e97c1c01
5 changed files with 11 additions and 14 deletions
|
@ -304,6 +304,10 @@ export function DedupePhotoList({
|
|||
switch (listItem.itemType) {
|
||||
case ITEM_TYPE.SIZE_AND_COUNT:
|
||||
return (
|
||||
/*TODO: Translate the full phrase instead of piecing
|
||||
together parts like this See:
|
||||
https://crowdin.com/editor/ente-photos-web/9/enus-de?view=comfortable&filter=basic&value=0#8104
|
||||
*/
|
||||
<SizeAndCountContainer span={columns}>
|
||||
{listItem.fileCount} {t("FILES")},{" "}
|
||||
{convertBytesToHumanReadable(listItem.fileSize || 0)}{" "}
|
||||
|
|
|
@ -19,6 +19,8 @@ export const localeName = (locale: SupportedLocale) => {
|
|||
return "English";
|
||||
case "fr-FR":
|
||||
return "Français";
|
||||
case "de-DE":
|
||||
return "Deutsch";
|
||||
case "zh-CN":
|
||||
return "中文";
|
||||
case "nl-NL":
|
||||
|
|
|
@ -96,7 +96,6 @@ import {
|
|||
ALL_SECTION,
|
||||
ARCHIVE_SECTION,
|
||||
CollectionSummaryType,
|
||||
DUMMY_UNCATEGORIZED_COLLECTION,
|
||||
HIDDEN_ITEMS_SECTION,
|
||||
TRASH_SECTION,
|
||||
} from "constants/collection";
|
||||
|
@ -446,18 +445,8 @@ 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;
|
||||
}
|
||||
// TODO: Is this URL param even used?
|
||||
collectionURL = `?collection=${activeCollectionID}`;
|
||||
}
|
||||
const href = `/gallery${collectionURL}`;
|
||||
router.push(href, undefined, { shallow: true });
|
||||
|
|
|
@ -22,6 +22,7 @@ import { object, string } from "yup";
|
|||
export const supportedLocales = [
|
||||
"en-US" /* English */,
|
||||
"fr-FR" /* French */,
|
||||
"de-DE" /* German */,
|
||||
"zh-CN" /* Simplified Chinese */,
|
||||
"nl-NL" /* Dutch */,
|
||||
"es-ES" /* Spanish */,
|
||||
|
@ -209,6 +210,8 @@ const closestSupportedLocale = (
|
|||
return "en-US";
|
||||
} else if (ls.startsWith("fr")) {
|
||||
return "fr-FR";
|
||||
} else if (ls.startsWith("de")) {
|
||||
return "de-DE";
|
||||
} else if (ls.startsWith("zh")) {
|
||||
return "zh-CN";
|
||||
} else if (ls.startsWith("nl")) {
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Add table
Reference in a new issue