Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[localize-tools] Validation of existing translation should not fail on changed expression #4502

@augustjk

Description

@augustjk

Which package(s) are affected?

Localize (@lit/localize)

Description

Reported by @kensternberg-authentik in #4489

https://lit.dev/docs/localization/overview/#message-ids states the rules for message id generation and how they're used to deduplicate translation targets. This can be interpreted that changing the code inside expressions in your source code should not fail on future extract and build calls but there seems to exist some validation that compares the value of equiv-text attribute.

Reproduction

See linked discussion above for sample and error message.

Workaround

Manually update the xliff to match the equiv-text

Is this a regression?

No or unsure. This never worked, or I haven't tried before.

Affected versions

@lit/[email protected]

Browser/OS/Node environment

n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions