Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Files] Add and improve Spanish translations #2150

Merged
merged 27 commits into from
May 30, 2022
Merged
Show file tree
Hide file tree
Changes from 19 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
d773046
add some spanish translations
juans-chainsafe May 18, 2022
79e4710
more translations
juans-chainsafe May 19, 2022
f4829ba
more translations
juans-chainsafe May 20, 2022
025c9da
add more translations
juans-chainsafe May 23, 2022
966d9f1
Merge remote-tracking branch 'origin/dev' into mnt/add-spanish-transl…
juans-chainsafe May 23, 2022
7061772
added more translations + fix places where the 't' was not present
juans-chainsafe May 23, 2022
6e8f06b
add more translations + add 't' in toasts and files context
juans-chainsafe May 24, 2022
be97819
lingui extract
actions-user May 24, 2022
b4c4d2c
lingui extract
actions-user May 24, 2022
053860f
add suggested changes
juans-chainsafe May 24, 2022
2108361
update
juans-chainsafe May 24, 2022
a757616
add missing translations
juans-chainsafe May 24, 2022
5af349f
lingui extract
actions-user May 24, 2022
db20f7b
found some other
Tbaut May 25, 2022
22ee342
Merge branch 'dev' into mnt/add-spanish-translations-2128
Tbaut May 25, 2022
02df949
add final translations
juans-chainsafe May 26, 2022
f31fd57
delete awaitBucketRefresh
juans-chainsafe May 26, 2022
6db8b58
undo delete awaitBucketRefresh
juans-chainsafe May 26, 2022
907a390
Merge branch 'mnt/add-spanish-translations-2128' of github.com:ChainS…
juans-chainsafe May 26, 2022
7ab73d7
undo
juans-chainsafe May 26, 2022
f391fa9
Merge branch 'dev' into mnt/add-spanish-translations-2128
juans-chainsafe May 26, 2022
26298f6
Update packages/common-components/src/stories/Toasts.stories.tsx
juans-chainsafe May 26, 2022
1d4cb9c
Update packages/common-components/src/stories/Toasts.stories.tsx
juans-chainsafe May 26, 2022
9b2feda
Update packages/common-components/src/stories/Toasts.stories.tsx
juans-chainsafe May 26, 2022
ed07011
Update packages/common-components/src/stories/Toasts.stories.tsx
juans-chainsafe May 26, 2022
48bc46f
Update packages/common-components/src/stories/Toasts.stories.tsx
juans-chainsafe May 26, 2022
29c05f0
fix eslint issue in toasts.stories
juans-chainsafe May 26, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions packages/common-components/src/stories/Toasts.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from "react"
import { ToastContent, ToastParams, ToastProvider, useToasts } from "../Toasts"
import { withKnobs, number, select, text, boolean } from "@storybook/addon-knobs"
import { action } from "@storybook/addon-actions"
import { t } from "@lingui/macro"
juans-chainsafe marked this conversation as resolved.
Show resolved Hide resolved

export default {
title: "Toasts",
Expand All @@ -14,7 +15,7 @@ export const ToastsContentNotification: React.FC = () => {
<ToastContent
toast={{
id: "1",
title: text("title", "Upload in progress"),
title: text("title", t`Upload in progress`),
juans-chainsafe marked this conversation as resolved.
Show resolved Hide resolved
type: select("type", ["success", "error"], "success"),
subtitle: text("subtitle", "Just a subtitle with a lot of info")
}}
Expand All @@ -28,7 +29,7 @@ export const ToastsContentProgress: React.FC = () => {
<ToastContent
toast={{
id: "2",
title: text("title", "Upload in progress"),
title: text("title", t`"Upload in progress`),
tanmoyAtb marked this conversation as resolved.
Show resolved Hide resolved
type: select("type", ["success", "error"], "success"),
progress: number("progress", 30),
onProgressCancel: action("on progress cancel")
Expand All @@ -43,7 +44,7 @@ export const ToastsContentProgressNoCancel: React.FC = () => {
<ToastContent
toast={{
id: "2",
title: text("title", "Upload in progress"),
title: text("title", t`Upload in progress`),
juans-chainsafe marked this conversation as resolved.
Show resolved Hide resolved
type: select("type", ["success", "error"], "success"),
progress: number("progress", 50)
}}
Expand All @@ -60,7 +61,7 @@ export const ToastsDemo: React.FC = () => {
>
<ToastNotificationDemo
toast={{
title: text("title", "Upload Complete"),
title: text("title", t`Upload Complete`),
juans-chainsafe marked this conversation as resolved.
Show resolved Hide resolved
type: "success",
toastPosition: select("position", ["topLeft", "topRight", "bottomLeft", "bottomRight"], "topRight"),
autoDismiss: boolean("toast auto dismiss", true),
Expand All @@ -79,7 +80,7 @@ export const MultipleToastsDemo: React.FC = () => {
>
<ToastMultipleNotificationDemo
toast={{
title: text("title", "Upload Started"),
title: text("title", t`Upload Started`),
juans-chainsafe marked this conversation as resolved.
Show resolved Hide resolved
type: "success",
toastPosition: select("position", ["topLeft", "topRight", "bottomLeft", "bottomRight"], "topRight"),
autoDismiss: boolean("toast auto dismiss", true),
Expand Down
4 changes: 2 additions & 2 deletions packages/files-ui/src/Components/Layouts/AppNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
useToasts
} from "@chainsafe/common-components"
import { ROUTE_LINKS } from "../FilesRoutes"
import { Trans } from "@lingui/macro"
import { t, Trans } from "@lingui/macro"
import { useThresholdKey } from "../../Contexts/ThresholdKeyContext"
import { CSFTheme } from "../../Themes/types"
import { useUser } from "../../Contexts/UserContext"
Expand Down Expand Up @@ -429,7 +429,7 @@ const AppNav = ({ navOpen, setNavOpen }: IAppNav) => {
variant="body2"
className={classes.spaceUsedMargin}
component="p"
>{`${formatBytes(storageSummary.used_storage, 2)} of ${formatBytes(
>{t`${formatBytes(storageSummary.used_storage, 2)} of ${formatBytes(
storageSummary.total_storage, 2
)} used`}</Typography>
<ProgressBar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ const CreateFolderModal = ({ modalOpen, close }: ICreateFolderModalProps) => {
data-cy="input-folder-name"
name="name"
size="large"
placeholder="Name"
placeholder={t`Name`}
labelClassName={classes.label}
label="Folder Name"
label={t`Folder Name`}
autoFocus
/>
</Grid>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ const PasswordlessEmail = ({ resetLogin, email }: IPasswordlessEmail) => {
>
<span>
<Trans>
Didn&apos;t receive the email ?
Didn&apos;t receive the email?
</Trans>
</span>
<span
Expand Down
8 changes: 4 additions & 4 deletions packages/files-ui/src/Contexts/FilesContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -297,11 +297,11 @@ const FilesProvider = ({ children }: FilesContextProps) => {

useEffect(() => {
if (downloadsInProgress) {
setCloseIntercept("Download in progress, are you sure?")
setCloseIntercept(t`Download in progress, are you sure?`)
} else if (uploadsInProgress) {
setCloseIntercept("Upload in progress, are you sure?")
setCloseIntercept(t`Upload in progress, are you sure?`)
} else if (transfersInProgress) {
setCloseIntercept("Transfer is in progress, are you sure?")
setCloseIntercept(t`Transfer is in progress, are you sure?`)
} else if (closeIntercept !== undefined) {
setCloseIntercept(undefined)
}
Expand Down Expand Up @@ -408,7 +408,7 @@ const FilesProvider = ({ children }: FilesContextProps) => {
// setting complete
updateToast(toastId, {
...toastParams,
title: "Upload complete",
title: t`Upload complete`,
progress: undefined,
onProgressCancel: undefined,
isClosable: true,
Expand Down
17 changes: 16 additions & 1 deletion packages/files-ui/src/locales/de/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ msgstr ""
msgid "Device awaiting confirmation"
msgstr "Gerät wartet auf Bestätigung"

msgid "Didn't receive the email ?"
msgid "Didn't receive the email?"
msgstr "Sie haben die E-Mail nicht erhalten?"

msgid "Display"
Expand All @@ -322,6 +322,9 @@ msgstr ""
msgid "Download as zip"
msgstr ""

msgid "Download in progress, are you sure?"
msgstr ""

msgid "Download recovery key"
msgstr "Wiederherstellungsschlüssel herunterladen"

Expand Down Expand Up @@ -415,6 +418,9 @@ msgstr ""
msgid "Files sharing key"
msgstr "Dateifreigabeschlüssel"

msgid "Folder Name"
msgstr ""

msgid "Folder name is already in use"
msgstr ""

Expand Down Expand Up @@ -1012,6 +1018,9 @@ msgstr ""
msgid "Total Amount"
msgstr ""

msgid "Transfer is in progress, are you sure?"
msgstr ""

msgid "Try again"
msgstr "Erneut versuchen"

Expand Down Expand Up @@ -1039,6 +1048,12 @@ msgstr ""
msgid "Upload"
msgstr ""

msgid "Upload complete"
msgstr ""

msgid "Upload in progress, are you sure?"
msgstr ""

msgid "Upload size exceeds plan capacity"
msgstr ""

Expand Down
19 changes: 17 additions & 2 deletions packages/files-ui/src/locales/en/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,8 @@ msgstr "Destination Address"
msgid "Device awaiting confirmation"
msgstr "Device awaiting confirmation"

msgid "Didn't receive the email ?"
msgstr "Didn't receive the email ?"
msgid "Didn't receive the email?"
msgstr "Didn't receive the email?"

msgid "Display"
msgstr "Display"
Expand All @@ -322,6 +322,9 @@ msgstr "Download Complete"
msgid "Download as zip"
msgstr "Download as zip"

msgid "Download in progress, are you sure?"
msgstr "Download in progress, are you sure?"

msgid "Download recovery key"
msgstr "Download recovery key"

Expand Down Expand Up @@ -418,6 +421,9 @@ msgstr "Files Pro"
msgid "Files sharing key"
msgstr "Files sharing key"

msgid "Folder Name"
msgstr "Folder Name"

msgid "Folder name is already in use"
msgstr "Folder name is already in use"

Expand Down Expand Up @@ -1015,6 +1021,9 @@ msgstr "Total"
msgid "Total Amount"
msgstr "Total Amount"

msgid "Transfer is in progress, are you sure?"
msgstr "Transfer is in progress, are you sure?"

msgid "Try again"
msgstr "Try again"

Expand Down Expand Up @@ -1042,6 +1051,12 @@ msgstr "Update your credit card"
msgid "Upload"
msgstr "Upload"

msgid "Upload complete"
msgstr "Upload complete"

msgid "Upload in progress, are you sure?"
msgstr "Upload in progress, are you sure?"

msgid "Upload size exceeds plan capacity"
msgstr "Upload size exceeds plan capacity"

Expand Down
Binary file added packages/files-ui/src/locales/es/messages.mo
Binary file not shown.
Loading