Skip to content

Commit afb59d9

Browse files
committed
update useTranslation(filenames)
1 parent 5548285 commit afb59d9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

components/hearing/HearingSidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export const HearingSidebar = ({
4949
generalCourtNumber: string
5050
hearingDate: string
5151
}) => {
52-
const { t } = useTranslation("common")
52+
const { t } = useTranslation(["common", "hearing"])
5353

5454
const dateObject = new Date(hearingDate)
5555
const formattedDate = dateObject.toLocaleDateString("en-US", {

components/hearing/Transcriptions.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export const Transcriptions = ({
5151
setCurTimeVideo: any
5252
videoTranscriptionId: string
5353
}) => {
54-
const { t } = useTranslation("common")
54+
const { t } = useTranslation(["common", "hearing"])
5555

5656
const vid = videoTranscriptionId || "prevent FirebaseError"
5757

pages/hearing/[hearingId].tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default createPage<{ hearingId: number }>({
1919
export const getServerSideProps: GetServerSideProps = async ctx => {
2020
ctx.res.setHeader(
2121
"Cache-Control",
22-
"public, s-maxage=10, stale-while-revalidate=10"
22+
"public, s-maxage=10, stale-while-revalidate=10."
2323
)
2424

2525
const locale = ctx.locale ?? ctx.defaultLocale ?? "en"

0 commit comments

Comments
 (0)