PHPackages                             chinleung/verbose-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. chinleung/verbose-localization

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

chinleung/verbose-localization
==============================

A package to allow your class to support verbose localization.

v1.0.0(6y ago)08.0k1MITPHPPHP ^7.1

Since Aug 6Pushed 6y ago1 watchersCompare

[ Source](https://github.com/chinleung/verbose-localization)[ Packagist](https://packagist.org/packages/chinleung/verbose-localization)[ Docs](https://github.com/chinleung/verbose-localization)[ RSS](/packages/chinleung-verbose-localization/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (1)

Verbose Localization
====================

[](#verbose-localization)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f4eb54ba44978f742c056e18a5f0449882c791655f6addebc9b04d7ac751c9b6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6368696e6c65756e672f766572626f73652d6c6f63616c697a6174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/chinleung/verbose-localization)[![Build Status](https://camo.githubusercontent.com/d50a31bb31665e53c47867ed67d9784398a207eda1acc3415d49bdd6162f4813/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6368696e6c65756e672f766572626f73652d6c6f63616c697a6174696f6e2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/chinleung/verbose-localization)[![Quality Score](https://camo.githubusercontent.com/7f4f56a0f173649f4668b5d6fa9ac4d63240390676c94e3ef83922f7e2b86e08/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6368696e6c65756e672f766572626f73652d6c6f63616c697a6174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/chinleung/verbose-localization)[![Total Downloads](https://camo.githubusercontent.com/43c5c381478570498d1ea5bf46e6683a63710ed4e00b28deb74c24e519a6d18d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6368696e6c65756e672f766572626f73652d6c6f63616c697a6174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/chinleung/verbose-localization)

A package to allow your class to support verbose localization.

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

[](#installation)

You can install the package via composer:

```
composer require chinleung/verbose-localization
```

Usage
-----

[](#usage)

Add the `ChinLeung\VerboseLocalization\HasVerboseLocalization` trait to your class and create a method `getTranslationIn(string $locale)` to handle the translation of your class and get access to all the verbose methods instantly like the following example.

Suppose you have files with the translation of the text equivalent of numbers:

```
