netlogix/symfony-tolgee-translation-provider

Symfony Tolgee Translation Provider Bridge

1.0.1 2024-02-15 15:39 UTC

This package is auto-updated.

Last update: 2024-04-20 22:24:55 UTC


README

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