Skip to main content
View Categories

Translate Shortcode

< 1 min read

The [homerunner-translate] shortcode is used to display translated content based on the current language selection.

Usage #

You can specify the object type and translation key directly:

[homerunner-translate type="property" key="description"]

Parameters #

ParameterDefaultDescription
typeObject type for translation (e.g., ‘property’, ‘amenity’)
keyTranslation key to look up
fallbackFallback text to display if translation is not found

Examples #

Translation #

[homerunner-translate type="property" key="description" fallback="No description available"]

Note: The shortcode will automatically use the current language context from the website’s language settings. If a translation is not available for the current language, it will fall back to the default language or the specified fallback text.