PHPackages                             ippey/weglot-integration - 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. ippey/weglot-integration

ActiveCraft-plugin[Localization &amp; i18n](/categories/localization)

ippey/weglot-integration
========================

WEGLOT integration

0.2.0(5y ago)16[2 PRs](https://github.com/Ippey/weglot-integration/pulls)MITPHP

Since May 15Pushed 3y ago2 watchersCompare

[ Source](https://github.com/Ippey/weglot-integration)[ Packagist](https://packagist.org/packages/ippey/weglot-integration)[ RSS](/packages/ippey-weglot-integration/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (4)Versions (6)Used By (0)

weglot-integration plugin for Craft CMS 3.x
===========================================

[](#weglot-integration-plugin-for-craft-cms-3x)

Weglot integration

Requirements
------------

[](#requirements)

This plugin requires Craft CMS 3.0.0-beta.23 or later. And you need [Weglot Account](https://weglot.com/).

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

[](#installation)

To install the plugin, follow these instructions.

1. Open your terminal and go to your Craft project:

    ```
     cd /path/to/project

    ```
2. Then tell Composer to load the plugin:

    ```
     composer require Ippey/weglot-integration

    ```
3. In the Control Panel, go to Settings → Plugins and click the “Install” button for weglot-integration.

weglot-integration Overview
---------------------------

[](#weglot-integration-overview)

This plugin provides to switch language easily via Weglot. Weglot translates automatically instead of you.

[![weglot](resources/img/weglot_logo.png)](https://dashboard.weglot.com/register?fp_ref=ippei19)Configure
---------

[](#configure)

You need to get API Key from [Weglot Dashboard](https://dashboard.weglot.com/), and please save it on setting page. This plugin uses "JavaScript Integration". Please click "Use JavaScript Integration", when you set up a Weglot Project.

[![](resources/img/1.png "Weglot Setup")](resources/img/1.png)

How to use
----------

[](#how-to-use)

### Twig Extension

[](#twig-extension)

#### Automatically translation

[](#automatically-translation)

**UPDATE** You don't need to use Twig filter. This plugin adds script tag automatically.

You can see a language switcher lower right. The page will be translated automatically if you switch other language.

#### Manually translation

[](#manually-translation)

Use bellow Twig filter if you want to translate manually.

```
{{ '攻殻機動隊' | weglot_translate('ja', 'en') }}
Ghost in the Shell.

```

### Service

[](#service)

You can also translate using plugin's service in your PHP Code.

```
$text = 'Spirited Away';
$from = 'en';
$to = 'ja';
$translated = \ippey\weglotintegration\Weglotintegration::getInstance()->weglotService->translate($text, $from, $to);
echo ($translated); // 千と千尋の神隠し
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~117 days

Total

3

Last Release

1959d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5e3c42952932998bf8d9b005284c160eab1ed6f4a0dbc6dc183f8fb7b9128a70?d=identicon)[Ippey](/maintainers/Ippey)

---

Top Contributors

[![Ippey](https://avatars.githubusercontent.com/u/471948?v=4)](https://github.com/Ippey "Ippey (12 commits)")

---

Tags

translationcmsCraftcraftcmscraft-pluginWeglotweglot-integration

###  Code Quality

TestsCodeception

### Embed Badge

![Health badge](/badges/ippey-weglot-integration/health.svg)

```
[![Health](https://phpackages.com/badges/ippey-weglot-integration/health.svg)](https://phpackages.com/packages/ippey-weglot-integration)
```

###  Alternatives

[acclaro/translations

Easily launch and manage multilingual Craft websites without having to copy/paste content or manually track updates.

1229.5k](/packages/acclaro-translations)[pierrestoffe/craft-language-redirector

Automatically redirect visitors to their preferred language

1634.0k](/packages/pierrestoffe-craft-language-redirector)

PHPackages © 2026

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