Reference

Devtools

When something shows the wrong text, you want one answer: what key is this, and where did it come from? The verbaly/devtools overlay answers it in the browser.

Attach the inspector

Import it only in development: it's a separate chunk, tree-shaken out of production builds.

main.ts
if (import.meta.env.DEV) {
  const { attachDevtools } = await import('verbaly/devtools');
  attachDevtools(verbaly);
}

The onResolve hook

Prefer your own logging? onResolve fires on every t() call with the key, locale, value and whether it was a hit, a fallback or a miss.

i18n.ts
createVerbaly({
  onResolve: (info) => {
    if (info.status === 'miss') console.warn('missing', info.key);
  },
});

For a one-off lookup, verbaly.inspect(key) returns the resolved locale and source text.

Copied to clipboard