Skip to content

Commit b18796b

Browse files
Update to latest @team-lodestone/lodestone-ui
1 parent 1ef73bd commit b18796b

File tree

10 files changed

+57
-99
lines changed

10 files changed

+57
-99
lines changed

CONTRIBUTING.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,13 @@ To find a list of Language Codes using Firefox, go to `about:preferences`, searc
2020

2121
You can also find the language code of the currently used Navigator language by opening devtools and typing `console.log(navigator.language);`.
2222

23+
> [!IMPORTANT]
24+
> There are also separate translations for the [UI Library](https://github.com/Team-Lodestone/UI) that is not included in this project.
25+
> It is required that you also translate them.
26+
2327
After verifying that the translations show correctly, and following the [guidelines](#guidelines), you can add yourself to [the credits](/src/App.svelte#L80) and then make a pull request to submit the translation.
2428

2529
### Guidelines
2630
1. Do not translate "`Project Lodestone`"
2731
2. Do not translate the Edition names unless an edition had official translations that clearly show how it's meant to be translated.
28-
32+
3. Do not translate words found within squiggly brackets (`{}`), these are used for formatting.

package-lock.json

+15-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "project-lodestone-website",
33
"private": true,
4-
"version": "1.0.6",
4+
"version": "1.0.5",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",
@@ -24,7 +24,7 @@
2424
"vite": "^6.2.2"
2525
},
2626
"dependencies": {
27-
"@team-lodestone/lodestone-ui": "1.2.0",
27+
"@team-lodestone/lodestone-ui": "^1.3.2",
2828
"svelte-i18n": "^4.0.1"
2929
}
3030
}

src/Assets/L10N/en-us.json

+15-42
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,7 @@
3737
"title": "Website"
3838
}
3939
},
40-
"dialog": {
41-
"close": {
42-
"ariaLabel": "Close dialog",
43-
"title": "Close dialog"
44-
}
45-
},
4640
"footer": {
47-
"notice": "Project Lodestone is NOT an official Minecraft product.",
4841
"buttons": {
4942
"openCredits": {
5043
"text": "Credits",
@@ -58,7 +51,8 @@
5851
"text": "Team",
5952
"title": "View the team"
6053
}
61-
}
54+
},
55+
"notice": "Project Lodestone is NOT an official Minecraft product."
6256
},
6357
"home": {
6458
"buttons": {
@@ -154,26 +148,14 @@
154148
"title": "Languages"
155149
},
156150
"languages": {
157-
"browserLanguage": "Use Browser Language",
158151
"ar": "Arabic",
152+
"browserLanguage": "Use Browser Language",
159153
"ckb": "Central Kurdish",
160154
"en-US": "English (United States)",
161-
"ru": "Russian",
162155
"fr": "French",
163156
"ja": "Japanese",
164-
"kmr": "Northern Kurdish"
165-
},
166-
"scrollable": {
167-
"arrows": {
168-
"left": {
169-
"ariaLabel": "Scroll left",
170-
"title": "Scroll left"
171-
},
172-
"right": {
173-
"ariaLabel": "Scroll right",
174-
"title": "Scroll right"
175-
}
176-
}
157+
"kmr": "Northern Kurdish",
158+
"ru": "Russian"
177159
},
178160
"topbar": {
179161
"buttons": {
@@ -190,7 +172,7 @@
190172
"openGitHub": {
191173
"ariaLabel": "View the GitHub",
192174
"text": "View the GitHub",
193-
"title": "Go to Team Lodestone's GitHub"
175+
"title": "Go to Project Lodestone's GitHub"
194176
},
195177
"openLanguageDialog": {
196178
"ariaLabel": "Select a language",
@@ -202,24 +184,15 @@
202184
"text": "Launch Project Lodestone",
203185
"title": "Launch Project Lodestone (Lodestone is currently in development and has not been released yet)"
204186
}
205-
},
206-
"expander": {
207-
"ariaLabel": {
208-
"closed": "Open menu",
209-
"opened": "Close menu"
210-
},
211-
"title": {
212-
"closed": "Open menu",
213-
"opened": "Close menu"
187+
}
188+
},
189+
"LodestoneUI": {
190+
"Topbar": {
191+
"homeButton": {
192+
"logo": {
193+
"alt": "Lodestone Logo (Small L)"
194+
}
214195
}
215-
},
216-
"homeButton": {
217-
"ariaLabel": "Home button",
218-
"logo": {
219-
"alt": "Lodestone Logo (Small L)"
220-
},
221-
"name": "Project Lodestone",
222-
"title": "Go home"
223196
}
224197
}
225-
}
198+
}

src/Assets/L10N/ru.json

+14-41
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,7 @@
3737
"title": "Сайт"
3838
}
3939
},
40-
"dialog": {
41-
"close": {
42-
"ariaLabel": "Закрыть диалог",
43-
"title": "Закрыть диалог"
44-
}
45-
},
4640
"footer": {
47-
"notice": "Project Lodestone не является официальным продуктом Minecraft",
4841
"buttons": {
4942
"openCredits": {
5043
"text": "Авторы",
@@ -58,7 +51,8 @@
5851
"text": "Команда",
5952
"title": "Просмотреть Команду Разработчиков"
6053
}
61-
}
54+
},
55+
"notice": "Project Lodestone не является официальным продуктом Minecraft"
6256
},
6357
"home": {
6458
"buttons": {
@@ -154,26 +148,14 @@
154148
"title": "Языки"
155149
},
156150
"languages": {
157-
"browserLanguage": "Использовать язык браузера",
158151
"ar": "Арабский",
152+
"browserLanguage": "Использовать язык браузера",
159153
"ckb": "Центральный курдский",
160154
"en-US": "Английский (Соединённые Штаты)",
161-
"ru": "Русский",
162155
"fr": "Франуцузкий",
163156
"ja": "Японский",
164-
"kmr": "Северный курдский"
165-
},
166-
"scrollable": {
167-
"arrows": {
168-
"left": {
169-
"ariaLabel": "Прокрутить влево",
170-
"title": "Прокрутить влево"
171-
},
172-
"right": {
173-
"ariaLabel": "Прокрутить вправо",
174-
"title": "Прокрутить вправо"
175-
}
176-
}
157+
"kmr": "Северный курдский",
158+
"ru": "Русский"
177159
},
178160
"topbar": {
179161
"buttons": {
@@ -202,24 +184,15 @@
202184
"text": "Запустить Project Lodestone",
203185
"title": "Запустить Project Lodestone (На данный момент Lodestone находится в разработке и ещё не вышел)"
204186
}
205-
},
206-
"expander": {
207-
"ariaLabel": {
208-
"closed": "Открыть меню",
209-
"opened": "Закрыть меню"
210-
},
211-
"title": {
212-
"closed": "Открыть меню",
213-
"opened": "Закрыть меню"
187+
}
188+
},
189+
"LodestoneUI": {
190+
"Topbar": {
191+
"homeButton": {
192+
"logo": {
193+
"alt": "Логотип Lodestone (Маленькая L)"
194+
}
214195
}
215-
},
216-
"homeButton": {
217-
"ariaLabel": "Кнопка Домой",
218-
"logo": {
219-
"alt": "Логотип Lodestone (Маленькая L)"
220-
},
221-
"name": "Project Lodestone",
222-
"title": "Перейти Домой"
223196
}
224197
}
225-
}
198+
}

src/Assets/css/app.css

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
--theme-inverse: rgb(0, 0, 0);
4444
/* endregion */
4545
}
46+
4647
/* endregion */
4748

4849
/* region Dark Mode */

src/Components/Dialogs/CreditsDialog.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script lang="ts">
2-
import {Dialog} from "@team-lodestone/lodestone-ui";
2+
import { Dialog } from "@team-lodestone/lodestone-ui";
33
import GitHubUser from "../GitHubUser.svelte";
44
import LanguageCard from "../LanguageCard.svelte";
55
import { _ as t } from 'svelte-i18n'

src/Components/Dialogs/LanguageDialog.svelte

+1-2
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@
1515
localStorage.setItem("language", (e.currentTarget as HTMLSelectElement).value)
1616
initL10N();
1717
}
18-
1918
</script>
2019

2120
<Dialog title={$t('languageDialog.title')} bind:this={dialog} noMobileUi>
22-
<DropDownBox class="languageBox" value={$locale} header={$t('languageDialog.dropDownBox.header')} selectionChange={setLanguage} tooltip={$t('languageDialog.dropDownBox.title')}>
21+
<DropDownBox class="languageBox" value={$locale ?? "default"} header={$t('languageDialog.dropDownBox.header')} selectionChange={setLanguage} tooltip={$t('languageDialog.dropDownBox.title')}>
2322
<option value="default">{$t(`languages.browserLanguage`)}</option>
2423
{#each $locales as locale}
2524
<option value={locale}>{$t(`languages.${locale}`)}</option>

src/Pages/Home.svelte

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@
7575
{$t('home.infoBoxes.header')}
7676
</h1>
7777
<div class="infoBoxes">
78-
<InfoCard title={$t('home.infoBoxes.compatible.title')} icon="fa-check" alt={$t('home.infoBoxes.compatible.alt')}>{$t('home.infoBoxes.compatible.description')}</InfoCard>
78+
<InfoCard title={$t('home.infoBoxes.compatible.title')} icon="fa-solid fa-check" alt={$t('home.infoBoxes.compatible.alt')}>{$t('home.infoBoxes.compatible.description')}</InfoCard>
7979
<InfoCard title={$t('home.infoBoxes.editEverything.title')} icon="fa-solid fa-file" alt={$t('home.infoBoxes.editEverything.alt')}>{$t('home.infoBoxes.editEverything.description')}</InfoCard>
8080
<InfoCard title={$t('home.infoBoxes.fullControl.title')} icon="fa-solid fa-earth-americas" alt={$t('home.infoBoxes.fullControl.alt')}>{$t('home.infoBoxes.fullControl.description')}</InfoCard>
81-
<InfoCard title={$t('home.infoBoxes.worksEverywhere.title')} icon="fa-map" alt={$t('home.infoBoxes.worksEverywhere.alt')}>{$t('home.infoBoxes.worksEverywhere.description')}</InfoCard>
81+
<InfoCard title={$t('home.infoBoxes.worksEverywhere.title')} icon="fa-solid fa-map" alt={$t('home.infoBoxes.worksEverywhere.alt')}>{$t('home.infoBoxes.worksEverywhere.description')}</InfoCard>
8282
<InfoCard title={$t('home.infoBoxes.accessible.title')} icon="fa-solid fa-universal-access" alt={$t('home.infoBoxes.accessible.alt')}>{$t('home.infoBoxes.accessible.description')}</InfoCard>
8383
<InfoCard title={$t('home.infoBoxes.localized.title')} icon="bi bi-translate" alt={$t('home.infoBoxes.localized.alt')}>{$t('home.infoBoxes.localized.description')}</InfoCard>
8484
</div>

src/main.ts

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export const url = "https://team-lodestone.github.io"
2020
// region l10n
2121
import {getLocaleFromNavigator, init, register} from 'svelte-i18n'
2222

23+
// has to have US bc browser returns en-US instead of en
2324
register('en-US', async () => await import('./Assets/L10N/en-us.json'));
2425
register('ru', async () => await import('./Assets/L10N/ru.json'));
2526

0 commit comments

Comments
 (0)