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

Any possibility to custom helper title texts? #862

Closed
guibrancopc opened this issue Jul 15, 2021 · 2 comments
Closed

Any possibility to custom helper title texts? #862

guibrancopc opened this issue Jul 15, 2021 · 2 comments

Comments

@guibrancopc
Copy link

Hi there!

First of all, thank you for this great component. It's very powerful and it's helping a lot already. 🙂

I'm missing just a little thing, about to get a way to custom these texts that are showed on tag title in special cases (like not allowed, pattern mismatch, already exists).

It's because I'm from Brazil and my users are from here too, so it would be good to have these texts custom for my own context.

Is there a way to get it custom from the configuration?

Or, if not, would it be considered to be developed?

Thank you in advance! 🙏

@yairEO
Copy link
Owner

yairEO commented Jul 17, 2021

Hi, You can override them with Tagify.prototype.TEXT = {...} for all instances or just for your instance:

const myTagify = new Tagify(...)

myTagify.TEXTS = {...}

@yairEO yairEO closed this as completed Jul 17, 2021
yairEO pushed a commit that referenced this issue Jul 18, 2021
@guibrancopc
Copy link
Author

Awesome!

Thanks, @yairEO. 🙏

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

2 participants