File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,8 @@ import { useTranslations } from 'next-intl'
3232
3333import { useGlobalContext } from '@/global-context'
3434
35+ import { langcode } from '@/stuff/langcode' ;
36+
3537const Home = ( props ) => {
3638 const { locale, locales } = useGlobalContext ( )
3739 const translate = useTranslations ( )
@@ -88,9 +90,9 @@ const Home = (props) => {
8890 >
8991 < div >
9092 { locales . map ( ( all_languages , index ) => (
91- < Link href = { `/${ index } ` } >
93+ < Link href = { `/${ langcode ( index ) . replace ( 'en' , '' ) } ` } >
9294 < Fragment key = { index } >
93- < Link href = { `/${ index } ` } >
95+ < Link href = { `/${ langcode ( index ) . replace ( 'en' , '' ) } ` } >
9496 < div className = "home-language-switcher-item" >
9597 < span className = "home-language-link" >
9698 { all_languages ?. name }
You can’t perform that action at this time.
0 commit comments