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

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

antenna/inline-translations
===========================

Inline translation package for laravel with plugins for blade &amp; vue

0.11.1(2y ago)32.0k1MITPHPPHP ^8.0 || ^8.1

Since Jun 16Pushed 2y ago2 watchersCompare

[ Source](https://github.com/weareantenna/inline-translations)[ Packagist](https://packagist.org/packages/antenna/inline-translations)[ RSS](/packages/antenna-inline-translations/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (8)Dependencies (13)Versions (33)Used By (0)

Inline translations manager
===========================

[](#inline-translations-manager)

[![Screenshot of inline translation tool](https://camo.githubusercontent.com/c5c284974bd4644f1c2586db4b2f8db1329a0aa14b8d4be6ec83e8957c418f7e/68747470733a2f2f692e6962622e636f2f733550323346742f73637265656c792d313539323231393237343130322e706e67 "Translator screenshot")](https://camo.githubusercontent.com/c5c284974bd4644f1c2586db4b2f8db1329a0aa14b8d4be6ec83e8957c418f7e/68747470733a2f2f692e6962622e636f2f733550323346742f73637265656c792d313539323231393237343130322e706e67)

This package enables you to manage translations and actually translate your Laravel application inline.

We advise you not to use this package in production environments. Translations can be managed within staging or development environments and synced to production with a custom implementation (or via your git repository).

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

[](#installation)

Add the package as a dependency in your project:

```
composer require antenna/inline-translations

```

You must publish the configuration by running the command below. This will add the file `config/inline-translations.php` where you can configure the package. A Vue component will be published as well (`resources/assets/vendor/v-inline-translations/app.js`). You can use this as a Vue plugin for your vue instance. This is only needed if you use translations in your Vue components.

```
php artisan vendor:publish --tag=inline-translations

```

(Optional) use the Vue plugin. the `methodName` parameter defines the translation function that you use within your Vue components. This function will be overwritten by this package (when translation mode is active):

```
import VInlineTranslations from "resources/assets/vendor/v-inline-translations/app";
Vue.use(VInlineTranslations, {methodName: '__t'});
new Vue({
  ...
});

```

Don't forget to configure your supported languages in the configuration that was deployed (see underneath). By default this is configured to support one single language (English).

Configuration
-------------

[](#configuration)

This package has some configuration options. All configuration parameters have default values, so this package should work out of the box. Underneath you'll find the default configuration with explanation for all available parameters

```
return [
    'routes' => [
        /**
         * All paths of this package will be prefixed with the value defined in this parameter.
         * By default following paths can be used to activate or disable the tool:
         *   - /{prefix}/enable
         *   - /{prefix}/disable
         */
        'prefix'     => 'inline-translations',

        /**
         * Underneath you can define middleware that will be added to all routes of this package.
         * It might be sensible to add some kind of authentication in this middleware.
         */
        'middleware' => null,
    ],

    /**
     * The location where your translations are found, is defined in this parameter.
     * Laravel by default stores this in resources/lang
     */
    'translation_folder' => 'resources/lang',

    /**
     * This parameter defines the width of the widget when it is opened. This can be changed depending
     * on the amount of languages you are supporting, in order to get a better overview.
     */
    'widget_width' => 350,

    /**
     * Here you can define on which environments, translations are possible.
     * When the active environment is not in the array underneath, the tool will not be available.
     */
    'translation_environments' => ['local', 'staging'],
];

```

Technical
---------

[](#technical)

### What can be translated inline?

[](#what-can-be-translated-inline)

This package comes out-of-the-box with the capability of managing the following translations

- Blade (the default)
- Vue

We would like to add other implementations in the future

Usage
-----

[](#usage)

We have tried to not only simplify the technical functionality of translation but also the workflow and management of the translations.

This has been done by an inline "widget" that can be collapsed. If open, this visualizes the keys and (already defined) translations that can be found on the page for every language that has been configured within the application.

In order to use the inline translation tool, you should surf to `/inline-translations/enable`, this will enable the tool. When you surf around your tool, you'll be able to do the translations via our interface. A button can be configured to enable / disable the tool if wanted.

In order to close the tool, surf to `/inline-translations/disable`

Todo
----

[](#todo)

There are some things we would like to add in the future

- React translations
- An integration / combination with the [translations manager by Barry vd Heuvel](https://github.com/barryvdh/laravel-translation-manager)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 88.9% 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 ~51 days

Recently: every ~81 days

Total

27

Last Release

821d ago

PHP version history (3 changes)v0.0.1PHP ^7.4

v0.7.0PHP ^7.4 || ^8.0

0.9.0PHP ^8.0 || ^8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2085632?v=4)[Kristof Feys](/maintainers/kristoffeys)[@kristoffeys](https://github.com/kristoffeys)

![](https://www.gravatar.com/avatar/5c40ce3730befe51e7339a97ef08ec2052b706814c37bfcb54a8a18195bc388c?d=identicon)[Moussa\_1](/maintainers/Moussa_1)

---

Top Contributors

[![kristoffeys](https://avatars.githubusercontent.com/u/2085632?v=4)](https://github.com/kristoffeys "kristoffeys (120 commits)")[![Moussa112](https://avatars.githubusercontent.com/u/6680307?v=4)](https://github.com/Moussa112 "Moussa112 (12 commits)")[![manonthemoon](https://avatars.githubusercontent.com/u/1430551?v=4)](https://github.com/manonthemoon "manonthemoon (2 commits)")[![jorgdec](https://avatars.githubusercontent.com/u/9928736?v=4)](https://github.com/jorgdec "jorgdec (1 commits)")

---

Tags

laraveltranslationsvue

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/antenna-inline-translations/health.svg)

```
[![Health](https://phpackages.com/badges/antenna-inline-translations/health.svg)](https://phpackages.com/packages/antenna-inline-translations)
```

###  Alternatives

[barryvdh/laravel-translation-manager

Manage Laravel Translations

1.7k3.6M17](/packages/barryvdh-laravel-translation-manager)[kkomelin/laravel-translatable-string-exporter

Translatable String Exporter for Laravel

3291.4M10](/packages/kkomelin-laravel-translatable-string-exporter)[kerigard/laravel-lang-ru

Ru lang for Laravel

2116.8k](/packages/kerigard-laravel-lang-ru)[highsolutions/laravel-translation-manager

Manage Laravel Translations

1518.8k](/packages/highsolutions-laravel-translation-manager)

PHPackages © 2026

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