An open source design system that's fully customizable and agent ready
TypeScript
docs(dense): add returnDescriptions to useTranslator docsDense overlay (#4055)
Joey2e2e96046815
diff --git a/packages/core/src/i18n/useTranslator.doc.mjs b/packages/core/src/i18n/useTranslator.doc.mjsindex a1d6496c1e..98750f05eb 100644--- a/packages/core/src/i18n/useTranslator.doc.mjs+++ b/packages/core/src/i18n/useTranslator.doc.mjs@@ -39,4 +39,8 @@ export const docsDense = {description:'Returns a translator function that resolves keys against the current locale, provider overrides, and the shipped English fallback catalog.',},+ returnDescriptions: {+ value:+ 'translator function bound to current InternationalizationProvider context. Call with message key + optional ICU MessageFormat values; returns formatted string in active locale. Safe in render, event handlers, effects.',+ },};