# Bootstrap

> Registers the yii.bootstrap6 message source when the application does not configure it.

[API reference](/docs/api/index.md) › [Bootstrap 6](/docs/extensions/bootstrap6/reference/index.md) › Bootstrap

| final class | `yii2\extensions\bootstrap6\Bootstrap` |
| --- | --- |
| Implements | [`yii\base\BootstrapInterface`](/docs/api/yii/base/bootstrapinterface/index.md) |
| Source | [`src/Bootstrap.php`](https://github.com/yii2-extensions/bootstrap6/blob/main/src/Bootstrap.php#L18) |

Registers the `yii.bootstrap6` message source when the application does not configure it.

Composer runs this class automatically through the `extra.bootstrap` entry of the package, so the widget labels are
translated without additional configuration.

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`bootstrap()`](#method-bootstrap) |  | `Bootstrap` |

## Constants

| Constant | Value | Description | Defined by |
| --- | --- | --- | --- |
| <span id="const-TRANSLATION_CATEGORY"></span>`TRANSLATION_CATEGORY` | `'yii.bootstrap6'` | Message category of the widget labels. | `Bootstrap` |

## Method details

### bootstrap() <span id="method-bootstrap"></span>

```php
public function bootstrap(yii\base\Application $app): void
```

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$app` | [`yii\base\Application`](/docs/api/yii/base/application/index.md) | Application being bootstrapped. |