fix simulation reporting and research resilience

This commit is contained in:
2026-09-28 15:43:23 +08:00
parent 23297be2d7
commit a428214c53
25 changed files with 1488 additions and 244 deletions
+7 -4
View File
@@ -72,10 +72,13 @@ const { t, tm } = useI18n()
// canonical English enum strings while we render localized labels.
function _metricLabel(key) {
const keyMap = { stability: 'report.metricLabels.stability', prosperity: 'report.metricLabels.prosperity',
trust: 'report.metricLabels.trust', freedom: 'report.metricLabels.freedom',
conflict: 'report.metricLabels.conflict', brand_sentiment: 'report.metricLabels.brandSentiment',
purchase_intent: 'report.metricLabels.purchaseIntent', word_of_mouth: 'report.metricLabels.wordOfMouth',
churn_risk: 'report.metricLabels.churnRisk', adoption_rate: 'report.metricLabels.adoptionRate' }
trust: 'report.metricLabels.trust', freedom: 'report.metricLabels.freedom',
conflict: 'report.metricLabels.conflict', brand_sentiment: 'report.metricLabels.brand_sentiment',
purchase_intent: 'report.metricLabels.purchase_intent', word_of_mouth: 'report.metricLabels.word_of_mouth',
churn_risk: 'report.metricLabels.churn_risk', adoption_rate: 'report.metricLabels.adoption_rate',
information_spread: 'report.metricLabels.information_spread',
echo_chamber_index: 'report.metricLabels.echo_chamber_index',
rumor_distortion: 'report.metricLabels.rumor_distortion' }
const i18nKey = keyMap[key]
return i18nKey ? t(i18nKey) : key
}