From af0f91e21b93bca5348242130c8add7f664a7484 Mon Sep 17 00:00:00 2001 From: Steptem17 Date: Sat, 22 Aug 2026 12:13:37 +0100 Subject: [PATCH] test(i18n): add locale key parity test --- tests/i18n/locale-keys.test.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tests/i18n/locale-keys.test.ts diff --git a/tests/i18n/locale-keys.test.ts b/tests/i18n/locale-keys.test.ts new file mode 100644 index 0000000..2d16679 --- /dev/null +++ b/tests/i18n/locale-keys.test.ts @@ -0,0 +1,18 @@ +import { describe, it, expect } from 'vitest'; +import { en } from '../../src/i18n/locales/en'; +import { es } from '../../src/i18n/locales/es'; +import { ko } from '../../src/i18n/locales/ko'; + +describe('i18n locale key parity', () => { + it('es should have the same keys as en', () => { + const enKeys = Object.keys(en).sort(); + const esKeys = Object.keys(es).sort(); + expect(esKeys).toEqual(enKeys); + }); + + it('ko should have the same keys as en', () => { + const enKeys = Object.keys(en).sort(); + const koKeys = Object.keys(ko).sort(); + expect(koKeys).toEqual(enKeys); + }); +});