Add internationalization support with i18next and language selector component
This commit is contained in:
74
src/locales/en.json
Normal file
74
src/locales/en.json
Normal file
@@ -0,0 +1,74 @@
|
||||
{
|
||||
"nav": {
|
||||
"logo": "CS Community",
|
||||
"servers": "Servers",
|
||||
"blog": "Blog",
|
||||
"git": "Git",
|
||||
"forum": "Forum",
|
||||
"joinNow": "Join Now"
|
||||
},
|
||||
"hero": {
|
||||
"title": "Welcome to the Ultimate",
|
||||
"titleHighlight": "Counter-Strike",
|
||||
"titleEnd": "Community",
|
||||
"subtitle": "Join thousands of players in competitive matches, casual games, and community events. Experience the best gaming community with dedicated servers and passionate players.",
|
||||
"startPlaying": "🎮 Start Playing",
|
||||
"viewStats": "📊 View Stats"
|
||||
},
|
||||
"stats": {
|
||||
"onlinePlayers": "Online Players",
|
||||
"activeServers": "Active Servers",
|
||||
"hoursPlayed": "Hours Played",
|
||||
"liveMatches": "Live Matches"
|
||||
},
|
||||
"features": {
|
||||
"title": "Community Features",
|
||||
"serverBrowser": {
|
||||
"title": "Server Browser",
|
||||
"description": "Find and join the best Counter-Strike servers. Browse by game mode, region, and player count."
|
||||
},
|
||||
"blog": {
|
||||
"title": "Community Blog",
|
||||
"description": "Stay updated with the latest news, tournament results, and community announcements."
|
||||
},
|
||||
"git": {
|
||||
"title": "Open Source",
|
||||
"description": "Contribute to our open-source projects. Custom maps, configs, and community tools."
|
||||
},
|
||||
"forum": {
|
||||
"title": "Discussion Forum",
|
||||
"description": "Join discussions about strategies, share your experiences, and connect with fellow gamers."
|
||||
},
|
||||
"browseServers": "Browse Servers",
|
||||
"readBlog": "Read Blog",
|
||||
"viewGitHub": "View GitHub",
|
||||
"joinForum": "Join Forum"
|
||||
},
|
||||
"activity": {
|
||||
"title": "Recent Activity",
|
||||
"topPlayers": "🏆 Top Players",
|
||||
"quickStats": "🎯 Quick Stats",
|
||||
"avgMatchTime": "Avg Match Time: 12m 34s",
|
||||
"mostPopularMap": "Most Popular Map: Dust2",
|
||||
"peakHours": "Peak Hours: 8-11 PM"
|
||||
},
|
||||
"footer": {
|
||||
"community": "🎯 CS Community",
|
||||
"communityDesc": "The ultimate destination for Counter-Strike enthusiasts worldwide.",
|
||||
"quickLinks": "Quick Links",
|
||||
"communityLinks": "Community",
|
||||
"legal": "Legal",
|
||||
"discord": "Discord",
|
||||
"steamGroup": "Steam Group",
|
||||
"tournaments": "Tournaments",
|
||||
"support": "Support",
|
||||
"privacyPolicy": "Privacy Policy",
|
||||
"termsOfService": "Terms of Service",
|
||||
"contact": "Contact",
|
||||
"copyright": "© 2025 CS Community. All rights reserved. | Made with ❤️ for gamers"
|
||||
},
|
||||
"languages": {
|
||||
"english": "English",
|
||||
"chinese": "中文"
|
||||
}
|
||||
}
|
||||
74
src/locales/zh.json
Normal file
74
src/locales/zh.json
Normal file
@@ -0,0 +1,74 @@
|
||||
{
|
||||
"nav": {
|
||||
"logo": "CS 社区",
|
||||
"servers": "服务器",
|
||||
"blog": "博客",
|
||||
"git": "开源",
|
||||
"forum": "论坛",
|
||||
"joinNow": "立即加入"
|
||||
},
|
||||
"hero": {
|
||||
"title": "欢迎来到终极",
|
||||
"titleHighlight": "反恐精英",
|
||||
"titleEnd": "社区",
|
||||
"subtitle": "加入数千名玩家参与竞技比赛、休闲游戏和社区活动。在专用服务器和热情玩家中体验最佳游戏社区。",
|
||||
"startPlaying": "🎮 开始游戏",
|
||||
"viewStats": "📊 查看统计"
|
||||
},
|
||||
"stats": {
|
||||
"onlinePlayers": "在线玩家",
|
||||
"activeServers": "活跃服务器",
|
||||
"hoursPlayed": "游戏时长",
|
||||
"liveMatches": "实时比赛"
|
||||
},
|
||||
"features": {
|
||||
"title": "社区功能",
|
||||
"serverBrowser": {
|
||||
"title": "服务器浏览器",
|
||||
"description": "查找并加入最佳反恐精英服务器。按游戏模式、地区和玩家数量浏览。"
|
||||
},
|
||||
"blog": {
|
||||
"title": "社区博客",
|
||||
"description": "及时了解最新新闻、锦标赛结果和社区公告。"
|
||||
},
|
||||
"git": {
|
||||
"title": "开源项目",
|
||||
"description": "为我们的开源项目做出贡献。自定义地图、配置和社区工具。"
|
||||
},
|
||||
"forum": {
|
||||
"title": "讨论论坛",
|
||||
"description": "加入关于策略的讨论,分享您的经验,与其他玩家交流。"
|
||||
},
|
||||
"browseServers": "浏览服务器",
|
||||
"readBlog": "阅读博客",
|
||||
"viewGitHub": "查看 GitHub",
|
||||
"joinForum": "加入论坛"
|
||||
},
|
||||
"activity": {
|
||||
"title": "最近活动",
|
||||
"topPlayers": "🏆 顶级玩家",
|
||||
"quickStats": "🎯 快速统计",
|
||||
"avgMatchTime": "平均比赛时长:12分34秒",
|
||||
"mostPopularMap": "最受欢迎地图:Dust2",
|
||||
"peakHours": "高峰时段:晚上8-11点"
|
||||
},
|
||||
"footer": {
|
||||
"community": "🎯 CS 社区",
|
||||
"communityDesc": "反恐精英爱好者的终极目的地。",
|
||||
"quickLinks": "快速链接",
|
||||
"communityLinks": "社区",
|
||||
"legal": "法律",
|
||||
"discord": "Discord",
|
||||
"steamGroup": "Steam 群组",
|
||||
"tournaments": "锦标赛",
|
||||
"support": "支持",
|
||||
"privacyPolicy": "隐私政策",
|
||||
"termsOfService": "服务条款",
|
||||
"contact": "联系我们",
|
||||
"copyright": "© 2025 CS 社区。保留所有权利。| 用 ❤️ 为玩家打造"
|
||||
},
|
||||
"languages": {
|
||||
"english": "English",
|
||||
"chinese": "中文"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user