PHPackages                             lkt/translations - 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. lkt/translations

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

lkt/translations
================

LKT PHP Translations

3.0.7(3mo ago)02332MITPHPPHP &gt;=8.1.0

Since Feb 9Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/lkt-php/lkt-translations)[ Packagist](https://packagist.org/packages/lkt/translations)[ RSS](/packages/lkt-translations/feed)WikiDiscussions v2.0 Synced 1mo ago

READMEChangelog (10)Dependencies (7)Versions (35)Used By (2)

LKT Translations
================

[](#lkt-translations)

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

[](#installation)

```
composer require lkt/translations
```

Usage
-----

[](#usage)

### Translations folder and translations files

[](#translations-folder-and-translations-files)

Languages are declared by registering a language folder. This is a directory in you project holding as many php files as you want.

Each translation file must return an array.

An example could be:

```
- /
- - /translations
- - - /en
- - - - users.php
- - - - ...
- - - /es
- - - - users.php
- - - - ...
- - - /it
- - - - users.php
- - - - ...
```

English version of users.php could be:

```
