https://github.com/netlogix/symfony-tolgee-translation-provider
https://github.com/netlogix/symfony-tolgee-translation-provider
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/netlogix/symfony-tolgee-translation-provider
- Owner: netlogix
- Created: 2023-04-23T07:13:02.000Z (about 2 years ago)
- Default Branch: develop
- Last Pushed: 2024-02-20T21:59:14.000Z (about 1 year ago)
- Last Synced: 2025-03-05T16:24:31.119Z (3 months ago)
- Language: PHP
- Size: 57.6 KB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Tolgee Translation Provider
=============================Provides [Tolgee](https://tolgee.io/) integration for Symfony Translation.
DSN example
-----------For https:
```
DSN=tolgees://PROJECT_ID:API_KEY@default/FILTER_STATES
```For http:
```
DSN=tolgee://PROJECT_ID:API_KEY@default/[FILTER_STATES]
```where:
- `PROJECT_ID` is your tolgee Project ID
- `API_KEY` is your Tolgee API key
- `[FILTER_STATES]` this argument is optional.
Filter translations with state.
Possible values: `UNTRANSLATED`, `TRANSLATED`, `REVIEWED`
[tolgee export API](https://tolgee.io/api#tag/Export/operation/export_1)You get the project ID from the project URL.
[Generate an API key on Tolgee](https://app.tolgee.io/account/apiKeys)
DevSetup
-----------If you want to develop this package, you can use [gitpod.io](https://gitpod.io/) to start a development environment with all dependencies installed.
It also starts a local Tolgee server with a test project.
http://localhost:8085You can use the following commands to pull and push translations from/to Tolgee server.
```bash
tests/console translation:pull
tests/console translation:push
```