PHPackages                             forxer/generic-term-translations-for-laravel - 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. forxer/generic-term-translations-for-laravel

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

forxer/generic-term-translations-for-laravel
============================================

A plugin for Laravel Lang that provides generic term translations for Laravel.

1.10.0(1mo ago)21.9k3MITPHPPHP ^8.1

Since Mar 30Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/forxer/generic-term-translations-for-laravel)[ Packagist](https://packagist.org/packages/forxer/generic-term-translations-for-laravel)[ Docs](https://github.com/forxer/generic-term-translations-for-laravel)[ RSS](/packages/forxer-generic-term-translations-for-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (14)Versions (19)Used By (3)

Generic term translations for Laravel
=====================================

[](#generic-term-translations-for-laravel)

A plugin for [Laravel Lang](https://laravel-lang.com/) that provides generic term translations for Laravel project.

Consult [the glossary](GLOSSARY.md) to see all the terms available for translation.

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

[](#installation)

Require the project using Composer:

```
composer require forxer/generic-term-translations-for-laravel --dev

```

Then use the locales publisher of [Laravel Lang](https://laravel-lang.com/) to add/update/reset or remove translations of this package:

- If you have never used [Laravel Lang](https://laravel-lang.com/): [add locales](https://laravel-lang.com/usage/add-locales.html).
- If you are already using [Laravel Lang](https://laravel-lang.com/): just [update the locales](https://laravel-lang.com/usage/update-locales.html).

Usage
-----

[](#usage)

This package provides translations for terms regularly used in projects.

You will find all the terms provided by this package in [the glossary](GLOSSARY.md).

Terms are categorized into different sections by source files. For example there is an `action.php` source file that defines `the add_something` key, you can use it like this:

```
// "en" locale
trans('action.add_something', [
    'something' => 'a post',
]);

// return: "add a post"

// "fr" locale
trans('action.add_something', [
    'something' => 'un article',
]);

// return: "ajouter un article"
```

Be careful to escape the data that you do not control:

```
trans('action.delete_something', [
    'something' => e($post->title),
]);
```

### Feminine and masculine gender

[](#feminine-and-masculine-gender)

Some languages distinguish between feminine and masculine genders, for the same term the feminine key will then be suffixed by `_fem`. For example:

In English we use "all", while in French we use "toutes" in the feminine and "tous" in the masculine (see it on [Google Translate](https://translate.google.fr/?sl=en&tl=fr&text=all&op=translate)).

```
// "en" locale
trans('misc.all'); // return: "all"

trans('misc.all_fem'); // return: "all"

// "fr" locale
trans('misc.all'); // return: "tous"

trans('misc.all_fem'); // return: "toutes"
```

Development steps
-----------------

[](#development-steps)

1. From the package directory, run `php composer update`
2. Update the sources as needed in `src/source` files
3. Run the console command `php vendor/bin/lang sync`
4. Translate modifications in `src/locales/{locale}/php.json`
5. Run `php generate-glossary`
6. Commit changes

###  Health Score

50

—

FairBetter than 96% of packages

Maintenance89

Actively maintained with recent releases

Popularity22

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 94.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~67 days

Recently: every ~162 days

Total

17

Last Release

54d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/aa033b458252f6496cc81308d72b97fcd3412545e50bb2017593eacff939771b?d=identicon)[forxer](/maintainers/forxer)

---

Top Contributors

[![forxer](https://avatars.githubusercontent.com/u/407917?v=4)](https://github.com/forxer "forxer (55 commits)")[![andrey-helldar](https://avatars.githubusercontent.com/u/10347617?v=4)](https://github.com/andrey-helldar "andrey-helldar (3 commits)")

---

Tags

languageslaravallaravel-langtranslationslaravellanguageslang

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/forxer-generic-term-translations-for-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/forxer-generic-term-translations-for-laravel/health.svg)](https://phpackages.com/packages/forxer-generic-term-translations-for-laravel)
```

###  Alternatives

[laravel-lang/lang

List of 126 languages for Laravel Framework, Laravel Jetstream, Laravel Fortify, Laravel Breeze, Laravel Cashier, Laravel Nova, Laravel Spark and Laravel UI

7.8k9.5M40](/packages/laravel-lang-lang)[laravel-lang/common

Easily connect the necessary language packs to the application

1463.1M22](/packages/laravel-lang-common)[laravel-lang/moonshine

Translation for MoonShine admin panel

111.3M4](/packages/laravel-lang-moonshine)[laravel-lang/attributes

Translation of form element names

273.8M11](/packages/laravel-lang-attributes)[arcanedev/laravel-lang

Translations manager and checker for Laravel based on 'Laravel-Lang/lang' package.

7271.4k](/packages/arcanedev-laravel-lang)[herkod/laravel-tr

Laravel İçin Türkçe Çeviri Dosyaları

628.1k](/packages/herkod-laravel-tr)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
