Skip to content

Commit

Permalink
Fix build errors and add emoji
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanlangston committed Dec 9, 2023
1 parent 53cf2d5 commit ed001f8
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 11 deletions.
8 changes: 4 additions & 4 deletions src/asteroids-website/src/lib/localizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ export class Localizer {
case Locales.english:
case Locales.unknown:
default:
return "Starting...";
case Locales.french:
return "Démarrage en cours...";
return "Starting... ⌛";
case Locales.spanish:
return "Iniciando...";
return "Iniciando... ⌛";
case Locales.french:
return "Démarrage en cours... ⌛";
}
}
}
Expand Down
5 changes: 1 addition & 4 deletions src/asteroids-website/src/lib/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,7 @@ export class Module implements ICustomModule {
Module.setStatus(e);
}

public static readonly statusMessage = writable("⏳", () => {
this.statusMessage.set(Localizer.GetLocalInitText());
return () => {};
});
public static readonly statusMessage = writable("⏳");
public static setStatus(e: string): void {
// "Running..." is from emscripten.js and isn't localized so just return"
if (e == "Running...")
Expand Down
2 changes: 1 addition & 1 deletion src/asteroids-website/src/locales/en.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"page": {
"Downloading": "Downloading...",
"Downloading": "Downloading... 📡",
"View_Source": "View Source",
"Fullscreen": "Fullscreen",
"Exit_Fullscreen": "Exit_Fullscreen",
Expand Down
2 changes: 1 addition & 1 deletion src/asteroids-website/src/locales/es.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"page": {
"Downloading": "Descargando...",
"Downloading": "Descargando... 📡",
"View_Source": "Ver código fuente",
"Fullscreen": "Pantalla completa",
"Exit_Fullscreen": "Salir de pantalla completa",
Expand Down
2 changes: 1 addition & 1 deletion src/asteroids-website/src/locales/fr.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"page": {
"Downloading": "Téléchargement en cours...",
"Downloading": "Téléchargement en cours... 📡",
"View_Source": "Voir le code source",
"Fullscreen": "Plein écran",
"Exit_Fullscreen": "Quitter le plein écran",
Expand Down
1 change: 1 addition & 0 deletions src/asteroids-website/src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@
let emscripten: CustomEmscriptenModule | undefined;
onMount(async () => {
Module.setStatus(Localizer.GetLocalInitText());
isItchZone = window.location?.host?.endsWith("itch.zone");
fullscreenEnabled = document.fullscreenEnabled;
manifestJson = Localizer.GetLocalePrefix() + ".manifest.json";
Expand Down

0 comments on commit ed001f8

Please sign in to comment.