Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to localize? #20

Open
cod3rshotout opened this issue Jul 2, 2021 · 0 comments
Open

How to localize? #20

cod3rshotout opened this issue Jul 2, 2021 · 0 comments

Comments

@cod3rshotout
Copy link

I was able to run your SEO package and it's working well. But I don't understand how can I translate it in my language. I tried to set the language using the following:

const paper = new Paper(this.text, {
            keyword: this.keyword,
            title: this.title,
            description: this.description,
            url: this.url,
            metaDescription: this.metaDescription,
            titleWidth: this.titleWidth,
            locale: 'it_IT'
            permalink: this.permalink
        });

I also tried to set the locale only to it, but same issue. The generated SEO content is still in english.
I saw that there is that object:

i18n() {
    return new Jed({
        domain: `js-text-analysis`,
        locale_data: {
            "js-text-analysis": { "": {} }
        }
    })
}

but I don't understand if I need to provide the strings to translate, and if so, where should I find those strings.

Could you help me please?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant