Locales:Count Tag

Get the number of localizations.

This tag shares everything from the locales tag, except that instead of looping over the results, it will just tell you how many there are.

{{ locales:count }}
{{ locales:count self="false" }}
{{-- Using Antlers Blade Components --}}
<s:locales:count />
<s:locales:count self="false" />
 
{{-- Using Fluent Tags --}}
{{ Statamic::tag('locales:count') }}
{{ Statamic::tag('locales:count')->self(false) }}
3
2
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →