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

Translation for data-Attributes possible? #26

Open
2silver opened this issue Jun 11, 2019 · 1 comment
Open

Translation for data-Attributes possible? #26

2silver opened this issue Jun 11, 2019 · 1 comment

Comments

@2silver
Copy link

2silver commented Jun 11, 2019

This

---
factory: form
name: application
props:
  action: expr:context.action
  data:
    success: i18n:success_message
    error: i18n:error_message
    i18n_workaround: expr:context.default_message
widgets:
- testtest:
    factory: field:label:div:error:text
    label: i18n:first_name:FirstName
    placeholder: Placeholder
- save:
    factory: submit
    props:
      action: save
      expression: true
      handler: context.save
      label: i18n:save:Save
      next: context.next

Does not work

And No, a workaround with "expr" are not working also...

@rnixx
Copy link
Member

rnixx commented Jun 11, 2019

Hi,

seems this has not been implemented in yafowil yet (and needs to be implemented there). As workaround you can implement properties on the view class and translate directly there.

2silver added a commit to 2silver/yafowil that referenced this issue Jun 12, 2019
2silver added a commit to 2silver/yafowil.yaml that referenced this issue Jun 12, 2019
…this commit needs bf84c53e5e3ace6d824a98fe4b4c3a1a19a5369f
2silver added a commit to 2silver/yafowil.yaml that referenced this issue Jun 12, 2019
…this commit needs bf84c53e5e3ace6d824a98fe4b4c3a1a19a5369f
2silver added a commit to 2silver/yafowil.yaml that referenced this issue Jun 12, 2019
2silver added a commit to 2silver/yafowil.yaml that referenced this issue Jun 22, 2019
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