Create custom language switcher


#1

Hello developer community, i want to create custom language switcher where name of the current page language display instead of globe icon.Is any way to do that(For e.g using JavaScript).


#3

Hey @nutan, I've seen folks use HubL for a solution like this, or use a JS way to swap out the extension (eg. /en /de /es), but there are many ways to do this kind of thing. You actually might have more luck in the HubSpot Design Forum which you can find here: https://community.hubspot.com/t5/Content-Design-Questions/bd-p/designers_support.

Here's a very similar topic to your own question: https://community.hubspot.com/t5/Content-Design-Questions/How-to-create-a-custom-language-switcher-in-HubL/td-p/199452