From c7d5a9f52395b7cfd8cdb03c33850232a17174b9 Mon Sep 17 00:00:00 2001 From: Yotam Berkowitz Date: Sun, 8 Dec 2019 23:04:44 +0200 Subject: [PATCH] fix: issue #209 (#219) --- lib/timeline/locales.js | 91 +++++++++++++++++++++++++++-------------- 1 file changed, 60 insertions(+), 31 deletions(-) diff --git a/lib/timeline/locales.js b/lib/timeline/locales.js index b9fbf4d706..82119c9bc8 100644 --- a/lib/timeline/locales.js +++ b/lib/timeline/locales.js @@ -1,84 +1,113 @@ + // English -exports['en'] = { +const en = { current: 'current', time: 'time', deleteSelected: 'Delete selected', }; -exports['en_EN'] = exports['en']; -exports['en_US'] = exports['en']; +const en_EN = en; +const en_US = en; // Italiano -require('moment/locale/it'); -exports['it'] = { +import 'moment/locale/it'; +const it = { current: 'attuale', time: 'tempo', deleteSelected: 'Cancella la selezione', }; -exports['it_IT'] = exports['it']; -exports['it_CH'] = exports['it']; +const it_IT = it; +const it_CH = it; // Dutch -require('moment/locale/nl'); -exports['nl'] = { +import 'moment/locale/nl'; +const nl = { current: 'huidige', time: 'tijd', deleteSelected: 'Selectie verwijderen' }; -exports['nl_NL'] = exports['nl']; -exports['nl_BE'] = exports['nl']; +const nl_NL = nl; +const nl_BE = nl; // German -require('moment/locale/de'); -exports['de'] = { +import 'moment/locale/de'; +const de = { current: 'Aktuelle', time: 'Zeit', deleteSelected: 'L\u00f6sche Auswahl', }; -exports['de_DE'] = exports['de']; +const de_DE = de; // French -require('moment/locale/fr'); -exports['fr'] = { +import 'moment/locale/fr'; +const fr = { current: 'actuel', time: 'heure', deleteSelected: 'Effacer la selection', }; -exports['fr_FR'] = exports['fr']; -exports['fr_CA'] = exports['fr']; -exports['fr_BE'] = exports['fr']; +const fr_FR = fr; +const fr_CA = fr; +const fr_BE = fr; // Espanol -require('moment/locale/es'); -exports['es'] = { +import 'moment/locale/es'; +const es = { current: 'corriente', time: 'hora', deleteSelected: 'Eliminar selecci\u00f3n', }; -exports['es_ES'] = exports['es']; +const es_ES = es; // Ukrainian -require('moment/locale/uk'); -exports['uk'] = { +import 'moment/locale/uk'; +const uk = { current: 'поточний', time: 'час', deleteSelected: 'Видалити обране', }; -exports['uk_UA'] = exports['uk']; +const uk_UA = uk; // Russian -require('moment/locale/ru'); -exports['ru'] = { +import 'moment/locale/ru'; +const ru = { current: 'текущее', time: 'время', deleteSelected: 'Удалить выбранное', }; -exports['ru_RU'] = exports['ru']; +const ru_RU = ru; // Japanese -require('moment/locale/ja'); -exports['ja'] = { +import 'moment/locale/ja'; +const ja = { current: '現在', time: '時刻', deleteSelected: '選択されたものを削除', }; -exports['ja_JP'] = exports['ja']; +const ja_JP = ja; + +const locales = { + en, + en_EN, + en_US, + it, + it_IT, + it_CH, + nl, + nl_NL, + nl_BE, + de, + de_DE, + fr, + fr_FR, + fr_CA, + fr_BE, + es, + es_ES, + uk, + uk_UA, + ru, + ru_RU, + ja, + ja_JP, +} + +export default locales \ No newline at end of file