yireo / magento2-translatabletitle
Magento 2 扩展,用于使 XML 布局标题可翻译
0.0.1
2017-03-25 09:32 UTC
Requires
- php: >=7.0.0
- magento/framework: *
Requires (Dev)
- composer/composer: *@dev
This package is auto-updated.
Last update: 2024-09-22 00:41:07 UTC
README
Magento 2 扩展,使每个页面标题(在 XML 布局中设置)可翻译。
背景
在 Magento 2.1(撰写本文时的版本)中,您可以使用如下代码在 XML 布局中定义页面标题
<page>
<head>
<title>Example</title>
</head>
</page>
遗憾的是,这个标题不可翻译。本模块可以安装以使其仍然可翻译。
安装
要安装此扩展,请使用以下命令
composer require yireo/magento2-translatabletitle
之后,启用此模块,运行设置脚本并刷新缓存
./bin/magento module:enable Yireo_TranslatableTitle
./bin/magento setup:upgrade
状态
稳定