mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-04 01:44:13 +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:
@@ -288,7 +288,7 @@ describe('AirTrailImportModal', () => {
|
||||
await user.click(await screen.findByRole('button', { name: /Import 1/i }));
|
||||
|
||||
await waitFor(() => expect(pushUndo).toHaveBeenCalled());
|
||||
expect(toasts).toContainEqual(['success', '1 flight(s) imported']);
|
||||
expect(toasts).toContainEqual(['success', '1 flight imported']);
|
||||
expect(toasts).toContainEqual(['warning', '1 already in this trip, skipped']);
|
||||
expect(pushUndo.mock.calls[0][0]).toBe('Import from AirTrail');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user