An open API service indexing awesome lists of open source software.

https://github.com/netlogix/symfony-tolgee-translation-provider


https://github.com/netlogix/symfony-tolgee-translation-provider

Last synced: about 2 months ago
JSON representation

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:8085

You can use the following commands to pull and push translations from/to Tolgee server.

```bash
tests/console translation:pull
tests/console translation:push
```