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.
Files changed (2) hide show
  1. package/README.md +9 -9
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -2,16 +2,9 @@
2
2
 
3
3
  [![Test](https://github.com/mshibanami/Docsloth/actions/workflows/test.yml/badge.svg)](https://github.com/mshibanami/Docsloth/actions/workflows/test.yml) [![npm version](https://badge.fury.io/js/xcstrings-cli.svg)](https://badge.fury.io/js/xcstrings-cli) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
4
4
 
5
- This is a command-line tool designed for working with **xcstrings** files, we follow these principles:
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
- - **Preserve Xcode’s formatting**: It avoids making unnecessary changes to `xcstrings` files generated by Xcode, including indentation, spacing, and ordering.
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
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xcstrings-cli",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "A command line tool for handling xcstrings files.",
5
5
  "type": "module",
6
6
  "bin": {