scandipwa/locale

N/A

Maintainers

Package info

github.com/scandipwa/locale

Type:magento2-module

pkg:composer/scandipwa/locale

Statistics

Installs: 206 123

Dependents: 2

Suggesters: 0

Stars: 0

2.0.0 2021-01-07 13:48 UTC

This package is auto-updated.

Last update: 2026-03-08 01:31:08 UTC


README

This module exposes multiple locale-related APIs for the theme's phtml template.

Feature breakdown:

1. Determine locale for store

Exposes $this->getLocaleCode() in the generated Magento_Theme/templates/scandipwa_root.phtml. Provides the store's locale code.

2. Determine language for store

Exposes $this->getLanguageCode(), basically takes the part of $this->getLocaleCode() before _. E.g. en_US => en.