Skip to content

Commit 10d4ad8

Browse files
committed
feat(contributors): add new ones & change the ordering
1 parent 917e8a5 commit 10d4ad8

2 files changed

Lines changed: 74 additions & 37 deletions

File tree

src/constants/locales.ts

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
11
import type { LocaleType } from "@/types/locale.type.ts";
22

33
/*
4-
* This file contains the list of supported locales and their corresponding information.
5-
* They are ordered based on the number of speakers worldwide, remember to follow this order when adding new locales.
4+
* A list of locales that have translations
5+
*/
6+
export const Locales = [
7+
// These three locales should stay in this ordering
8+
"en",
9+
"ru",
10+
"ua",
11+
// The ordering of the next locales is based on the number of speakers worldwide
12+
"es",
13+
"pl",
14+
"fa",
15+
] as const;
16+
17+
/*
18+
* An object with the necessary information about locales (for pre-fetching)
619
*/
7-
export const Locales = ["en", "es", "ru", "pl", "fa", "ua"] as const;
820
export const ExtraInfo: Record<LocaleType, {
921
"Name": string;
1022
"Flag": string;
@@ -13,14 +25,18 @@ export const ExtraInfo: Record<LocaleType, {
1325
"Name": "English",
1426
"Flag": "\uD83C\uDDEC\uD83C\uDDE7",
1527
},
16-
"es": {
17-
"Name": "Español",
18-
"Flag": "\uD83C\uDDEA\uD83C\uDDF8",
19-
},
2028
"ru": {
2129
"Name": "Русский",
2230
"Flag": "\uD83C\uDDF7\uD83C\uDDFA",
2331
},
32+
"ua": {
33+
"Name": "Українська",
34+
"Flag": "\uD83C\uDDFA\uD83C\uDDE6",
35+
},
36+
"es": {
37+
"Name": "Español",
38+
"Flag": "\uD83C\uDDEA\uD83C\uDDF8",
39+
},
2440
"pl": {
2541
"Name": "Polski",
2642
"Flag": "\uD83C\uDDF5\uD83C\uDDF1",
@@ -29,8 +45,4 @@ export const ExtraInfo: Record<LocaleType, {
2945
"Name": "فارسی",
3046
"Flag": "\uD83C\uDDEE\uD83C\uDDF7",
3147
},
32-
"ua": {
33-
"Name": "Українська",
34-
"Flag": "\uD83C\uDDFA\uD83C\uDDE6",
35-
},
3648
};

src/constants/routes.ts

Lines changed: 51 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,13 @@ export const TeamSocials: {
105105
}>;
106106
};
107107
"Special": {
108-
"Key" : TranslationsKeyType;
109-
"Entry": {
110-
"Link" : string;
111-
"Image": string;
112-
};
108+
"Key" : TranslationsKeyType;
109+
"Entries": Array<{
110+
"Link" : string;
111+
"Image" : string;
112+
"Label" : string;
113+
"Height": number;
114+
}>;
113115
};
114116
} = {
115117
"Maintainers": {
@@ -153,25 +155,45 @@ export const TeamSocials: {
153155
"Image": "https://avatars.githubusercontent.com/u/76707795?v=4",
154156
},
155157
{
156-
"Link" : "https://github.com/qEniuu/",
157-
"Image": "https://avatars.githubusercontent.com/u/95589434?v=4",
158+
"Link" : "https://github.com/HowXu",
159+
"Image": "https://avatars.githubusercontent.com/u/91002552?v=4",
158160
},
159161
{
160-
"Link" : "https://github.com/FoxyChipher",
161-
"Image": "https://avatars.githubusercontent.com/u/75834304?v=4",
162+
"Link" : "https://github.com/LunisCandle",
163+
"Image": "https://avatars.githubusercontent.com/u/93695520?v=4",
162164
},
163165
{
164-
"Link" : "https://github.com/SophrTemin/",
165-
"Image": "/deleted-avatar.webp",
166+
"Link" : "https://github.com/MiguVT/",
167+
"Image": "https://avatars.githubusercontent.com/u/71216796?v=4",
166168
},
167169
{
168-
"Link" : "https://github.com/sn1pp",
169-
"Image": "https://avatars.githubusercontent.com/u/79652963?v=4",
170+
"Link" : "https://github.com/qEniuu/",
171+
"Image": "https://avatars.githubusercontent.com/u/95589434?v=4",
172+
},
173+
{
174+
"Link" : "https://github.com/Impqxr/",
175+
"Image": "https://avatars.githubusercontent.com/u/70816395?v=4",
170176
},
171177
{
172178
"Link" : "https://github.com/viceversa03",
173179
"Image": "https://avatars.githubusercontent.com/u/109146971?v=4",
174180
},
181+
{
182+
"Link" : "https://github.com/Azarakash",
183+
"Image": "https://avatars.githubusercontent.com/u/228034665?v=4",
184+
},
185+
{
186+
"Link" : "https://github.com/mqsla",
187+
"Image": "https://avatars.githubusercontent.com/u/85938576?v=4",
188+
},
189+
{
190+
"Link" : "https://github.com/FoxyChipher",
191+
"Image": "https://avatars.githubusercontent.com/u/75834304?v=4",
192+
},
193+
{
194+
"Link" : "https://github.com/SophrTemin/",
195+
"Image": "/deleted-avatar.webp",
196+
},
175197
{
176198
"Link" : "https://github.com/ventureoo",
177199
"Image": "https://avatars.githubusercontent.com/u/92667539?v=4",
@@ -181,26 +203,29 @@ export const TeamSocials: {
181203
"Image": "/brainfluid.webp",
182204
},
183205
{
184-
"Link" : "https://github.com/Azarakash",
185-
"Image": "https://avatars.githubusercontent.com/u/228034665?v=4",
206+
"Link" : "https://github.com/sn1pp",
207+
"Image": "https://avatars.githubusercontent.com/u/79652963?v=4",
186208
},
209+
],
210+
},
211+
"Special": {
212+
"Key" : "pages.home.team.special.title",
213+
"Entries": [
187214
{
188-
"Link" : "https://github.com/mqsla",
189-
"Image": "https://avatars.githubusercontent.com/u/85938576?v=4",
215+
"Link" : "https://elyprismlauncher.github.io/",
216+
"Image" : "https://raw.githubusercontent.com/ElyPrismLauncher/ElyPrismLauncher/develop/program_info/io.github.elyprismlauncher.ElyPrismLauncher.logo-darkmode.svg",
217+
"Label" : "ElyPrismLauncher",
218+
"Height": 48,
190219
},
191220
{
192-
"Link" : "https://github.com/HowXu",
193-
"Image": "https://avatars.githubusercontent.com/u/91002552?v=4",
221+
"Link" : "https://github.com/Noctilune/ShatteredPrism",
222+
"Image" : "https://raw.githubusercontent.com/Noctilune/ShatteredPrism/develop/program_info/shatteredprism-header.svg",
223+
"Label" : "ShatteredPrism",
224+
// The empty spacing is bigger in ShatteredPrism logo than the ElyPrismLauncher one, so we use another value
225+
"Height": 64,
194226
},
195227
],
196228
},
197-
"Special": {
198-
"Key" : "pages.home.team.special.title",
199-
"Entry": {
200-
"Link" : "https://elyprismlauncher.github.io/",
201-
"Image": "https://elyprismlauncher.github.io/assets/svg/org.prismlauncher.PrismLauncher.svg",
202-
},
203-
},
204229
};
205230

206231
export const ExternalLinks = [

0 commit comments

Comments
 (0)