Ver Fonte

fix(i18n): list Ukrainian after Russian in the language picker

The uk locale was inserted before ru in i18n/index.ts - in the import block,
the resources map and availableLanguages. Locales are appended to those lists
as they land (tr, then ru on 2026-07-19, then uk on 2026-07-28), and
SettingsPage renders availableLanguages in array order, so the picker showed
Ukrainian above Russian while every other entry followed the order it was
added.

Moves uk to the end of all three lists. SUPPORTED_LNGS is sorted
alphabetically and already had uk in the correct position, so it is unchanged.

Frontend-only, no behaviour change beyond the picker's row order.
maziggy há 1 mês atrás
pai
commit
c11bcecfd8
3 ficheiros alterados com 4 adições e 4 exclusões
  1. 3 3
      frontend/src/i18n/index.ts
  2. 0 0
      static/assets/index-Ceb-MdaC.js
  3. 1 1
      static/index.html

+ 3 - 3
frontend/src/i18n/index.ts

@@ -14,8 +14,8 @@ import ptBR from './locales/pt-BR';
 import zhCN from './locales/zh-CN';
 import zhTW from './locales/zh-TW';
 import tr from './locales/tr';
-import uk from './locales/uk';
 import ru from './locales/ru';
+import uk from './locales/uk';
 
 const resources = {
   en: { translation: en },
@@ -29,8 +29,8 @@ const resources = {
   'zh-CN': { translation: zhCN },
   'zh-TW': { translation: zhTW },
   tr: { translation: tr },
-  uk: { translation: uk },
   ru: { translation: ru },
+  uk: { translation: uk },
 };
 
 const SUPPORTED_LNGS = ['en', 'de', 'es', 'fr', 'ja', 'it', 'ko', 'pt-BR', 'ru', 'tr', 'uk', 'zh-CN', 'zh-TW'];
@@ -111,6 +111,6 @@ export const availableLanguages = [
   { code: 'zh-CN', name: 'Chinese (Simplified)', nativeName: '简体中文' },
   { code: 'zh-TW', name: 'Chinese (Traditional)', nativeName: '繁體中文' },
   { code: 'tr', name: 'Turkish', nativeName: 'Türkçe' },
-  { code: 'uk', name: 'Ukrainian', nativeName: 'Українська' },
   { code: 'ru', name: 'Russian', nativeName: 'Русский' },
+  { code: 'uk', name: 'Ukrainian', nativeName: 'Українська' },
 ];

Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
static/assets/index-Ceb-MdaC.js


+ 1 - 1
static/index.html

@@ -26,7 +26,7 @@
 
     <!-- Splash screens for iOS -->
     <link rel="apple-touch-startup-image" href="/img/android-chrome-512x512.png" />
-    <script type="module" crossorigin src="/assets/index-xPJs-OAQ.js"></script>
+    <script type="module" crossorigin src="/assets/index-Ceb-MdaC.js"></script>
     <link rel="stylesheet" crossorigin href="/assets/index-D4bpNaiw.css">
   </head>
   <body>

Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff