Blog

Check, if an entry has been translated

Statamic

To check if an entry has been translated in Statamic, you can use the following code:

{{ if {locales:count self="false"} > 0 }}
	Content has been translated
{{ /if }}

In this code, locales:count returns the number of translations. By using self="false", the currently displayed version is ignored. This value needs to be greater than 0, indicating that at least one additional translation is available.