Commit 81833b6
committed
feature #38393 [FrameworkBundle] Add option --as-tree to translation:update command (jschaedl)
This PR was squashed before being merged into the 5.2-dev branch.
Discussion
----------
[FrameworkBundle] Add option --as-tree to translation:update command
| Q | A
| ------------- | ---
| Branch? | master<!-- see below -->
| Bug fix? | no
| New feature? | yes <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? |no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets | Fix #38344 <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License | MIT
| Doc PR | tbd. <!-- required for new features -->
Before:
```
$ bin/console translation:update --domain messages --output-format=yml --force en
# messages.yaml
app.backend.title: __app.backend.title
app.backend.content: __app.backend.content
```
After:
```
$ bin/console translation:update --domain messages --output-format=yml --force --as-tree=3 en
# messages.yaml
app:
backend:
title: __app.backend.title
content: __app.backend.content
```
Commits
-------
62cb77a [FrameworkBundle] Add option --as-tree to translation:update commandFile tree
3 files changed
+17
-1
lines changed- src/Symfony/Bundle/FrameworkBundle
- Command
- Tests/Command
3 files changed
+17
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
| |||
108 | 109 | | |
109 | 110 | | |
110 | 111 | | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
111 | 118 | | |
112 | 119 | | |
113 | 120 | | |
| |||
302 | 309 | | |
303 | 310 | | |
304 | 311 | | |
305 | | - | |
| 312 | + | |
306 | 313 | | |
307 | 314 | | |
308 | 315 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
35 | 43 | | |
36 | 44 | | |
37 | 45 | | |
| |||
0 commit comments