yaroslavche / sylius-translation-plugin
Sylius 的翻译插件。
0.3.1
2019-10-08 08:09 UTC
Requires
- php: ^7.2
- ext-json: *
- sylius/sylius: ~1.5.0
Requires (Dev)
- behat/behat: ^3.4
- behat/mink: ^1.7@dev
- behat/mink-browserkit-driver: ^1.3
- behat/mink-extension: ^2.2
- behat/mink-selenium2-driver: ^1.3
- friends-of-behat/page-object-extension: ^0.3
- friends-of-behat/suite-settings-extension: ^1.0
- friends-of-behat/symfony-extension: ^2.0
- friends-of-behat/variadic-extension: ^1.1
- lakion/mink-debug-extension: ^1.2.3
- phpspec/phpspec: ^5.0
- phpstan/phpstan-doctrine: ^0.10
- phpstan/phpstan-shim: ^0.10
- phpstan/phpstan-symfony: ^0.10
- phpstan/phpstan-webmozart-assert: ^0.10
- phpunit/phpunit: ^6.5
- sensiolabs/security-checker: ^5.0
- sylius-labs/coding-standard: ^2.0
- symfony/browser-kit: ^3.4|^4.1
- symfony/debug-bundle: ^3.4|^4.1
- symfony/dotenv: ^4.2
- symfony/intl: ^3.4|^4.1
- symfony/web-profiler-bundle: ^3.4|^4.1
- symfony/web-server-bundle: ^3.4|^4.1
Conflicts
- symfony/browser-kit: 4.1.8
- symfony/dependency-injection: 4.1.8
- symfony/dom-crawler: 4.1.8
- symfony/routing: 4.1.8
- symfony/symfony: 4.1.8
- dev-master / 1.4.x-dev
- 0.3.1
- 0.3.0
- 0.2.1
- 0.2.0
- dev-dependabot/npm_and_yarn/eventsource-1.1.1
- dev-dependabot/npm_and_yarn/url-parse-1.5.10
- dev-dependabot/npm_and_yarn/follow-redirects-1.14.8
- dev-dependabot/npm_and_yarn/ajv-6.12.6
- dev-dependabot/npm_and_yarn/tar-4.4.19
- dev-dependabot/npm_and_yarn/path-parse-1.0.7
- dev-dependabot/npm_and_yarn/postcss-7.0.36
- dev-dependabot/npm_and_yarn/dns-packet-1.3.4
- dev-dependabot/npm_and_yarn/lodash-4.17.21
- dev-dependabot/npm_and_yarn/ssri-6.0.2
- dev-dependabot/npm_and_yarn/elliptic-6.5.4
- dev-dependabot/npm_and_yarn/axios-0.21.1
- dev-dependabot/npm_and_yarn/ini-1.3.7
- dev-dependabot/npm_and_yarn/http-proxy-1.18.1
- dev-dependabot/npm_and_yarn/websocket-extensions-0.1.4
- dev-dependabot/npm_and_yarn/acorn-6.4.1
This package is auto-updated.
Last update: 2024-08-29 05:06:35 UTC
README
此插件的主要目标是让您能够编辑翻译短语,而无需在服务器上手动创建或修改翻译文件。此插件允许您在管理面板中更改 Sylius 中的任何短语。所有自定义翻译都保存为 xliff
格式。
在管理面板中查看每个区域(在 Sylius 中启用)会显示已翻译的消息数量、剩余数量和翻译进度。
在 youtube 上查看操作
安装
$ composer require yaroslavche/sylius-translation-plugin
注册包
# config/bundles.php Yaroslavche\SyliusTranslationPlugin\YaroslavcheSyliusTranslationPlugin::class => ['all' => true],
导入服务
# config/services.yaml imports: # ... - { resource: "@YaroslavcheSyliusTranslationPlugin/Resources/config/services.yml" }
导入路由
# config/routes.yaml yaroslavche_sylius_translation_plugin: resource: "@YaroslavcheSyliusTranslationPlugin/Resources/config/admin_routing.yml"
安装资源并清除缓存。
$ yarn build $ bin/console assets:install $ bin/console cache:clear
查看 /admin/translation/