File tree Expand file tree Collapse file tree 3 files changed +43
-38
lines changed
internationalization/dictionaries Expand file tree Collapse file tree 3 files changed +43
-38
lines changed Original file line number Diff line number Diff line change 370
370
},
371
371
{
372
372
"src" : " pwa/ios/50.png" ,
373
- "sizes" : " 50x50"
373
+ "sizes" : " 50x50"
374
374
},
375
375
{
376
376
"src" : " pwa/ios/57.png" ,
Original file line number Diff line number Diff line change 1
1
"use client" ;
2
2
3
- import { useDictionary } from "@/contexts/dictionary-provider" ;
3
+ import { useDictionary , useLang } from "@/contexts/dictionary-provider" ;
4
4
import Image from "next/image" ;
5
5
import SocialIcon from "@/components/social-icon" ;
6
6
import Link from "next/link" ;
7
7
import { horizontalPadding } from "@/lib/styling" ;
8
8
9
9
const Footer = ( ) => {
10
10
const dict = useDictionary ( ) ;
11
+ const lang = useLang ( ) ;
11
12
12
13
return (
13
14
< div className = { `bg-[#EBEBEB] ${ horizontalPadding } ` } >
@@ -63,7 +64,11 @@ const Footer = () => {
63
64
{ section . items . map ( ( item , index ) => (
64
65
< li key = { index } className = "text-sm text-gray" >
65
66
< Link
66
- href = { section . links ?. [ index ] ?? "#" }
67
+ href = {
68
+ ( section . links ?. [ index ] ?. startsWith ( "http" ) ?? "#" )
69
+ ? ( section . links ?. [ index ] ?? "#" )
70
+ : `/${ lang } ${ section . links ?. [ index ] ?? "#" } `
71
+ }
67
72
className = "transition-colors hover:text-black/60"
68
73
{ ...( section . links ?. [ index ] ?. startsWith ( "http" ) && {
69
74
target : "_blank" ,
You can’t perform that action at this time.
0 commit comments