fix(i18n): translations

- Added translation support using react-i18next in WafConfig and CrowdSecConfig components.
- Updated UI elements to use translation keys instead of hardcoded strings.
- Enhanced test coverage for i18n integration, including mocks for translation in tests.
- Fixed various test cases to align with new translation structure.
- Created a QA report for i18n implementation, noting validation of translation files and areas for improvement.
This commit is contained in:
GitHub Actions
2025-12-19 05:35:02 +00:00
parent 03518145c0
commit 8511d98160
48 changed files with 9038 additions and 1772 deletions

View File

@@ -516,9 +516,9 @@ describe('ProxyHosts - Bulk Delete with Backup', () => {
const selectAll = screen.getByLabelText('Select all rows');
await userEvent.click(selectAll);
// Should show "(all)" indicator - format is "<strong>3</strong> hosts selected (all)"
// Should show "(all)" indicator - format is "<strong>3</strong> host(s) selected (all)"
await waitFor(() => {
expect(screen.getByText(/hosts?\s*selected/)).toBeTruthy();
expect(screen.getByText(/host\(s\) selected/)).toBeTruthy();
expect(screen.getByText(/\(all\)/)).toBeTruthy();
});
});