Skip to content

Commit 4ec6a73

Browse files
authored
Merge pull request #3593 from cassiano/updating-ptbr-translations
Updating pt-BR translations (fixing some existing entries, adding missing ones and removing unused ones as well)
2 parents 266e9e1 + 7f50497 commit 4ec6a73

File tree

3 files changed

+246
-232
lines changed

3 files changed

+246
-232
lines changed

client/modules/IDE/components/AssetSize.jsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React from 'react';
2+
import { useTranslation } from 'react-i18next';
23
import { useSelector } from 'react-redux';
34
import prettyBytes from 'pretty-bytes';
45
import { getConfig } from '../../../utils/getConfig';
@@ -18,6 +19,8 @@ const formatPercent = (percent) => {
1819

1920
/* Eventually, this copy should be Total / 250 MB Used */
2021
const AssetSize = () => {
22+
const { t } = useTranslation();
23+
2124
const totalSize = useSelector(
2225
(state) => state.user.totalSize || state.assets.totalSize
2326
);
@@ -38,7 +41,9 @@ const AssetSize = () => {
3841
<p className="asset-current">
3942
{currentSize} ({percent})
4043
</p>
41-
<p className="asset-max">Max: {sizeLimit}</p>
44+
<p className="asset-max">
45+
{t('AssetList.maximum')}: {sizeLimit}
46+
</p>
4247
</div>
4348
);
4449
};

translations/locales/en-US/translations.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,8 @@
439439
"NoUploadedAssets": "No uploaded assets.",
440440
"HeaderName": "Name",
441441
"HeaderSize": "Size",
442-
"HeaderSketch": "Sketch"
442+
"HeaderSketch": "Sketch",
443+
"maximum": "Maximum"
443444
},
444445
"Feedback": {
445446
"Title": "p5.js Web Editor | Feedback",

0 commit comments

Comments
 (0)