How to fix ¨I18n Error: Missing interpolation value "count" for "{{ count }}¨ in Debut theme?

Hi everyone,

We have an issue on our product page for the error message when more items are added than in stock. In the store language section, we tried to use the {{ count }} variable to show the max stock available. However, we keep getting this ´missing interpolation value´ error. I’ve seen quite some similar issues, but it seems each of them has its own problems…

Can someone share the light on how we can fix this issue?

Many thanks,

Siemon

Hi @Siemon-Schilder ,

If it is a language variable related error, you can try this code:

{{ ‘code language’ | t: count: product.selected_or_first_available_variant.inventory_quantity }}

Ex:

{{ ‘products.product.available’ | t: count: product.selected_or_first_available_variant.inventory_quantity }}

Just you add value to it, it will display fine: ‘count:value’

Hope it helps!