feat(desktop): add i18n infrastructure with react-intl (#8105)

This commit is contained in:
jh-block
2026-03-27 19:39:50 +01:00
committed by GitHub
parent d596113e72
commit a6765fbcd9
172 changed files with 13793 additions and 2054 deletions
+5 -4
View File
@@ -7,6 +7,7 @@ import React from 'react';
import { screen, render, waitFor } from '@testing-library/react';
import { vi, describe, it, expect, beforeEach, afterEach } from 'vitest';
import { AppInner } from './App';
import { IntlTestWrapper } from './i18n/test-utils';
// Set up globals for jsdom
Object.defineProperty(window, 'location', {
@@ -215,7 +216,7 @@ describe('App Component - Brand New State', () => {
GOOSE_ALLOWLIST_WARNING: false,
});
render(<AppInner />);
render(<AppInner />, { wrapper: IntlTestWrapper });
// Wait for initialization
await waitFor(() => {
@@ -238,7 +239,7 @@ describe('App Component - Brand New State', () => {
// Set up search params to simulate view=settings deep link
mockSearchParams.set('view', 'settings');
render(<AppInner />);
render(<AppInner />, { wrapper: IntlTestWrapper });
// Wait for initialization
await waitFor(() => {
@@ -256,7 +257,7 @@ describe('App Component - Brand New State', () => {
GOOSE_ALLOWLIST_WARNING: false,
});
render(<AppInner />);
render(<AppInner />, { wrapper: IntlTestWrapper });
// Wait for initialization
await waitFor(() => {
@@ -279,7 +280,7 @@ describe('App Component - Brand New State', () => {
GOOSE_ALLOWLIST_WARNING: false,
});
render(<AppInner />);
render(<AppInner />, { wrapper: IntlTestWrapper });
// Wait for initialization and recovery
await waitFor(() => {