diff --git a/app/src/main/java/dev/beefers/vendetta/manager/ui/screen/home/HomeScreen.kt b/app/src/main/java/dev/beefers/vendetta/manager/ui/screen/home/HomeScreen.kt
index 5f9c5c9..0ba5af3 100644
--- a/app/src/main/java/dev/beefers/vendetta/manager/ui/screen/home/HomeScreen.kt
+++ b/app/src/main/java/dev/beefers/vendetta/manager/ui/screen/home/HomeScreen.kt
@@ -110,18 +110,20 @@ class HomeScreen : ManagerTab {
horizontalAlignment = Alignment.CenterHorizontally,
modifier = Modifier.fillMaxWidth()
) {
- AnimatedVisibility(visible = viewModel.installManager.current != null) {
+ AnimatedVisibility(visible = currentVersion != null) {
Text(
- text = "Current: ${viewModel.installManager.current?.versionName}",
+ text = stringResource(R.string.version_current, currentVersion.toString()),
style = MaterialTheme.typography.labelLarge,
color = LocalContentColor.current.copy(alpha = 0.5f),
textAlign = TextAlign.Center
)
}
+ val latestLabel = if(prefs.discordVersion.isNotBlank()) R.string.version_target else R.string.version_latest
+
AnimatedVisibility(visible = latestVersion != null) {
Text(
- text = "Latest: $latestVersion",
+ text = stringResource(latestLabel, latestVersion.toString()),
style = MaterialTheme.typography.labelLarge,
color = LocalContentColor.current.copy(alpha = 0.5f),
textAlign = TextAlign.Center
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index bb40413..4dcceb5 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -106,4 +106,8 @@
Special thanks
Open source licenses
Translate
+
+ Latest: %1$s
+ Target: %1$s
+ Current: %1$s
\ No newline at end of file