I'm trying to translate filter slugs based on the current language. I can successfully translate taxonomy slugs using
For example: localhost/products/oil_type/ gets translated to: localhost/it/prodotti/typo_di_olio/
The problem is translating the filter slug localhost/products/oil_type/mineral
if I translate the slug through WPML > Taxonomy Translations the filter will not work as it is set to the english name string along with many other functions. I have to find a way to translate it back to english for the filter query.
The purpose of doing this is SEO.
What would be the best way to solve this?
I hope I've provided enough insight on the problem, if not please let me know and I will try to explain in greater detail.