Skip to content

Commit 47666e8

Browse files
committed
Add Vietnamese translation support
1 parent 7a6fe4a commit 47666e8

1 file changed

Lines changed: 3 additions & 33 deletions

File tree

src/models/TranslateAPIConfig.cs

Lines changed: 3 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System.ComponentModel;
1+
using System.ComponentModel;
22
using System.Runtime.CompilerServices;
33
using System.Text.Json.Serialization;
44

@@ -28,6 +28,8 @@ public class TranslateAPIConfig : INotifyPropertyChanged
2828
{ "pt-BR", "pt-BR" },
2929
{ "tr-TR", "tr-TR" },
3030
{ "ar-SA", "ar-SA" },
31+
{ "vn-EN", "vn-EN" },
32+
{ "vi-US", "vi-US" },
3133
};
3234

3335
public event PropertyChangedEventHandler? PropertyChanged;
@@ -88,17 +90,6 @@ public class Response
8890

8991
private string apiUrl = "http://localhost:11434";
9092

91-
public int keep_alive = 600;
92-
93-
public int Keep_alive
94-
{
95-
get => keep_alive;
96-
set
97-
{
98-
keep_alive = value;
99-
OnPropertyChanged("Keep_alive");
100-
}
101-
}
10293
public string ApiUrl
10394
{
10495
get => apiUrl;
@@ -175,27 +166,6 @@ public string ApiKey
175166
}
176167
}
177168

178-
public class LMStudioConfig : BaseLLMConfig
179-
{
180-
public class Response
181-
{
182-
public string model { get; set; }
183-
public string output { get; set; }
184-
}
185-
186-
private string apiUrl = "http://localhost:1234/api/v1";
187-
188-
public string ApiUrl
189-
{
190-
get => apiUrl;
191-
set
192-
{
193-
apiUrl = value;
194-
OnPropertyChanged("ApiUrl");
195-
}
196-
}
197-
}
198-
199169
public class DeepLConfig : TranslateAPIConfig
200170
{
201171
[JsonIgnore]

0 commit comments

Comments
 (0)