android4-8 Exercise 1: Strings and a Translation
=============================================
Imports: androidx.compose.ui.res.stringResource, and your app's R class (import com.example.composehello.R).
ComposeHello
Hello, %1$s!
Open details
Text(text = stringResource(R.string.greeting, name))
Button(onClick = onOpen) { Text(stringResource(R.string.open_details)) }
ComposeHello
¡Hola, %1$s!
Abrir detalles
Expected: with the device language set to Spanish, the greeting reads "¡Hola, Ada!" and the button "Abrir detalles"; with English, the English strings.
(Language folders are general knowledge. If a string shows in the wrong language, check that the names in both files match exactly.) Code and XML unrun.