Browse Source

Use right country code for Uyghur

JC Brand 3 weeks ago
parent
commit
276007494d
2 changed files with 5 additions and 4 deletions
  1. 1 1
      docs/source/configuration.rst
  2. 4 3
      src/plugins/rootview/index.js

+ 1 - 1
docs/source/configuration.rst

@@ -1960,7 +1960,7 @@ If set to ``true``, Converse will show any roster groups you might have configur
 rtl_langs
 ---------
 
-* Default: ``["ar", "fa", "he", "ur"]``
+* Default: ``["ar", "fa", "he", "ug"]``
 
 A list of languages which are written right-to-left and for which the UI should also be shown right-to-left.
 

+ 4 - 3
src/plugins/rootview/index.js

@@ -1,7 +1,7 @@
-import ConverseRoot from './root.js';
-import ConverseBackground from './background.js';
 import { api, converse } from '@converse/headless';
+import ConverseRoot from './root.js';
 import { ensureElement } from './utils.js';
+import './background.js';
 
 
 converse.plugins.add('converse-rootview', {
@@ -14,7 +14,8 @@ converse.plugins.add('converse-rootview', {
         api.settings.extend({
             auto_insert: true,
             dark_theme: 'dracula',
-            rtl_langs: ["ar", "fa", "he", "ur"],
+            // Languages for which the UI is right-to-left
+            rtl_langs: ["ar", "fa", "he", "ug"],
             show_background: false,
             theme: 'classic',
         });