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

using i18n to set property values of a React component is not "reactive" #1

Open
pareis opened this issue Mar 21, 2017 · 1 comment

Comments

@pareis
Copy link

pareis commented Mar 21, 2017

I've tried to enhance the following code in imports/ui/pages/login.js:

<FormGroup>
    <ControlLabel><T>common.loginform.Email</T></ControlLabel>
    <FormControl
          type="email"
          ref="emailAddress"
          name="emailAddress"
          placeholder={T.__("common.loginform.Email")}
/>

it is working but it will only ever render the default locale string. It doesn't seem to be reactive. Is there a way to make the direct call to __(key) picking up the changed locale?

@sonicviz
Copy link
Owner

HI,
Apologies for missing this.

re: Is there a way to make the direct call to __(key) picking up the changed locale?
I'm not sure.
Maybe ask the Universe I18n devs directly? https://atmospherejs.com/universe/i18n

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