Skip to content

Updating pt-BR translations (fixing some existing entries, adding missing ones and removing unused ones as well) #3593

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

Open
wants to merge 14 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 6 additions & 1 deletion client/modules/IDE/components/AssetSize.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';
import { useTranslation } from 'react-i18next';
import { useSelector } from 'react-redux';
import prettyBytes from 'pretty-bytes';

Expand All @@ -18,6 +19,8 @@ const formatPercent = (percent) => {

/* Eventually, this copy should be Total / 250 MB Used */
const AssetSize = () => {
const { t } = useTranslation();

const totalSize = useSelector(
(state) => state.user.totalSize || state.assets.totalSize
);
Expand All @@ -38,7 +41,9 @@ const AssetSize = () => {
<p className="asset-current">
{currentSize} ({percent})
</p>
<p className="asset-max">Max: {sizeLimit}</p>
<p className="asset-max">
{t('AssetList.maximum')}: {sizeLimit}
</p>
</div>
);
};
Expand Down
3 changes: 2 additions & 1 deletion translations/locales/en-US/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,8 @@
"NoUploadedAssets": "No uploaded assets.",
"HeaderName": "Name",
"HeaderSize": "Size",
"HeaderSketch": "Sketch"
"HeaderSketch": "Sketch",
"maximum": "Maximum"
},
"Feedback": {
"Title": "p5.js Web Editor | Feedback",
Expand Down
Loading