Add localization for active players and most popular labels in English and Chinese

This commit is contained in:
2025-10-05 09:18:04 +08:00
parent f9c0f14247
commit 836c55f526
3 changed files with 8 additions and 4 deletions

View File

@@ -255,7 +255,7 @@ function App() {
padding: '0.5rem 0', padding: '0.5rem 0',
borderBottom: '1px solid var(--border-color)' borderBottom: '1px solid var(--border-color)'
}}> }}>
<span style={{ color: 'var(--text-secondary)' }}>Active Players</span> <span style={{ color: 'var(--text-secondary)' }}>{t('activity.activePlayers')}</span>
<span style={{ <span style={{
color: 'var(--accent-primary)', color: 'var(--accent-primary)',
fontWeight: 'bold' fontWeight: 'bold'
@@ -269,7 +269,7 @@ function App() {
alignItems: 'center', alignItems: 'center',
padding: '0.5rem 0' padding: '0.5rem 0'
}}> }}>
<span style={{ color: 'var(--text-secondary)' }}>Most Popular</span> <span style={{ color: 'var(--text-secondary)' }}>{t('activity.mostPopular')}</span>
<span style={{ <span style={{
color: 'var(--text-primary)', color: 'var(--text-primary)',
fontWeight: 'bold', fontWeight: 'bold',

View File

@@ -61,7 +61,9 @@
"serverInfo": "Server Info", "serverInfo": "Server Info",
"serverStatus": "Status: Online ✓", "serverStatus": "Status: Online ✓",
"currentMap": "Map: de_dust2", "currentMap": "Map: de_dust2",
"nextRestart": "Restart: 6h 30m" "nextRestart": "Restart: 6h 30m",
"activePlayers": "Active Players",
"mostPopular": "Most Popular"
}, },
"footer": { "footer": {
"community": "🎯 CS Community", "community": "🎯 CS Community",

View File

@@ -60,7 +60,9 @@
"serverInfo": "服务器信息", "serverInfo": "服务器信息",
"serverStatus": "状态:在线 ✓", "serverStatus": "状态:在线 ✓",
"currentMap": "地图de_dust2", "currentMap": "地图de_dust2",
"nextRestart": "重启6小时30分钟" "nextRestart": "重启6小时30分钟",
"activePlayers": "活跃玩家",
"mostPopular": "最热门"
}, },
"footer": { "footer": {
"community": "🎯 CS 社区", "community": "🎯 CS 社区",