Update locale change method in test

Replaces the call to locale.setLocale with locale.set in LocaleKtTest to match the updated API for changing the locale.
This commit is contained in:
Stef Tervelde
2025-10-15 11:48:00 +02:00
parent 06e3094840
commit d42fb2fe36

View File

@@ -28,7 +28,7 @@ class LocaleKtTest {
Text(locale["menu.file.new"], modifier = Modifier.testTag("localisedText"))
Button(onClick = {
locale.setLocale(java.util.Locale("es"))
locale.set(java.util.Locale("es"))
}, modifier = Modifier.testTag("button")) {
Text("Change")
}