File tree Expand file tree Collapse file tree 3 files changed +246
-232
lines changed
client/modules/IDE/components Expand file tree Collapse file tree 3 files changed +246
-232
lines changed Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
+ import { useTranslation } from 'react-i18next' ;
2
3
import { useSelector } from 'react-redux' ;
3
4
import prettyBytes from 'pretty-bytes' ;
4
5
import { getConfig } from '../../../utils/getConfig' ;
@@ -18,6 +19,8 @@ const formatPercent = (percent) => {
18
19
19
20
/* Eventually, this copy should be Total / 250 MB Used */
20
21
const AssetSize = ( ) => {
22
+ const { t } = useTranslation ( ) ;
23
+
21
24
const totalSize = useSelector (
22
25
( state ) => state . user . totalSize || state . assets . totalSize
23
26
) ;
@@ -38,7 +41,9 @@ const AssetSize = () => {
38
41
< p className = "asset-current" >
39
42
{ currentSize } ({ percent } )
40
43
</ p >
41
- < p className = "asset-max" > Max: { sizeLimit } </ p >
44
+ < p className = "asset-max" >
45
+ { t ( 'AssetList.maximum' ) } : { sizeLimit }
46
+ </ p >
42
47
</ div >
43
48
) ;
44
49
} ;
Original file line number Diff line number Diff line change 439
439
"NoUploadedAssets" : " No uploaded assets." ,
440
440
"HeaderName" : " Name" ,
441
441
"HeaderSize" : " Size" ,
442
- "HeaderSketch" : " Sketch"
442
+ "HeaderSketch" : " Sketch" ,
443
+ "maximum" : " Maximum"
443
444
},
444
445
"Feedback" : {
445
446
"Title" : " p5.js Web Editor | Feedback" ,
You can’t perform that action at this time.
0 commit comments