From 8a8b78b36b83131d4d15c00133ac28fdfd9338d2 Mon Sep 17 00:00:00 2001 From: VampireChicken12 Date: Sun, 12 Nov 2023 13:27:00 -0500 Subject: [PATCH] fix: remove lang files that aren't translated --- .vscode/settings.json | 2 +- public/locales/de-DE.json | 218 ---------------------------------- public/locales/es-ES.json | 238 -------------------------------------- src/i18n/index.ts | 2 +- 4 files changed, 2 insertions(+), 458 deletions(-) delete mode 100644 public/locales/de-DE.json delete mode 100644 public/locales/es-ES.json diff --git a/.vscode/settings.json b/.vscode/settings.json index 06cabbc6..e434d28a 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,4 +1,4 @@ { "typescript.tsdk": "node_modules\\typescript\\lib", - "i18n-ally.localesPaths": ["src/locales"] + "i18n-ally.localesPaths": ["public/locales"] } diff --git a/public/locales/de-DE.json b/public/locales/de-DE.json deleted file mode 100644 index 50d8f64a..00000000 --- a/public/locales/de-DE.json +++ /dev/null @@ -1,218 +0,0 @@ -{ - "langCode": "de-DE", - "langName": "Deutsche", - "pages": { - "content": { - "features": { - "videoHistory": { - "resumePrompt": { "close": "Close" }, - "resumeButton": "Resume" - }, - "screenshotButton": { - "copiedToClipboard": "Screenshot copied to clipboard", - "label": "Screenshot" - }, - "loopButton": { - "label": "Loop" - }, - "maximizePlayerButton": { - "label": "Maximize" - }, - "featureMenu": { - "label": "Feature menu" - } - } - }, - "options": { - "notifications": { - "success": { - "saved": "Options saved." - }, - "error": { - "playerQuality": "You must select a player quality if you want to enable the automatic quality feature." - }, - "info": { - "reset": "All options have been reset to their default values.\nYou can now save the changes by clicking the \"Confirm\" button or discard them by closing this page or ignore this notification." - } - } - } - }, - "settings": { - "sections": { - "importExportSettings": { - "title": "Import/Export Settings", - "importButton": { - "error": { - "validation": "Error importing settings. Please check the file format.\n{{ERROR_MESSAGE}}", - "unknown": "Error importing settings. Please check the file format.\nAn unknown error occurred." - }, - "success": "Settings imported successfully", - "title": "Import settings from a JSON file", - "value": "Import Settings" - }, - "exportButton": { - "success": "Settings successfully exported", - "title": "Export settings to a JSON file", - "value": "Export Settings" - } - }, - "miscellaneous": { - "title": "Miscellaneous settings", - "features": { - "rememberLastVolume": { - "title": "Remembers the volume you were watching at and sets it as the volume when you open a new video", - "label": "Remember last volume" - }, - "maximizePlayerButton": { - "title": "Fills the video to the window size", - "label": "Enable maximize player button" - }, - "videoHistory": { - "title": "Keeps track of where you left off on videos you were watching and asks if you want to resume when that video loads again", - "label": "Enable video history" - }, - "remainingTime": { - "title": "Shows the remaining time of the video you're watching", - "label": "Enable remaining time" - }, - "loopButton": { - "title": "Adds a button to the player to loop the video you're watching", - "label": "Enable loop button" - }, - "hideScrollbar": { - "title": "Hides the pages scrollbar", - "label": "Enable hide scrollbar" - } - } - }, - "scrollWheelVolumeControl": { - "title": "Scroll wheel volume control settings", - "enable": { - "title": "Lets you use the scroll wheel to control the volume of the video you're watching", - "label": "Enable scroll wheel volume control" - }, - "osdColor": { "title": "The color of the On Screen Display", "label": "OSD color" }, - "osdType": { "title": "The type of On Screen Display", "label": "OSD type" }, - "osdPosition": { "title": "The position of the On Screen Display", "label": "OSD position" }, - "osdOpacity": { - "title": "The opacity of the On Screen Display", - "label": "OSD opacity" - }, - "osdVolumeAdjustmentSteps": { "title": "The amount to adjust volume per scroll", "label": "Amount to adjust" }, - "osdHide": { "title": "The amount of milliseconds to wait before hiding the OSD", "label": "Time to hide" }, - "osdPadding": { "title": "The amount of padding to add to the OSD (in pixels, only applies to corner OSD)", "label": "Padding" }, - "onScreenDisplay": { - "colors": { - "red": "Red", - "green": "Green", - "blue": "Blue", - "yellow": "Yellow", - "orange": "Orange", - "purple": "Purple", - "pink": "Pink", - "white": "White" - }, - "position": { - "top_left": "Top Left", - "top_right": "Top Right", - "bottom_left": "Bottom Left", - "bottom_right": "Bottom Right", - "center": "Center" - }, - "type": { - "no_display": "No display", - "text": "Text", - "line": "Line", - "round": "Round" - } - } - }, - "automaticQuality": { - "title": "Automatic quality settings", - "enable": { - "title": "Automatically adjusts the video quality to the selected level.", - "label": "Enable automatic quality adjustment" - }, - "select": { - "label": "Player quality", - "title": "The quality to set the video to" - } - }, - "playbackSpeed": { - "title": "Playback speed settings", - "enable": { - "title": "Sets the video speed to what you choose below", - "label": "Enable forced playback speed" - }, - "select": { - "label": "Player speed", - "title": "The speed to set the video to" - } - }, - "volumeBoost": { - "title": "Volume boost settings", - "enable": { - "title": "Boosts the volume of the video you're watching", - "label": "Enable volume boost" - }, - "number": { - "label": "Volume boost amount (dB)", - "title": "The amount to boost the volume by" - } - }, - "screenshotButton": { - "title": "Screenshot settings", - "enable": { - "title": "Adds a button to the player to take a screenshot of the video", - "label": "Enable screenshot button" - }, - "selectSaveAs": { - "label": "Screenshot save type", - "title": "The screenshot save type" - }, - "selectFormat": { - "label": "Screenshot format", - "title": "The format to save the screenshot in" - }, - "format": { - "png": "PNG", - "jpeg": "JPEG", - "webp": "WebP" - }, - "saveAs": { - "file": "File", - "clipboard": "Clipboard" - } - }, - "bottomButtons": { - "confirm": { - "title": "Confirm setting reset", - "value": "Confirm" - }, - "clear": { - "title": "Clears all data this extension has stored on your machine", - "value": "Clear Data" - }, - "reset": { - "title": "Resets all settings to their defaults, Click the confirm button to save the changes", - "value": "Reset" - } - }, - "language": { - "title": "Language", - "select": { - "label": "Language", - "title": "The language to use for the extension" - } - } - }, - "clearData": { - "confirmAlert": "This will delete all extension data related to options. Continue?", - "allDataDeleted": "All data has been deleted." - } - }, - "messages": { - "settingVolume": "Setting volume boost to {{VOLUME_BOOST_AMOUNT}}", - "resumingVideo": "Resuming video at {{VIDEO_TIME}}" - } -} diff --git a/public/locales/es-ES.json b/public/locales/es-ES.json deleted file mode 100644 index 02a203c8..00000000 --- a/public/locales/es-ES.json +++ /dev/null @@ -1,238 +0,0 @@ -{ - "langCode": "es-ES", - "langName": "Español", - "pages": { - "content": { - "features": { - "videoHistory": { - "resumePrompt": { - "close": "Cerca" - }, - "resumeButton": "Reanudar" - }, - "screenshotButton": { - "copiedToClipboard": "Captura de pantalla copiada al portapapeles", - "label": "Captura de pantalla" - }, - "loopButton": { - "label": "Bucle" - }, - "maximizePlayerButton": { - "label": "Maximizar" - }, - "featureMenu": { - "label": "Menú de funciones" - } - } - }, - "options": { - "notifications": { - "success": { - "saved": "Opciones salvadas." - }, - "error": { - "playerQuality": "Debe seleccionar una calidad de reproductor si desea habilitar la función de calidad automática." - }, - "info": { - "reset": "Todas las opciones se han restablecido a sus valores predeterminados.\n" - } - } - } - }, - "settings": { - "sections": { - "importExportSettings": { - "title": "Configuración de importación/exportación", - "importButton": { - "error": { - "validation": "Error al importar la configuración. \n{{ERROR_MESSAGE}}", - "unknown": "Error al importar la configuración. " - }, - "success": "Configuración importada correctamente", - "title": "Importar configuraciones desde un archivo JSON", - "value": "Importar ajustes" - }, - "exportButton": { - "success": "Configuración exportada correctamente", - "title": "Exportar configuración a un archivo JSON", - "value": "Configuración de exportación" - } - }, - "miscellaneous": { - "title": "Otras configuraciones", - "features": { - "rememberLastVolume": { - "title": "Recuerda el volumen que estabas viendo y lo establece como volumen cuando abres un nuevo video.", - "label": "Recuerda el último volumen." - }, - "maximizePlayerButton": { - "title": "Rellena el vídeo al tamaño de la ventana.", - "label": "Habilitar el botón maximizar jugador" - }, - "videoHistory": { - "title": "Realiza un seguimiento de dónde lo dejaste en los videos que estabas viendo y te pregunta si deseas continuar cuando ese video se carga nuevamente.", - "label": "Habilitar historial de video" - }, - "remainingTime": { - "title": "Muestra el tiempo restante del vídeo que estás viendo.", - "label": "Habilitar el tiempo restante" - }, - "loopButton": { - "title": "Agrega un botón al reproductor para reproducir el video que estás viendo", - "label": "Habilitar botón de bucle" - }, - "hideScrollbar": { - "title": "Oculta la barra de desplazamiento de las páginas.", - "label": "Habilitar ocultar barra de desplazamiento" - } - } - }, - "scrollWheelVolumeControl": { - "title": "Configuración de control de volumen de la rueda de desplazamiento", - "enable": { - "title": "Te permite usar la rueda de desplazamiento para controlar el volumen del vídeo que estás viendo", - "label": "Habilitar el control de volumen de la rueda de desplazamiento" - }, - "osdColor": { - "title": "El color de la visualización en pantalla.", - "label": "color en pantalla" - }, - "osdType": { - "title": "El tipo de visualización en pantalla", - "label": "tipo de OSD" - }, - "osdPosition": { - "title": "La posición de la visualización en pantalla", - "label": "Posición OSD" - }, - "osdOpacity": { - "title": "La opacidad de la visualización en pantalla.", - "label": "Opacidad OSD" - }, - "osdVolumeAdjustmentSteps": { - "title": "La cantidad para ajustar el volumen por desplazamiento", - "label": "Cantidad a ajustar" - }, - "osdHide": { - "title": "La cantidad de milisegundos que se deben esperar antes de ocultar el OSD", - "label": "Es hora de esconderse" - }, - "osdPadding": { - "title": "La cantidad de relleno que se agregará al OSD (en píxeles, solo se aplica al OSD de las esquinas)", - "label": "Relleno" - }, - "onScreenDisplay": { - "colors": { - "red": "Rojo", - "green": "Verde", - "blue": "Azul", - "yellow": "Amarillo", - "orange": "Naranja", - "purple": "Púrpura", - "pink": "Rosa", - "white": "Blanco" - }, - "position": { - "top_left": "Arriba a la izquierda", - "top_right": "Parte superior derecha", - "bottom_left": "Abajo a la izquierda", - "bottom_right": "Abajo a la derecha", - "center": "Centro" - }, - "type": { - "no_display": "Sin pantalla", - "text": "Texto", - "line": "Línea", - "round": "Redondo" - } - } - }, - "automaticQuality": { - "title": "Configuración de calidad automática", - "enable": { - "title": "Ajusta automáticamente la calidad del vídeo al nivel seleccionado.", - "label": "Habilitar el ajuste automático de calidad" - }, - "select": { - "label": "Calidad del jugador", - "title": "La calidad para configurar el video." - } - }, - "playbackSpeed": { - "title": "Configuración de velocidad de reproducción", - "enable": { - "title": "Establece la velocidad del vídeo según lo que elijas a continuación", - "label": "Habilitar la velocidad de reproducción forzada" - }, - "select": { - "label": "Velocidad del jugador", - "title": "La velocidad para configurar el vídeo" - } - }, - "volumeBoost": { - "title": "Configuración de aumento de volumen", - "enable": { - "title": "Aumenta el volumen del vídeo que estás viendo.", - "label": "Habilitar aumento de volumen" - }, - "number": { - "label": "Cantidad de aumento de volumen (dB)", - "title": "La cantidad para aumentar el volumen" - } - }, - "screenshotButton": { - "title": "Configuración de captura de pantalla", - "enable": { - "title": "Agrega un botón al reproductor para tomar una captura de pantalla del video.", - "label": "Habilitar botón de captura de pantalla" - }, - "selectSaveAs": { - "label": "Tipo de guardado de captura de pantalla", - "title": "El tipo de guardar captura de pantalla" - }, - "selectFormat": { - "label": "Formato de captura de pantalla", - "title": "El formato para guardar la captura de pantalla" - }, - "format": { - "png": "PNG", - "jpeg": "JPEG", - "webp": "WebP" - }, - "saveAs": { - "file": "Archivo", - "clipboard": "Portapapeles" - } - }, - "bottomButtons": { - "confirm": { - "title": "Confirmar reinicio de configuración", - "value": "Confirmar" - }, - "clear": { - "title": "Borra todos los datos que esta extensión ha almacenado en su máquina", - "value": "Borrar datos" - }, - "reset": { - "title": "Restablece todas las configuraciones a sus valores predeterminados. Haga clic en el botón confirmar para guardar los cambios.", - "value": "Reiniciar" - } - }, - "language": { - "title": "Idioma", - "select": { - "label": "Idioma", - "title": "El idioma a utilizar para la extensión." - } - } - }, - "clearData": { - "confirmAlert": "Esto eliminará todos los datos de extensión relacionados con las opciones. ", - "allDataDeleted": "Todos los datos han sido eliminados." - } - }, - "messages": { - "settingVolume": "Configurar el aumento de volumen en {{VOLUME_BOOST_AMOUNT}}", - "resumingVideo": "Reanudando vídeo en {{VIDEO_TIME}}" - } -} diff --git a/src/i18n/index.ts b/src/i18n/index.ts index f58902eb..f0e1c495 100644 --- a/src/i18n/index.ts +++ b/src/i18n/index.ts @@ -1,6 +1,6 @@ import i18next, { createInstance, type Resource } from "i18next"; import { waitForSpecificMessage } from "../utils/utilities"; -export const availableLocales = ["en-US", "es-ES", "de-DE"] as const; +export const availableLocales = ["en-US"] as const; export type AvailableLocales = (typeof availableLocales)[number]; export type i18nInstanceType = ReturnType;