|
|
@@ -2,13 +2,11 @@
|
|
2
|
2
|
|
|
3
|
3
|
import moment from 'moment';
|
|
4
|
4
|
|
|
5
|
|
-import { i18next } from '../i18n';
|
|
|
5
|
+import i18next from './i18next';
|
|
6
|
6
|
|
|
7
|
7
|
// MomentJS uses static language bundle loading, so in order to support dynamic
|
|
8
|
8
|
// language selection in the app we need to load all bundles that we support in
|
|
9
|
9
|
// the app.
|
|
10
|
|
-// FIXME: If we decide to support MomentJS in other features as well we may need
|
|
11
|
|
-// to move this import and the lenient matcher to the i18n feature.
|
|
12
|
10
|
require('moment/locale/bg');
|
|
13
|
11
|
require('moment/locale/de');
|
|
14
|
12
|
require('moment/locale/eo');
|
|
|
@@ -32,7 +30,7 @@ require('moment/locale/zh-cn');
|
|
32
|
30
|
|
|
33
|
31
|
/**
|
|
34
|
32
|
* Returns a localized date formatter initialized with a specific {@code Date}
|
|
35
|
|
- * or time stamp ({@code number}).
|
|
|
33
|
+ * or timestamp ({@code number}).
|
|
36
|
34
|
*
|
|
37
|
35
|
* @private
|
|
38
|
36
|
* @param {Date | number} dateOrTimeStamp - The date or unix timestamp (ms)
|