A collection of useful utils.
composer require dartmoon/prestashop-utils
This util will get all the languages installed inside PrestaShop and generate the multitext of the input string. The index of the array will be the id of the language.
use Dartmoon\Utils\Facades\MultiLangText;
$text = MultiLangText::generate('text'); // [0 => 'text', 3 => 'text', ...]
This project is licensed under the MIT License - see the LICENSE.md file for details