feat: Rename to Toju and add translation
Deploy Web Apps / deploy (push) Successful in 5m52s
Build Android APK / build-android-apk (push) Failing after 23m15s
Queue Release Build / prepare (push) Successful in 1m42s
Queue Release Build / build-linux (push) Failing after 9m33s
Queue Release Build / build-windows (push) Successful in 26m5s
Queue Release Build / finalize (push) Has been skipped
Deploy Web Apps / deploy (push) Successful in 5m52s
Build Android APK / build-android-apk (push) Failing after 23m15s
Queue Release Build / prepare (push) Successful in 1m42s
Queue Release Build / build-linux (push) Failing after 9m33s
Queue Release Build / build-windows (push) Successful in 26m5s
Queue Release Build / finalize (push) Has been skipped
This commit is contained in:
@@ -20,6 +20,7 @@ import type {
|
||||
MatchedGame,
|
||||
User
|
||||
} from '../../../shared-kernel';
|
||||
import { initializeAppI18nForTests, provideAppI18nForTests } from '../../../core/i18n/app-i18n.testing';
|
||||
import { GameActivityService } from './game-activity.service';
|
||||
|
||||
const alice = createUser('alice-id', 'alice-oder', 'Alice');
|
||||
@@ -199,6 +200,7 @@ function createServiceContext(options: ServiceContextOptions): ServiceContext {
|
||||
: options.electronApi;
|
||||
const injector = Injector.create({
|
||||
providers: [
|
||||
...provideAppI18nForTests(),
|
||||
{
|
||||
provide: ElectronBridgeService,
|
||||
useValue: { getApi: () => electronApi }
|
||||
@@ -230,6 +232,7 @@ function createServiceContext(options: ServiceContextOptions): ServiceContext {
|
||||
}
|
||||
]
|
||||
});
|
||||
initializeAppI18nForTests(injector);
|
||||
const service = runInInjectionContext(injector, () => new GameActivityService());
|
||||
const context = {
|
||||
incomingMessages,
|
||||
|
||||
@@ -7,6 +7,7 @@ import {
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
import { Store } from '@ngrx/store';
|
||||
import { Subscription, firstValueFrom } from 'rxjs';
|
||||
import { AppI18nService } from '../../../core/i18n';
|
||||
import { ElectronBridgeService } from '../../../core/platform/electron/electron-bridge.service';
|
||||
import { jsonStorage } from '../../../infrastructure/persistence/json-storage.service';
|
||||
import { RealtimeSessionFacade } from '../../../core/realtime';
|
||||
@@ -87,6 +88,7 @@ const IGNORED_PROCESS_PATTERNS = [
|
||||
|
||||
@Injectable({ providedIn: 'root' })
|
||||
export class GameActivityService implements OnDestroy {
|
||||
private readonly i18n = inject(AppI18nService);
|
||||
private readonly electron = inject(ElectronBridgeService);
|
||||
private readonly http = inject(HttpClient);
|
||||
private readonly jsonStorage = jsonStorage;
|
||||
@@ -518,7 +520,7 @@ export class GameActivityService implements OnDestroy {
|
||||
this.webrtc.broadcastMessage({
|
||||
type: 'game-activity',
|
||||
oderId: user?.oderId || user?.id,
|
||||
displayName: user?.displayName || 'User',
|
||||
displayName: user?.displayName || this.i18n.instant('common.defaultUser'),
|
||||
gameActivity: activity
|
||||
});
|
||||
}
|
||||
@@ -562,7 +564,7 @@ export class GameActivityService implements OnDestroy {
|
||||
this.webrtc.sendToPeer(peerId, {
|
||||
type: 'game-activity',
|
||||
oderId: user.oderId || user.id,
|
||||
displayName: user.displayName || 'User',
|
||||
displayName: user.displayName || this.i18n.instant('common.defaultUser'),
|
||||
gameActivity: this.currentActivity
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user