문제

How can I translate an extension (module) ? I tried to create the i18n folder and create the it_IT.csv file. But it does not work, how can I do translation?

도움이 되었습니까?

해결책

You will need to create .csv file depending on your locale selected for stores. Then In your custom module you can need to follow below standard for translation.

In php or phtml files:
echo __("String which needs to translate")

In knockout template:

<span data-bind="i18n: 'String which needs to translate'"></span>

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top