Skip to content

Commit 008855d

Browse files
committed
translate main code completed some ui change it
1 parent cd065dd commit 008855d

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

src/main/kotlin/App.kt

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,19 @@ fun App() {
3434
mutableStateOf(
3535
"""
3636
<resources>
37+
<string name="app_name">String Translator App</string>
38+
<string name="hello">Hello, I am Meet</string>
39+
<string name="how_are_you">How are You?</string>
3740
<string name="video_directory" translatable="false">Video folder</string>
38-
<string name="extract_audio">Hello Meet</string>
39-
<string name="extract">How are You?</string>
41+
<string name="no_internet">Please check your network connection</string>
42+
<string name="api_failed">Something not right, Please try again</string>
43+
<string name="permission_error">This App will need Permission on your device.</string>
44+
<string name="question_favorites">What are your favorites?</string>
45+
<string name="answer_grateful">I'm grateful for your help</string>
46+
<string name="loading_ad" translatable="false">loading_ad</string>
47+
<string name="app_id" translatable="false">ca-app-pub-3940256099942544~3347511713</string>
48+
<string name="app_open_ads" translatable="false">ca-app-pub-3940256099942544/3419835294</string>
49+
<string name="request_assistance">Can you assist me?</string>
4050
</resources>
4151
""".trimIndent()
4252
)
@@ -106,14 +116,4 @@ fun App() {
106116
}
107117

108118
}
109-
}
110-
111-
//fun showToast() {
112-
// isShowToast = true
113-
// toastMessage = "This is a toast message!"
114-
// // Delay to simulate a real-world scenario
115-
// CoroutineScope(Dispatchers.IO).launch {
116-
// delay(3000)
117-
// isShowToast = false
118-
// }
119-
//}
119+
}

src/main/kotlin/components/Components.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ fun translateDialog(
218218
onDismiss: () -> Unit,
219219
) {
220220
var checkedCountryListState by remember { mutableStateOf(languageList) }
221-
var progressState by remember { mutableStateOf(50) }
221+
var progressState by remember { mutableStateOf(0) }
222222
val dialogState = DialogState(
223223
width = 1000.dp, height = 720.dp, position = WindowPosition(Alignment.Center)
224224
)

0 commit comments

Comments
 (0)