Skip to content

Conversation

ialmoqren
Copy link

To make it easier to use localized arrays

To make it easier to use localized arrays
@renrizzolo
Copy link
Owner

nice, thanks for this.
I'm thinking it might make more sense for the prop to be a function that receives the item and is expected to return a string, so the translation could be retrieved from elsewhere (for example).
{subDisplayKey ? subDisplayKey(item) : item[displayKey]}

I guess it would need to be called something more appropriate like customLabelRender though.

@github-actions
Copy link

github-actions bot commented Feb 3, 2022

This PR is stale because it has been open 45 days with no activity.

@github-actions github-actions bot added the Stale label Feb 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants