A Polylang helper for WordPlate
Require this package, with Composer, in the root directory of your project.
$ composer require hoy/polylang
Login to the WordPress administrator dashboard and activate the Polylang plugin. Go to the Polylang settings page and add at least one language.
Register the translations with the
pll_translations function. They will now be available for translation on the 'Strings translations' page in the WordPress administrator dashboard.
Then to fetch and print a translation you can use the
trans function like you would use regular __() function.
echo trans('I understand');
Please visit Polylang's documentation to find out more about translating your post types.