Skip to content

Commit

Permalink
Merge pull request #62 from leancodepl/task/restructure-readme
Browse files Browse the repository at this point in the history
Small readme changes
  • Loading branch information
Albert221 authored Mar 9, 2023
2 parents cfddb61 + 0aefac0 commit db4cd0b
Showing 1 changed file with 17 additions and 21 deletions.
38 changes: 17 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,26 +26,6 @@ brew install poe2arb
`poe2arb` operates on POEditor's _JSON_ (not _JSON key-value_) export file
format.

**TL;DR:** Use `poe2arb poe` command for a seamless integration.

### Conversion

`poe2arb convert` command only converts the POE export to ARB format. Refer to
[Supported features](#syntax--supported-features) section.

For conversion, you need to pass the translation file language in the
`--lang/-l` flag.

By default, a template ARB file is generated. So no empty message is skipped and attributes are generated. If you want to skip that, pass `--no-template` flag.

Currently, only an stdin/stdout is supported for the `poe2arb convert` command.

#### stdin/stdout

```
poe2arb convert io --lang en < Hello_World_English.json > lib/l10n/app_en.arb
```

### Full POEditor integration

`poe2arb poe` command is your Swiss Army Knife enabling integrating POEditor
Expand All @@ -65,6 +45,22 @@ into your Flutter workspace in one command:
| `-o, --output-dir` | ARB files output directory. | Defaults to `arb-dir` from `l10n.yaml`. If it's empty, then defaults to `.`. |
| `--langs` | Exported languages override. | Defaults to empty, no override. |

### Conversion

`poe2arb convert` command only converts the POE export to ARB format. Refer to
[Supported features](#syntax--supported-features) section.

For conversion, you need to pass the translation file language in the
`--lang/-l` flag.

By default, a template ARB file is generated. So no empty message is skipped and attributes are generated. If you want to skip that, pass `--no-template` flag.

Currently, only an stdin/stdout is supported for the `poe2arb convert` command.

```
poe2arb convert io --lang en < Hello_World_English.json > lib/l10n/app_en.arb
```

## Syntax & supported features

Term name must be a valid Dart field name, additionaly, it must start with a
Expand Down Expand Up @@ -175,7 +171,7 @@ workflow will take care of the rest.

```
git tag v0.1.1
git push --tags
git push origin v0.1.1
```

[github-release-link]: https://github.com/leancodepl/poe2arb/releases
Expand Down

0 comments on commit db4cd0b

Please sign in to comment.