//in .json
{
"greeting": "Hello, %{name}. Good morning!"
}
i18n.t('greeting', {
name: 'John'
})
const { t, i18n } = useTranslation();
//in .json
{
"greeting": "Hello, {{name}}. Good morning!"
}
{
t("greeting", { name: "John" });
}
//in .json
{
"greeting": "Hello, %{name}. Good morning!"
}
i18n.t('greeting', {
name: 'John'
})
const { t, i18n } = useTranslation();
//in .json
{
"greeting": "Hello, {{name}}. Good morning!"
}
{
t("greeting", { name: "John" });
}