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 #
Parameter | Default | Description |
type | Object type for translation (e.g., ‘property’, ‘amenity’) | |
key | Translation key to look up | |
fallback | Fallback 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.