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