The file visualization.js contains an incorrect usage of the t() function for loading translated UI strings. Therefore, it is not possible to translate the strings that are supposed to be displayed to users.
The code should roughly look like this, instead:
return {
label: mode === 'aggregate' ? t('analytics', '{label} Aggregation', { label: dataset.label}) : t('analytics', '{label} Disaggregation', { label: dataset.label }),
backgroundColor: dataset.backgroundColor,
borderColor: dataset.borderColor,
borderDash: [5, 5],
type: 'line',
yAxisID: 'secondary',
data: data,
hidden: hidden,
analyticsFunction: mode,
analyticsFunctionSourceIndex: sourceIndex,
};
The file
visualization.jscontains an incorrect usage of thet()function for loading translated UI strings. Therefore, it is not possible to translate the strings that are supposed to be displayed to users.AggregationandDisaggregationare not detected and offered for translation in Transifex.The code should roughly look like this, instead: