mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
chore: i18n
This commit is contained in:
parent
4568e03f5a
commit
4f2aa8c8f5
2 changed files with 6 additions and 4 deletions
|
@ -17,11 +17,13 @@ import androidx.compose.runtime.remember
|
|||
import androidx.compose.runtime.setValue
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.platform.LocalContext
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import androidx.lifecycle.viewmodel.compose.viewModel
|
||||
import dev.yokai.presentation.AppBarType
|
||||
import dev.yokai.presentation.YokaiScaffold
|
||||
import dev.yokai.presentation.component.EmptyScreen
|
||||
import dev.yokai.presentation.extension.repo.component.ExtensionRepoItem
|
||||
import eu.kanade.tachiyomi.R
|
||||
import eu.kanade.tachiyomi.util.system.toast
|
||||
import kotlinx.coroutines.flow.collectLatest
|
||||
|
||||
|
@ -59,8 +61,7 @@ fun ExtensionRepoScreen(
|
|||
item {
|
||||
ExtensionRepoItem(
|
||||
inputText = inputText,
|
||||
// TODO: i18n
|
||||
inputHint = "Add new repo",
|
||||
inputHint = stringResource(R.string.label_add_repo),
|
||||
onInputChange = { inputText = it },
|
||||
onAddClick = { viewModel.addRepo(it) },
|
||||
)
|
||||
|
@ -71,8 +72,7 @@ fun ExtensionRepoScreen(
|
|||
EmptyScreen(
|
||||
modifier = Modifier.fillParentMaxSize(),
|
||||
image = Icons.Filled.ExtensionOff,
|
||||
// TODO: i18n
|
||||
message = "No extension repo found",
|
||||
message = stringResource(R.string.information_empty_repos),
|
||||
)
|
||||
}
|
||||
return@LazyColumn
|
||||
|
|
|
@ -908,8 +908,10 @@
|
|||
|
||||
<!-- Extension repos -->
|
||||
<string name="source_repos">Extension Repos</string>
|
||||
<string name="label_add_repo">Add new repo</string>
|
||||
<string name="action_add_repo">Add repo</string>
|
||||
<string name="invalid_repo_url">Invalid repo url</string>
|
||||
<string name="information_empty_repos">You haven\'t added any repos yet.</string>
|
||||
|
||||
<!-- About section -->
|
||||
<string name="version">Version</string>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue