Skip to main content
Category:

Create your module with mymodule.info.yml

name: 'My Module'
description: 'Custom Module'
package: Custom
type: module
core: 8.x

and then add this code to .info.yml file to define your translation file:


project: mymodule
'interface translation project': mymodule
'interface translation server pattern': modules/custom/mymodule/translations/mymodule-%language.po

 

Placing the po file at modules/custom/mymodule/translations/mymodule-fr.po for example for french language.

now you could update the translation at /fr/admin/reports/translations

and dont forget to clear the cache :)

Riadh Rahmi

Senior Web Developer PHP/Drupal & Laravel

I am a senior web developer, I have experience in planning and developing large scale dynamic web solutions especially in Drupal & Laravel.

Web Posts

Search

Page Facebook