Skip to content

Commit 3a1ae8f

Browse files
authored
chore: recommendation under
Signed-off-by: Claudio Wunder <[email protected]>
1 parent 947ea35 commit 3a1ae8f

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

docs/translation.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,12 @@ If you're making a new Component and adding Translation Keys for your Component,
6161
- The values of each Translation Key should follow the [ICU Message Syntax](https://next-intl-docs.vercel.app/docs/usage/messages#rendering-icu-messages)
6262
- All new Translation keys should be added at the bottom of the `i18n/locales/en.json` file. Since this makes it easier for Translators to notice that there are new Translation keys to be translated.
6363
- Reference the full path to the key within your Component. This helps with static analysis, even at the cost of verbosity. For example:
64-
65-
```tsx
66-
const t = useTranslations('components.common.myComponent');
67-
t('copyButton.title');
68-
const t = useTranslations();
69-
t('components.common.myComponent.copyButton.title');
70-
```
64+
```tsx
65+
const t = useTranslations('components.common.myComponent');
66+
t('copyButton.title');
67+
const t = useTranslations();
68+
t('components.common.myComponent.copyButton.title');
69+
```
7170

7271
#### Notes about Translation Keys
7372

0 commit comments

Comments
 (0)