diff --git a/packages/devtools-network-console/src/ui/ResponseViewer/index.tsx b/packages/devtools-network-console/src/ui/ResponseViewer/index.tsx index 027d28e..ca03407 100644 --- a/packages/devtools-network-console/src/ui/ResponseViewer/index.tsx +++ b/packages/devtools-network-console/src/ui/ResponseViewer/index.tsx @@ -31,6 +31,7 @@ import LocText from 'ui/LocText'; import { ILocalized, LocalizationConsumer } from 'utility/loc-context'; import TableHeader from './table/TableHeader'; import { cancelRequestAction } from 'actions/response'; +import { getText, LocalizationContext } from 'utility/loc-context'; interface IConnectedProps { response: INetConsoleResponseInternal; @@ -100,6 +101,7 @@ export function ResponseViewer(props: IResponseViewerProps) { } function ResponseViewerWithLocale(props: IResponseViewerProps & ILocalized) { + const locale = React.useContext(LocalizationContext); // TODO: Promote to per-request state in the Store const [currentTab, setCurrentTab] = React.useState('body'); const headerData = React.useMemo(() => { @@ -175,7 +177,9 @@ function ResponseViewerWithLocale(props: IResponseViewerProps & ILocalized) { return ( -
+
-
+
@@ -244,7 +248,7 @@ function Pending({ requestId }: { requestId: string; }) {
-
+
{requestId && cookie && (
@@ -262,7 +266,7 @@ function ErrorBelowApplication() {

-

+