I am trying to make my forum fully compatible with multiple languages, but I am not sure how to translate the custom text elements I have added to the UI.
Left Sidebar: I added several custom links (e.g., “Küresel Liderlik Tablosu”, “RSS Beslemesi”) using the “Edit Custom Section” feature.
Top Navigation: I added custom menu items (e.g., “Gündem”, “Etkinlikler”) by inserting code into the <head> section via Themes.
Currently, all of these are hardcoded in one language. What is the best practice for localizing these specific additions? Is there a way to use translation keys so they automatically adapt to the user’s selected interface language?
Any guidance or examples would be greatly appreciated. Thank you!
Theme components support localization. There is a short guide about it here:
I usually prefer to look at examples. There are lots of theme components in Customization > Theme component. I think Topic Status Filter is a quite simple one. Custom Top Navigation Links might be a helpful example too. It’s closer to what you want to do, but it doesn’t support localizable links, because combining that with them being configurable is difficult.
I don’t know if something similar is possible directly in the <head> section.
Thanks for the info! I actually tried the Custom Top Navigation Links component, but it caused that section to not show up at all on mobile. That’s why I ended up using <head> injection instead.