You can now use the new unit_price_with_measurement
filter to display unit prices in the customer's language, enhancing user experience and simplifying theme code.
This is a companion discussion topic for the original entry at https://shopify.dev/changelog/new-liquid-filter-for-displaying-unit-prices