Skip to content

Commit b172bb7

Browse files
feat: spanish translation
1 parent ec3e261 commit b172bb7

File tree

8 files changed

+91
-6
lines changed

8 files changed

+91
-6
lines changed

messages/de.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"title": "No Man's Sky Spielstand-Editor | gecky.app",
44
"language_de": "Deutsch",
55
"language_en": "Englisch",
6+
"language_es": "Spanisch",
67
"theme_light": "Helles Design",
78
"theme_dark": "Dunkles Design",
89
"page_save_title": "Spielstand-Editor",
@@ -75,4 +76,4 @@
7576
"export_failed_description": "Export ist fehlgeschlagen.",
7677
"export_success_title": "Download gestartet",
7778
"export_success_description": "Datei wird heruntergeladen."
78-
}
79+
}

messages/en.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"title": "No Man's Sky Save Game Editor | gecky.app",
44
"language_de": "German",
55
"language_en": "English",
6+
"language_es": "Spanish",
67
"theme_light": "Light",
78
"theme_dark": "Dark",
89
"page_save_title": "Save Game Editor",
@@ -75,4 +76,4 @@
7576
"export_failed_description": "Export failed.",
7677
"export_success_title": "Download started",
7778
"export_success_description": "File is being downloaded."
78-
}
79+
}

messages/es.json

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
{
2+
"$schema": "https://inlang.com/schema/inlang-message-format",
3+
"title": "Editor de partidas guardadas de No Man's Sky | gecky.app",
4+
"language_de": "Alemán",
5+
"language_en": "Inglés",
6+
"language_es": "Español",
7+
"theme_light": "Claro",
8+
"theme_dark": "Oscuro",
9+
"page_save_title": "Editor de partidas guardadas",
10+
"page_save_description": "Edita las partidas guardadas de No Man's Sky. Sube un archivo save.hg.",
11+
"page_account_title": "Editor de cuentas",
12+
"page_account_description": "Gestiona las recompensas de expedición, los drops de Twitch y los bonos de plataforma. Sube tu archivo de cuenta.",
13+
"page_account_tab_start": "Empezar",
14+
"page_account_tab_season_rewards": "Recompensas de expedición",
15+
"page_account_tab_twitch_rewards": "Recompensas de Twitch",
16+
"page_account_tab_platform_rewards": "Recompensas de plataforma",
17+
"page_account_tab_json_editor": "Editor JSON",
18+
"page_account_table_name": "Nombre",
19+
"page_account_table_id": "ID",
20+
"page_account_table_platform": "Plataforma",
21+
"page_account_table_expedition": "Expedición",
22+
"page_account_table_drop": "Drop",
23+
"page_home_title": "Menu principal",
24+
"page_home_description": "No Man's Sky Save Game & Account Editor",
25+
"page_home_hero_title": "Editor de partidas guardadas de No Man's Sky de código abierto",
26+
"page_home_hero_description": "Un editor local y de código abierto para las partidas guardadas de No Man's Sky.",
27+
"page_home_feature_opensource_title": "Código abierto",
28+
"page_home_feature_opensource_description": "El código es público y modificable.",
29+
"page_home_feature_local_title": "Local",
30+
"page_home_feature_local_description": "Todas las ediciones se realizan únicamente en tu ordenador.",
31+
"page_home_feature_ui_title": "Interfaz sencilla",
32+
"page_home_feature_ui_description": "Diseño claro para una fácil edición.",
33+
"upload_error_multiple_files_title": "Se detectaron varios archivos",
34+
"upload_error_multiple_files_description": "Por favor, cargue sólo un archivo.",
35+
"upload_error_no_file_title": "No archivo seleccionado",
36+
"upload_error_no_file_description": "Por favor seleccione un archivo.",
37+
"upload_error_invalid_file_type_title": "Tipo invalido",
38+
"upload_error_invalid_file_type_description": "Por favor, cargue un archivo .hg.",
39+
"upload_error_file_too_large_title": "El archivo es demasiado grande",
40+
"upload_error_file_too_large_description": "Tamaño máximo: {maxSize}MB.",
41+
"upload_error_file_corrupted_title": "Archivo corrupto",
42+
"upload_error_file_corrupted_description": "El archivo está dañado o es inválido.",
43+
"upload_loading_title": "Cargando...",
44+
"upload_loading_description": "El archivo está siendo procesado.",
45+
"upload_success_title": "Procesado completo",
46+
"upload_success_description": "Archivo procesado exitosamente.",
47+
"upload_input": "Haga clic para cargar o arrastrar el archivo aquí",
48+
"upload_input_error": "Error en la carga: inténtalo de nuevo",
49+
"upload_input_processing": "Procesando archivo...",
50+
"upload_location_account_title": "Ubicación de los datos de la cuenta",
51+
"upload_location_account_description": "Las partidas guardadas de No Man's Sky se encuentran aquí:",
52+
"upload_location_account_linux": "Linux (Proton):",
53+
"upload_location_account_windows": "Windows:",
54+
"upload_location_account_linux_path": "/home/<username>/.steam/steam/steamapps/compatdata/275850/pfx/drive_c/users/steamuser/AppData/Roaming/HelloGames/NMS/",
55+
"upload_location_account_windows_path": "C:/usuarios/<username>/AppData/Roaming/HelloGames/NMS/",
56+
"upload_location_account_instructions": "Busque el archivo accountdata.hg en estas carpetas. Contiene los datos de la cuenta.",
57+
"upload_location_save_title": "Save game location",
58+
"upload_location_save_description": "Las partidas guardadas de No Man's Sky se encuentran aquí:",
59+
"upload_location_save_linux": "Linux (Proton):",
60+
"upload_location_save_windows": "Windows:",
61+
"upload_location_save_linux_path": "/home/<username>/.steam/steam/steamapps/compatdata/275850/pfx/drive_c/users/steamuser/AppData/Roaming/HelloGames/NMS/",
62+
"upload_location_save_windows_path": "C:/usuarios/<username>/AppData/LocalLow/HelloGames/NMS/",
63+
"upload_location_save_instructions": "Busque el archivo save.hg en estas carpetas. Contiene los datos guardados.",
64+
"fileinfo_loaded": "Archivo cargado: {filename}",
65+
"fileinfo_load_different": "Cargar otro archivo",
66+
"fileinfo_ready_edit": "Listo para editar",
67+
"fileinfo_load_different_success_title": "Cargar otro archivo",
68+
"fileinfo_load_different_success_description": "El editor se ha reiniciado. Puedes subir un nuevo archivo.",
69+
"fileinfo_load_different_failed_title": "Error",
70+
"fileinfo_load_different_failed_description": "No se pudo reiniciar el editor.",
71+
"export_button": "Descargar",
72+
"export_button_processing": "Exportando...",
73+
"export_processing_title": "Exportando...",
74+
"export_processing_description": "El archivo está siendo exportado.",
75+
"export_failed_title": "Descarga fallida",
76+
"export_failed_description": "La exportación falló.",
77+
"export_success_title": "Descarga iniciada",
78+
"export_success_description": "El archivo está siendo descargado."
79+
}

project.inlang/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
"pathPattern": "./messages/{locale}.json"
66
},
77
"baseLocale": "en",
8-
"locales": ["en", "de"]
8+
"locales": ["en", "de", "es"]
99
}

src/components/Nav.svelte

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@
8282
<!--temp fix-->
8383
{#if currentLanguageObject.id === 'de'}
8484
<img src={languages.de.flag} alt="" class="size-5 shrink-0 rounded-full bg-gray-100 dark:bg-gray-700 dark:-outline-offset-1 dark:outline-white/10" />
85+
{:else if currentLanguageObject.id === 'es'}
86+
<img src={languages.es.flag} alt="" class="size-5 shrink-0 rounded-full bg-gray-100 dark:bg-gray-700 dark:-outline-offset-1 dark:outline-white/10" />
8587
{:else}
8688
<img src={languages.en.flag} alt="" class="size-5 shrink-0 rounded-full bg-gray-100 dark:bg-gray-700 dark:-outline-offset-1 dark:outline-white/10" />
8789
{/if}

src/lib/assets/flags/flag_es.png

8.68 KB
Loading

src/lib/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import { m } from './paraglide/messages';
22
import flag_de from '$lib/assets/flags/flag_de.png';
33
import flag_en from '$lib/assets/flags/flag_en.png';
4+
import flag_es from '$lib/assets/flags/flag_es.png';
45
import { Moon, Sun } from '@steeze-ui/heroicons';
56
import type { IconSource } from '@steeze-ui/svelte-icon';
67

78
export type Theme = 'light' | 'dark';
89

9-
export type Language = 'en' | 'de';
10+
export type Language = 'en' | 'de' | 'es';
1011

1112
export type LocalSettingsStore = {
1213
theme: Theme;
@@ -27,7 +28,8 @@ export type ThemeMeta = {
2728

2829
export const languages: Record<Language, LanguageMeta> = {
2930
en: { id: 'en', name: m.language_en(), flag: flag_en },
30-
de: { id: 'de', name: m.language_de(), flag: flag_de }
31+
de: { id: 'de', name: m.language_de(), flag: flag_de },
32+
es: { id: 'es', name: m.language_es(), flag: flag_es }
3133
};
3234

3335
export const themes: Record<Theme, ThemeMeta> = {

src/lib/localSettings.svelte.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function getInitialTheme(): Theme {
1212
function getInitialLanguage(): Language {
1313
if (!browser) return 'en';
1414
const storedLang = localStorage.getItem('language');
15-
if (storedLang === 'de' || storedLang === 'en') return storedLang;
15+
if (storedLang === 'de' || storedLang === 'en' || storedLang === 'es') return storedLang;
1616
return 'en';
1717
}
1818

0 commit comments

Comments
 (0)