Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
richardDobron committed Jul 10, 2022
1 parent 2a524eb commit 34cfdbe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion docs/translating.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ php ./vendor/bin/fbt generate-translations --src=./path/to/.source_strings.json
### Options:
| name | default | description |
|-------------------------|--------------------------|-------------------------------------------------------------------------------------------------------|
| --src | ./.source_strings.json | Path to colleccted source strings file |
| --src | ./.source_strings.json | Path to collected source strings file |
| --translation-input | ./translation_input.json | Path to translation input file |
| --translations=`[path]` | *none* | The translation files containing translations.<br>E.g. `--translations=./path/to/translations/*.json` |

Expand All @@ -33,6 +33,8 @@ php ./vendor/bin/fbt translate --path=/path/to/storage --translations=/path/to/t
| --translations=`[path]` | *none* | The translation files containing translations.<br>E.g. `--translations=/path/to/translations/*.json` |
| --stdin < translation_input.json | *none* | Instead of reading translation files and source file separately, read monolithic JSON file from STDIN |

## JSON schema:

In addition to the below example, the `translation_input.json`
provided in our [tests](https://github.com/richardDobron/fbt/blob/main/tests/translations/stdin-data/translation_input.json)
is a good reference on the "schema" used for the translations.
Expand Down
4 changes: 2 additions & 2 deletions src/fbt/Services/TranslationsGeneratorService.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,10 @@ public function generateTranslations(string $source, $translationsPath, $inputPa
[
'translation' => '',
'variations' => [],
'tokens' => [],
'types' => [],
],
],
'tokens' => [],
'types' => [],
];
}
}
Expand Down

0 comments on commit 34cfdbe

Please sign in to comment.