88
99import SwiftUI
1010import QuickBloxUIKit
11+ import QBAIRephrase
1112
1213var appThemes : [ AppTheme ] = [ AppTheme ( color: QuickBloxUIKit . ThemeColor ( ) ,
1314 font: QuickBloxUIKit . ThemeFont ( ) ,
@@ -120,18 +121,19 @@ public class CustomImageTheme: ThemeImageProtocol {
120121}
121122
122123public class CustomThemeString : ThemeStringProtocol {
124+
123125 public var dialogsEmpty : String = String ( localized: " dialog.items.empty " )
124126 public var usersEmpty : String = String ( localized: " dialog.members.empty " )
125127 public var messegesEmpty : String = String ( localized: " dialog.messages.empty " )
126-
128+
127129 public var privateDialog : String = String ( localized: " dialog.type.private " )
128130 public var groupDialog : String = String ( localized: " dialog.type.group " )
129131 public var publicDialog : String = String ( localized: " dialog.type.group " )
130-
132+
131133 public var typingOne : String = String ( localized: " dialog.typing.one " )
132134 public var typingTwo : String = String ( localized: " dialog.typing.two " )
133135 public var typingFour : String = String ( localized: " dialog.typing.four " )
134-
136+
135137 public var enterName : String = String ( localized: " alert.actions.enterName " )
136138 public var nameHint : String = String ( localized: " dialog.name.hint " )
137139 public var create : String = String ( localized: " dialog.name.create " )
@@ -142,30 +144,30 @@ public class CustomThemeString: ThemeStringProtocol {
142144 public var notification : String = String ( localized: " dialog.info.notification " )
143145 public var searchInDialog : String = String ( localized: " dialog.info.searchInDialog " )
144146 public var leaveDialog : String = String ( localized: " dialog.info.leaveDialog " )
145-
147+
146148 public var you : String = String ( localized: " dialog.info.you " )
147149 public var admin : String = String ( localized: " dialog.info.admin " )
148150 public var typeMessage : String = String ( localized: " dialog.action.typeMessage " )
149-
151+
150152 public var dialogs : String = String ( localized: " screen.title.dialogs " )
151153 public var dialog : String = String ( localized: " screen.title.dialog " )
152154 public var dialogType : String = String ( localized: " screen.title.dialogType " )
153155 public var newDialog : String = String ( localized: " screen.title.newDialog " )
154156 public var createDialog : String = String ( localized: " screen.title.createDialog " )
155157 public var addMembers : String = String ( localized: " screen.title.addMembers " )
156158 public var dialogInformation : String = String ( localized: " screen.title.dialogInformation " )
157-
159+
158160 public var add : String = String ( localized: " alert.actions.add " )
159161 public var dialogName : String = String ( localized: " alert.actions.dialogName " )
160162 public var changeImage : String = String ( localized: " alert.actions.changeImage " )
161163 public var changeDialogName : String = String ( localized: " alert.actions.changeDialogName " )
162-
164+
163165 public var photo : String = String ( localized: " alert.actions.photo " )
164166 public var removePhoto : String = String ( localized: " alert.actions.removePhoto " )
165167 public var camera : String = String ( localized: " alert.actions.camera " )
166168 public var gallery : String = String ( localized: " alert.actions.gallery " )
167169 public var file : String = String ( localized: " alert.actions.file " )
168-
170+
169171 public var remove : String = String ( localized: " alert.actions.remove " )
170172 public var cancel : String = String ( localized: " alert.actions.cancel " )
171173 public var ok : String = String ( localized: " alert.actions.ok " )
@@ -179,15 +181,22 @@ public class CustomThemeString: ThemeStringProtocol {
179181 public var invalidAIAnswerAssist : String = String ( localized: " alert.message.invalidAIAnswerAssist " )
180182 public var invalidAITranslate : String = String ( localized: " alert.message.invalidAITranslate " )
181183 public var invalidAIRephrase : String = String ( localized: " alert.message.invalidAIRephrase " )
182-
184+ public var invalidAITranscribe : String = String ( localized: " alert.message.invalidAITranscribe " )
185+
186+ public var answerFailedAnswerAssist : String = String ( localized: " alert.message.answerFailedAnswerAssist " )
187+ public var answerFailedTranslate : String = String ( localized: " alert.message.answerFailedTranslate " )
188+ public var answerFailedRephrase : String = String ( localized: " alert.message.answerFailedRephrase " )
189+
183190 public var maxSize : String = String ( localized: " attachment.maxSize.title " )
184191 public var maxSizeHint : String = String ( localized: " attachment.maxSize.hint " )
192+ public var compressibleMaxSizeHint : String = String ( localized: " attachment.maxSize.compressibleHint " )
185193 public var fileTitle : String = String ( localized: " attachment.title.file " )
186194 public var gif : String = String ( localized: " attachment.title.gif " )
187195
188196 public var showOriginal : String = String ( localized: " ai.translate.showOriginal " )
189197 public var showTranslation : String = String ( localized: " ai.translate.showTranslation " )
190198 public var answerAssistTitle : String = String ( localized: " ai.answerAssist.title " )
199+ public var transcribeTitle : String = String ( localized: " ai.transcribe.title " )
191200
192201 public var permissionCameraTitle : String = String ( localized: " permission.camera.title " )
193202 public var permissionCameraMessage : String = String ( localized: " permission.camera.message " )
@@ -202,6 +211,50 @@ public class CustomThemeString: ThemeStringProtocol {
202211 public var addedBy : String = String ( localized: " utils.string.addedBy " )
203212 public var removedBy : String = String ( localized: " utils.string.removedBy " )
204213 public var hasLeft : String = String ( localized: " utils.string.hasLeft " )
205-
214+ public var today : String = String ( localized: " utils.string.today " )
215+ public var yesterday : String = String ( localized: " utils.string.yesterday " )
216+
217+ public var connecting : String = String ( localized: " utils.string.connecting " )
218+ public var update : String = String ( localized: " utils.string.update " )
219+ public var disconnected : String = String ( localized: " utils.string.disconnected " )
220+ public var connected : String = String ( localized: " utils.string.connected " )
221+ public var unauthorized : String = String ( localized: " utils.string.unauthorized " )
222+ public var authorized : String = String ( localized: " utils.string.authorized " )
223+
206224 public init ( ) { }
207225}
226+
227+ import QBAIRephrase
228+
229+ public extension QBAIRephrase . AITone {
230+ static let slang = QBAIRephrase . AITone (
231+ name: " Slang " ,
232+ description: " This will allow messages to be edited to sound less formal, using slang language including strong language, unclear sentence structures, and not maintaining a respectful tone. This would avoid formal speech and ensure appropriate greetings and signatures. " ,
233+ icon: " 🗣️ "
234+ )
235+ static let youth = QBAIRephrase . AITone (
236+ name: " Youth " ,
237+ description: " This will allow you to edit messages so that they sound youthful and less formal, using youth slang vocabulary that includes juvenile expressions, unclear sentence structure and without maintaining a formal tone. This will avoid formal speech and ensure appropriate youth greetings and signatures. " ,
238+ icon: " 🛹 "
239+ )
240+
241+ static let doctor = QBAIRephrase . AITone (
242+ name: " Doctor " ,
243+ description: " This will allow you to edit messages so that they sound doctoral, using medical and medical vocabulary, including professional expressions, unclear sentence structure. This will allow you to make speeches in a medical-doctoral tone and provide appropriate medical greetings and signatures. " ,
244+ icon: " 🩺 "
245+ )
246+
247+ static let gangster = QBAIRephrase . AITone (
248+ name: " Gangster " ,
249+ description: " This will allow you to edit the messages so that they sound in a gangster-like and least formal manner, using gangster slang vocabulary including strong expressions, unclear sentence structures and not maintaining a respectful tone. This would avoid formal speech and ensure appropriate gang greetings and signatures. " ,
250+ icon: " 🥷 "
251+ )
252+ }
253+
254+ public var customTones : [ QBAIRephrase . AITone ] = [
255+ . gangster,
256+ . youth,
257+ . slang,
258+ . neutral,
259+ . poetic
260+ ]
0 commit comments