add languages
parent
69dd7abaa7
commit
3c3a29896f
|
@ -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 ->
|
||||
|
|
Loading…
Reference in New Issue