Download the PHP package transi-store/symfony-translation-provider without Composer
On this page you can find all versions of the php package transi-store/symfony-translation-provider. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download transi-store/symfony-translation-provider
More information about transi-store/symfony-translation-provider
Files in transi-store/symfony-translation-provider
Package symfony-translation-provider
Short Description Transi-Store Translation Provider Bridge for Symfony
License MIT
Homepage https://transi-store.com
Informations about the package symfony-translation-provider
Transi-Store Translation Provider
Provides Transi-Store integration for Symfony Translation.
Installation
DSN example
where:
API_KEYis the API key generated from your Transi-Store organization settingsORG_SLUGis your Transi-Store organization slugPROJECT_SLUGis your Transi-Store project slug
The default host resolves to transi-store.com. You may replace it with a
custom host if you run Transi-Store behind your own domain.
How it works
Each Transi-Store file maps to a Symfony translation domain. The provider
fetches the project metadata (GET /api/orgs/{org}/projects/{project}) to
build this mapping from the filePath declared for each file (e.g.
translations/messages.<lang>.yaml ↔ domain messages).
Translations are exchanged using the XLIFF format.
Supported operations
- read: downloads XLIFF translations per locale and domain.
- write: uploads the catalogue as XLIFF per locale and domain.
- delete: not supported — calling it raises a
RuntimeException.
Configuration (Symfony)
1. Enable the bundle
If you use Symfony Flex, the bundle is enabled automatically. Otherwise,
register it manually in config/bundles.php:
The bundle registers TransiStoreProviderFactory as a service tagged with
translation.provider_factory, so nothing else is needed in services.yaml.
2. Declare the provider
ICU Support
To use ICU message format, make sure your file paths include the +intl-icu, but before the <lang> placeholder, e.g. translations/messages+intl-icu.<lang>.yaml.
But in your domain, you should omit the +intl-icu part, e.g. messages AND you should add the --intl-icu --force option to the command.
If you don't, then Symfony will not suffix the file with +intl-icu.
Resources
All versions of symfony-translation-provider with dependencies
symfony/dependency-injection Version ^6.4|^7.0|^8.0
symfony/http-client Version ^6.4|^7.0|^8.0
symfony/http-kernel Version ^6.4|^7.0|^8.0
symfony/mime Version ^6.4|^7.0|^8.0
symfony/translation Version ^6.4|^7.0|^8.0