PHPackages                             digitalpulsebe/craft-database-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. digitalpulsebe/craft-database-translations

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

digitalpulsebe/craft-database-translations
==========================================

Manage Craft i18n translations and store in database

3.4.1(3mo ago)21.8k↑33.3%1MITPHPCI passing

Since Jan 27Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/digitalpulsebe/craft-database-translations)[ Packagist](https://packagist.org/packages/digitalpulsebe/craft-database-translations)[ RSS](/packages/digitalpulsebe-craft-database-translations/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (71)Used By (0)

Database Translations plugin for Craft CMS
==========================================

[](#database-translations-plugin-for-craft-cms)

Manage Craft i18n translations and store in database

[![Screenshot](resources/img/plugin-logo.png)](resources/img/plugin-logo.png)

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

[](#requirements)

This plugin requires Craft CMS 3.7 or later.

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 digitalpulsebe/craft-database-translations

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

Configuring Database Translations
---------------------------------

[](#configuring-database-translations)

Configure options in the Craft control panel or create a file in config/database-translations.php as a copy of [config.php](src/config.php).

[![Screenshot](resources/img/screenshot_settings.png)](resources/img/screenshot_settings.png)

### Configure the translation categories

[](#configure-the-translation-categories)

Only the categories defined in the settings will be translated.

### Map languages

[](#map-languages)

Do you need to use the same translated values for different languages (for example different regions nl-BE and nl-NL)? You can map one language to another.

This might also be useful to provide translations for admin user in the control panel.

### Trim spaces

[](#trim-spaces)

Trim spaces at begin or ending of values when they are saved.

### Add missing translations

[](#add-missing-translations)

When a new unknown translation is used while rendering templates, an event is triggered. Handling this event is optional. A new empty translation row will be added for the missing message.

### Copy Entry bulk action

[](#copy-entry-bulk-action)

Enable [this feature](#copy-entries-in-bulk-action)

Importing translations
----------------------

[](#importing-translations)

[![Screenshot](resources/img/screenshot_import.png)](resources/img/screenshot_import.png)

Apart from the automatic missing translations' event, there are four ways of adding message rows in the database:

1. **Create one manually**

    Just enter the new message key and category to add an empty row
2. **Parse twig templates**

    Twig files are processed to find usage of the |t filter. The found results are listed in a review-step, select the rows you want to add to the database.
3. **Import CSV files**

    Import CSV files. Map the columns.

    [![Screenshot](resources/img/screenshot_import_map.png)](resources/img/screenshot_import_map.png)

    The found results are listed in a review-step, select the rows you want to add to the database.
4. **Parse php translation files**

    The native translation files in ./translations folder can be mapped to database rows. The found results are listed in a review-step, select the rows you want to add to the database. You can even import files from plugins in the vendor folder.

    [![Screenshot](resources/img/screenshot_import_vendor.png)](resources/img/screenshot_import_vendor.png)

Exporting
---------

[](#exporting)

1. Export all the rows using the export tab
2. Or, in the overview table, select the rows and languages to export
    - as csv file
    - as a content migration file

### Migration file export

[](#migration-file-export)

The advantage of exporting to a migration file is that your content can be pushed to git and then the server when deploying. The migration file adds the rows to your database when `craft up` or `craft migrate/all` is executed.

Manage translations
-------------------

[](#manage-translations)

[![Screenshot](resources/img/screenshot_table.png)](resources/img/screenshot_table.png)

Copy entries in bulk action
---------------------------

[](#copy-entries-in-bulk-action)

To enable this functionality both enable this in the settings and set the permission for the user ("Copy content bulk action").

You can now select Entries in the index table, and select the bulk action. The content will be copied over to the other site in a queue job.

[![Screenshot](resources/img/screenshot_copy.png)](resources/img/screenshot_copy.png)

###  Health Score

48

—

FairBetter than 94% of packages

Maintenance81

Actively maintained with recent releases

Popularity24

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 90.5% 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 ~17 days

Recently: every ~51 days

Total

65

Last Release

102d ago

Major Versions

2.7.4 → 3.3.52025-01-06

2.7.5 → 3.3.62025-01-24

2.7.6 → 3.3.72025-02-21

2.7.8 → 3.3.92025-07-09

2.7.9 → 3.4.02025-12-30

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/102023374?v=4)[Jonathan De Baere](/maintainers/jodeba)[@jodeba](https://github.com/jodeba)

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

---

Top Contributors

[![jodeba](https://avatars.githubusercontent.com/u/102023374?v=4)](https://github.com/jodeba "jodeba (316 commits)")[![bartdigitalpulse](https://avatars.githubusercontent.com/u/75615033?v=4)](https://github.com/bartdigitalpulse "bartdigitalpulse (26 commits)")[![nielcapp1](https://avatars.githubusercontent.com/u/22441671?v=4)](https://github.com/nielcapp1 "nielcapp1 (5 commits)")[![wakeuphate](https://avatars.githubusercontent.com/u/377813?v=4)](https://github.com/wakeuphate "wakeuphate (2 commits)")

---

Tags

cmsCraftcraftcmscraft-pluginutm tracker

### Embed Badge

![Health badge](/badges/digitalpulsebe-craft-database-translations/health.svg)

```
[![Health](https://phpackages.com/badges/digitalpulsebe-craft-database-translations/health.svg)](https://phpackages.com/packages/digitalpulsebe-craft-database-translations)
```

###  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)
