Skip to content

Commit 983d5e3

Browse files
committed
update blog link and default show English version
1 parent 11dc008 commit 983d5e3

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

index.html

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ <h3 class="heading-style-h3">LightCompress</h3>
557557
<a href="https://github.com/ModelTC/LightCompress" target="_blank" class="project-link">
558558
<span data-i18n="common.github">GitHub</span>
559559
</a>
560-
<a href="https://light-ai.top/blog/lightcompress" target="_blank" class="project-link">
560+
<a href="https://llmc-en.readthedocs.io/en/latest/" target="_blank" class="project-link" data-i18n-href="projects.lightcompress.doc">
561561
<span data-i18n="common.blog">Blog</span>
562562
</a>
563563
</div>
@@ -589,7 +589,7 @@ <h3 class="heading-style-h3">LightX2V</h3>
589589
<a href="https://github.com/ModelTC/LightX2V" target="_blank" class="project-link">
590590
<span data-i18n="common.github">GitHub</span>
591591
</a>
592-
<a href="https://light-ai.top/blog/lightx2v" target="_blank" class="project-link">
592+
<a href="https://lightx2v-en.readthedocs.io/en/latest/" target="_blank" class="project-link" data-i18n-href="projects.lightx2v.doc">
593593
<span data-i18n="common.blog">Blog</span>
594594
</a>
595595
</div>
@@ -663,8 +663,10 @@ <h2 class="h2-section-text" data-i18n="updates.title">Latest Updates</h2>
663663
'intro.text': 'We believe the future of AI is fast, efficient, and accessible. Light AI delivers cutting-edge compression and inference technology to accelerate every step from research to production, empowering teams to deploy large models at lightning speed.',
664664
'projects.title': 'Core Platforms',
665665
'projects.lightcompress.description': 'Compression toolkit for LLM, VLM, and video generation models with structured sparsity, quantization, and token pruning to deliver faster inference at lower cost.',
666+
'projects.lightcompress.doc': 'https://llmc-en.readthedocs.io/en/latest/',
666667
'projects.lightllm.description': 'Lightweight inference stack for large language and multimodal models, covering batched, streaming, and multi-GPU workloads with continuous performance tuning.',
667668
'projects.lightx2v.description': 'Video generation inference engine focused on high-fidelity outputs from text and multimodal prompts for creative and virtual avatar scenarios.',
669+
'projects.lightx2v.doc': 'https://lightx2v-en.readthedocs.io/en/latest/',
668670
'projects.x2vstudio.description': 'Live experience site supporting lip-sync driving and multi-style generation to explore LightX2V in production environments.',
669671
'projects.x2vstudio.cta': 'Open Studio',
670672
'updates.title': 'Latest Updates',
@@ -689,8 +691,10 @@ <h2 class="h2-section-text" data-i18n="updates.title">Latest Updates</h2>
689691
'intro.text': '我们相信 AI 的未来是快速、高效且易用的。Light AI 提供前沿的压缩与推理技术,加速从研究到生产的每个环节,助力团队以光速部署大模型。',
690692
'projects.title': '核心平台',
691693
'projects.lightcompress.description': '面向 LLM / VLM 与视频生成模型的压缩工具链,提供结构化稀疏、量化与 token pruning,显著降低推理成本。',
694+
'projects.lightcompress.doc': 'https://llmc-zhcn.readthedocs.io/en/latest/',
692695
'projects.lightllm.description': '轻量级大语言模型与多模态推理框架,覆盖批量、流式和多 GPU 场景,持续输出性能调优最佳实践。',
693696
'projects.lightx2v.description': '视频生成推理引擎,专注文本与多模态提示到视频的高保真输出,面向创意生产和虚拟人场景。',
697+
'projects.lightx2v.doc': 'https://lightx2v-zhcn.readthedocs.io/zh-cn/latest/',
694698
'projects.x2vstudio.description': '上线体验站点,支持口型驱动和多风格生成,实时探索 LightX2V 模型在生产环境中的表现。',
695699
'projects.x2vstudio.cta': '立即体验',
696700
'updates.title': '最新动态',
@@ -718,6 +722,14 @@ <h2 class="h2-section-text" data-i18n="updates.title">Latest Updates</h2>
718722
}
719723
});
720724

725+
// Update href attributes for links with data-i18n-href
726+
document.querySelectorAll('[data-i18n-href]').forEach(el => {
727+
const key = el.getAttribute('data-i18n-href');
728+
if (messages[key]) {
729+
el.href = messages[key];
730+
}
731+
});
732+
721733
document.querySelectorAll('.lang-toggle button').forEach(btn => {
722734
btn.classList.toggle('active', btn.dataset.lang === lang);
723735
});
@@ -730,9 +742,8 @@ <h2 class="h2-section-text" data-i18n="updates.title">Latest Updates</h2>
730742
btn.addEventListener('click', () => updateLanguage(btn.dataset.lang));
731743
});
732744

733-
// Initialize language
734-
const savedLang = localStorage.getItem('lightai-lang') ||
735-
(navigator.language.toLowerCase().startsWith('zh') ? 'zh' : 'en');
745+
// Initialize language - default to English, unless user has explicitly chosen Chinese
746+
const savedLang = localStorage.getItem('lightai-lang') || 'en';
736747
updateLanguage(savedLang);
737748

738749
// GSAP Animations

0 commit comments

Comments
 (0)