check:optional-t-equivalence registers ApproxPinNote on the {t, te, locale} form

ApproxPinNote moved from useOptionalT to useOptionalI18n (which wraps it) so its formatList names follow the sentence's own locale. The per-site register still asserted the old helper and failed. The row now names useOptionalI18n, as SemanticTreeLegend, PosterWall and all-people-groups already do, and still asserts the site passes its own APPROX_FALLBACK.
This commit is contained in:
Doxa Maps 2026-09-29 13:34:37 +00:00
parent 5a73e4d37d
commit f96576fdf7

View file

@ -114,7 +114,8 @@ ok(!/locales\/en\//.test(codeOnly(src)), 'CONTROL: and it imports NO per-area En
import { readFileSync as rf, readdirSync } from 'node:fs'
const SITES = [
// file, helper it must use, a fragment of the fallback it must still pass
['library/components/legends/ApproxPinNote.vue', 'useOptionalT', 'APPROX_FALLBACK[key]'],
// On the {t, te, locale} form since formatList: the names list must follow its sentence's locale.
['library/components/legends/ApproxPinNote.vue', 'useOptionalI18n', 'APPROX_FALLBACK[key]'],
['library/components/search/FilterDropdown.vue', 'useOptionalT', 'FALLBACK[key]'],
['library/components/legends/SemanticTreeLegend.vue', 'useOptionalI18n', 'humanizeKey(k)'],
['library/components/poster/PosterWall.vue', 'useOptionalI18n', 'humanizeKey(k)'],