mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-29 08:00:06 +00:00
wip(i18n): plural forms through Intl.PluralRules
Unfinished, continued in the next session: t() resolves key.one/.few/... by the language's own plural rule, the parity check knows which forms a language needs, 16 singular/plural key pairs are merged in every locale and every count === 1 branch in the client uses the plural form. Still open: the forms each locale needs for the remaining count strings, the two new labels in every locale, and 35 tests that expect the old English wording.
This commit is contained in:
@@ -227,7 +227,7 @@ describe('AdminUserModals', () => {
|
||||
fireEvent.click(screen.getByRole('button', { name: /reset passkeys/i }));
|
||||
confirmPasskeyReset();
|
||||
|
||||
await waitFor(() => expect(admin.toast.success).toHaveBeenCalledWith('Removed 3 passkey(s)'));
|
||||
await waitFor(() => expect(admin.toast.success).toHaveBeenCalledWith('Removed 3 passkeys'));
|
||||
expect(deletedFor).toBe('2');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user