Files
arshiya tabasum 8ce1fcf7fa fix(localize): use Object.hasOwn for placeholder lookup in translate
`translate()` looked up substitutions with `message.substitutions.hasOwnProperty(placeholder)`. A message whose placeholder is named `hasOwnProperty` stores that key on the plain substitutions object, shadowing the method, so the lookup calls the substitution value and throws a TypeError. Use `Object.hasOwn` instead, which resolves through `Object` and is unaffected by the shadowed key, matching the recent `I18nSelectPipe` fix.

(cherry picked from commit 2a4f582731)
2026-07-09 12:29:59 -07:00
..
2025-12-16 14:44:19 -08:00