selveq / locale
Magento 2 Locale extension for ScandiPWA theme
3.0.0
2026-09-18 20:13 UTC
Requires
- php: ^8.3
- magento/framework: ^103.0
- magento/module-deploy: ^100.4
- magento/module-theme: ^101.1
- selveq/installer: ^5.0
- selveq/route717: ^3.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
This package is not auto-updated.
Last update: 2026-09-19 19:53:52 UTC
README
Fork of scandipwa/locale 2.0.0, maintained by Selveq for Magento 2.4.9 and PHP 8.3. Module name and namespace are unchanged, and the package replaces scandipwa/locale at every version, so it installs as a drop-in replacement. Selveq is not affiliated with or endorsed by Scandiweb.
What it does
- Gives the ScandiPWA shell the store view's locale:
getLanguageCode()fills<html lang>andgetLocaleCode()fillswindow.defaultLocale, so the first render knows its language. - Registers a theme whose
theme.xmlcarries<pwa>true</pwa>as theme type 4, the PWA type the other ScandiPWA modules key on. - Deploys a PWA theme's own static packages and nothing it inherits when
setup:static-content:deploy --themenames only PWA themes, so the parent themes' files are not deployed alongside. - Keeps
getLocaleChunkUrl(), the URL of the current locale's chunk under theen_USpackage, for themes older than ScandiPWA 6 whose root template called it.
Install
composer require selveq/locale bin/magento setup:upgrade
The theme's theme.xml must carry <pwa>true</pwa>, the marker selveq/installer reads; the ScandiPWA theme ships it.
License
OSL-3.0, the license of the original work. Scandiweb's copyright notices are kept in every file, and each file Selveq changed carries a Modifications © Selveq notice.