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:
parent
5a73e4d37d
commit
f96576fdf7
1 changed files with 2 additions and 1 deletions
|
|
@ -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)'],
|
||||
|
|
|
|||
Loading…
Reference in a new issue