add languages

main
ByrmGkcn 2023-12-18 16:21:38 +01:00
parent 69dd7abaa7
commit 3c3a29896f
1 changed files with 4 additions and 0 deletions

View File

@ -23,6 +23,7 @@ val customRedColor = Color(0xFFB70D1B)
@Composable
@Preview
fun app() {
val languageManager = remember { LanguageManager() }
MaterialTheme {
val currentPage = remember { mutableStateOf("accueil") }
@ -46,6 +47,7 @@ fun app() {
when (currentPage.value) {
"accueil" -> {
homePage(
languageManager,
onGlossaryClick = { currentPage.value = "glossaires" },
onCodeToVerifyClick = { currentPage.value = "choixLangage" }
)
@ -199,6 +201,7 @@ fun app() {
"glossaireOptions" -> {
glossaryPage(
languageManager,
onAddWordClick = { currentPage.value = "formulaire" },
onImportClick = {
selectFile(setOf("csv", "xlsx")) { filePath ->
@ -244,6 +247,7 @@ fun app() {
val javaExtensions = setOf("java")
val jsExtensions = setOf("js", "html")
choixLangagePage(
languageManager,
onBackClick = { currentPage.value = "accueil" },
onPythonClick = {
selectFile(pythonExtensions) { filePath ->