FEATURE: Add localized timezone names (#7004)

Uses github.com/discourse/moment-timezone-names-translations to translate timezone names.
Plugins can also provide their own timezone name translations.
This commit is contained in:
Penar Musaraj
2019-02-25 14:40:02 -05:00
committed by GitHub
parent 42df20e4f0
commit 9bf11a7c02
45 changed files with 628 additions and 5 deletions

View File

@ -65,6 +65,12 @@ export default Ember.Component.extend({
@computed()
allTimezones() {
if (
moment.locale() !== "en" &&
typeof moment.tz.localizedNames === "function"
) {
return moment.tz.localizedNames();
}
return moment.tz.names();
},