-
Notifications
You must be signed in to change notification settings - Fork 55
Open
Description
Description
In bigger applications the translations into different languages takes time and the translation is not always 100% complete. For this reason I would like to propose a fallbackLanguage attribute. This will fallback to the default language.
Expected outcome
Let say I have two variables:
'en': {
'translated': "english",
'not_translated': 'hello'
},
'fr': {
'translated':"français"
}
- variable is translated in both languages
When I try to use thefrlanguage fortranslatedit will return the french version of it - variable is not translated
When I try to use thefrlanguage fornot_translatedit wil check the en dictionary i there's no translation will fallback into the english one.
Actual outcome
fr will return empty string
Live Demo
I already did an implementation of this feature: https://github.com/toshovski/app-localize-behavior
Do you still accept feature requests for polymer 1.x and 2.x elements?
Steps to reproduce
Browsers Affected
- [ x] Chrome
- [ x] Firefox
- [ x] Safari 9
- [ x] Safari 8
- [ x] Safari 7
- [ x] Edge
- [ x] IE 11
- [ x] IE 10
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels