diff --git a/Website/_locales/en.ts b/Website/_locales/en.ts index b255f99..4c5c5ee 100644 --- a/Website/_locales/en.ts +++ b/Website/_locales/en.ts @@ -2,81 +2,68 @@ import { en } from 'vuetify/src/locale' export default { ...en, - home: 'Home', - menu: { - install: 'Install', - api: 'API', - help: 'Help', - faq: 'FAQ', - donate: 'Donate', - links: 'Links', - }, home: { + name: 'Home', title: 'Return YouTube Dislike', subtitle: 'Browser extension and an API that shows you dislikes on Youtube', install: 'Install', - supportUkraine: 'Support Ukraine', + ukraine: 'Support Ukraine', sponsors: 'Sponsors', }, install: { + name: 'Install', title: 'Select Your Platform', subtitle: 'Available for Firefox and all Chromium browsers', - "other-platforms": 'Other Platforms', - } - -// INSTALL - -// Select Your Platform > Elige tu plataforma -// Available for Firefox and all Chromium browsers > Disponible para Firefox y todos los navegadores Chromium -// Other Platforms > Otras plataformas -// If your browser is not yet supported, try this UserScript > Si tu navegador aún no es compatible, usa este UserScript -// Third Party Implementations > Implementaciones de terceros -// No liability on our side, use at your own risk > No nos hacemos responsables, úsalas bajo tu propio riesgo - -// API - -// Welcome to the official RYD docs! > ¡Bienvenido a la documentación oficial de RYD! -// To get started, select a section from the menu. > Para empezar, elige una sección del menú. - -// - USAGE RIGHTS > Derechos de uso (1) -// - URL INFORMATION > Información de URL (2) -// - AVAIABLE ENDPOINTS > Endpoints disponibles (3) -// - BASIC FETCHING TUTORIAL > Tutorial de consulta básica (4) - -// (1) - -// Usage Rights > Derechos de uso -// Third party use of this open API is allowed with the following restrictions > El uso de terceros de esta API abierta se permite bajo las siguientes restricciones -// Attribution: > Atribución -// This project should be clearly attributed with either a link to this repo or a link to returnyoutubedislike.com > El proyecto debe estar claramente atribuido con un link a esta página o a returnyoutubedislike.com -// Rate Limiting > Límites de velocidad -// There are per client rate limits in place of 100 per minute and 10'000 per day > Hay límites de velocidad por cliente de 100 por minuto y 10.000 por día -// This will return a 429 status code indicating that your application should back off > Esto regresará un código de estado 409 indicando que tu aplicación debe bajar la velocidad. - -// (2) - -// URL Information > Información de URL -// The API is accessible over the following base URL > Esta API es accesible sobre la siguiente URL base -// https://returnyoutubedislikeapi.com - -// (3) - -// Available Endpoints > Endpoints disponibles -// List of available endpoints is available here: > La lista de los endpoints disponibles está disponible aquí: -// https://returnyoutubedislikeapi.com/swagger/index.html - -// (4) - -// Basic Fetching Tutorial > Tutorial de consulta básica -// Example to get votes of a given YouTube video ID > Ejemplo para obtener los votos del ID de un vídeo de YouTube -// Example Request: > Consulta de ejemplo: -// Request URL > URL de la consulta -// Request Method > Método de la consulta -// Headers: > Encabezados: -// Response: > Respuesta: -// An invalid YouTube ID will return status code 404 "Not Found" > Un ID de YouTube inválido responderá con el código de estado 404 "Not Found" -// An incorrectly formatted YouTube ID will return 400 "Bad Request" > Un ID de YouTube con mal formato responderá con 400 "Bad Request" - + title2: 'Other Platforms', + subtitle2: 'If your browser is not yet supported, try this UserScript', + title3: 'Third Party Implementations', + subtitle3: 'No liability on our side, use at your own risk', + }, + api: { + name: 'API', + title: 'Welcome to the official RYD docs', + subtitle: 'To get started, select a section from the menu.', + rights: { + title: 'Usage Rights', + subtitle: 'Third party use of this open API is allowed with the following restrictions:', + bullet1: 'Attribution: ', + bullet1text: 'This project should be clearly attributed with either a link to this repo or a link to returnyoutubedislike.com', + bullet2: 'Rate Limiting', + bullet2text: 'There are per client rate limits in place of 100 per minute and 10,000 per day. This will return a 429 status code indicating that your application should back off', + }, + url: { + title: 'URL Information', + subtitle: 'The API is accessible over the following base URL: ', + }, + endpoints: { + title: 'Available Endpoints', + subtitle: 'List of available endpoints is available here: ', + }, + fetching: { + title: 'Basic Fetching Tutorial', + subtitle: 'Example to get votes of a given YouTube video ID: ', + title2: 'Example Request: ', + url: 'Request URL: ', + method: 'Request Method: ', + headers: 'Headers: ', + response: 'Response: ', + error1: 'An invalid YouTube ID will return status code 404 "Not Found"', + error2: 'An incorrectly formatted YouTube ID will return 400 "Bad Request"' + }, + }, + help: { + name: 'Help', + }, + faq: { + name: 'FAQ', + }, + donate: { + name: 'Donate', + }, + links: { + name: 'Links', + }, +} // HELP // Troubleshooting > Solución de problemas @@ -134,5 +121,4 @@ export default { // Project Links > Links del proyecto // Links to the project and its developers > Links al proyecto y sus desarrolladores -// Contact Me > Contactame -} \ No newline at end of file +// Contact Me > Contactame \ No newline at end of file diff --git a/Website/_locales/es.ts b/Website/_locales/es.ts index abcd0f1..ea3d368 100644 --- a/Website/_locales/es.ts +++ b/Website/_locales/es.ts @@ -1 +1,38 @@ // BY ALEJANDRO GAYOL +import { es } from 'vuetify/src/locale' + +export default { + ...es, + home: { + name: 'Inicio', + title: 'Regresar los Dislikes de YouTube', + subtitle: 'Una extensión de navegador y una API que te muestra los dislikes en YouTube', + install: 'Instalar', + ukraine: 'Apoya a Ucrania', + sponsors: 'Patrocinadores', + }, + install: { + name: 'Instalar', + title: 'Elige tu plataforma', + subtitle: 'Disponible para Firefox y todos los navegadores Chromium', + title2: 'Otras plataformas', + subtitle2: 'Si tu navegador aún no es compatible, usa este UserScript', + title3: 'Implementaciones de terceros', + subtitle3: 'No nos hacemos responsables, úsalas bajo tu propio riesgo', + }, + api: { + name: 'API', + }, + help: { + name: 'Ayuda', + }, + faq: { + name: 'FAQ', + }, + donate: { + name: 'Donar', + }, + links: { + name: 'Enlaces', + }, +} \ No newline at end of file diff --git a/Website/_locales/translation.txt b/Website/_locales/translation.txt index c5fdb46..2b5dbb1 100644 --- a/Website/_locales/translation.txt +++ b/Website/_locales/translation.txt @@ -1,5 +1,4 @@ TRANSLATION OF RYD WEBSITE TO SPANISH - BY ALEJANDRO GAYOL -If something doesn't appear translated, it's the same in English and Spanish. MENU diff --git a/Website/layouts/default.vue b/Website/layouts/default.vue index f302605..761e357 100644 --- a/Website/layouts/default.vue +++ b/Website/layouts/default.vue @@ -8,7 +8,7 @@ - {{ link.name }} + {{ $vuetify.lang.t(`$vuetify.${link.name}.name`) }} @@ -102,13 +102,13 @@ export default { data: () => ({ links: [ - { name: "Home", path: "/" }, - { name: "Install", path: "/install" }, - { name: "API", path: "/docs" }, - { name: "Help", path: "/help" }, - { name: "FAQ", path: "/faq" }, - { name: "Donate", path: "/donate" }, - { name: "Links", path: "/links" }, + { name: "home", path: "/" }, + { name: "install", path: "/install" }, + { name: "api", path: "/docs" }, + { name: "help", path: "/help" }, + { name: "faq", path: "/faq" }, + { name: "donate", path: "/donate" }, + { name: "links", path: "/links" }, ], langs: [ { name: "English", locale: "en" }, @@ -128,7 +128,6 @@ export default { if (process.client && navigator.language) { this.$vuetify.lang.current = navigator.language.slice(0, 2); } - console.log(this.$vuetify.lang); setTimeout(() => { // Chrome < 70 or FF < 60 if ( diff --git a/Website/nuxt.config.js b/Website/nuxt.config.js index 8ae58cb..f1171aa 100644 --- a/Website/nuxt.config.js +++ b/Website/nuxt.config.js @@ -2,6 +2,7 @@ import en from "./_locales/en"; import es from "./_locales/es"; import tr from "./_locales/tr"; import ru from "./_locales/ru"; + export default { // Global page headers: https://go.nuxtjs.dev/config-head head: { diff --git a/Website/pages/docs.vue b/Website/pages/docs.vue index 2237af7..adb2a68 100644 --- a/Website/pages/docs.vue +++ b/Website/pages/docs.vue @@ -15,32 +15,34 @@ " > - + - + @@ -64,22 +66,22 @@ export default { //--- Links To Generate Above ---// links: [ { - text: "Usage Rights", + name: "rights", icon: "mdi-book-open-variant", to: "/docs/usage-rights", }, { - text: "URL Information", + name: "url", icon: "mdi-web", to: "/docs/url", }, { - text: "Available Endpoints", + name: "endpoints", icon: "mdi-transit-connection-variant", to: "/docs/endpoints", }, { - text: "Basic Fetching Tutorial", + name: "fetching", icon: "mdi-school", to: "/docs/fetching", }, diff --git a/Website/pages/docs/endpoints.vue b/Website/pages/docs/endpoints.vue index 2933af1..985a50f 100644 --- a/Website/pages/docs/endpoints.vue +++ b/Website/pages/docs/endpoints.vue @@ -1,8 +1,12 @@ diff --git a/Website/pages/docs/fetching.vue b/Website/pages/docs/fetching.vue index f3d9d1b..2f6562a 100644 --- a/Website/pages/docs/fetching.vue +++ b/Website/pages/docs/fetching.vue @@ -1,38 +1,46 @@