PHPackages                             brightnucleus/localization - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Localization &amp; i18n](/categories/localization)
4. /
5. brightnucleus/localization

ActiveLibrary[Localization &amp; i18n](/categories/localization)

brightnucleus/localization
==========================

WordPress localization for Bright Nucleus components.

v0.2.0(10mo ago)016.5k↓42.9%1MITPHPCI passing

Since Aug 15Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/brightnucleus/localization)[ Packagist](https://packagist.org/packages/brightnucleus/localization)[ RSS](/packages/brightnucleus-localization/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (7)Versions (3)Used By (1)

Bright Nucleus Localization
===========================

[](#bright-nucleus-localization)

[![Latest Stable Version](https://camo.githubusercontent.com/85cef4b4c30747eb598fa7058b548e1b3d53b4e1737018d6fece1b5ef7bf12d9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6272696768746e75636c6575732f6c6f63616c697a6174696f6e2e737667)](https://packagist.org/packages/brightnucleus/localization)[![Total Downloads](https://camo.githubusercontent.com/48f35488450c4a7ecdbb2e97946ab78f922e6829f90ef72ca75d8511e1a996ae/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6272696768746e75636c6575732f6c6f63616c697a6174696f6e2e737667)](https://packagist.org/packages/brightnucleus/localization)[![Latest Unstable Version](https://camo.githubusercontent.com/8e01e34e8aa0f8248a903d63e51807d927ae9b2de34e827859f5f33bb2317fa3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f767072652f6272696768746e75636c6575732f6c6f63616c697a6174696f6e2e737667)](https://packagist.org/packages/brightnucleus/localization)[![License](https://camo.githubusercontent.com/bca29a3c24281ebf9668e1a4975bb8b4ac8b155f737dd2b93ca6afd990065666/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6272696768746e75636c6575732f6c6f63616c697a6174696f6e2e737667)](https://packagist.org/packages/brightnucleus/localization)

WordPress localization for Bright Nucleus components.

Table Of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Basic Usage](#basic-usage)
- [Filters](#filters)
- [Contributing](#contributing)
- [License](#license)

Installation
------------

[](#installation)

The best way to use this package is through Composer:

```
composer require brightnucleus/localization
```

Basic Usage
-----------

[](#basic-usage)

This package provides a trait to be used within Bright Nucleus components to load the translation files (compiled `*.mo`-files) for a given locale.

To use the trait, import it into your class, and call the `loadLocalization( $domain, $path )` method.

**Example:**

```
