Skip to content

Fix the translation mechanism for the platform dropdown #61

@evenmatencio

Description

@evenmatencio

This refers to the translation feature brought in through PR #59.

The translation of the options label fails. Translating the label raises a KeyError when calling 'label': TRANSLATIONS_DICT[k][language], 'value': v} for v, k in list(data_dict.providersTypes.items()). The key that is not recognized is the translation of 'Personal laptop', 'Desktop computer' or 'Local server'.

However, printing 'label': TRANSLATIONS_DICT[k][language], 'value': v} for v, k in list(data_dict.providersTypes.items()) does not raise the error, which is strange.

WARNING: this may happen for the translation of other dropdown options.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions