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

Return string to object #14

Open
AlesVykoukal opened this issue Oct 24, 2019 · 1 comment
Open

Return string to object #14

AlesVykoukal opened this issue Oct 24, 2019 · 1 comment

Comments

@AlesVykoukal
Copy link

AlesVykoukal commented Oct 24, 2019

Hi, I have Dropdown component with filtering.
I'm getting data for the component from ...

clubs = dataClubs.map((item) => {
return ({
value: item.id,
label: <Translate text="..." >
});
});

Displaying a component is OK, but if I start filtering over the data, an error message will be displayed:
TypeError: option.label.toLowerCase is not a function

I tried to use "getTranslated" and work, but I must put in params language and translation.
Is it possible to add something like <Translator>, where the parameter will be just text?

That you very much for help.

Ales

@AlesVykoukal
Copy link
Author

Can I ask if you are continuing to develop a react-translated project or have finished and will no longer develop or modify the code. It seems to me that this project is very ideal for regular translation. I chose from many projects and it was the best.

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