scandipwa/locale

不适用

维护者

详细信息

github.com/scandipwa/locale

源代码

安装次数: 172,382

依赖项: 2

建议者: 0

安全性: 0

星标: 0

关注者: 4

分支: 6

类型:magento2-module

2.0.0 2021-01-07 13:48 UTC

This package is auto-updated.

Last update: 2024-09-07 22:11:26 UTC


README

此模块为主题的 phtml 模板暴露多个与区域设置相关的API。

功能分解

1. 确定商店的区域设置

在生成的 Magento_Theme/templates/scandipwa_root.phtml 中暴露 $this->getLocaleCode()。提供商店的区域代码。

2. 确定商店的语言

暴露 $this->getLanguageCode(),基本上取 $this->getLocaleCode()_ 之前的部分。例如,en_US => en