Browse Source

export default --> module.exports for locales

Artur Paikin 8 năm trước cách đây
mục cha
commit
0a881a5300

+ 3 - 1
src/locales/en_US.js

@@ -1,3 +1,5 @@
+/* eslint camelcase: 0 */
+
 const en_US = {}
 const en_US = {}
 
 
 en_US.strings = {
 en_US.strings = {
@@ -49,4 +51,4 @@ if (typeof window !== 'undefined' && typeof window.Uppy !== 'undefined') {
   window.Uppy.locales.en_US = en_US
   window.Uppy.locales.en_US = en_US
 }
 }
 
 
-export default en_US
+module.exports = en_US

+ 0 - 12
src/locales/index.js

@@ -1,12 +0,0 @@
-// Parent
-import en_US from './en_US'
-import ru_RU from './ru_RU'
-import pt_BR from './pt_BR'
-import zh_CN from './zh_CN'
-
-module.exports = {
-  en_US,
-  ru_RU,
-  pt_BR,
-  zh_CN
-}

+ 3 - 1
src/locales/it_IT.js

@@ -1,3 +1,5 @@
+/* eslint camelcase: 0 */
+
 const it_IT = {}
 const it_IT = {}
 
 
 it_IT.strings = {
 it_IT.strings = {
@@ -49,4 +51,4 @@ if (typeof window !== 'undefined' && typeof window.Uppy !== 'undefined') {
   window.Uppy.locales.it_IT = it_IT
   window.Uppy.locales.it_IT = it_IT
 }
 }
 
 
-export default it_IT
+module.exports = it_IT

+ 3 - 1
src/locales/pt_BR.js

@@ -1,3 +1,5 @@
+/* eslint camelcase: 0 */
+
 const pt_BR = {}
 const pt_BR = {}
 
 
 pt_BR.strings = {
 pt_BR.strings = {
@@ -47,4 +49,4 @@ if (typeof window !== 'undefined' && typeof window.Uppy !== 'undefined') {
   window.Uppy.locales.pt_BR = pt_BR
   window.Uppy.locales.pt_BR = pt_BR
 }
 }
 
 
-export default pt_BR
+module.exports = pt_BR

+ 3 - 1
src/locales/ru_RU.js

@@ -1,3 +1,5 @@
+/* eslint camelcase: 0 */
+
 const ru_RU = {}
 const ru_RU = {}
 
 
 ru_RU.strings = {
 ru_RU.strings = {
@@ -30,4 +32,4 @@ if (typeof window !== 'undefined' && typeof window.Uppy !== 'undefined') {
   window.Uppy.locales.ru_RU = ru_RU
   window.Uppy.locales.ru_RU = ru_RU
 }
 }
 
 
-export default ru_RU
+module.exports = ru_RU

+ 3 - 1
src/locales/zh_CN.js

@@ -1,3 +1,5 @@
+/* eslint camelcase: 0 */
+
 const zh_CN = {}
 const zh_CN = {}
 
 
 zh_CN.strings = {
 zh_CN.strings = {
@@ -29,4 +31,4 @@ if (typeof window !== 'undefined' && typeof window.Uppy !== 'undefined') {
   window.Uppy.locales.zh_CN = zh_CN
   window.Uppy.locales.zh_CN = zh_CN
 }
 }
 
 
-export default zh_CN
+module.exports = zh_CN