PHPackages                             taurus-media/module-html-lang - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. taurus-media/module-html-lang

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

taurus-media/module-html-lang
=============================

Magento 2 module to set custom 'lang' attribute on the 'html' tag

1.0.0(3mo ago)0114MITPHP

Since Feb 16Pushed 3mo agoCompare

[ Source](https://github.com/taurus-media/module-html-lang)[ Packagist](https://packagist.org/packages/taurus-media/module-html-lang)[ RSS](/packages/taurus-media-module-html-lang/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Taurus\_HtmlLang Magento 2 Module
=================================

[](#taurus_htmllang-magento-2-module)

This module allows you to set a custom `lang` attribute on the `` tag in your Magento 2 frontend, overriding the default locale-based value.

Features
--------

[](#features)

- Easily configure a custom `lang` attribute for each store view.
- Supports any valid language tag (e.g., `en-US`, `de-DE`, `fr-FR`, etc.).

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

[](#installation)

### Composer (Recommended)

[](#composer-recommended)

1. Open your terminal and navigate to your Magento 2 root directory.
2. Run the following command: ```
    composer require taurus-media/module-html-lang
    ```
3. Enable the module: ```
    bin/magento module:enable Taurus_HtmlLang
    bin/magento setup:upgrade
    bin/magento setup:di:compile
    bin/magento setup:static-content:deploy
    ```

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

[](#configuration)

1. Log in to the Magento 2 Admin panel.
2. Navigate to **Stores** &gt; **Settings** &gt; **Configuration**.
3. Go to **General** &gt; **General** &gt; **Locale Options**.
4. Locate the field **Custom HTML Lang**.
5. Enter the desired language tag (e.g., `en-US`).
6. If left empty, the default Magento locale value will be used.
7. Click **Save Config**.
8. Flush the cache if necessary.

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance78

Regular maintenance activity

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

113d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9a63921d7d7fd387db50f9e01c25123205ad89de7a50c0c95ea2ba4061cc4b26?d=identicon)[taurus-media](/maintainers/taurus-media)

---

Top Contributors

[![taurus-media](https://avatars.githubusercontent.com/u/171674733?v=4)](https://github.com/taurus-media "taurus-media (1 commits)")

### Embed Badge

![Health badge](/badges/taurus-media-module-html-lang/health.svg)

```
[![Health](https://phpackages.com/badges/taurus-media-module-html-lang/health.svg)](https://phpackages.com/packages/taurus-media-module-html-lang)
```

###  Alternatives

[elgentos/regenerate-catalog-urls

Regenerate Catalog URL Rewrites (products, categories, cms pages)

2852.6M](/packages/elgentos-regenerate-catalog-urls)[run-as-root/magento2-prometheus-exporter

Magento2 Prometheus Exporter

68353.9k](/packages/run-as-root-magento2-prometheus-exporter)[myparcelnl/magento

A Magento 2 module that creates MyParcel labels

1859.0k](/packages/myparcelnl-magento)[loki/magento2-components

Core module for defining Alpine.js components with advanced AJAX features

1010.0k22](/packages/loki-magento2-components)[magepal/magento2-form-field-manager

Customer and Address Form Fields Manager for Magento2

293.9k](/packages/magepal-magento2-form-field-manager)[mage-os/module-llm-txt

AI-powered LLMs.txt generation for Magento 2 / Mage-OS stores. Help AI systems understand your store with OpenAI-generated content.

223.3k](/packages/mage-os-module-llm-txt)

PHPackages © 2026

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