---
title: "Action: bricks/builder/switch_locale"
description: "Runs when Bricks switches the builder locale."
canonical: "https://academy.bricksbuilder.io/developer/hooks/actions/bricks-builder-switch_locale/"
markdownUrl: "https://academy.bricksbuilder.io/developer/hooks/actions/bricks-builder-switch_locale.md"
pageType: "article"
section: "developer"
category: "hooks"
lastmod: "2026-05-28T10:23:46.000Z"
---
Runs when Bricks switches the builder locale. Use it to synchronize integration state when the builder language changes.

## Parameters

- `$locale` (string): The locale Bricks is switching the builder to.

## Example usage

```php
add_action( 'bricks/builder/switch_locale', function( $locale ) {
    // Switch integration language context to match the builder.
}, 10, 1 );
```