---
# System prepended metadata

title: Lazy evaluated string
tags: [brew-js-react]

---

---
tags: brew-js-react
---

# Lazy evaluated string

In same occasion, a will-be-translated string has to be passed to another function or component in advance of rendering. The language when rendered may be changed aftwards.

The such case, use `translate.lazy` or `t.lazy` from `useTranslation` hook.

```typescript
const text = translate.lazy('prefix.key');

function Component() {
    useLanguage();
    return <div>{String(text)}</div>;
}
```
