Fix model role localization and skill wording
This commit is contained in:
1 parent
e2490285c9
commit
e4f3e21615
6 files changed
+30
-8
No files matched your search
@@ -675,7 +675,7 @@
|
||||
repositoryURL = "https://github.com/AkinoKaede/AgentKit.git";
|
||||
requirement = {
|
||||
kind = upToNextMajorVersion;
|
||||
minimumVersion = 0.6.0;
|
||||
minimumVersion = 0.6.1;
|
||||
};
|
||||
};
|
||||
/* End XCRemoteSwiftPackageReference section */
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
"kind" : "remoteSourceControl",
|
||||
"location" : "https://github.com/AkinoKaede/AgentKit.git",
|
||||
"state" : {
|
||||
"revision" : "ad0ab2f4f707657611faa671d41f229ff019d4e8",
|
||||
"version" : "0.6.0"
|
||||
"revision" : "41289294a7619d1d593c80d59f348f84f22a3126",
|
||||
"version" : "0.6.1"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@@ -1033,7 +1033,7 @@ struct ComposerView: View {
|
||||
commands.append(
|
||||
ChatSlashCommand(
|
||||
id: "skill", displayName: String(localized: "Skill"),
|
||||
summary: String(localized: "Use an installed procedure"),
|
||||
summary: String(localized: "Use an installed skill"),
|
||||
icon: .symbol(SkillChip.symbol),
|
||||
argumentHint: String(localized: "skill")
|
||||
))
|
||||
|
||||
@@ -83,6 +83,6 @@ private struct RolePicker: View {
|
||||
guard role == .chat, app.aiConfiguration.assignment(for: .chat) == nil,
|
||||
let resolved = app.aiConfiguration.resolve(.chat)
|
||||
else { return role.detail }
|
||||
return "\(role.detail) Currently \(resolved.model.label) on \(resolved.provider.name)."
|
||||
return String(localized: "\(role.detail) Currently \(resolved.model.label) on \(resolved.provider.name).")
|
||||
}
|
||||
}
|
||||
@@ -239,6 +239,16 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"%@ Currently %@ on %@." : {
|
||||
"localizations" : {
|
||||
"zh-Hans" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "%1$@当前使用%3$@提供的%2$@。"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"%@ through %@ · %@ effort" : {
|
||||
"localizations" : {
|
||||
"en" : {
|
||||
@@ -12812,14 +12822,14 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"Use an installed procedure" : {
|
||||
"comment" : "Command to use an installed procedure.",
|
||||
"Use an installed skill" : {
|
||||
"comment" : "Command to use an installed skill.",
|
||||
"isCommentAutoGenerated" : true,
|
||||
"localizations" : {
|
||||
"zh-Hans" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "使用已安装的流程"
|
||||
"value" : "使用已安装的技能"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -115,6 +115,18 @@ struct AppLanguageTests {
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
func automaticModelCaptionResolvesInChineseAndPreservesModelAndProvider() throws {
|
||||
let path = try #require(Bundle.main.path(forResource: "zh-Hans", ofType: "lproj"))
|
||||
let bundle = try #require(Bundle(path: path))
|
||||
let detail = "用于对话、工具和助手侧边栏。"
|
||||
let model = "model-example"
|
||||
let provider = "Example Provider"
|
||||
let caption = String(localized: "\(detail) Currently \(model) on \(provider).", bundle: bundle)
|
||||
|
||||
#expect(caption == "用于对话、工具和助手侧边栏。当前使用Example Provider提供的model-example。")
|
||||
}
|
||||
|
||||
@Test
|
||||
func countedToolResourcesUseCatalogPluralRules() throws {
|
||||
let repository = URL(fileURLWithPath: #filePath)
|
||||
|
||||
Reference in new issue
Block a user