scandipwa / locale
N/A
Installs: 184 863
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 6
Type:magento2-module
Requires
- magento/framework: *
- magento/module-deploy: ^100.3
- scandipwa/route717: ^2
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
.