-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use composeResources for strings
- Loading branch information
Showing
54 changed files
with
321 additions
and
523 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
app/src/androidMain/kotlin/dev/alvr/katana/ui/main/navigation/items/NavigationBarItem.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
package dev.alvr.katana.ui.main.navigation.items | ||
|
||
import androidx.annotation.StringRes | ||
import androidx.compose.ui.graphics.vector.ImageVector | ||
import com.ramcosta.composedestinations.spec.NavGraphSpec | ||
import org.jetbrains.compose.resources.ExperimentalResourceApi | ||
import org.jetbrains.compose.resources.StringResource | ||
|
||
@OptIn(ExperimentalResourceApi::class) | ||
internal sealed interface NavigationBarItem { | ||
val direction: NavGraphSpec | ||
val icon: ImageVector | ||
@get:StringRes val label: Int | ||
val label: StringResource | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="app_name" translatable="false">Katana</string> | ||
|
||
<string name="navigation_bar_destination_anime_lists">Anime</string> | ||
<string name="navigation_bar_destination_manga_lists">Manga</string> | ||
<string name="navigation_bar_destination_social">Social</string> | ||
<string name="navigation_bar_destination_explore">Explore</string> | ||
<string name="navigation_bar_destination_account">Account</string> | ||
|
||
<string name="session_expired_error_title">Session expired</string> | ||
<string name="session_expired_error_message">Anilist\'s session has expired. To continue using Katana you need to log in again.</string> | ||
<string name="session_expired_error_confirm_button">Log in</string> | ||
</resources> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="navigation_bar_destination_anime_lists">Anime</string> | ||
<string name="navigation_bar_destination_manga_lists">Manga</string> | ||
<string name="navigation_bar_destination_social">Social</string> | ||
<string name="navigation_bar_destination_explore">Explore</string> | ||
<string name="navigation_bar_destination_account">Account</string> | ||
|
||
<string name="session_expired_error_title">Session expired</string> | ||
<string name="session_expired_error_message">Anilist\'s session has expired. To continue using Katana you need to log in again.</string> | ||
<string name="session_expired_error_confirm_button">Log in</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
ui/account/src/commonMain/composeResources/values-es/strings.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="title">Cuenta</string> | ||
<string name="logout_button">Cerrar sesión</string> | ||
</resources> |
5 changes: 5 additions & 0 deletions
5
ui/account/src/commonMain/composeResources/values/strings.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="title">Cuenta</string> | ||
<string name="logout_button">Cerrar sesión</string> | ||
</resources> |
25 changes: 0 additions & 25 deletions
25
ui/account/src/commonMain/kotlin/dev/alvr/katana/ui/account/strings/AccountStrings.kt
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
ui/account/src/commonMain/kotlin/dev/alvr/katana/ui/account/strings/enAccountStrings.kt
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
ui/account/src/commonMain/kotlin/dev/alvr/katana/ui/account/strings/esAccountStrings.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
ui/base/src/commonMain/composeResources/values-es/strings.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="component_empty_state">No se han encontrado datos.</string> | ||
<string name="component_error_state">Ha ocurrido un error.</string> | ||
<string name="component_error_state_retry_button">Intentar de nuevo.</string> | ||
|
||
<string name="toolbar_menu_search">Menú de búsqueda</string> | ||
<string name="toolbar_menu_filter">Menú de filtrado</string> | ||
|
||
<string name="toolbar_search_close">Cerrar búsqueda</string> | ||
<string name="toolbar_search_clear">Limpiar búsqueda</string> | ||
</resources> |
12 changes: 12 additions & 0 deletions
12
ui/base/src/commonMain/composeResources/values/strings.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="component_empty_state">No data has been found.</string> | ||
<string name="component_error_state">An error occurred.</string> | ||
<string name="component_error_state_retry_button">Retry again.</string> | ||
|
||
<string name="toolbar_menu_search">Search menu</string> | ||
<string name="toolbar_menu_filter">Filter menu</string> | ||
|
||
<string name="toolbar_search_close">Close search</string> | ||
<string name="toolbar_search_clear">Clear search input</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.