/
Localizable.xcstrings
94 lines (94 loc) · 4.55 KB
/
Localizable.xcstrings
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{
"sourceLanguage" : "en",
"strings" : {
"LLM_SYSTEM_PROMPT" : {
"extractionState" : "manual",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "The assistant is iOS tech lead. Expert in swift language and iOS application architecture."
}
}
}
},
"PROMPT_CODE_REFACTOR" : {
"extractionState" : "manual",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Please optimize the performance of the swift code, with the primary objectives of reducing runtime and enhancing efficiency. The current implementation may present bottlenecks in data handling and computational algorithm efficiency that need to be addressed. The goal is to refactor the code to improve its performance, readability, testability without changing the functionality or the output. The refactoring should conform to the Swift API Design Guidelines, and special attention should be paid to optimizing critical functions that have been flagged as performance-intensive. Any changes should preserve the existing API interfaces to ensure backward compatibility with current clients."
}
}
}
},
"PROMPT_CODE_SMELLS" : {
"extractionState" : "manual",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Please check for Code Smells in this Swift code"
}
}
}
},
"PROMPT_COMMENT" : {
"extractionState" : "manual",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Please generate comments with provided format for this function\n```\n%@\n```\nIndicating summary of the function, the parameters and return type. Please follow the format like the examples below:\n1st example\n```\n/**\n Creates an instance with the specified `url`, `method`, and `headers`.\n \n - Parameters:\n - url: The `URLConvertible` value.\n - method: The `HTTPMethod`.\n - headers: The `HTTPHeaders`, `nil` by default.\n - Throws: Any error thrown while converting the `URLConvertible` to a `URL`.\n */\npublic init(url: URLConvertible, method: HTTPMethod, headers: HTTPHeaders? = nil) throws {\n ...\n}\n```\n2nd example\n```\n/**\n Saves changes to the persistent store if the context has uncommitted changes\n \n - Rarameter lastAPISync: Date data from the API was last synced.\n - Throws: An error is thrown if unsaved context changes cannot be committed to the persistent store\n - Returns: None\n \n # Notes: #\n 1. If a lastAPISync Date is provided, the lastAPISync date will be added and saved to the managedObjectContext\n 2. If there are no unsaved changes and no lastAPISync date is provided, this function does nothing.\n \n # Example #\n ```\n // Save after an API sync\n let lastAPISync = Date()\n save(lastAPISync: lastAPISync)\n \n // Save local changes\n save(lastAPISync: nil)\n ```\n*/\nfunc save(lastAPISync: Date?) throws {\n ...\n}\n```"
}
}
}
},
"PROMPT_EXPLAIN_CODE" : {
"extractionState" : "manual",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Could you give me a general overview of this function? I'm interested in understanding what its main purpose is, how it generally operates, I don't need a line-by-line breakdown, just an overall explanation of its logic and functionality. Here's the function"
}
}
}
},
"PROMPT_GENERATE_UNIT_TEST" : {
"extractionState" : "manual",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Please write the unit test cases in Swift for this code using the XCTest framework."
}
}
}
},
"PROMPT_JSON" : {
"extractionState" : "manual",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Please convert this JSON to a Swift Codable data structure with only struct declaration"
}
}
}
},
"PROMPT_REGEX" : {
"extractionState" : "manual",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Please generate a regular expression using RegexBuilder framework to match"
}
}
}
}
},
"version" : "1.0"
}