add Spanish translations (#822)
* add Spanish translations * format with prettier * clears npm ci, formatted w/ prettier
This commit is contained in:
		@@ -5,6 +5,7 @@ import ja from "./locales/ja-JP"
 | 
			
		||||
import de from "./locales/de-DE"
 | 
			
		||||
import nl from "./locales/nl-NL"
 | 
			
		||||
import ro from "./locales/ro-RO"
 | 
			
		||||
import es from "./locales/es-ES"
 | 
			
		||||
 | 
			
		||||
export const TRANSLATIONS = {
 | 
			
		||||
  "en-US": en,
 | 
			
		||||
@@ -13,6 +14,7 @@ export const TRANSLATIONS = {
 | 
			
		||||
  "de-DE": de,
 | 
			
		||||
  "nl-NL": nl,
 | 
			
		||||
  "ro-RO": ro,
 | 
			
		||||
  "es-ES": es,
 | 
			
		||||
} as const
 | 
			
		||||
 | 
			
		||||
export const i18n = (locale: ValidLocale): Translation => TRANSLATIONS[locale ?? "en-US"]
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										65
									
								
								quartz/i18n/locales/es-ES.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										65
									
								
								quartz/i18n/locales/es-ES.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,65 @@
 | 
			
		||||
import { Translation } from "./definition"
 | 
			
		||||
 | 
			
		||||
export default {
 | 
			
		||||
  propertyDefaults: {
 | 
			
		||||
    title: "Sin título",
 | 
			
		||||
    description: "Sin descripción",
 | 
			
		||||
  },
 | 
			
		||||
  components: {
 | 
			
		||||
    backlinks: {
 | 
			
		||||
      title: "Enlaces de Retroceso",
 | 
			
		||||
      noBacklinksFound: "No se han encontrado enlaces traseros",
 | 
			
		||||
    },
 | 
			
		||||
    themeToggle: {
 | 
			
		||||
      lightMode: "Modo claro",
 | 
			
		||||
      darkMode: "Modo oscuro",
 | 
			
		||||
    },
 | 
			
		||||
    explorer: {
 | 
			
		||||
      title: "Explorador",
 | 
			
		||||
    },
 | 
			
		||||
    footer: {
 | 
			
		||||
      createdWith: "Creado con",
 | 
			
		||||
    },
 | 
			
		||||
    graph: {
 | 
			
		||||
      title: "Vista Gráfica",
 | 
			
		||||
    },
 | 
			
		||||
    recentNotes: {
 | 
			
		||||
      title: "Notas Recientes",
 | 
			
		||||
      seeRemainingMore: ({ remaining }) => `Vea ${remaining} más →`,
 | 
			
		||||
    },
 | 
			
		||||
    transcludes: {
 | 
			
		||||
      transcludeOf: ({ targetSlug }) => `Transcluido de ${targetSlug}`,
 | 
			
		||||
      linkToOriginal: "Enlace al original",
 | 
			
		||||
    },
 | 
			
		||||
    search: {
 | 
			
		||||
      title: "Buscar",
 | 
			
		||||
      searchBarPlaceholder: "Busca algo",
 | 
			
		||||
    },
 | 
			
		||||
    tableOfContents: {
 | 
			
		||||
      title: "Tabla de Contenidos",
 | 
			
		||||
    },
 | 
			
		||||
  },
 | 
			
		||||
  pages: {
 | 
			
		||||
    rss: {
 | 
			
		||||
      recentNotes: "Notas recientes",
 | 
			
		||||
      lastFewNotes: ({ count }) => `Últimás ${count} notas`,
 | 
			
		||||
    },
 | 
			
		||||
    error: {
 | 
			
		||||
      title: "No se encontró.",
 | 
			
		||||
      notFound: "Esta página es privada o no existe.",
 | 
			
		||||
    },
 | 
			
		||||
    folderContent: {
 | 
			
		||||
      folder: "Carpeta",
 | 
			
		||||
      itemsUnderFolder: ({ count }) =>
 | 
			
		||||
        count === 1 ? "1 artículo en esta carpeta" : `${count} artículos en esta carpeta.`,
 | 
			
		||||
    },
 | 
			
		||||
    tagContent: {
 | 
			
		||||
      tag: "Etiqueta",
 | 
			
		||||
      tagIndex: "Índice de Etiquetas",
 | 
			
		||||
      itemsUnderTag: ({ count }) =>
 | 
			
		||||
        count === 1 ? "1 artículo con esta etiqueta" : `${count} artículos con esta etiqueta.`,
 | 
			
		||||
      showingFirst: ({ count }) => `Mostrando las primeras ${count} etiquetas.`,
 | 
			
		||||
      totalTags: ({ count }) => `Se encontraron ${count} etiquetas en total.`,
 | 
			
		||||
    },
 | 
			
		||||
  },
 | 
			
		||||
} as const satisfies Translation
 | 
			
		||||
		Reference in New Issue
	
	Block a user