fix(i18n): retain historical checklist text for unknown system keys

This commit is contained in:
cesnimda
2026-11-02 22:55:38 +01:00
parent fae2f760cd
commit 4a3da3319e
5 changed files with 125 additions and 5 deletions
@@ -0,0 +1,11 @@
import { checklistSystemTranslationToken } from './applicationWorkspace';
test.each(['retired-system-task', 'constructor', '__proto__'])('does not manufacture translation keys for %s', key => {
expect(checklistSystemTranslationToken(key)).toBeNull();
});
test('retains the known system translation and learning/custom boundaries', () => {
expect(checklistSystemTranslationToken('prepare-cv')).toBe('prepareCv');
expect(checklistSystemTranslationToken('learning:prepare-cv')).toBeNull();
expect(checklistSystemTranslationToken(null)).toBeNull();
});