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

Implement proper locale check mechanism #20

Closed
1 task done
arkadiuszbachorski opened this issue Aug 6, 2024 · 0 comments · Fixed by #60
Closed
1 task done

Implement proper locale check mechanism #20

arkadiuszbachorski opened this issue Aug 6, 2024 · 0 comments · Fixed by #60
Labels
enhancement New feature or request

Comments

@arkadiuszbachorski
Copy link
Collaborator

arkadiuszbachorski commented Aug 6, 2024

Problem

export const parseLocalizedText = (text: LocalizedText) =>
isObject(text) ? text[locale] : text

There is no proper locale check yet.

Solution

Implement prop locale check for parsing localized text.

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct and Contributing Guidelines
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant