File tree Expand file tree Collapse file tree
apps/android/app/src/test/java/ai/openclaw/app Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,10 +6,10 @@ import ai.openclaw.app.i18n.nativeText
66import ai.openclaw.app.i18n.resolveNativeText
77import ai.openclaw.app.i18n.verbatimText
88import ai.openclaw.app.node.NodePresenceAliveBeacon
9+ import ai.openclaw.app.ui.chat.contextMeterThinkingLabel
910import ai.openclaw.app.ui.formatApprovalDuration
1011import ai.openclaw.app.ui.formatCronWake
1112import ai.openclaw.app.ui.formatUsageUpdated
12- import ai.openclaw.app.ui.chat.contextMeterThinkingLabel
1313import ai.openclaw.app.ui.skillWorkshopStatusLabel
1414import android.os.Build
1515import androidx.appcompat.app.AppCompatActivity
Original file line number Diff line number Diff line change @@ -82,11 +82,11 @@ class NativeStringsTest {
8282 }
8383
8484 @Test
85- fun resolvingStateFlowEmitsWhenThePersistedAppLocaleChanges () =
85+ fun resolvingStateFlowEmitsWhenTheAppLocaleChanges () =
8686 runBlocking {
8787 val app = RuntimeEnvironment .getApplication()
88- NativeStringResources .install(app)
8988 persistAppLocales(app, " en" )
89+ NativeStringResources .install(app)
9090 val resolved = MutableStateFlow (nativeText(" Mic off" )).resolveNativeText()
9191 val firstEmission = CompletableDeferred <Unit >()
9292 val emissions = mutableListOf<String >()
@@ -100,13 +100,14 @@ class NativeStringsTest {
100100
101101 try {
102102 firstEmission.await()
103- persistAppLocales(app, " fr" )
103+ NativeStringResources .setApplicationLocales( LocaleListCompat .forLanguageTags( " fr" ) )
104104 notifyNativeLocaleChanged()
105105 collection.join()
106106
107107 assertEquals(listOf (" Mic off" , " Micro désactivé" ), emissions)
108108 } finally {
109109 collection.cancel()
110+ NativeStringResources .setApplicationLocales(LocaleListCompat .getEmptyLocaleList())
110111 app.deleteFile(APP_LOCALES_FILE )
111112 }
112113 }
You can’t perform that action at this time.
0 commit comments