菜单

magento翻译

2018年12月24日 - magento

1. In .ptml files

__(‘<your_string>’)

2. In email template

If your theme contains custom email template, use the {{trans}} directive.

3. Strings added in UI components’ templates

4.Strings added in UI components configuration files

5.Strings added in .js files

The  5 steps I mention above is the shortest process for you to Translate a String by Code in Magento 2. With this guide, you can manage the String by Code in Magento 2 easily. Every store has a String by Code in Magento 2 with many attributes.

发表评论

电子邮件地址不会被公开。 必填项已用*标注