Search by

yireo / magento2-additional-language-file

yireo

Package info

github.com/yireo/Yireo_AdditionalLanguageFile

Type:magento2-module

pkg:composer/yireo/magento2-additional-language-file

Fund package maintenance!

yireo

www.paypal.me/yireo

Statistics

Installs: 13

Dependents: 0

Suggesters: 0

Stars: 3

Open Issues: 0

0.1.1 2025-10-22 11:34 UTC

This package is auto-updated.

Last update: 2026-11-24 16:27:51 UTC


README

Magento version PHP version License Latest Version

This Magento 2 module adds the ability to add an extra language file to your theme.

Overview

Every theme has the ability to override language strings in a file like i18n/en_US.csv. This module allows you to add a second file i18n/en_US_additional.csv which is loaded on top of the original file. The benefit of this is that you can have a parent theme that fills up the en_US.csv which is then inherited in the child theme. Yet using this module, you can make specific overrides in the additional language file.

Security

Translations are rendered as part of the HTML and JavaScript output of Magento, often without escaping. Treat a *_additional.csv file as code: keep it under version control and review its changes, just like a template.

Installation

Install this module within Magento 2 using composer:

composer require yireo/magento2-additional-language-file

And of course afterwards use the regular commands to enable the module.

Technical architecture

This module remaps the preference for the original Magento\Framework\Translate file to a new class.

Current status

Static Tests Unit Tests Integration Tests Playwright DI Compilation