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.
This commit is contained in:
maziggy 2026-08-02 09:37:13 +02:00
commit cf4cced388
4 changed files with 10 additions and 9 deletions

View file

@ -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+)

View file

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

File diff suppressed because one or more lines are too long

View file

@ -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>