Change inventory status for "continue to sell when out of stock" product to "pre-order"

Change inventory status for "continue to sell when out of stock" product to "pre-order"

In the {% product-inventory.liquid %} block, replace this section:
Idea
else
if inventory_policy == 'continue'
assign status = 'in_stock'
assign translation_key = 'content.inventory_in_stock'
else
With:
Idea
else
if inventory_policy == 'continue'
assign status = 'pre_order'
assign translation_key = 'content.inventory_pre_order'
else

Add the icon color to {% stylesheet %}:
Idea
.product-inventory__icon-pre_order {
color: var(--color-preorder, #b8860b);
}

In locales/en.default.json, find the "content" (Line 193) object and add
Idea
"inventory_pre_order": "Pre-order"
find the "product_custom_property_character_count": "{{ used_chars }}/{{ max_chars }} characters used",
add below:
Idea"inventory_preorder": "Pre Order"