diff --git a/ui/component/appStorageVisualization/view.jsx b/ui/component/appStorageVisualization/view.jsx index 4007e21e5..5a1b64f89 100644 --- a/ui/component/appStorageVisualization/view.jsx +++ b/ui/component/appStorageVisualization/view.jsx @@ -1,5 +1,6 @@ // @flow import * as React from 'react'; +import I18nMessage from 'component/i18nMessage'; type Props = { // --- select --- @@ -18,7 +19,7 @@ function StorageViz(props: Props) { return (
-
Cannot get disk space information.
+
{__('Cannot get disk space information.')}
); @@ -64,29 +65,57 @@ function StorageViz(props: Props) {
- +
{`${getGB(privateBlobSpace)} GB`}
- +
- {autoHostingLimit === 0 ? __('Disabled') : `${getGB(autoBlobSpace)} of ${getGB(autoHostingLimit)} GB`} + {autoHostingLimit === 0 ? ( + __('Disabled') + ) : ( + + %spaceUsed% of %limit% GB + + )} + { + + %spaceUsed% of %limit% Free GB + + }
- +
- {viewHostingLimit === 1 - ? __('Disabled') - : `${getGB(viewBlobSpace)} of ${ - viewHostingLimit !== 0 ? getGB(viewHostingLimit) : `${getGB(viewFree)} Free` - } GB`} + {viewHostingLimit === 1 ? ( + __('Disabled') + ) : ( + + %spaceUsed% of %limit% Free GB + + )}
@@ -94,7 +123,7 @@ function StorageViz(props: Props) {
- +
{`${getGB(unallocFree)} GB`}
diff --git a/ui/component/hostingSplashCustom/view.jsx b/ui/component/hostingSplashCustom/view.jsx index 1c291365f..86b1e85e2 100644 --- a/ui/component/hostingSplashCustom/view.jsx +++ b/ui/component/hostingSplashCustom/view.jsx @@ -13,15 +13,11 @@ type Props = { function HostingSplashCustom(props: Props) { const { handleNextPage, handleGoBack } = props; - function handleSubmit() { - handleNextPage(); - } - return (
-
+