xcstrings-cli 1.6.0 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,16 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://github.com/mshibanami/Docsloth/actions/workflows/test.yml) [](https://badge.fury.io/js/xcstrings-cli) [](https://opensource.org/licenses/MIT)
|
|
4
4
|
|
|
5
|
-
This is a command-line tool designed for working with **xcstrings** files,
|
|
5
|
+
This is a command-line tool designed for working with **xcstrings** files, such as adding and removing localized strings. It supports JSON5 and YAML formats for inputting translations.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
- **No automatic translation**: It does not translate any content in your existing `xcstrings` files.
|
|
9
|
-
- **AI-friendly workflow**: It makes it easy to import translations generated by AI services, such as ChatGPT, into your `xcstrings` files.
|
|
10
|
-
|
|
11
|
-
## AI Translation Support
|
|
12
|
-
|
|
13
|
-
We also provide a Custom GPT that can help you generate translations and output them in the form of an `xcstrings` command.
|
|
14
|
-
Check it out here: [xcstrings-cli Helper](https://chatgpt.com/g/g-69365945f8bc8191be3146f880238957-xcstrings-cli-helper).
|
|
7
|
+
We also provide a Custom GPT that can help you generate translations and output them in the form of an `xcstrings` command. Check it out here: [xcstrings-cli Helper](https://chatgpt.com/g/g-69365945f8bc8191be3146f880238957-xcstrings-cli-helper). (The configuration is in [helpers/helper-config.md](./helpers/helper-config.md).)
|
|
15
8
|
|
|
16
9
|
## Installation
|
|
17
10
|
|
|
@@ -57,6 +50,13 @@ xcstrings add \
|
|
|
57
50
|
}
|
|
58
51
|
EOF
|
|
59
52
|
|
|
53
|
+
# Add translations via file
|
|
54
|
+
xcstrings add \
|
|
55
|
+
--key greeting \
|
|
56
|
+
--comment "A greeting message." \
|
|
57
|
+
--strings-format yaml \
|
|
58
|
+
--strings < translations.yaml
|
|
59
|
+
|
|
60
60
|
# Add with only key and comment
|
|
61
61
|
xcstrings add --key greeting --comment "A greeting message."
|
|
62
62
|
```
|