Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

Taking your approach on designing things actually makes it fun, more natural, and overall easier.

— Dominik, Developer

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 →