Skip to content

Commit

Permalink
[web] Translation cleanup (#3379)
Browse files Browse the repository at this point in the history
  • Loading branch information
mnvr authored Sep 21, 2024
2 parents e8d0673 + f337b1f commit 0f6c8a6
Show file tree
Hide file tree
Showing 62 changed files with 2,488 additions and 2,488 deletions.
4 changes: 2 additions & 2 deletions web/apps/accounts/src/pages/passkeys/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const Page: React.FC = () => {

const showPasskeyFetchFailedErrorDialog = useCallback(() => {
setDialogBoxAttributesV2({
title: t("ERROR"),
title: t("error"),
content: t("passkey_fetch_failed"),
close: {},
});
Expand Down Expand Up @@ -392,7 +392,7 @@ const RenamePasskeyDialog: React.FC<RenamePasskeyDialogProps> = ({
initialValue={passkey.friendlyName}
callback={handleSubmit}
placeholder={t("enter_passkey_name")}
buttonText={t("RENAME")}
buttonText={t("rename")}
fieldType="text"
secondaryButtonAction={onClose}
submitButtonProps={{ sx: { mt: 1, mb: 0 } }}
Expand Down
2 changes: 1 addition & 1 deletion web/apps/auth/src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ const App: React.FC<AppProps> = ({ Component, pageProps }) => {

const somethingWentWrong = () =>
setDialogBoxAttributesV2({
title: t("ERROR"),
title: t("error"),
close: { variant: "critical" },
content: t("UNKNOWN_ERROR"),
});
Expand Down
2 changes: 1 addition & 1 deletion web/apps/auth/src/pages/auth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ const Footer: React.FC = () => {
href="https://github.com/ente-io/ente/tree/main/auth#-download"
download
>
<Button color="accent">{t("DOWNLOAD")}</Button>
<Button color="accent">{t("download")}</Button>
</a>
</Footer_>
);
Expand Down
2 changes: 1 addition & 1 deletion web/apps/photos/src/components/AuthenticateUserModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default function AuthenticateUserModal({

const somethingWentWrong = () =>
setDialogMessage({
title: t("ERROR"),
title: t("error"),
close: { variant: "critical" },
content: t("UNKNOWN_ERROR"),
});
Expand Down
24 changes: 12 additions & 12 deletions web/apps/photos/src/components/Collections/AlbumCastDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ interface Props {
}

enum AlbumCastError {
TV_NOT_FOUND = "TV_NOT_FOUND",
TV_NOT_FOUND = "tv_not_found",
}

declare global {
Expand Down Expand Up @@ -61,7 +61,7 @@ export default function AlbumCastDialog({
let fieldError: string;
switch (error.message) {
case AlbumCastError.TV_NOT_FOUND:
fieldError = t("TV_NOT_FOUND");
fieldError = t("tv_not_found");
break;
default:
fieldError = t("UNKNOWN_ERROR");
Expand Down Expand Up @@ -158,15 +158,15 @@ export default function AlbumCastDialog({
open={show}
onClose={onHide}
attributes={{
title: t("CAST_ALBUM_TO_TV"),
title: t("cast_album_to_tv"),
}}
>
{view === "choose" && (
<>
{browserCanCast && (
<>
<Typography color={"text.muted"}>
{t("AUTO_CAST_PAIR_DESC")}
{t("cast_auto_pair_description")}
</Typography>

<EnteButton
Expand All @@ -177,27 +177,27 @@ export default function AlbumCastDialog({
setView("auto");
}}
>
{t("AUTO_CAST_PAIR")}
{t("cast_auto_pair")}
</EnteButton>
</>
)}
<Typography color="text.muted">
{t("PAIR_WITH_PIN_DESC")}
{t("pair_with_pin_description")}
</Typography>

<EnteButton
onClick={() => {
setView("pin");
}}
>
{t("PAIR_WITH_PIN")}
{t("pair_with_pin")}
</EnteButton>
</>
)}
{view === "auto" && (
<VerticallyCentered gap="1rem">
<EnteSpinner />
<Typography>{t("CHOOSE_DEVICE_FROM_BROWSER")}</Typography>
<Typography>{t("choose_device_from_browser")}</Typography>
<EnteButton
variant="text"
onClick={() => {
Expand All @@ -210,7 +210,7 @@ export default function AlbumCastDialog({
)}
{view === "auto-cast-error" && (
<VerticallyCentered gap="1rem">
<Typography>{t("CAST_AUTO_PAIR_FAILED")}</Typography>
<Typography>{t("cast_auto_pair_failed")}</Typography>
<EnteButton
variant="text"
onClick={() => {
Expand All @@ -225,7 +225,7 @@ export default function AlbumCastDialog({
<>
<Typography>
<Trans
i18nKey="VISIT_CAST_ENTE_IO"
i18nKey="visit_cast_url"
components={{
a: (
<Link
Expand All @@ -237,13 +237,13 @@ export default function AlbumCastDialog({
values={{ url: "cast.ente.io" }}
/>
</Typography>
<Typography>{t("ENTER_CAST_PIN_CODE")}</Typography>
<Typography>{t("enter_cast_pin_code")}</Typography>
<SingleInputForm
callback={onSubmit}
fieldType="text"
realLabel={"Code"}
realPlaceholder={"123456"}
buttonText={t("PAIR_DEVICE_TO_TV")}
buttonText={t("pair_device_to_tv")}
submitButtonProps={{ sx: { mt: 1, mb: 2 } }}
/>
<EnteButton
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export default function AllCollectionsHeader({
<Box>
<Typography variant="h3">
{isInHiddenSection
? t("ALL_HIDDEN_ALBUMS")
: t("ALL_ALBUMS")}
? t("all_hidden_albums")
: t("all_albums")}
</Typography>
<Typography variant="small" color={"text.muted"}>
{t("albums_count", { count: collectionCount })}
Expand Down
Loading

0 comments on commit 0f6c8a6

Please sign in to comment.