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 11import React from 'react' ;
2+ import { useTranslation } from 'react-i18next' ;
23import { useSelector } from 'react-redux' ;
34import prettyBytes from 'pretty-bytes' ;
45import { getConfig } from '../../../utils/getConfig' ;
@@ -18,6 +19,8 @@ const formatPercent = (percent) => {
1819
1920/* Eventually, this copy should be Total / 250 MB Used */
2021const 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} ;
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments