444 lines
22 KiB
TypeScript
444 lines
22 KiB
TypeScript
export const languages = {
|
||
zh: {
|
||
nav: {
|
||
products: '产品服务',
|
||
security: '安全防护',
|
||
datacenter: '数据中心',
|
||
support: '技术支持',
|
||
console: '控制台',
|
||
},
|
||
hero: {
|
||
title: '云端未来',
|
||
subtitle: '赛博空间',
|
||
description: '沉浸式云服务器体验,突破传统边界',
|
||
cta: '启动连接',
|
||
voice: '语音查询',
|
||
},
|
||
features: {
|
||
ddos: 'DDoS 防护',
|
||
realtime: '实时监控',
|
||
global: '全球节点',
|
||
},
|
||
footer: {
|
||
company: '领先的云计算服务提供商,为全球用户提供安全可靠的云基础设施。',
|
||
products: '产品服务',
|
||
support: '技术支持',
|
||
legal: '法律条款',
|
||
copyright: '© 2024 CyberCloud. 保留所有权利。',
|
||
},
|
||
pages: {
|
||
products: {
|
||
title: '产品服务',
|
||
subtitle: '强大的云计算解决方案',
|
||
description: '为您的业务提供全方位的云服务产品',
|
||
cloudServers: {
|
||
title: '云服务器',
|
||
description: '高性能、可扩展的虚拟服务器实例',
|
||
features: ['弹性计算', '自动扩容', '多种配置'],
|
||
},
|
||
storage: {
|
||
title: '云存储',
|
||
description: '安全可靠的数据存储解决方案',
|
||
features: ['高可用性', '数据备份', '无限扩展'],
|
||
},
|
||
networking: {
|
||
title: '网络服务',
|
||
description: '专业的网络连接和安全服务',
|
||
features: ['负载均衡', 'CDN加速', '安全防护'],
|
||
},
|
||
},
|
||
security: {
|
||
title: '安全防护',
|
||
subtitle: '全方位网络安全解决方案',
|
||
description: '保护您的数字资产免受网络威胁',
|
||
ddosProtection: {
|
||
title: 'DDoS 防护',
|
||
description: '实时检测和防御分布式拒绝服务攻击',
|
||
features: ['智能识别', '自动防护', '实时监控'],
|
||
},
|
||
firewall: {
|
||
title: '云防火墙',
|
||
description: '下一代网络安全防护系统',
|
||
features: ['深度包检测', '应用层防护', '威胁情报'],
|
||
},
|
||
ssl: {
|
||
title: 'SSL 证书',
|
||
description: '保护数据传输安全的加密证书',
|
||
features: ['免费证书', '通配符支持', '自动续期'],
|
||
},
|
||
},
|
||
datacenter: {
|
||
title: '数据中心',
|
||
subtitle: '全球分布式基础设施',
|
||
description: '遍布全球的高可用数据中心网络',
|
||
locations: {
|
||
asia: {
|
||
title: '亚太地区',
|
||
cities: ['上海', '东京', '首尔', '新加坡'],
|
||
},
|
||
america: {
|
||
title: '美洲地区',
|
||
cities: ['纽约', '洛杉矶', '多伦多', '圣保罗'],
|
||
},
|
||
europe: {
|
||
title: '欧洲地区',
|
||
cities: ['伦敦', '法兰克福', '阿姆斯特丹', '巴黎'],
|
||
},
|
||
},
|
||
},
|
||
support: {
|
||
title: '技术支持',
|
||
subtitle: '专业的技术服务团队',
|
||
description: '7x24小时为您提供技术支持服务',
|
||
channels: {
|
||
ticket: {
|
||
title: '工单系统',
|
||
description: '提交技术问题,获得专业解答',
|
||
},
|
||
chat: {
|
||
title: '在线客服',
|
||
description: '实时沟通,快速解决问题',
|
||
},
|
||
phone: {
|
||
title: '电话支持',
|
||
description: '紧急情况下的直接联系方式',
|
||
},
|
||
},
|
||
},
|
||
},
|
||
seo: {
|
||
home: {
|
||
title: 'CyberCloud - 云端未来 | 专业云计算服务提供商',
|
||
description: '沉浸式云服务器体验,突破传统边界。提供高性能云服务器、云存储、网络安全等全方位云计算解决方案。7x24小时技术支持,全球数据中心覆盖。',
|
||
keywords: '云服务器,云计算,云存储,DDoS防护,CDN加速,数据中心,技术支持,CyberCloud'
|
||
},
|
||
products: {
|
||
title: '产品服务 - CyberCloud | 云服务器_云存储_网络服务',
|
||
description: 'CyberCloud提供强大的云计算解决方案:高性能云服务器、安全可靠云存储、专业网络服务。弹性计算、自动扩容、多种配置选择,满足企业各种需求。',
|
||
keywords: '云服务器,云存储,网络服务,弹性计算,自动扩容,负载均衡,CDN加速'
|
||
},
|
||
security: {
|
||
title: '安全防护 - CyberCloud | DDoS防护_云防火墙_SSL证书',
|
||
description: '全方位网络安全解决方案,保护您的数字资产。提供DDoS防护、下一代云防火墙、SSL证书等安全服务。智能识别威胁,自动防护,实时监控。',
|
||
keywords: 'DDoS防护,云防火墙,SSL证书,网络安全,威胁检测,安全防护,数据加密'
|
||
},
|
||
datacenter: {
|
||
title: '数据中心 - CyberCloud | 全球分布式基础设施',
|
||
description: '遍布全球的高可用数据中心网络,覆盖亚太、美洲、欧洲等地区。50+数据中心,10,000+服务器,100Tbps网络容量,99.99%可用性保障。',
|
||
keywords: '数据中心,全球节点,高可用,网络延迟,带宽,服务器托管,基础设施'
|
||
},
|
||
support: {
|
||
title: '技术支持 - CyberCloud | 7x24小时专业技术服务',
|
||
description: '专业技术服务团队,7x24小时为您提供技术支持。工单系统、在线客服、电话支持多渠道服务,快速响应,专业解答。',
|
||
keywords: '技术支持,在线客服,工单系统,电话支持,7x24小时,技术服务,客户服务'
|
||
},
|
||
console: {
|
||
title: '控制台 - CyberCloud | 云资源管理中心',
|
||
description: '统一管理您的云服务器、存储、网络等资源。直观的控制面板,实时监控,资源概览,操作简单,管理高效。',
|
||
keywords: '控制台,资源管理,云服务器管理,监控中心,操作面板,资源概览'
|
||
}
|
||
}
|
||
},
|
||
tw: {
|
||
nav: {
|
||
products: '產品服務',
|
||
security: '安全防護',
|
||
datacenter: '資料中心',
|
||
support: '技術支援',
|
||
console: '控制台',
|
||
},
|
||
hero: {
|
||
title: '雲端未來',
|
||
subtitle: '賽博空間',
|
||
description: '沉浸式雲端伺服器體驗,突破傳統邊界',
|
||
cta: '啟動連接',
|
||
voice: '語音查詢',
|
||
},
|
||
features: {
|
||
ddos: 'DDoS 防護',
|
||
realtime: '即時監控',
|
||
global: '全球節點',
|
||
},
|
||
footer: {
|
||
company: '領先的雲端運算服務提供商,為全球用戶提供安全可靠的雲端基礎設施。',
|
||
products: '產品服務',
|
||
support: '技術支援',
|
||
legal: '法律條款',
|
||
copyright: '© 2024 CyberCloud. 保留所有權利。',
|
||
},
|
||
pages: {
|
||
products: {
|
||
title: '產品服務',
|
||
subtitle: '強大的雲端運算解決方案',
|
||
description: '為您的業務提供全方位的雲端服務產品',
|
||
cloudServers: {
|
||
title: '雲端伺服器',
|
||
description: '高效能、可擴展的虛擬伺服器實例',
|
||
features: ['彈性運算', '自動擴容', '多種配置'],
|
||
},
|
||
storage: {
|
||
title: '雲端儲存',
|
||
description: '安全可靠的資料儲存解決方案',
|
||
features: ['高可用性', '資料備份', '無限擴展'],
|
||
},
|
||
networking: {
|
||
title: '網路服務',
|
||
description: '專業的網路連接和安全服務',
|
||
features: ['負載平衡', 'CDN加速', '安全防護'],
|
||
},
|
||
},
|
||
security: {
|
||
title: '安全防護',
|
||
subtitle: '全方位網路安全解決方案',
|
||
description: '保護您的數位資產免受網路威脅',
|
||
ddosProtection: {
|
||
title: 'DDoS 防護',
|
||
description: '即時檢測和防禦分散式拒絕服務攻擊',
|
||
features: ['智慧識別', '自動防護', '即時監控'],
|
||
},
|
||
firewall: {
|
||
title: '雲端防火牆',
|
||
description: '下一代網路安全防護系統',
|
||
features: ['深度封包檢測', '應用層防護', '威脅情報'],
|
||
},
|
||
ssl: {
|
||
title: 'SSL 憑證',
|
||
description: '保護資料傳輸安全的加密憑證',
|
||
features: ['免費憑證', '萬用字元支援', '自動續期'],
|
||
},
|
||
},
|
||
datacenter: {
|
||
title: '資料中心',
|
||
subtitle: '全球分散式基礎設施',
|
||
description: '遍布全球的高可用資料中心網路',
|
||
locations: {
|
||
asia: {
|
||
title: '亞太地區',
|
||
cities: ['上海', '東京', '首爾', '新加坡'],
|
||
},
|
||
america: {
|
||
title: '美洲地區',
|
||
cities: ['紐約', '洛杉磯', '多倫多', '聖保羅'],
|
||
},
|
||
europe: {
|
||
title: '歐洲地區',
|
||
cities: ['倫敦', '法蘭克福', '阿姆斯特丹', '巴黎'],
|
||
},
|
||
},
|
||
},
|
||
support: {
|
||
title: '技術支援',
|
||
subtitle: '專業的技術服務團隊',
|
||
description: '7x24小時為您提供技術支援服務',
|
||
channels: {
|
||
ticket: {
|
||
title: '工單系統',
|
||
description: '提交技術問題,獲得專業解答',
|
||
},
|
||
chat: {
|
||
title: '線上客服',
|
||
description: '即時溝通,快速解決問題',
|
||
},
|
||
phone: {
|
||
title: '電話支援',
|
||
description: '緊急情況下的直接聯絡方式',
|
||
},
|
||
},
|
||
},
|
||
},
|
||
seo: {
|
||
home: {
|
||
title: 'CyberCloud - 云端未来 | 专业云计算服务提供商',
|
||
description: '沉浸式云服务器体验,突破传统边界。提供高性能云服务器、云存储、网络安全等全方位云计算解决方案。7x24小时技术支持,全球数据中心覆盖。',
|
||
keywords: '云服务器,云计算,云存储,DDoS防护,CDN加速,数据中心,技术支持,CyberCloud'
|
||
},
|
||
products: {
|
||
title: '产品服务 - CyberCloud | 云服务器_云存储_网络服务',
|
||
description: 'CyberCloud提供强大的云计算解决方案:高性能云服务器、安全可靠云存储、专业网络服务。弹性计算、自动扩容、多种配置选择,满足企业各种需求。',
|
||
keywords: '云服务器,云存储,网络服务,弹性计算,自动扩容,负载均衡,CDN加速'
|
||
},
|
||
security: {
|
||
title: '安全防护 - CyberCloud | DDoS防护_云防火墙_SSL证书',
|
||
description: '全方位网络安全解决方案,保护您的数字资产。提供DDoS防护、下一代云防火墙、SSL证书等安全服务。智能识别威胁,自动防护,实时监控。',
|
||
keywords: 'DDoS防护,云防火墙,SSL证书,网络安全,威胁检测,安全防护,数据加密'
|
||
},
|
||
datacenter: {
|
||
title: '数据中心 - CyberCloud | 全球分布式基础设施',
|
||
description: '遍布全球的高可用数据中心网络,覆盖亚太、美洲、欧洲等地区。50+数据中心,10,000+服务器,100Tbps网络容量,99.99%可用性保障。',
|
||
keywords: '数据中心,全球节点,高可用,网络延迟,带宽,服务器托管,基础设施'
|
||
},
|
||
support: {
|
||
title: '技术支持 - CyberCloud | 7x24小时专业技术服务',
|
||
description: '专业技术服务团队,7x24小时为您提供技术支持。工单系统、在线客服、电话支持多渠道服务,快速响应,专业解答。',
|
||
keywords: '技术支持,在线客服,工单系统,电话支持,7x24小时,技术服务,客户服务'
|
||
},
|
||
console: {
|
||
title: '控制台 - CyberCloud | 云资源管理中心',
|
||
description: '统一管理您的云服务器、存储、网络等资源。直观的控制面板,实时监控,资源概览,操作简单,管理高效。',
|
||
keywords: '控制台,资源管理,云服务器管理,监控中心,操作面板,资源概览'
|
||
}
|
||
}
|
||
},
|
||
en: {
|
||
nav: {
|
||
products: 'Products',
|
||
security: 'Security',
|
||
datacenter: 'Data Center',
|
||
support: 'Support',
|
||
console: 'Console',
|
||
},
|
||
hero: {
|
||
title: 'Cloud Future',
|
||
subtitle: 'Cyberspace',
|
||
description: 'Immersive cloud server experience beyond boundaries',
|
||
cta: 'Initialize',
|
||
voice: 'Voice Query',
|
||
},
|
||
features: {
|
||
ddos: 'DDoS Protection',
|
||
realtime: 'Real-time Monitor',
|
||
global: 'Global Nodes',
|
||
},
|
||
footer: {
|
||
company: 'Leading cloud computing service provider, offering secure and reliable cloud infrastructure for global users.',
|
||
products: 'Products',
|
||
support: 'Support',
|
||
legal: 'Legal',
|
||
copyright: '© 2024 CyberCloud. All rights reserved.',
|
||
},
|
||
pages: {
|
||
products: {
|
||
title: 'Products',
|
||
subtitle: 'Powerful Cloud Computing Solutions',
|
||
description: 'Comprehensive cloud service products for your business',
|
||
cloudServers: {
|
||
title: 'Cloud Servers',
|
||
description: 'High-performance, scalable virtual server instances',
|
||
features: ['Elastic Computing', 'Auto Scaling', 'Multiple Configurations']
|
||
},
|
||
storage: {
|
||
title: 'Cloud Storage',
|
||
description: 'Secure and reliable data storage solutions',
|
||
features: ['High Availability', 'Data Backup', 'Unlimited Scaling']
|
||
},
|
||
networking: {
|
||
title: 'Network Services',
|
||
description: 'Professional network connectivity and security services',
|
||
features: ['Load Balancing', 'CDN Acceleration', 'Security Protection']
|
||
}
|
||
},
|
||
security: {
|
||
title: 'Security',
|
||
subtitle: 'Comprehensive Network Security Solutions',
|
||
description: 'Protect your digital assets from cyber threats',
|
||
ddosProtection: {
|
||
title: 'DDoS Protection',
|
||
description: 'Real-time detection and defense against distributed denial-of-service attacks',
|
||
features: ['Smart Detection', 'Auto Protection', 'Real-time Monitoring']
|
||
},
|
||
firewall: {
|
||
title: 'Cloud Firewall',
|
||
description: 'Next-generation network security protection system',
|
||
features: ['Deep Packet Inspection', 'Application Layer Protection', 'Threat Intelligence']
|
||
},
|
||
ssl: {
|
||
title: 'SSL Certificates',
|
||
description: 'Encryption certificates to protect data transmission security',
|
||
features: ['Free Certificates', 'Wildcard Support', 'Auto Renewal']
|
||
}
|
||
},
|
||
datacenter: {
|
||
title: 'Data Center',
|
||
subtitle: 'Global Distributed Infrastructure',
|
||
description: 'High-availability data center network spanning the globe',
|
||
locations: {
|
||
asia: {
|
||
title: 'Asia Pacific',
|
||
cities: ['Shanghai', 'Tokyo', 'Seoul', 'Singapore']
|
||
},
|
||
america: {
|
||
title: 'Americas',
|
||
cities: ['New York', 'Los Angeles', 'Toronto', 'São Paulo']
|
||
},
|
||
europe: {
|
||
title: 'Europe',
|
||
cities: ['London', 'Frankfurt', 'Amsterdam', 'Paris']
|
||
}
|
||
}
|
||
},
|
||
support: {
|
||
title: 'Support',
|
||
subtitle: 'Professional Technical Service Team',
|
||
description: '7x24 hours technical support service for you',
|
||
channels: {
|
||
ticket: {
|
||
title: 'Ticket System',
|
||
description: 'Submit technical issues and get professional answers'
|
||
},
|
||
chat: {
|
||
title: 'Live Chat',
|
||
description: 'Real-time communication for quick problem resolution'
|
||
},
|
||
phone: {
|
||
title: 'Phone Support',
|
||
description: 'Direct contact for emergency situations'
|
||
}
|
||
}
|
||
}
|
||
},
|
||
seo: {
|
||
home: {
|
||
title: 'CyberCloud - Cloud Future | Professional Cloud Computing Service Provider',
|
||
description: 'Immersive cloud server experience beyond boundaries. Providing high-performance cloud servers, cloud storage, network security and comprehensive cloud computing solutions. 7x24 technical support, global data center coverage.',
|
||
keywords: 'cloud server,cloud computing,cloud storage,DDoS protection,CDN acceleration,data center,technical support,CyberCloud'
|
||
},
|
||
products: {
|
||
title: 'Products - CyberCloud | Cloud Servers_Cloud Storage_Network Services',
|
||
description: 'CyberCloud provides powerful cloud computing solutions: high-performance cloud servers, secure and reliable cloud storage, professional network services. Elastic computing, auto scaling, multiple configuration options to meet various enterprise needs.',
|
||
keywords: 'cloud servers,cloud storage,network services,elastic computing,auto scaling,load balancing,CDN acceleration'
|
||
},
|
||
security: {
|
||
title: 'Security - CyberCloud | DDoS Protection_Cloud Firewall_SSL Certificates',
|
||
description: 'Comprehensive network security solutions to protect your digital assets. Providing DDoS protection, next-generation cloud firewall, SSL certificates and other security services. Smart threat detection, automatic protection, real-time monitoring.',
|
||
keywords: 'DDoS protection,cloud firewall,SSL certificates,network security,threat detection,security protection,data encryption'
|
||
},
|
||
datacenter: {
|
||
title: 'Data Center - CyberCloud | Global Distributed Infrastructure',
|
||
description: 'High-availability data center network spanning the globe, covering Asia Pacific, Americas, Europe and other regions. 50+ data centers, 10,000+ servers, 100Tbps network capacity, 99.99% availability guarantee.',
|
||
keywords: 'data center,global nodes,high availability,network latency,bandwidth,server hosting,infrastructure'
|
||
},
|
||
support: {
|
||
title: 'Support - CyberCloud | 7x24 Professional Technical Service',
|
||
description: 'Professional technical service team providing 7x24 technical support. Multi-channel services including ticket system, live chat, phone support with quick response and professional answers.',
|
||
keywords: 'technical support,live chat,ticket system,phone support,7x24 hours,technical service,customer service'
|
||
},
|
||
console: {
|
||
title: 'Console - CyberCloud | Cloud Resource Management Center',
|
||
description: 'Unified management of your cloud servers, storage, network and other resources. Intuitive control panel, real-time monitoring, resource overview, simple operation, efficient management.',
|
||
keywords: 'console,resource management,cloud server management,monitoring center,control panel,resource overview'
|
||
}
|
||
}
|
||
}}
|
||
|
||
export type Language = keyof typeof languages;
|
||
export type LanguageContent = typeof languages.zh;
|
||
|
||
export function getLanguageFromPath(pathname: string): Language {
|
||
const langMatch = pathname.match(/^\/([a-z]{2})/);
|
||
const lang = langMatch?.[1] as Language;
|
||
return lang && lang in languages ? lang : 'zh';
|
||
}
|
||
|
||
export function getTranslations(lang: Language): LanguageContent {
|
||
return languages[lang] || languages.zh;
|
||
}
|
||
|
||
export function getLanguageDisplayName(lang: Language): string {
|
||
const displayNames = {
|
||
zh: '简体中文',
|
||
tw: '繁體中文',
|
||
en: 'English',
|
||
};
|
||
return displayNames[lang] || displayNames.zh;
|
||
}
|