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); + }); +});