Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,29 @@ langcodec translate \
--provider openai \
--model gpt-5.4

# Draft translations between single-language files too
langcodec translate \
--source en.lproj/Localizable.strings \
--target values-fr/strings.xml \
--source-lang en \
--target-lang fr \
--provider openai \
--model gpt-5.4

# Generate translator-facing comments from source usage
langcodec annotate \
--input Localizable.xcstrings \
--source-root Sources \
--source-root Modules \
--provider openai \
--model gpt-5.4

# Annotate Apple .strings or Android XML inline
langcodec annotate \
--input en.lproj/Localizable.strings \
--source-root Sources \
--provider openai \
--model gpt-5.4
```

## Packages
Expand All @@ -115,7 +131,7 @@ langcodec annotate \

## AI Workflows

`langcodec` is built for app localization workflows, not just isolated text snippets. `translate` and `annotate` can be driven from a shared `langcodec.toml`, use supported providers such as OpenAI, Anthropic, and Gemini, and scale from a single catalog to config-driven runs across larger repos.
`langcodec` is built for app localization workflows, not just isolated text snippets. `translate` and `annotate` can be driven from a shared `langcodec.toml`, use supported providers such as OpenAI, Anthropic, and Gemini, and scale from single-language files or `.xcstrings` catalogs to config-driven runs across larger repos.

```toml
[openai]
Expand Down
11 changes: 10 additions & 1 deletion langcodec-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ langcodec translate \
`translate` is built for app catalogs, not just raw text:

- updates multi-language files like `.xcstrings` in place
- supports single-language Apple `.strings` and Android `strings.xml` files too
- supports multiple target languages in one run
- can prefill from Tolgee before using AI fallback
- shows live progress with `--ui auto|plain|tui`
Expand All @@ -56,7 +57,15 @@ langcodec annotate \
--model gpt-5.4
```

`annotate` looks through your codebase and writes better `.xcstrings` comments for translators while preserving manual comments.
`annotate` looks through your codebase and writes better translator comments for `.xcstrings`, Apple `.strings`, and Android `strings.xml` files while preserving manual comments.

```sh
langcodec annotate \
--input en.lproj/Localizable.strings \
--source-root Sources \
--provider openai \
--model gpt-5.4
```

### Tolgee sync without a pile of project scripts

Expand Down
Loading
Loading