scandipwa/locale

N/A

Maintainers

Details

github.com/scandipwa/locale

Source

Installs: 158 585

Dependents: 2

Suggesters: 0

Security: 0

Stars: 0

Watchers: 5

Forks: 6

Type:magento2-module

2.0.0 2021-01-07 13:48 UTC

This package is auto-updated.

Last update: 2024-04-07 21:24:33 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.