Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions apps/website/src/components/common/SiteFooter.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// @vitest-environment happy-dom
import { render, screen } from '@testing-library/vue'
import { describe, expect, it } from 'vitest'

import SiteFooter from './SiteFooter.vue'

describe('SiteFooter', () => {
it('links the Models showcase page at its canonical English path', () => {
render(SiteFooter, { props: { locale: 'en' } })

const links = screen.getAllByRole('link', { name: 'Models' })
expect(links.length).toBeGreaterThan(0)
for (const link of links) {
expect(link.getAttribute('href')).toBe('/models')
}
})

it('links the localized Models showcase page for zh-CN', () => {
render(SiteFooter, { props: { locale: 'zh-CN' } })

const links = screen.getAllByRole('link', { name: '模型' })
expect(links.length).toBeGreaterThan(0)
for (const link of links) {
expect(link.getAttribute('href')).toBe('/zh-CN/models')
}
})
})
4 changes: 4 additions & 0 deletions apps/website/src/components/common/SiteFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ const topColumns: { title: string; links: FooterLink[] }[] = [
{ label: t('nav.pricing', locale), href: routes.cloudPricing },
{ label: t('nav.mcpServer', locale), href: routes.mcp },
{ label: t('nav.supportedModels', locale), href: routes.models },
{
label: t('footer.modelsShowcase', locale),
href: routes.modelsShowcase
},
Comment thread
balpreetgrowthnatives marked this conversation as resolved.
{ label: t('footer.minimaxH3', locale), href: routes.minimax },
{
label: t('footer.minimaxMusic3', locale),
Expand Down
10 changes: 10 additions & 0 deletions apps/website/src/config/routes.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,16 @@ describe('getRoutes models', () => {
})
})

describe('getRoutes modelsShowcase', () => {
it('serves the models showcase page at its canonical path for en', () => {
expect(getRoutes('en').modelsShowcase).toBe('/models')
})

it('serves a localized models showcase path for zh-CN', () => {
expect(getRoutes('zh-CN').modelsShowcase).toBe('/zh-CN/models')
})
})

describe('getRoutes seedance', () => {
it('serves the seedance page at its canonical path for en', () => {
expect(getRoutes('en').seedance).toBe('/seedance-2.5')
Expand Down
1 change: 1 addition & 0 deletions apps/website/src/config/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const baseRoutes = {
affiliateTerms: '/affiliates/terms',
contact: '/contact',
models: '/p/supported-models',
modelsShowcase: '/models',
mcp: '/mcp',
minimax: '/minimax-h3',
minimaxMusic3: '/minimax-music-3',
Expand Down
1 change: 1 addition & 0 deletions apps/website/src/i18n/translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5430,6 +5430,7 @@ const translations = {
},
'flux3.reviews.highlightCta': { en: 'GET STARTED', 'zh-CN': '开始使用' },
'footer.flux3': { en: 'Flux 3', 'zh-CN': 'Flux 3' },
'footer.modelsShowcase': { en: 'Models', 'zh-CN': '模型' },
// Wan Animate 2 model page (/wan-animate-2)
'wanAnimate2.meta.title': {
en: 'Wan Animate 2 on Comfy — Open-Source Character Animation',
Expand Down
Loading