diff --git a/package.json b/package.json index c93d349..b23fa59 100644 --- a/package.json +++ b/package.json @@ -43,9 +43,11 @@ "@sveltejs/vite-plugin-svelte": "^3.0.0", "@tabler/icons-webfont": "^2.47.0", "debug": "^4.3.4", + "i18next": "^23.10.0", "lodash": "^4.17.21", "normalize.css": "^8.0.1", "svelte": "^4.2.7", + "svelte-i18next": "^2.2.2", "tslib": "^2.4.1", "typescript": "^5.0.0", "vite": "^5.0.3" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 65c9a26..f95e036 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -26,6 +26,9 @@ dependencies: debug: specifier: ^4.3.4 version: 4.3.4 + i18next: + specifier: ^23.10.0 + version: 23.10.0 lodash: specifier: ^4.17.21 version: 4.17.21 @@ -35,6 +38,9 @@ dependencies: svelte: specifier: ^4.2.7 version: 4.2.9 + svelte-i18next: + specifier: ^2.2.2 + version: 2.2.2(i18next@23.10.0)(svelte@4.2.9) tslib: specifier: ^2.4.1 version: 2.6.2 @@ -139,7 +145,6 @@ packages: engines: {node: '>=6.9.0'} dependencies: regenerator-runtime: 0.14.1 - dev: true /@esbuild/aix-ppc64@0.19.12: resolution: {integrity: sha512-bmoCYyWdEL3wDQIVbcyzRyeKLgk2WtWLTWz1ZIAZF/EGbNOwSA6ew3PftJ1PqMiOOGu0OyFMzG53L0zqIpPeNA==} @@ -1802,6 +1807,12 @@ packages: - supports-color dev: true + /i18next@23.10.0: + resolution: {integrity: sha512-/TgHOqsa7/9abUKJjdPeydoyDc0oTi/7u9F8lMSj6ufg4cbC1Oj3f/Jja7zj7WRIhEQKB7Q4eN6y68I9RDxxGQ==} + dependencies: + '@babel/runtime': 7.23.9 + dev: false + /ieee754@1.2.1: resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==} dev: true @@ -2396,7 +2407,6 @@ packages: /regenerator-runtime@0.14.1: resolution: {integrity: sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==} - dev: true /require-directory@2.1.1: resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==} @@ -2683,6 +2693,16 @@ packages: svelte: 4.2.9 dev: false + /svelte-i18next@2.2.2(i18next@23.10.0)(svelte@4.2.9): + resolution: {integrity: sha512-IpJDZCH5cCgKfHQHgiLmGT4j9HCdg4fqsP3oP2deLu8PxmNj0Ui6khMiDoxAxedAiYEhr0xendv2xqh3Rq+uQQ==} + peerDependencies: + i18next: '*' + svelte: '*' + dependencies: + i18next: 23.10.0 + svelte: 4.2.9 + dev: false + /svelte-preprocess@5.1.3(postcss@8.4.33)(svelte@4.2.9)(typescript@5.3.3): resolution: {integrity: sha512-xxAkmxGHT+J/GourS5mVJeOXZzne1FR5ljeOUAMXUkfEhkLEllRreXpbl3dIYJlcJRfL1LO1uIAPpBpBfiqGPw==} engines: {node: '>= 16.0.0', pnpm: ^8.0.0} diff --git a/src/lib/ScreenInfo.svelte b/src/lib/ScreenInfo.svelte index 4e5e1cb..1656c6c 100644 --- a/src/lib/ScreenInfo.svelte +++ b/src/lib/ScreenInfo.svelte @@ -1,6 +1,7 @@ @@ -63,6 +64,7 @@ & a { text-align: center; text-decoration: none; + white-space: nowrap; &.disabled { pointer-events: none; diff --git a/src/routes/audio/(channels)/channels-5.1/+page.svelte b/src/routes/audio/(channels)/channels-5.1/+page.svelte index fad8203..1a4368b 100644 --- a/src/routes/audio/(channels)/channels-5.1/+page.svelte +++ b/src/routes/audio/(channels)/channels-5.1/+page.svelte @@ -6,19 +6,20 @@ import rearLeftUrl from '@assets/audio/5.1/Rear_Left.mp3'; import rearRightUrl from '@assets/audio/5.1/Rear_Right.mp3'; import LfeUrl from '@assets/audio/5.1/LFE_Noise.mp3'; + import { i18n } from '$lib/i18n';