intlify / intlify/nuxt3

translation in single file component <i18n></i18n> doesn't work

Open
#84 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
204
Forks
18
PR merge metrics
No merged PRs in 30d

Description

Translation in single file components doesn't work for me.

```


{{ $t('hello', {name:'Peter'}) }}

{
"en": {
"hello": "Hola {name}"
},

"es": {
"hello": "Hello {name} "
}
}

```

Also I have tried with:
``

But it didn't work for me either...

Has anyone been able to get it to work?

**My environment:**
_Node 18.7.0
"@intlify/nuxt3": "^0.2.3"
"nuxt": "3.0.0-rc.6"_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.