Skip to content

Commit 62c644e

Browse files
authored
Fix translation provider add-lines instructions (#1259)
1 parent 1f1a1df commit 62c644e

File tree

7 files changed

+24
-30
lines changed

7 files changed

+24
-30
lines changed

symfony/crowdin-translation-provider/5.3/manifest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"add-lines": [
33
{
4-
"file": "config/packages/notifier.yaml",
4+
"file": "config/packages/translation.yaml",
55
"position": "after_target",
6-
"target": " texter_transports:",
7-
"content": " crowdin: '%env(CROWDIN_DSN)%'"
6+
"target": " providers:",
7+
"content": " crowdin:\n dsn: '%env(CROWDIN_DSN)%'"
88
}
99
],
1010
"env": {

symfony/loco-translation-provider/5.3/manifest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"add-lines": [
33
{
4-
"file": "config/packages/notifier.yaml",
4+
"file": "config/packages/translation.yaml",
55
"position": "after_target",
6-
"target": " texter_transports:",
7-
"content": " loco: '%env(LOCO_DSN)%'"
6+
"target": " providers:",
7+
"content": " loco:\n dsn: '%env(LOCO_DSN)%'"
88
}
99
],
1010
"env": {

symfony/lokalise-translation-provider/5.3/manifest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"add-lines": [
33
{
4-
"file": "config/packages/notifier.yaml",
4+
"file": "config/packages/translation.yaml",
55
"position": "after_target",
6-
"target": " texter_transports:",
7-
"content": " lokalise: '%env(LOKALISE_DSN)%'"
6+
"target": " providers:",
7+
"content": " lokalise:\n dsn: '%env(LOKALISE_DSN)%'"
88
}
99
],
1010
"env": {

symfony/phrase-translation-provider/6.3/manifest.json

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"add-lines": [
3+
{
4+
"file": "config/packages/translation.yaml",
5+
"position": "after_target",
6+
"target": " providers:",
7+
"content": " phrase:\n dsn: '%env(PHRASE_DSN)%'"
8+
}
9+
],
10+
"env": {
11+
"#1": "PHRASE_DSN=phrase://PROJECT_ID:API_TOKEN@default?userAgent=Symfony-Phrase-Provider"
12+
}
13+
}

symfony/translation/5.3/config/packages/translation.yaml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,4 @@ framework:
44
default_path: '%kernel.project_dir%/translations'
55
fallbacks:
66
- en
7-
# providers:
8-
# crowdin:
9-
# dsn: '%env(CROWDIN_DSN)%'
10-
# loco:
11-
# dsn: '%env(LOCO_DSN)%'
12-
# lokalise:
13-
# dsn: '%env(LOKALISE_DSN)%'
7+
providers:

symfony/translation/6.3/config/packages/translation.yaml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,4 @@ framework:
44
default_path: '%kernel.project_dir%/translations'
55
fallbacks:
66
- en
7-
# providers:
8-
# crowdin:
9-
# dsn: '%env(CROWDIN_DSN)%'
10-
# loco:
11-
# dsn: '%env(LOCO_DSN)%'
12-
# lokalise:
13-
# dsn: '%env(LOKALISE_DSN)%'
14-
# phrase:
15-
# dsn: '%env(PHRASE_DSN)%'
7+
providers:

0 commit comments

Comments
 (0)