Closed
Description
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:
- 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);
- 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:
- Famous "Translation support?" issue - Translation support? #213.
- Stackoverflow post detailing similar problems - SO post.
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?