Skip to content

netlogix/symfony-tolgee-translation-provider

Repository files navigation

Tolgee Translation Provider

Provides Tolgee 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

You get the project ID from the project URL.

Generate an API key on Tolgee

DevSetup

If you want to develop this package, you can use 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.

tests/console translation:pull
tests/console translation:push