@@ -8,6 +8,8 @@ import { useAppConfig } from "../AppConfig"
88import { useHotkeyStorage } from "../HotkeyStorage"
99import KeyboardShortcutManagerDialog from "../KeyboardShortcutManagerDialog"
1010
11+ import { useTranslation } from "react-i18next"
12+
1113const Button = styled ( MuiButton ) ( {
1214 margin : 8 ,
1315} )
@@ -19,10 +21,13 @@ export const AdvancedOptionsView = ({ onClickEditJSON, onClearLabelData }) => {
1921 const { hotkeys, changeHotkey, clearHotkeys } = useHotkeyStorage ( )
2022 const [ hotkeyDialogOpen , setHotkeyDialogOpen ] = useState ( false )
2123
24+ // internalization hook
25+ const { t } = useTranslation ( )
26+
2227 return (
2328 < Box padding = { 2 } >
2429 < Button onClick = { onClickEditJSON } variant = "outlined" >
25- Edit JSON
30+ { t ( "added-json" ) }
2631 </ Button >
2732 < Button
2833 onClick = { ( ) => {
@@ -36,7 +41,7 @@ export const AdvancedOptionsView = ({ onClickEditJSON, onClearLabelData }) => {
3641 } }
3742 variant = "outlined"
3843 >
39- Clear All Labels
44+ { t ( "clear-labels" ) }
4045 </ Button >
4146 < Button
4247 variant = "outlined"
@@ -49,7 +54,8 @@ export const AdvancedOptionsView = ({ onClickEditJSON, onClearLabelData }) => {
4954 forceUpdate ( )
5055 } }
5156 >
52- { posthog . has_opted_out_capturing ( ) ? "Enable" : "Disable" } Telemetry
57+ { posthog . has_opted_out_capturing ( ) ? "Enable" : "Disable" } { " " }
58+ { t ( "telemetry" ) }
5359 </ Button >
5460 < Button
5561 variant = "outlined"
@@ -64,7 +70,7 @@ export const AdvancedOptionsView = ({ onClickEditJSON, onClearLabelData }) => {
6470 window . location . reload ( )
6571 } }
6672 >
67- Custom Collaboration Server
73+ { t ( "custom-collobration-server" ) }
6874 </ Button >
6975 < Button
7076 variant = "outlined"
@@ -75,7 +81,8 @@ export const AdvancedOptionsView = ({ onClickEditJSON, onClearLabelData }) => {
7581 )
7682 } }
7783 >
78- { fromConfig ( "labelhelp.disabled" ) ? "Enable" : "Disable" } Label Help
84+ { fromConfig ( "labelhelp.disabled" ) ? "Enable" : "Disable" } { " " }
85+ { t ( "label-help" ) }
7986 </ Button >
8087 { ! fromConfig ( "labelhelp.disabled" ) && (
8188 < Button
@@ -90,7 +97,7 @@ export const AdvancedOptionsView = ({ onClickEditJSON, onClearLabelData }) => {
9097 setInConfig ( "labelhelp.apikey" , response )
9198 } }
9299 >
93- Label Help API Key
100+ { t ( "label-help-api-key" ) }
94101 </ Button >
95102 ) }
96103 < Button
0 commit comments