You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update README for 0.4.0 release and plural support
Bump version references from 0.3.1/0.2.0 to 0.4.0. Update documentation to clarify full plural support for Android and .xcstrings, and add notes on plural handling in the CLI. Minor improvements to usage instructions and feature tables.
Copy file name to clipboardExpand all lines: README.md
+13-7Lines changed: 13 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@
8
8
9
9
## Status
10
10
11
-
This is a `0.3.1` release available on [crates.io](https://crates.io/crates/langcodec). As a 0.x version, the API may evolve as development continues. The library is functional and well-tested, but breaking changes may occur in future releases. Contributions and feedback are very welcome to help shape the future of this project!
11
+
This is a `0.4.0` release available on [crates.io](https://crates.io/crates/langcodec). As a 0.x version, the API may evolve as development continues. The library is functional and well-tested, but breaking changes may occur in future releases. Contributions and feedback are very welcome to help shape the future of this project!
- For CSVfiles, the language code (`--lang`) is required for most operations.
165
+
- For CSV/TSV single-language files, the language code (`--lang`) may be required.
166
166
- All commands support Apple `.strings`, `.xcstrings`, Android `strings.xml`, and CSV.
167
167
- The convert command also supports JSON files with key-value pairs.
168
168
- The CLI will error if you try to merge files of different formats.
169
169
- Android path inference: `values/strings.xml` (no qualifier) defaults to English (`en`).
170
170
- When converting to `.xcstrings`, if `source_language` or `version` metadata is missing, the CLI defaults them to `en` and `1.0` respectively (overridable via flags).
171
171
172
+
#### Plurals
173
+
174
+
- Android `<plurals>` are fully supported. They convert to the internal `Translation::Plural` representation and back to `<plurals>` with quantities `zero/one/two/few/many/other`.
175
+
-`.xcstrings` plural variations convert to Android `<plurals>` when targeting Android output.
176
+
- The `view` command prints plural entries with a "Type: Plural" header and each category/value.
177
+
172
178
#### Custom Formats
173
179
174
180
The CLI supports additional custom formats for specialized use cases:
0 commit comments