fix: update ESLint ignores and improve i18n audit script readability

This commit is contained in:
Mo Tarbin
2026-08-18 08:23:19 -04:00
parent 0bac419c3a
commit cb81749dbf
3 changed files with 31 additions and 5 deletions

View File

@@ -52,7 +52,8 @@ const lookup = (ns, key) =>
const exists = (ns, key) => {
if (lookup(ns, key) !== null) return true
const dot = key.lastIndexOf('.')
const parent = dot === -1 ? (bundles[ns] ?? null) : lookup(ns, key.slice(0, dot))
const parent =
dot === -1 ? (bundles[ns] ?? null) : lookup(ns, key.slice(0, dot))
const leaf = key.slice(dot + 1)
return (
parent !== null &&