@@ -11,7 +11,7 @@ import { Header } from "components/DeploySettingsLayout/Header"
11
11
import { LoadingButton } from "components/LoadingButton/LoadingButton"
12
12
import { Stack } from "components/Stack/Stack"
13
13
import { FormikContextType , useFormik } from "formik"
14
- import React , { useContext , useState } from "react"
14
+ import React , { useContext , useState , useTransition } from "react"
15
15
import { Helmet } from "react-helmet-async"
16
16
import { pageTitle } from "util/page"
17
17
import * as Yup from "yup"
@@ -24,6 +24,7 @@ import { BlockPicker } from "react-color"
24
24
import { useTheme } from "@material-ui/core/styles"
25
25
import FormHelperText from "@material-ui/core/FormHelperText"
26
26
import Button from "@material-ui/core/Button"
27
+ import { useTranslation } from "react-i18next"
27
28
28
29
export interface ServiceBannerFormValues {
29
30
message ?: string
@@ -92,6 +93,7 @@ const ServiceBannerSettingsPage: React.FC = () => {
92
93
)
93
94
94
95
const theme = useTheme ( )
96
+ const [ t ] = useTranslation ( "serviceBannerSettings" )
95
97
96
98
return (
97
99
< >
@@ -148,9 +150,7 @@ const ServiceBannerSettingsPage: React.FC = () => {
148
150
)
149
151
} }
150
152
/>
151
- < FormHelperText >
152
- Markdown bold, italics, and links are supported.
153
- </ FormHelperText >
153
+ < FormHelperText > { t ( "messageHelperText" ) } </ FormHelperText >
154
154
</ Stack >
155
155
156
156
< Stack spacing = { 0 } >
@@ -190,7 +190,7 @@ const ServiceBannerSettingsPage: React.FC = () => {
190
190
191
191
< Stack direction = "row" >
192
192
< LoadingButton loading = { false } type = "submit" variant = "contained" >
193
- { "Update" }
193
+ { t ( "updateLabel" ) }
194
194
</ LoadingButton >
195
195
</ Stack >
196
196
</ Stack >
@@ -214,7 +214,7 @@ const ServiceBannerSettingsPage: React.FC = () => {
214
214
)
215
215
} }
216
216
>
217
- Show Preview
217
+ { t ( "showPreviewLabel" ) }
218
218
</ Button >
219
219
</ >
220
220
) }
0 commit comments