The handleize filter returns the value in the store's default language instead of the currently active language

Short description of issue

| handleize returns value in default language instead of active locale

Reproduction steps

The store default language is German. Select a non default language, i’m using English for this test.

The code below is used in the menu loop.

{%- liquid

# Outputs: Our spring bestsellers 
echo childlink.title | json

# Outputs: unsere-fruhlings-bestseller 
echo childlink.title | handleize

# Current workaround outputs: our-spring-bestsellers
echo childlink.title | downcase | handleize 

-%}

Additional info

The app Translate & adapt is also active for translations.

What type of topic is this

Bug report

Upload screenshot(s) of issue

Hi @Roy_CIA

Thanks for flagging this (and apologies for late response) - it does look like this filter doesn’t support translations, I’m digging into how we can create support for that now. Will report back here asap!

1 Like