Skip to content

Commit 3615c77

Browse files
committed
fix: Locale is not used in prompt (#24).
1 parent deb90ce commit 3615c77

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Changelog
22

33
## [Unreleased]
4+
### Fixed
5+
- Locale is not used in prompt.
46

57
## [0.6.1] - 2023-04-10
68

src/main/kotlin/com/github/blarc/ai/commits/intellij/plugin/settings/AppSettings.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ class AppSettings : PersistentStateComponent<AppSettings> {
3939
}
4040

4141
fun getPrompt(diff: String): String {
42-
val content = currentPrompt.content
43-
content.replace("{locale}", locale.displayName)
42+
var content = currentPrompt.content
43+
content = content.replace("{locale}", locale.displayName)
4444

4545
return if (content.contains("{diff}")) {
4646
content.replace("{diff}", diff)

0 commit comments

Comments
 (0)