Skip to content

Translation: Missing translations for multi-shipping consignment items allocated text #2280

Open
@bdawson-ssapopka

Description

@bdawson-ssapopka

There are no translations for the "# item(s) allocated" text inside of a multi-shipping consignment list item.

File:
packages/core/src/app/shipping/ConsignmentLineItem.tsx

Line:
98

Content:
<h3>{itemsCount > 1 ? `${itemsCount} items` : `${itemsCount} item`} allocated </h3>

Potential Solution:
Refactor the <h3> to remove hard-coded string interpolation with English words and ternary operations. Allow for <TranslatedString> components to be used to wrap the words 'item', 'items' and 'allocated' before joining them together into the final message. Add multiple language entries to the translation .json files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions