Based on Symfony 5 + Webpack
composer install
npm install
npm run build
php -S localhost:8000 -t public
To extract translations from templates :
bin/console translation:update --output-format xlf --xliff-version=2.0 fr --force
bin/console translation:update --output-format xlf --xliff-version=2.0 en --force
bin/console translation:update --output-format xlf --xliff-version=2.0 fa --force
bin/console translation:update --output-format xlf --xliff-version=2.0 ps --force
bin/console translation:update --output-format xlf --xliff-version=2.0 ar --force