Skip to content

Commit 9f3a059

Browse files
committed
Adding new translation AssetList.maximum (in us-EN and pt-BR)
1 parent 78aaef4 commit 9f3a059

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
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

@@ -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",

translations/locales/pt-BR/translations.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,8 @@
441441
"NoUploadedAssets": " Nenhum ativo foi carregado.",
442442
"HeaderName": "Nome",
443443
"HeaderSize": "Tamanho",
444-
"HeaderSketch": "Esboço"
444+
"HeaderSketch": "Esboço",
445+
"maximum": "Máximo"
445446
},
446447
"Feedback": {
447448
"Title": "Editor Web p5.js | Feedback",

0 commit comments

Comments
 (0)