Skip to content

Need help with why the interpolate warning is showing #92

Discussion options

You must be logged in to vote

Hey @edwardspresume, thanks for the post!

As mentioned in the warning, you can try to use the t function instead of the <Trans/> component like so:

---
import { t } from 'i18next';

export interface Props {
    submenu_data_name: string;
}

const { submenu_data_name } = Astro.props;

const uscis_links = [
    {
        name: 'Travel Document',
        url: 'https://www.uscis.gov/i-131',
    },
    {
        name: 'Employment Authorization',
        url: 'https://www.uscis.gov/i-765',
    },
    {
        name: 'TPS',
        url: 'https://www.uscis.gov/humanitarian/temporary-protected-status',
    },
    {
        name: 'Citizenship Application',
        url: 'https://my.uscis.gov/citizen…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@edwardspresume
Comment options

Answer selected by edwardspresume
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants