22import { useI18n } from ' #i18n'
33import { useColor , useTypography } from ' @vuejs-jp/composable'
44import { useLocaleCurrent } from ' ~/composables/useLocaleCurrent'
5- import { useWithBase } from ' #imports'
5+ import { usePathWithLocale } from ' #imports'
66// #region types
77type LinkList = {
88 href: string
@@ -15,7 +15,7 @@ const { t } = useI18n()
1515const { path : localePath } = useLocaleCurrent ()
1616const { color } = useColor ()
1717const { fontSize } = useTypography ()
18- const withBase = useWithBase ()
18+ const pathWithLocale = usePathWithLocale ()
1919// #endregion
2020
2121// #region private variables
@@ -39,19 +39,19 @@ const snsLinkList: LinkList[] = [
3939]
4040const internalLinkList: LinkList [] = [
4141 {
42- href: withBase (' /events' ),
42+ href: pathWithLocale (' /events' ),
4343 text: ' related_events.title' ,
4444 },
4545 {
46- href: withBase (' /privacy' ),
46+ href: pathWithLocale (' /privacy' ),
4747 text: ' privacy.title' ,
4848 },
4949 {
50- href: withBase (' /code-of-conduct' ),
50+ href: pathWithLocale (' /code-of-conduct' ),
5151 text: ' code_of_conduct.title' ,
5252 },
5353 {
54- href: withBase (' /tokusho' ),
54+ href: pathWithLocale (' /tokusho' ),
5555 text: ' tokusho.title' ,
5656 },
5757]
0 commit comments