Skip to content

Add support for localized product names in CSV import/export#118

Open
rizkengin wants to merge 1 commit intoVirtoCommerce:devfrom
rizkengin:dev-add-localized-name-to-csv
Open

Add support for localized product names in CSV import/export#118
rizkengin wants to merge 1 commit intoVirtoCommerce:devfrom
rizkengin:dev-add-localized-name-to-csv

Conversation

@rizkengin
Copy link
Contributor

Add support for localized product names in CSV import/export

Summary

This PR enhances the vc-module-catalog-csv-export-import module to support Virtocommerce’s newly introduced LocalizedName feature for products. Previously, only the default Name was handled during CSV import/export.

Changes

  • Introduced a new CsvProduct.LocalizedNameString property that serializes/deserializes the base Name and its localized variants.
  • Updated the CSV mapping to use LocalizedNameString instead of Name.
  • Modified test CSV files to reflect the new field format.

Format Example

Shirt;en__Shirt;fr__Chemise;ar__قميص

Benefits

  • Enables bulk import/export of multi-language product names.
  • Preserves backward compatibility—falls back to Name when no localized values exist.

- Add `LocalizedNameString` property for handling localized names in `CsvProduct`.
- Migrate string comparison by replacing `EqualsInvariant` with `EqualsIgnoreCase`.
- Adjust test data and mappings to use `LocalizedNameString`.
@vc-ci
Copy link
Contributor

vc-ci commented Jun 8, 2025

Reveiw task created: https://virtocommerce.atlassian.net/browse/VCST-3453

@OlegoO OlegoO requested a review from artem-dudarev June 10, 2025 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants