yireo/magento2-translatabletitle

Magento 2 扩展,用于使 XML 布局标题可翻译

安装: 17

依赖者: 0

建议者: 0

安全: 0

星标: 8

关注者: 4

分支: 2

开放问题: 1

类型:magento2-module

0.0.1 2017-03-25 09:32 UTC

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

状态

稳定