Skip to content

Commit

Permalink
Fix translation provider add-lines instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
welcoMattic committed Nov 21, 2023
1 parent f7b01ce commit 4021eb7
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 30 deletions.
6 changes: 3 additions & 3 deletions symfony/crowdin-translation-provider/5.3/manifest.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"add-lines": [
{
"file": "config/packages/notifier.yaml",
"file": "config/packages/translation.yaml",
"position": "after_target",
"target": " texter_transports:",
"content": " crowdin: '%env(CROWDIN_DSN)%'"
"target": " providers:",
"content": " crowdin:\n dsn: '%env(CROWDIN_DSN)%'"
}
],
"env": {
Expand Down
6 changes: 3 additions & 3 deletions symfony/loco-translation-provider/5.3/manifest.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"add-lines": [
{
"file": "config/packages/notifier.yaml",
"file": "config/packages/translation.yaml",
"position": "after_target",
"target": " texter_transports:",
"content": " loco: '%env(LOCO_DSN)%'"
"target": " providers:",
"content": " loco:\n dsn: '%env(LOCO_DSN)%'"
}
],
"env": {
Expand Down
6 changes: 3 additions & 3 deletions symfony/lokalise-translation-provider/5.3/manifest.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"add-lines": [
{
"file": "config/packages/notifier.yaml",
"file": "config/packages/translation.yaml",
"position": "after_target",
"target": " texter_transports:",
"content": " lokalise: '%env(LOKALISE_DSN)%'"
"target": " providers:",
"content": " lokalise:\n dsn: '%env(LOKALISE_DSN)%'"
}
],
"env": {
Expand Down
5 changes: 0 additions & 5 deletions symfony/phrase-translation-provider/6.3/manifest.json

This file was deleted.

13 changes: 13 additions & 0 deletions symfony/phrase-translation-provider/6.4/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"add-lines": [
{
"file": "config/packages/translation.yaml",
"position": "after_target",
"target": " providers:",
"content": " phrase:\n dsn: '%env(PHRASE_DSN)%'"
}
],
"env": {
"#1": "PHRASE_DSN=phrase://PROJECT_ID:API_TOKEN@default?userAgent=Symfony-Phrase-Provider"
}
}
8 changes: 1 addition & 7 deletions symfony/translation/5.3/config/packages/translation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,4 @@ framework:
default_path: '%kernel.project_dir%/translations'
fallbacks:
- en
# providers:
# crowdin:
# dsn: '%env(CROWDIN_DSN)%'
# loco:
# dsn: '%env(LOCO_DSN)%'
# lokalise:
# dsn: '%env(LOKALISE_DSN)%'
providers:
10 changes: 1 addition & 9 deletions symfony/translation/6.3/config/packages/translation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,4 @@ framework:
default_path: '%kernel.project_dir%/translations'
fallbacks:
- en
# providers:
# crowdin:
# dsn: '%env(CROWDIN_DSN)%'
# loco:
# dsn: '%env(LOCO_DSN)%'
# lokalise:
# dsn: '%env(LOKALISE_DSN)%'
# phrase:
# dsn: '%env(PHRASE_DSN)%'
providers:

0 comments on commit 4021eb7

Please sign in to comment.