JC Brand 2 vuotta sitten
vanhempi
commit
de65409e79
2 muutettua tiedostoa jossa 43 lisäystä ja 6 poistoa
  1. 41 4
      src/headless/shared/settings/constants.js
  2. 2 2
      src/i18n/index.js

+ 41 - 4
src/headless/shared/settings/constants.js

@@ -52,9 +52,46 @@ export const DEFAULT_SETTINGS = {
     keepalive: true,
     loglevel: 'info',
     locales: [
-        'af', 'ar', 'bg', 'ca', 'cs', 'da', 'de', 'el', 'eo', 'es', 'eu', 'en', 'fa', 'fi', 'fr',
-        'gl', 'he', 'hi', 'hu', 'id', 'it', 'ja', 'lt', 'nb', 'nl', 'mr', 'oc',
-        'pl', 'pt', 'pt_BR', 'ro', 'ru', 'sv', 'th', 'tr', 'uk', 'vi', 'zh_CN', 'zh_TW'
+        'af',
+        'ar',
+        'bg',
+        'ca',
+        'cs',
+        'da',
+        'de',
+        'el',
+        'en',
+        'eo',
+        'es',
+        'eu',
+        'fa',
+        'fi',
+        'fr',
+        'gl',
+        'he',
+        'hi',
+        'hu',
+        'id',
+        'it',
+        'ja',
+        'lt',
+        'mr',
+        'nb',
+        'nl',
+        'oc',
+        'pl',
+        'pt',
+        'pt_BR',
+        'ro',
+        'ru',
+        'sv',
+        'th',
+        'tr',
+        'ug',
+        'uk',
+        'vi',
+        'zh_CN',
+        'zh_TW',
     ],
     nickname: undefined,
     password: undefined,
@@ -66,5 +103,5 @@ export const DEFAULT_SETTINGS = {
     strict_plugin_dependencies: false,
     view_mode: 'overlayed', // Choices are 'overlayed', 'fullscreen', 'mobile'
     websocket_url: undefined,
-    whitelisted_plugins: []
+    whitelisted_plugins: [],
 };

+ 2 - 2
src/i18n/index.js

@@ -5,8 +5,8 @@
  * @description This is the internationalization module
  */
 import Jed from 'jed';
-import log from "@converse/headless/log";
-import { _converse, api, converse, i18n } from '@converse/headless/core';
+import log from "@converse/headless/log.js";
+import { _converse, api, converse, i18n } from '@converse/headless/core.js';
 
 const { dayjs } = converse.env;