Skip to content

Translation support #516

Closed
Closed
@DeividasK

Description

@DeividasK

Hello,

I really like angular-schema-form, but I can't seem to find the best way to work with label translations.

I am using angular-translate library. Both schema and form are built in a factory. Currently, I have to use $translate.instant('title') to get my form titles translated.

There are 2 problems with that:

  1. If I change the language I need to refresh the whole page for the form to update translations (values are updated appropriately where I used "translate" directive or filter);
  2. If browser's back / forward buttons are used after page refresh, translations for form titles don't load appropriately (again, values with "translate" directive or filter work as expected).

What is the best way to solve this?

My prior research
The most useful stuff I foung on Google:

Solutions that were suggested

  • Using gettext. If I understand correctly, this means switching from angular-translate entirely or adding another library on top of it.

My question:
How would one go about in creating similar translation experience for schema-form labels as with "translate" directive / filter from angular-translate?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions