Skip to content

[i18n] better error message for .i18nrc.json untracked labels #59427

Open

Description

when a file contains i18n labels but is not tracked under any paths in the .i18nrc.json files i18n_check throws the following error:

Error: Untracked file contains i18n label (<translation_id>)

This error is not descriptive enough and might be even more confusing if seen in the CI failure messages. example: https://github.com/elastic/kibana/pull/56675/checks?check_run_id=485968733

A better error message might be:

Error: File contains i18n label untracked in the `.i18nrc.json` file. Please update the `.i18nrc.json` paths with the file path under the correct namespace. (xpack.monitoring.metrics.es.searchLatencyLabel).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Project:i18nTeam:CoreCore services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etcenhancementNew value added to drive a business resultimpact:lowAddressing this issue will have a low level of impact on the quality/strength of our product.loe:mediumMedium Level of Effort

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions