소스 검색

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 1 개월 전
부모
커밋
cf4cced388
4개의 변경된 파일5개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 0
      BACKERS.md
  2. 3 3
      frontend/src/i18n/index.ts
  3. 0 0
      static/assets/index-Ceb-MdaC.js
  4. 1 1
      static/index.html

+ 1 - 0
BACKERS.md

@@ -37,6 +37,7 @@ If you sponsor and your name isn't here within 48h, please write an email to mar
 - [@MethodicalMartian](https://github.com/MethodicalMartian)
 - [@brianharwell](https://github.com/brianharwell)
 - [@shosier01](https://github.com/shosier01)
+- [@freifunk-bamberg](https://github.com/freifunk-bamberg)
 
 ## Backers ($5/mo+)
 

+ 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: 'Українська' },
 ];

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 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>

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.