Skip to content

Commit

Permalink
fix: issue #209
Browse files Browse the repository at this point in the history
  • Loading branch information
yotamberk committed Dec 7, 2019
1 parent 9723d4c commit 53e4f7e
Showing 1 changed file with 60 additions and 31 deletions.
91 changes: 60 additions & 31 deletions lib/timeline/locales.js
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 53e4f7e

Please sign in to comment.