composer require yii-extension/simple-view-tailwind
By default the package includes the translation into spanish and russian.
The translation is in the /storage/translations
directory.
composer require yiisoft/translator-extractor --prefer-dist
The root directory of simple-app: config/packages/yiisoft-translator-extractor/console.php
:
<?php
declare(strict_types=1);
use Yiisoft\Aliases\Aliases;
use Yiisoft\Translator\Extractor\Extractor;
/** @var array $params */
return [
Extractor::class => [
'__construct()' => [
'messageReader' => static fn (Aliases $aliases) => new \Yiisoft\Translator\Message\Php\MessageSource(
$aliases->get('@simple-view-tailwind/translations')
),
'messageWriter' => static fn (Aliases $aliases) => new \Yiisoft\Translator\Message\Php\MessageSource(
$aliases->get('@simple-view-tailwind/translations')
),
],
],
];
The root directory of simple-app:
./yii translator/extract --languages=es --only=**/vendor/yii-extension/simple-view-tailwind/storage/**
The package is tested with PHPUnit. To run tests:
./vendor/bin/phpunit
The code is statically analyzed with Psalm. To run static analysis:
./vendor/bin/psalm
The yii-extension/simple-view-tailwind
is free software. It is released under the terms of the BSD License.
Please see LICENSE
for more information.
Maintained by Yii Extension.