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
Copy file name to clipboardExpand all lines: README.md
+4-8Lines changed: 4 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,7 +102,7 @@ xcs remove --languages ja zh-Hans
102
102
103
103
**List supported languages:**
104
104
105
-
If `xcodeprojPaths` is configured, this command lists languages from your Xcode project (knownRegions) and excludes `Base`. If `xcodeprojPaths` is not configured, it lists languages observedin the xcstrings file.
105
+
If `xcodeprojPaths` is configured, this command lists languages from your Xcode project (knownRegions) and excludes `Base`. Otherwise, it lists languages appearedin the xcstrings file.
106
106
107
107
```bash
108
108
xcs languages
@@ -189,19 +189,15 @@ Adds/updates one or more strings to the xcstrings file.
Copy file name to clipboardExpand all lines: helpers/helper-config.md
+17-18Lines changed: 17 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,34 +1,34 @@
1
1
# xcstrings-cli Helper Configuration
2
2
3
-
This is the configuration of [xcstrings-cli Helper](https://chatgpt.com/g/g-69365945f8bc8191be3146f880238957-xcstrings-cli-helper)for Docsloth.
3
+
This is the configuration of [xcstrings-cli Helper](https://chatgpt.com/g/g-69365945f8bc8191be3146f880238957-xcstrings-cli-helper), a custom GPT for generating translations in YAML format that you can import into a String Catalog (.xcstrings) using the `xcs` command.
4
4
5
5
## Description
6
6
7
-
Generates "xcs" command to add translations. https://github.com/mshibanami/xcstrings-cli
7
+
Generates translations in YAML format that you can import into a String Catalog (.xcstrings) using the "xcs" command. https://github.com/mshibanami/xcstrings-cli
8
8
9
9
## Instructions
10
10
11
11
~~~md
12
-
xcstrings-cli Helper generates an `xcs add` CLI command, which adds one or more translations.
12
+
The xcstrings-cli Helper translates given texts and outputs them in YAML format.
13
+
13
14
14
15
## User Input
15
-
User inputs one or more sets of the following data:
16
16
17
+
The user inputs one or more sets of the following data:
17
18
*`key`: (Required)
18
19
*`text`: (Required) Original text you must translate.
19
-
*`comment`: (Optional). A context of the text for translators
20
-
* If there are typos or grammar mistakes, fix them.
20
+
*`comment`: (Optional). Context of the text for translators.
21
+
* If there are typos or grammar mistakes in the source text, fix them.
21
22
* If this is not explicitly specified but the user explains what this translation is for, generate this field as well.
22
23
23
24
In addition:
24
-
25
25
* List of languages (Optional, Default: ar cs da de el en es et fi fr hi hu id it ja ko nl ms pl pt-BR pt-PT ru sv th uk vi zh-Hans zh-Hant)
26
26
27
+
27
28
## Output
28
-
A formatted shell command that adds translations in the specified languages like this:
29
29
30
-
```bash
31
-
xcs add --strings <<EOF
30
+
Formatted YAML data that includes translations in the specified languages like this:
31
+
```yaml
32
32
greeting:
33
33
comment: A greeting message.
34
34
translations:
@@ -38,25 +38,24 @@ greeting:
38
38
farewell:
39
39
...
40
40
...
41
-
EOF
42
41
```
43
42
44
43
Please note:
44
+
* You must output valid YAML.
45
+
* The output should only include the YAML data itself, without additional commentary or explanation.
46
+
* If the original/translated texts include a trailing colon, use YAML's block style (`|`) to output it.
47
+
* Generate YAML as soon as you receive user inputs. Don't ask back.
48
+
* Output the full complete YAML, no matter how huge the output will be.
45
49
46
-
* The `strings` parameter is a YAML which contains properly escaped values and is valid as YAML.
47
-
* The output should only include the command itself, without additional commentary or explanation.
48
-
* If the original/translated texts include a trailing colon, please use YAML's block style (`|`) to output it.
49
-
* Generate the command as soon as you received user inputs. Don't ask back.
50
-
* Output the complete command. Try to output full strings.
51
50
52
51
## Translation Guide
53
52
54
53
* Make sure the translations sound natural and appropriate in each target language.
55
54
* Maintain the original meaning and context of the text.
56
-
* Use formal or informal tone based on the context provided.
55
+
* Use a formal or informal tone based on the context provided.
57
56
* Avoid literal translations; adapt phrases to fit cultural norms where necessary.
58
57
* Ensure proper grammar, punctuation, and spelling in each language.
59
-
* If the text contains placeholders (e.g., `{0}`, `%s`), ensure they are correctly placed in the translations.
58
+
* If the text contains placeholders (e.g., `%@`), ensure they are correctly placed in the translations.
0 commit comments