Skip to content

Commit 9747d12

Browse files
committed
docs: Add example output bad lang keys
1 parent 66d4f0e commit 9747d12

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

user_guide_src/source/outgoing/localization.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,27 @@ Before updating, it is possible to preview the translations found by the command
284284
285285
php spark lang:find --verbose --show-new
286286
287+
The detailed output of ``--verbose`` also shows a list of invalid keys. For example:
288+
289+
.. code-block:: console
290+
291+
...
292+
293+
Files found: 10
294+
New translates found: 30
295+
Bad translates found: 5
296+
+------------------------+---------------------------------+
297+
| Bad Key | Filepath |
298+
+------------------------+---------------------------------+
299+
| ..invalid_nested_key.. | app/Controllers/Translation.php |
300+
| .invalid_key | app/Controllers/Translation.php |
301+
| TranslationBad | app/Controllers/Translation.php |
302+
| TranslationBad. | app/Controllers/Translation.php |
303+
| TranslationBad... | app/Controllers/Translation.php |
304+
+------------------------+---------------------------------+
305+
306+
All operations done!
307+
287308
For a more accurate search, specify the desired locale or directory to scan.
288309

289310
.. code-block:: console

0 commit comments

Comments
 (0)