Skip to content

[i18n] Incorrect usage of translation function #593

Description

@fbausch

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,
        };

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpending releasepart of the next release version

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions