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

translate function not returning proper type [with CodeSandBox example] #178

Open
jprester opened this issue Sep 16, 2019 · 1 comment
Open

Comments

@jprester
Copy link

If I use react-localize-redux with typescript I will encounter type issue when passing the value to the 'translate' function and expecting to use returned string as a placeholder text for input form element.

Typescript is complaining that return value wont be a string but this instead:

image

I've noticed that this issue had already been reported (issue #145, #148, #149 if I am not mistaken) so I decided to improve the report by making the codesandbox example as it is still not fixed in the newest version.

React version: "^16.9.0"
react-localize-redux version: "^3.5.2"

Code Sandbox Example

https://codesandbox.io/s/react-typescript-77fmb?fontsize=14

image

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
@jprester and others