Add app localization

This commit is contained in:
sergeych committed 2026-05-23 16:45:42 +03:00
1 parent 75ba13bde2
commit bad1e89c26
23 files changed
+815 -371

No files matched your search

@@ -75,7 +75,7 @@ actual suspend fun loadPlatformOpenBookRequest(): PlatformOpenBookRequest? = nul
actual suspend fun chooseLibraryScanDirectory(): String? = withContext(Dispatchers.IO) {
val chooser = JFileChooser(defaultLibraryScanPath())
chooser.fileSelectionMode = JFileChooser.DIRECTORIES_ONLY
chooser.dialogTitle = "Choose library folder"
chooser.dialogTitle = strings.chooseLibraryFolder
if (chooser.showOpenDialog(null) == JFileChooser.APPROVE_OPTION) {
chooser.selectedFile.absolutePath
} else {
@@ -0,0 +1,6 @@
package net.sergeych.toread
import java.util.Locale
internal actual fun platformLocaleTags(): List<String> =
listOf(Locale.getDefault().toLanguageTag())
@@ -6,8 +6,8 @@ import androidx.compose.ui.window.application
fun main() = application {
Window(
onCloseRequest = ::exitApplication,
title = "toread",
title = strings.appName,
) {
App()
}
}
}