diff --git a/Dockerfile b/Dockerfile index cc9b84be..5923db79 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,6 +8,10 @@ COPY package.json ./ COPY pnpm-lock.yaml ./ RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile +ARG PWA_ENABLED="false" + +ENV VITE_PWA_ENABLED=${PWA_ENABLED} + COPY . ./ RUN pnpm run build diff --git a/package.json b/package.json index b4cac548..810a689b 100644 --- a/package.json +++ b/package.json @@ -123,7 +123,8 @@ "vite-plugin-package-version": "^1.1.0", "vite-plugin-pwa": "^0.17.4", "vite-plugin-static-copy": "^1.0.0", - "vitest": "^1.1.0" + "vitest": "^1.1.0", + "workbox-window": "^7.0.0" }, "pnpm": { "overrides": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bd97c001..2ded1fb4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -268,7 +268,7 @@ devDependencies: version: 0.5.9(prettier@3.1.1) rollup-plugin-visualizer: specifier: ^5.11.0 - version: 5.11.0(@rollup/wasm-node@4.10.0) + version: 5.11.0(@rollup/wasm-node@4.12.0) tailwind-scrollbar: specifier: ^3.0.5 version: 3.0.5(tailwindcss@3.4.0) @@ -302,6 +302,9 @@ devDependencies: vitest: specifier: ^1.1.0 version: 1.1.0(@types/node@20.10.5)(jsdom@23.0.1) + workbox-window: + specifier: ^7.0.0 + version: 7.0.0 packages: @@ -2059,7 +2062,7 @@ packages: engines: {node: '>=14.0.0'} dev: false - /@rollup/plugin-babel@5.3.1(@babel/core@7.23.6)(@rollup/wasm-node@4.10.0): + /@rollup/plugin-babel@5.3.1(@babel/core@7.23.6)(@rollup/wasm-node@4.12.0): resolution: {integrity: sha512-WFfdLWU/xVWKeRQnKmIAQULUI7Il0gZnBIH/ZFO069wYIfPu+8zrfp/KMW0atmELoRDq8FbiP3VCss9MhCut7Q==} engines: {node: '>= 10.0.0'} peerDependencies: @@ -2072,36 +2075,36 @@ packages: dependencies: '@babel/core': 7.23.6 '@babel/helper-module-imports': 7.22.15 - '@rollup/pluginutils': 3.1.0(@rollup/wasm-node@4.10.0) - rollup: /@rollup/wasm-node@4.10.0 + '@rollup/pluginutils': 3.1.0(@rollup/wasm-node@4.12.0) + rollup: /@rollup/wasm-node@4.12.0 dev: true - /@rollup/plugin-node-resolve@11.2.1(@rollup/wasm-node@4.10.0): + /@rollup/plugin-node-resolve@11.2.1(@rollup/wasm-node@4.12.0): resolution: {integrity: sha512-yc2n43jcqVyGE2sqV5/YCmocy9ArjVAP/BeXyTtADTBBX6V0e5UMqwO8CdQ0kzjb6zu5P1qMzsScCMRvE9OlVg==} engines: {node: '>= 10.0.0'} peerDependencies: rollup: npm:@rollup/wasm-node dependencies: - '@rollup/pluginutils': 3.1.0(@rollup/wasm-node@4.10.0) + '@rollup/pluginutils': 3.1.0(@rollup/wasm-node@4.12.0) '@types/resolve': 1.17.1 builtin-modules: 3.3.0 deepmerge: 4.3.1 is-module: 1.0.0 resolve: 1.22.4 - rollup: /@rollup/wasm-node@4.10.0 + rollup: /@rollup/wasm-node@4.12.0 dev: true - /@rollup/plugin-replace@2.4.2(@rollup/wasm-node@4.10.0): + /@rollup/plugin-replace@2.4.2(@rollup/wasm-node@4.12.0): resolution: {integrity: sha512-IGcu+cydlUMZ5En85jxHH4qj2hta/11BHq95iHEyb2sbgiN0eCdzvUcHw5gt9pBL5lTi4JDYJ1acCoMGpTvEZg==} peerDependencies: rollup: npm:@rollup/wasm-node dependencies: - '@rollup/pluginutils': 3.1.0(@rollup/wasm-node@4.10.0) + '@rollup/pluginutils': 3.1.0(@rollup/wasm-node@4.12.0) magic-string: 0.25.9 - rollup: /@rollup/wasm-node@4.10.0 + rollup: /@rollup/wasm-node@4.12.0 dev: true - /@rollup/pluginutils@3.1.0(@rollup/wasm-node@4.10.0): + /@rollup/pluginutils@3.1.0(@rollup/wasm-node@4.12.0): resolution: {integrity: sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==} engines: {node: '>= 8.0.0'} peerDependencies: @@ -2110,11 +2113,11 @@ packages: '@types/estree': 0.0.39 estree-walker: 1.0.1 picomatch: 2.3.1 - rollup: /@rollup/wasm-node@4.10.0 + rollup: /@rollup/wasm-node@4.12.0 dev: true - /@rollup/wasm-node@4.10.0: - resolution: {integrity: sha512-wH/ih4T/iP2PUyTrkyioZqDoFY/gmu63LPLTOM5Q21gSB/D3Ejw3UBpUOMLt86fIbN3mV+wL45MyA71XAj1ytg==} + /@rollup/wasm-node@4.12.0: + resolution: {integrity: sha512-sqy3+YvV/uWX6bPZOR5PlEdH6xyMPXoelllRQ/uZ13tzy9f4pXZTbajnoWN8IHHXwTNKPiLzsePLiDEVmkxMNw==} engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true dependencies: @@ -5098,7 +5101,7 @@ packages: '@babel/plugin-syntax-typescript': 7.23.3(@babel/core@7.23.6) '@babel/types': 7.23.6 kleur: 4.1.5 - rollup: /@rollup/wasm-node@4.10.0 + rollup: /@rollup/wasm-node@4.12.0 unplugin: 1.5.1 transitivePeerDependencies: - supports-color @@ -6026,7 +6029,7 @@ packages: glob: 7.2.3 dev: true - /rollup-plugin-terser@7.0.2(@rollup/wasm-node@4.10.0): + /rollup-plugin-terser@7.0.2(@rollup/wasm-node@4.12.0): resolution: {integrity: sha512-w3iIaU4OxcF52UUXiZNsNeuXIMDvFrr+ZXK6bFZ0Q60qyVfq4uLptoS4bbq3paG3x216eQllFZX7zt6TIImguQ==} deprecated: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-terser peerDependencies: @@ -6034,12 +6037,12 @@ packages: dependencies: '@babel/code-frame': 7.23.5 jest-worker: 26.6.2 - rollup: /@rollup/wasm-node@4.10.0 + rollup: /@rollup/wasm-node@4.12.0 serialize-javascript: 4.0.0 terser: 5.19.3 dev: true - /rollup-plugin-visualizer@5.11.0(@rollup/wasm-node@4.10.0): + /rollup-plugin-visualizer@5.11.0(@rollup/wasm-node@4.12.0): resolution: {integrity: sha512-exM0Ms2SN3AgTzMeW7y46neZQcyLY7eKwWAop1ZoRTCZwyrIRdMMJ6JjToAJbML77X/9N8ZEpmXG4Z/Clb9k8g==} engines: {node: '>=14'} hasBin: true @@ -6051,7 +6054,7 @@ packages: dependencies: open: 8.4.2 picomatch: 2.3.1 - rollup: /@rollup/wasm-node@4.10.0 + rollup: /@rollup/wasm-node@4.12.0 source-map: 0.7.4 yargs: 17.7.2 dev: true @@ -7037,7 +7040,7 @@ packages: '@types/node': 20.10.5 esbuild: 0.19.10 postcss: 8.4.32 - rollup: /@rollup/wasm-node@4.10.0 + rollup: /@rollup/wasm-node@4.12.0 optionalDependencies: fsevents: 2.3.3 dev: true @@ -7299,9 +7302,9 @@ packages: '@babel/core': 7.23.6 '@babel/preset-env': 7.23.6(@babel/core@7.23.6) '@babel/runtime': 7.23.6 - '@rollup/plugin-babel': 5.3.1(@babel/core@7.23.6)(@rollup/wasm-node@4.10.0) - '@rollup/plugin-node-resolve': 11.2.1(@rollup/wasm-node@4.10.0) - '@rollup/plugin-replace': 2.4.2(@rollup/wasm-node@4.10.0) + '@rollup/plugin-babel': 5.3.1(@babel/core@7.23.6)(@rollup/wasm-node@4.12.0) + '@rollup/plugin-node-resolve': 11.2.1(@rollup/wasm-node@4.12.0) + '@rollup/plugin-replace': 2.4.2(@rollup/wasm-node@4.12.0) '@surma/rollup-plugin-off-main-thread': 2.2.3 ajv: 8.12.0 common-tags: 1.8.2 @@ -7310,8 +7313,8 @@ packages: glob: 7.2.3 lodash: 4.17.21 pretty-bytes: 5.6.0 - rollup: /@rollup/wasm-node@4.10.0 - rollup-plugin-terser: 7.0.2(@rollup/wasm-node@4.10.0) + rollup: /@rollup/wasm-node@4.12.0 + rollup-plugin-terser: 7.0.2(@rollup/wasm-node@4.12.0) source-map: 0.8.0-beta.0 stringify-object: 3.3.0 strip-comments: 2.0.1 diff --git a/src/assets/locales/ar.json b/src/assets/locales/ar.json index 1f1b23f2..bae488b0 100644 --- a/src/assets/locales/ar.json +++ b/src/assets/locales/ar.json @@ -116,27 +116,24 @@ "failed": "تعذر العثور على الوسائط، حاول مجددا!", "loading": "جار التحميل...", "noResults": "لم نتمكن من العثور على أي شيء!", - "placeholder": "ماذا تريد أن تشاهد؟", + "placeholder": { + "default": "ماذا تريد أن تشاهد؟", + "extra": [] + }, "sectionTitle": "نتائج البحث" }, "titles": { "day": { "default": "ماذا تريد أن تشاهد في هذه الظهيرة؟", - "extra": [ - "متشوق للمغامرة؟ قد يكون Jurassic Park خيارًا مثاليًا لك." - ] + "extra": ["متشوق للمغامرة؟ قد يكون Jurassic Park خيارًا مثاليًا لك."] }, "morning": { "default": "ماذا تريد أن تشاهد في هذا الصباح؟", - "extra": [ - "سمعت أن فلم \"Before Sunrise\" جيد" - ] + "extra": ["سمعت أن فلم \"Before Sunrise\" جيد"] }, "night": { "default": "ماذا تريد أن تشاهد في هذه الليلة؟", - "extra": [ - "مُرهَق؟ سمعت أن فيلم \"The Exorcist\" جيد." - ] + "extra": ["مُرهَق؟ سمعت أن فيلم \"The Exorcist\" جيد."] } } }, diff --git a/src/assets/locales/bg.json b/src/assets/locales/bg.json index 63e112e2..7b5eb88f 100644 --- a/src/assets/locales/bg.json +++ b/src/assets/locales/bg.json @@ -115,7 +115,10 @@ "failed": "Неуспешно намиране на медия, опитайте отново!", "loading": "Зареждане...", "noResults": "Не успяхме да намерим нищо!", - "placeholder": "Какво искате да гледате?", + "placeholder": { + "default": "Какво искате да гледате?", + "extra": [] + }, "sectionTitle": "Резултати от търсенето" }, "titles": { @@ -127,15 +130,11 @@ }, "morning": { "default": "Какво бихте искали да гледате тази сутрин?", - "extra": [ - "Чух, че Before Sunrise е добър" - ] + "extra": ["Чух, че Before Sunrise е добър"] }, "night": { "default": "Какво бихте искали да гледате тази вечер?", - "extra": [ - "Изморен? Чух, че Екзорсистът е добър." - ] + "extra": ["Изморен? Чух, че Екзорсистът е добър."] } } }, diff --git a/src/assets/locales/bn.json b/src/assets/locales/bn.json index 728c3bbd..67dbf76e 100644 --- a/src/assets/locales/bn.json +++ b/src/assets/locales/bn.json @@ -115,27 +115,24 @@ "failed": "মিডিয়া খুঁজে পেতে ব্যর্থ, আবার চেষ্টা করুন!", "loading": "লোড হচ্ছে..।", "noResults": "আমরা কিছুই খুঁজে পাইনি!", - "placeholder": "আপনি কি দেখতে চান?", + "placeholder": { + "default": "আপনি কি দেখতে চান?", + "extra": [] + }, "sectionTitle": "অনুসন্ধান ফলাফল" }, "titles": { "day": { "default": "আপনি এই বিকেলে কি দেখতে চান?", - "extra": [ - "দুঃসাহসিক বোধ করছেন? জুরাসিক পার্ক নিখুঁত পছন্দ হতে পারে।" - ] + "extra": ["দুঃসাহসিক বোধ করছেন? জুরাসিক পার্ক নিখুঁত পছন্দ হতে পারে।"] }, "morning": { "default": "আপনি এই সকালে কি দেখতে চান?", - "extra": [ - "শুনি সূর্যোদয়ের আগে ভালো" - ] + "extra": ["শুনি সূর্যোদয়ের আগে ভালো"] }, "night": { "default": "আপনি আজ রাতে কি দেখতে চান?", - "extra": [ - "ক্লান্ত? আমি শুনেছি দ্য এক্সরসিস্ট ভাল।" - ] + "extra": ["ক্লান্ত? আমি শুনেছি দ্য এক্সরসিস্ট ভাল।"] } } }, diff --git a/src/assets/locales/ca.json b/src/assets/locales/ca.json index 0e2284d9..9b9c4d5b 100644 --- a/src/assets/locales/ca.json +++ b/src/assets/locales/ca.json @@ -115,7 +115,10 @@ "failed": "No s'ha pogut trobar cap contingut, torneu-ho a provar!", "loading": "S'està carregant…", "noResults": "No hem pogut trobar res!", - "placeholder": "Què voleu mirar?", + "placeholder": { + "default": "Què voleu mirar?", + "extra": [] + }, "sectionTitle": "Resultats de la cerca" }, "titles": { @@ -127,15 +130,11 @@ }, "morning": { "default": "Què us agradaria mirar aquest matí?", - "extra": [ - "He sentit que «Abans de l'alba» és bona" - ] + "extra": ["He sentit que «Abans de l'alba» és bona"] }, "night": { "default": "Què us agradaria mirar aquesta nit?", - "extra": [ - "Esteu cansat? He sentit que «L'exorcista» és bona." - ] + "extra": ["Esteu cansat? He sentit que «L'exorcista» és bona."] } } }, diff --git a/src/assets/locales/cs.json b/src/assets/locales/cs.json index 4478d656..eacf47d4 100644 --- a/src/assets/locales/cs.json +++ b/src/assets/locales/cs.json @@ -116,27 +116,24 @@ "failed": "Nepodařilo se najít média, zkuste to znovu!", "loading": "Načítání...", "noResults": "Nemohli jsme nic najít!", - "placeholder": "Co si přejete sledovat?", + "placeholder": { + "default": "Co si přejete sledovat?", + "extra": [] + }, "sectionTitle": "Výsledky vyhledávání" }, "titles": { "day": { "default": "Na co byste se chtěli dnes odpoledne dívat?", - "extra": [ - "Chceš zažít dobrodružství? Jurský Park je pro tebe." - ] + "extra": ["Chceš zažít dobrodružství? Jurský Park je pro tebe."] }, "morning": { "default": "Na co byste se chtěli dnes ráno dívat?", - "extra": [ - "Slyšel jsem, že Před úsvitem je super." - ] + "extra": ["Slyšel jsem, že Před úsvitem je super."] }, "night": { "default": "Na co byste se chtěli dnes večer dívat?", - "extra": [ - "Unaven? Slyšel jsem, že Vymítač ďábla je super." - ] + "extra": ["Unaven? Slyšel jsem, že Vymítač ďábla je super."] } } }, diff --git a/src/assets/locales/de.json b/src/assets/locales/de.json index 31dbe2f8..1d352faf 100644 --- a/src/assets/locales/de.json +++ b/src/assets/locales/de.json @@ -116,7 +116,10 @@ "failed": "Das Medium wurde nicht gefunden, bitte versuchen Sie es erneut!", "loading": "Wird geladen...", "noResults": "Wir haben nichts gefunden!", - "placeholder": "Was möchtest du schauen?", + "placeholder": { + "default": "Was möchtest du schauen?", + "extra": [] + }, "sectionTitle": "Suchergebnisse" }, "titles": { @@ -128,15 +131,11 @@ }, "morning": { "default": "Was würdest du diesen Morgen gerne schauen?", - "extra": [ - "Before Sunrise soll gut sein" - ] + "extra": ["Before Sunrise soll gut sein"] }, "night": { "default": "Was möchtest du diesen Abend gerne schauen?", - "extra": [ - "Müde? Ich hab gehört The Exorcist soll gut sein." - ] + "extra": ["Müde? Ich hab gehört The Exorcist soll gut sein."] } } }, diff --git a/src/assets/locales/el.json b/src/assets/locales/el.json index 426897fb..00c400ce 100644 --- a/src/assets/locales/el.json +++ b/src/assets/locales/el.json @@ -115,7 +115,10 @@ "failed": "Απέτυχε η εύρεση πολυμέσων, δοκιμάστε ξανά!", "loading": "Φόρτωση...", "noResults": "Δεν μπορέσαμε να βρούμε τίποτα!", - "placeholder": "Τι θέλετε να παρακολουθήσετε;", + "placeholder": { + "default": "Τι θέλετε να παρακολουθήσετε;", + "extra": [] + }, "sectionTitle": "Αποτελέσματα αναζήτησης" }, "titles": { @@ -127,15 +130,11 @@ }, "morning": { "default": "Τι θα θέλατε να παρακολουθήσετε σήμερα το πρωί;", - "extra": [ - "Έχω ακούσει ότι το Before Sunrise είναι καλό" - ] + "extra": ["Έχω ακούσει ότι το Before Sunrise είναι καλό"] }, "night": { "default": "Τι θα θέλατε να παρακολουθήσετε απόψε;", - "extra": [ - "Κούραση; Έχω ακούσει ότι ο Εξορκιστής είναι καλός." - ] + "extra": ["Κούραση; Έχω ακούσει ότι ο Εξορκιστής είναι καλός."] } } }, diff --git a/src/assets/locales/en.json b/src/assets/locales/en.json index 61b7e88b..c6a43875 100644 --- a/src/assets/locales/en.json +++ b/src/assets/locales/en.json @@ -116,7 +116,15 @@ "failed": "Failed to find media, try again!", "loading": "Loading...", "noResults": "We couldn't find anything!", - "placeholder": "What do you want to watch?", + "placeholder": { + "default": "What do you want to watch?", + "extra": [ + "What do you want to explore?", + "What's on your watchlist?", + "What's your favorite movie?", + "What's your favorite series?" + ] + }, "sectionTitle": "Search results" }, "titles": { diff --git a/src/assets/locales/es.json b/src/assets/locales/es.json index 1170f970..bf9bea49 100644 --- a/src/assets/locales/es.json +++ b/src/assets/locales/es.json @@ -116,7 +116,10 @@ "failed": "¡Error al encontrar contenido, inténtalo de nuevo!", "loading": "Cargando...", "noResults": "¡No pudimos encontrar nada!", - "placeholder": "¿Qué te gustaría ver?", + "placeholder": { + "default": "¿Qué te gustaría ver?", + "extra": [] + }, "sectionTitle": "Resultados de búsqueda" }, "titles": { @@ -128,15 +131,11 @@ }, "morning": { "default": "¿Qué te gustaría ver esta mañana?", - "extra": [ - "Escuché que “Antes del amanecer” es buena" - ] + "extra": ["Escuché que “Antes del amanecer” es buena"] }, "night": { "default": "¿Qué te gustaría ver esta noche?", - "extra": [ - "¿Cansado? Escuché que “El Exorcista” es buena." - ] + "extra": ["¿Cansado? Escuché que “El Exorcista” es buena."] } } }, diff --git a/src/assets/locales/et.json b/src/assets/locales/et.json index 0bf06f29..8819ce15 100644 --- a/src/assets/locales/et.json +++ b/src/assets/locales/et.json @@ -116,7 +116,10 @@ "failed": "Meedia leidmine ebaõnnestus, proovige uuesti!", "loading": "Laadimine....", "noResults": "Me ei leidnud midagi!", - "placeholder": "Mida tahate vaadata?", + "placeholder": { + "default": "Mida tahate vaadata?", + "extra": [] + }, "sectionTitle": "Otsingutulemused" }, "titles": { @@ -128,15 +131,11 @@ }, "morning": { "default": "Mida te soovite täna hommikul vaadata?", - "extra": [ - "Ma kuulsin, et Before Sunrise on hea" - ] + "extra": ["Ma kuulsin, et Before Sunrise on hea"] }, "night": { "default": "Mida te soovite täna õhtul vaadata?", - "extra": [ - "Väsinud? Olen kuulnud, et The Exorcist on hea." - ] + "extra": ["Väsinud? Olen kuulnud, et The Exorcist on hea."] } } }, diff --git a/src/assets/locales/fa.json b/src/assets/locales/fa.json index 0a16d98d..4ffb5da8 100644 --- a/src/assets/locales/fa.json +++ b/src/assets/locales/fa.json @@ -116,7 +116,10 @@ "failed": "چیزی پیدا نشد، دوباره تلاش کنید!", "loading": "در حال بارگذاری...", "noResults": "چیزی پیدا نکردیم!", - "placeholder": "چه می‌خواهید تماشا کنید؟", + "placeholder": { + "default": "چه می‌خواهید تماشا کنید؟", + "extra": [] + }, "sectionTitle": "نتایج جستجو" }, "titles": { @@ -128,15 +131,11 @@ }, "morning": { "default": "دوست دارید امروز صبح چه چیزی تماشا کنید؟", - "extra": [ - "شنیدم فیلم \"پیش از طلوع\" عالیه" - ] + "extra": ["شنیدم فیلم \"پیش از طلوع\" عالیه"] }, "night": { "default": "دوست دارید امشب چه چیزی تماشا کنید؟", - "extra": [ - "خسته اید؟ شنیده ام که \"جن گیر\" فیلم خوبی است." - ] + "extra": ["خسته اید؟ شنیده ام که \"جن گیر\" فیلم خوبی است."] } } }, diff --git a/src/assets/locales/fi-FI.json b/src/assets/locales/fi-FI.json index 069a3ab3..be38bb71 100644 --- a/src/assets/locales/fi-FI.json +++ b/src/assets/locales/fi-FI.json @@ -116,7 +116,10 @@ "failed": "Mediaa ei löytynyt, yritä uudelleen!", "loading": "Ladataan...", "noResults": "Emme löytäneet mitään!", - "placeholder": "Mitä haluat katsoa?", + "placeholder": { + "default": "Mitä haluat katsoa?", + "extra": [] + }, "sectionTitle": "Hakutulokset" }, "titles": { @@ -128,15 +131,11 @@ }, "morning": { "default": "Mitä haluaisit katsoa tänä aamuna?", - "extra": [ - "Kuulen, että Rakkautta ennen aamua (Before Sunrise) on hyvä" - ] + "extra": ["Kuulen, että Rakkautta ennen aamua (Before Sunrise) on hyvä"] }, "night": { "default": "Mitä haluaisit katsoa tänä iltana?", - "extra": [ - "Väsynyt? Kuulin, että Manaaja (The Exorcist) on hyvä." - ] + "extra": ["Väsynyt? Kuulin, että Manaaja (The Exorcist) on hyvä."] } } }, diff --git a/src/assets/locales/fr.json b/src/assets/locales/fr.json index 59fa2a66..20c51659 100644 --- a/src/assets/locales/fr.json +++ b/src/assets/locales/fr.json @@ -116,7 +116,10 @@ "failed": "Le média n'a pas été trouvé, veuillez réessayez !", "loading": "Chargement...", "noResults": "Nous n'avons rien trouvé !", - "placeholder": "Que voulez-vous voir ?", + "placeholder": { + "default": "Que voulez-vous voir ?", + "extra": [] + }, "sectionTitle": "Résultats de la recherche" }, "titles": { @@ -128,9 +131,7 @@ }, "morning": { "default": "Que voulez-vous regarder ce matin ?", - "extra": [ - "Les films, c'est comme les voyages : ça nous ouvre l'esprit" - ] + "extra": ["Les films, c'est comme les voyages : ça nous ouvre l'esprit"] }, "night": { "default": "Que voulez-vous regarder ce soir ?", diff --git a/src/assets/locales/gl.json b/src/assets/locales/gl.json index b87c7559..854d1261 100644 --- a/src/assets/locales/gl.json +++ b/src/assets/locales/gl.json @@ -116,7 +116,10 @@ "failed": "Error ao encontrar contido... intentao de novo!", "loading": "Cargando...", "noResults": "Non atopamos nada!", - "placeholder": "Que che gustaría ver?", + "placeholder": { + "default": "Que che gustaría ver?", + "extra": [] + }, "sectionTitle": "Resultados da busca" }, "titles": { @@ -128,15 +131,11 @@ }, "morning": { "default": "Que che gustaría ver esta mañá?", - "extra": [ - "Escoitei que “Antes del amanecer” é boa" - ] + "extra": ["Escoitei que “Antes del amanecer” é boa"] }, "night": { "default": "Que che gustaría ver esta noite?", - "extra": [ - "Canso? Escoitei que “El Exorcista” é boa." - ] + "extra": ["Canso? Escoitei que “El Exorcista” é boa."] } } }, diff --git a/src/assets/locales/gu.json b/src/assets/locales/gu.json index 9eb5478d..1ddfcef2 100644 --- a/src/assets/locales/gu.json +++ b/src/assets/locales/gu.json @@ -116,21 +116,20 @@ "failed": "મીડિયા શોધવામાં નિષ્ફળ, ફરી પ્રયાસ કરો!", "loading": "લોડ થાય છે...", "noResults": "અમે કંઈપણ શોધી શક્યા નથી!", - "placeholder": "તમે શું જોવા માંગો છો?", + "placeholder": { + "default": "તમે શું જોવા માંગો છો?", + "extra": [] + }, "sectionTitle": "શોધ પરિણામો" }, "titles": { "day": { "default": "તમે આ બપોરે શું જોવા માંગો છો?", - "extra": [ - "સાહસિક લાગે છે? જુરાસિક પાર્ક યોગ્ય પસંદગી હોઈ શકે છે." - ] + "extra": ["સાહસિક લાગે છે? જુરાસિક પાર્ક યોગ્ય પસંદગી હોઈ શકે છે."] }, "morning": { "default": "તમે આ સવારે શું જોવા માંગો છો?", - "extra": [ - "હું સાંભળું છું કે Before Sunrise સારું છે" - ] + "extra": ["હું સાંભળું છું કે Before Sunrise સારું છે"] }, "night": { "default": "તમે આજે રાત્રે શું જોવા માંગો છો?", diff --git a/src/assets/locales/he.json b/src/assets/locales/he.json index aad7cae4..468558c5 100644 --- a/src/assets/locales/he.json +++ b/src/assets/locales/he.json @@ -116,27 +116,24 @@ "failed": "לא הצלחנו למצוא מדיה, נסה שוב!", "loading": "טוען...", "noResults": "לא יכולנו למצוא כלום!", - "placeholder": "במה תרצה לצפות?", + "placeholder": { + "default": "במה תרצה לצפות?", + "extra": [] + }, "sectionTitle": "תוצאות חיפוש" }, "titles": { "day": { "default": "במה תרצה לצפות באחר צהריים זה?", - "extra": [ - "מרגיש הרפתקני? פארק היורה עשוי להיות הבחירה המושלמת." - ] + "extra": ["מרגיש הרפתקני? פארק היורה עשוי להיות הבחירה המושלמת."] }, "morning": { "default": "במה תרצה לצפות הבוקר?", - "extra": [ - "שמעתי שלפני הזריחה זה סרט טוב" - ] + "extra": ["שמעתי שלפני הזריחה זה סרט טוב"] }, "night": { "default": "במה תרצה לצפות הלילה?", - "extra": [ - "רוצה לישון? הפיג'מות היא בחירה מצויינת." - ] + "extra": ["רוצה לישון? הפיג'מות היא בחירה מצויינת."] } } }, diff --git a/src/assets/locales/hi.json b/src/assets/locales/hi.json index 671f5bac..7f1dfe00 100644 --- a/src/assets/locales/hi.json +++ b/src/assets/locales/hi.json @@ -116,7 +116,10 @@ "failed": "मीडिया ढूंढने में विफल, पुनः प्रयास करें!", "loading": "लोड हो रहा है..।", "noResults": "हमें कुछ नहीं मिला!", - "placeholder": "क्या देखना चाहते हो?", + "placeholder": { + "default": "क्या देखना चाहते हो?", + "extra": [] + }, "sectionTitle": "खोज के परिणाम" }, "titles": { @@ -128,15 +131,11 @@ }, "morning": { "default": "आप आज सुबह को क्या देखना चाहेंगे?", - "extra": [ - "मैंने सुना है सूर्योदय से पहले ठीक है" - ] + "extra": ["मैंने सुना है सूर्योदय से पहले ठीक है"] }, "night": { "default": "आप आज रात को क्या देखना चाहेंगे?", - "extra": [ - "थके हुए हो? मैंने सुना एक्सोरसिस्ट अच्छी मूवी है।" - ] + "extra": ["थके हुए हो? मैंने सुना एक्सोरसिस्ट अच्छी मूवी है।"] } } }, diff --git a/src/assets/locales/id.json b/src/assets/locales/id.json index 15a91bfe..de2153ca 100644 --- a/src/assets/locales/id.json +++ b/src/assets/locales/id.json @@ -115,7 +115,10 @@ "failed": "Gagal menemukan media, coba lagi!", "loading": "Memuat...", "noResults": "Kami tidak dapat menemukan apapun!", - "placeholder": "Apa yang ingin anda tonton?", + "placeholder": { + "default": "Apa yang ingin anda tonton?", + "extra": [] + }, "sectionTitle": "Hasil pencarian" }, "titles": { @@ -127,15 +130,11 @@ }, "morning": { "default": "Apa yang ingin anda tonton pagi ini?", - "extra": [ - "Kayaknya film Before Sunrise bagus deh" - ] + "extra": ["Kayaknya film Before Sunrise bagus deh"] }, "night": { "default": "Apa yang ingin anda tonton malam ini?", - "extra": [ - "Capek? Katanya The Exocist rekomended." - ] + "extra": ["Capek? Katanya The Exocist rekomended."] } } }, diff --git a/src/assets/locales/is-IS.json b/src/assets/locales/is-IS.json index 1b4906a4..d76ad65f 100644 --- a/src/assets/locales/is-IS.json +++ b/src/assets/locales/is-IS.json @@ -108,7 +108,10 @@ "failed": "Mostókst að finna miðil, reyndu aftur!", "loading": "Hlaðið...", "noResults": "Við gátum ekki fundið neitt!", - "placeholder": "Hvað viltu horfa á?", + "placeholder": { + "default": "Hvað viltu horfa á?", + "extra": [] + }, "sectionTitle": "Leitar niðurstöður" }, "titles": { @@ -120,15 +123,11 @@ }, "morning": { "default": "Hvað myndirðu vilja horfa á þessum morgni?", - "extra": [ - "Ég heyrði að Before Sunrise sé góð" - ] + "extra": ["Ég heyrði að Before Sunrise sé góð"] }, "night": { "default": "Hvað myndirðu vilja horfa á í nótt?", - "extra": [ - "Þreytt? Ég heyrði að The Exorcist sé góð." - ] + "extra": ["Þreytt? Ég heyrði að The Exorcist sé góð."] } } }, diff --git a/src/assets/locales/it.json b/src/assets/locales/it.json index 8e6cdd35..966afac4 100644 --- a/src/assets/locales/it.json +++ b/src/assets/locales/it.json @@ -116,7 +116,10 @@ "failed": "Impossibile trovare i media, riprova!", "loading": "Caricamento...", "noResults": "Non abbiamo trovato nulla!", - "placeholder": "Cosa vuoi guardare?", + "placeholder": { + "default": "Cosa vuoi guardare?", + "extra": [] + }, "sectionTitle": "Risultati della ricerca" }, "titles": { @@ -128,15 +131,11 @@ }, "morning": { "default": "Cosa vorresti guardare questa mattina?", - "extra": [ - "Ho sentito che «Prima Dell'alba» è buono" - ] + "extra": ["Ho sentito che «Prima Dell'alba» è buono"] }, "night": { "default": "Cosa vorresti guardare questa sera?", - "extra": [ - "Stanco? Ho sentito che L'esorciccio è buono." - ] + "extra": ["Stanco? Ho sentito che L'esorciccio è buono."] } } }, diff --git a/src/assets/locales/ja.json b/src/assets/locales/ja.json index fb202dc7..3d45db90 100644 --- a/src/assets/locales/ja.json +++ b/src/assets/locales/ja.json @@ -76,7 +76,10 @@ "allResults": "それがすべてです!", "loading": "読み込み中...", "noResults": "見つかりませんでした!", - "placeholder": "どんな映画を見たい?", + "placeholder": { + "default": "どんな映画を見たい?", + "extra": [] + }, "sectionTitle": "検索結果" }, "titles": { diff --git a/src/assets/locales/ko.json b/src/assets/locales/ko.json index 9866d3c5..f4b48fb1 100644 --- a/src/assets/locales/ko.json +++ b/src/assets/locales/ko.json @@ -116,7 +116,10 @@ "failed": "미디어 검색에 실패하였습니다, 다시 시도해주세요!", "loading": "로딩...", "noResults": "검색결과가 없습니다!", - "placeholder": "무엇을 보고 싶으신가요?", + "placeholder": { + "default": "무엇을 보고 싶으신가요?", + "extra": [] + }, "sectionTitle": "검색 결과" }, "titles": { @@ -128,15 +131,11 @@ }, "morning": { "default": "오늘 아침에 무엇을 보고 싶으신가요?", - "extra": [ - "Before Sunrise가 좋다고 들었어요" - ] + "extra": ["Before Sunrise가 좋다고 들었어요"] }, "night": { "default": "오늘 밤에 무엇을 보고 싶으신가요?", - "extra": [ - "피곤하신가요? The Exorcist가 좋다고 들었어요." - ] + "extra": ["피곤하신가요? The Exorcist가 좋다고 들었어요."] } } }, diff --git a/src/assets/locales/lv.json b/src/assets/locales/lv.json index 0d5b3c99..e2f7088a 100644 --- a/src/assets/locales/lv.json +++ b/src/assets/locales/lv.json @@ -114,7 +114,10 @@ "failed": "Neizdevās atrast multividi. Mēģiniet vēlreiz!", "loading": "Lādejas...", "noResults": "Mēs nevarējām neko atrast!", - "placeholder": "Ko tu gribi skatīties?", + "placeholder": { + "default": "Ko tu gribi skatīties?", + "extra": [] + }, "sectionTitle": "Meklējuma rezultāti" }, "titles": { @@ -123,15 +126,11 @@ }, "morning": { "default": "Ko tu gribētu šorīt noskatīties?", - "extra": [ - "Es dzirdu, ka Pirms saullēkta ir labs" - ] + "extra": ["Es dzirdu, ka Pirms saullēkta ir labs"] }, "night": { "default": "Ko tu gribētu šovakar skatīties?", - "extra": [ - "Noguris? Es dzirdu, ka Exorcist ir labs." - ] + "extra": ["Noguris? Es dzirdu, ka Exorcist ir labs."] } } }, diff --git a/src/assets/locales/minion.json b/src/assets/locales/minion.json index 22ca5c95..ed620f8a 100644 --- a/src/assets/locales/minion.json +++ b/src/assets/locales/minion.json @@ -115,7 +115,10 @@ "failed": "Failed to banana banana, try again!", "loading": "Loading...", "noResults": "We couldn't banana anything!", - "placeholder": "Banana do you want to banana?", + "placeholder": { + "default": "Banana do you want to banana?", + "extra": [] + }, "sectionTitle": "Banana results" }, "titles": { @@ -127,15 +130,11 @@ }, "morning": { "default": "What would you like to banana this banana?", - "extra": [ - "Banana! I hear Banana Sunrise is banana" - ] + "extra": ["Banana! I hear Banana Sunrise is banana"] }, "night": { "default": "What would you like to banana banana?", - "extra": [ - "Banana? I hear The Banana is banana." - ] + "extra": ["Banana? I hear The Banana is banana."] } } }, diff --git a/src/assets/locales/ne.json b/src/assets/locales/ne.json index a2954d9a..4b342f61 100644 --- a/src/assets/locales/ne.json +++ b/src/assets/locales/ne.json @@ -115,7 +115,10 @@ "failed": "मिडिया फेला पार्न असफल भयो, फेरि प्रयास गर्नुहोस्!", "loading": "लोड गर्दै...", "noResults": "हामीले केहि फेला पार्न सकेनौं!", - "placeholder": "तपाईं के हेर्न चाहनुहुन्छ?", + "placeholder": { + "default": "तपाईं के हेर्न चाहनुहुन्छ?", + "extra": [] + }, "sectionTitle": "खोज परिणामहरू" }, "titles": { @@ -127,15 +130,11 @@ }, "morning": { "default": "तपाई आज बिहान के हेर्न चाहनुहुन्छ?", - "extra": [ - "Before Sunrise राम्रो छ भन्ने सुन्छु" - ] + "extra": ["Before Sunrise राम्रो छ भन्ने सुन्छु"] }, "night": { "default": "तपाईं आज राती के हेर्न चाहनुहुन्छ?", - "extra": [ - "थकित? मैले सुनेको छु The Exorcist राम्रो छ।" - ] + "extra": ["थकित? मैले सुनेको छु The Exorcist राम्रो छ।"] } } }, diff --git a/src/assets/locales/nl.json b/src/assets/locales/nl.json index 20ef4503..5b1f2750 100644 --- a/src/assets/locales/nl.json +++ b/src/assets/locales/nl.json @@ -116,7 +116,10 @@ "failed": "Het is niet gelukt de media te laden, probeer het nog eens!", "loading": "Aan het zoeken...", "noResults": "We konden helaas niets vinden!", - "placeholder": "Wat wil je graag kijken?", + "placeholder": { + "default": "Wat wil je graag kijken?", + "extra": [] + }, "sectionTitle": "Zoekresultaten" }, "titles": { @@ -128,15 +131,11 @@ }, "morning": { "default": "Waar wil je deze ochtend naar kijken?", - "extra": [ - "Ik hoor dat Before Sunrise goed is" - ] + "extra": ["Ik hoor dat Before Sunrise goed is"] }, "night": { "default": "Wat wil je vanavond bekijken?", - "extra": [ - "Moe? Ik hoor dat The Exorcist goed is." - ] + "extra": ["Moe? Ik hoor dat The Exorcist goed is."] } } }, diff --git a/src/assets/locales/pa.json b/src/assets/locales/pa.json index 978dce15..ebc8887d 100644 --- a/src/assets/locales/pa.json +++ b/src/assets/locales/pa.json @@ -116,7 +116,10 @@ "failed": "ਮੀਡੀਆ ਲੱਭਣ ਵਿੱਚ ਅਸਫਲ, ਦੁਬਾਰਾ ਕੋਸ਼ਿਸ਼ ਕਰੋ!", "loading": "ਲੋਡ ਕੀਤਾ ਜਾ ਰਿਹਾ ਹੈ...", "noResults": "ਅਸੀਂ ਕੁਝ ਵੀ ਨਹੀਂ ਲੱਭ ਸਕੇ!", - "placeholder": "ਤੁਸੀਂ ਕੀ ਦੇਖਣਾ ਚਾਹੁੰਦੇ ਹੋ?", + "placeholder": { + "default": "ਤੁਸੀਂ ਕੀ ਦੇਖਣਾ ਚਾਹੁੰਦੇ ਹੋ?", + "extra": [] + }, "sectionTitle": "ਖੋਜ ਨਤੀਜੇ" }, "titles": { @@ -128,15 +131,11 @@ }, "morning": { "default": "ਤੁਸੀਂ ਅੱਜ ਸਵੇਰੇ ਕੀ ਦੇਖਣਾ ਚਾਹੋਗੇ?", - "extra": [ - "ਮੈਂ ਸੁਣਦਾ ਹਾਂ ਕਿ ਸੂਰਜ ਚੜ੍ਹਨ ਤੋਂ ਪਹਿਲਾਂ ਚੰਗਾ ਹੁੰਦਾ ਹੈ" - ] + "extra": ["ਮੈਂ ਸੁਣਦਾ ਹਾਂ ਕਿ ਸੂਰਜ ਚੜ੍ਹਨ ਤੋਂ ਪਹਿਲਾਂ ਚੰਗਾ ਹੁੰਦਾ ਹੈ"] }, "night": { "default": "ਤੁਸੀਂ ਅੱਜ ਰਾਤ ਕੀ ਦੇਖਣਾ ਚਾਹੋਗੇ?", - "extra": [ - "ਥੱਕ ਗਏ? ਮੈਂ ਸੁਣਿਆ ਹੈ ਕਿ Exorcist ਚੰਗਾ ਹੈ." - ] + "extra": ["ਥੱਕ ਗਏ? ਮੈਂ ਸੁਣਿਆ ਹੈ ਕਿ Exorcist ਚੰਗਾ ਹੈ."] } } }, diff --git a/src/assets/locales/pirate.json b/src/assets/locales/pirate.json index ac6d1c74..05f384a8 100644 --- a/src/assets/locales/pirate.json +++ b/src/assets/locales/pirate.json @@ -116,7 +116,10 @@ "failed": "Arrrr failed to find media, try again!", "loading": "Hold yer horses, me heartie!", "noResults": "We couldn't find anythin', arrr!", - "placeholder": "What do ye want to watch?", + "placeholder": { + "default": "What do ye want to watch?", + "extra": [] + }, "sectionTitle": "Searchin' results" }, "titles": { diff --git a/src/assets/locales/pl.json b/src/assets/locales/pl.json index b84e17e7..a653e4f9 100644 --- a/src/assets/locales/pl.json +++ b/src/assets/locales/pl.json @@ -116,7 +116,10 @@ "failed": "Nie udało się znaleźć mediów, Spróbuj ponownie!", "loading": "Wczytywanie...", "noResults": "Nie mogliśmy niczego znaleźć!", - "placeholder": "Co chciałbyś obejrzeć?", + "placeholder": { + "default": "Co chciałbyś obejrzeć?", + "extra": [] + }, "sectionTitle": "Wyniki wyszukiwania" }, "titles": { @@ -128,15 +131,11 @@ }, "morning": { "default": "Co chciałbyś obejrzeć dziś rano?", - "extra": [ - "Słyszałem że „Przed wschodem słońca” jest dobre" - ] + "extra": ["Słyszałem że „Przed wschodem słońca” jest dobre"] }, "night": { "default": "Co chciałbyś obejrzeć dziś wieczorem?", - "extra": [ - "Zmęczony? Słyszałem że „Egzorcysta” jest dobry." - ] + "extra": ["Zmęczony? Słyszałem że „Egzorcysta” jest dobry."] } } }, diff --git a/src/assets/locales/pt-BR.json b/src/assets/locales/pt-BR.json index d846c829..a732d231 100644 --- a/src/assets/locales/pt-BR.json +++ b/src/assets/locales/pt-BR.json @@ -116,7 +116,10 @@ "failed": "Falha ao encontrar mídia, tente novamente!", "loading": "Carregando...", "noResults": "Não conseguimos encontrar nada!", - "placeholder": "O que você quer assistir?", + "placeholder": { + "default": "O que você quer assistir?", + "extra": [] + }, "sectionTitle": "Resultados da pesquisa" }, "titles": { @@ -128,15 +131,11 @@ }, "morning": { "default": "O que você gostaria de assistir esta manhã?", - "extra": [ - "Ouvi dizer que Antes do Amanhecer é bom" - ] + "extra": ["Ouvi dizer que Antes do Amanhecer é bom"] }, "night": { "default": "O que você gostaria de assistir esta noite?", - "extra": [ - "Cansado? Ouvi dizer que O Exorcista é bom." - ] + "extra": ["Cansado? Ouvi dizer que O Exorcista é bom."] } } }, diff --git a/src/assets/locales/pt-PT.json b/src/assets/locales/pt-PT.json index 612415d6..22dd4234 100644 --- a/src/assets/locales/pt-PT.json +++ b/src/assets/locales/pt-PT.json @@ -115,7 +115,10 @@ "failed": "Falha ao encontrar mídia, tente novamente!", "loading": "A carregar...", "noResults": "Não conseguimos encontrar nada!", - "placeholder": "O que deseja assistir?", + "placeholder": { + "default": "O que deseja assistir?", + "extra": [] + }, "sectionTitle": "Resultados da pesquisa" }, "titles": { @@ -127,15 +130,11 @@ }, "morning": { "default": "O que gostaria de assistir esta manhã?", - "extra": [ - "Dizem que Antes do Amanhecer é bom" - ] + "extra": ["Dizem que Antes do Amanhecer é bom"] }, "night": { "default": "O que gostaria de assistir esta noite?", - "extra": [ - "Cansado? Dizem que O Exorcista é bom." - ] + "extra": ["Cansado? Dizem que O Exorcista é bom."] } } }, diff --git a/src/assets/locales/ro.json b/src/assets/locales/ro.json index 04849ce6..9a0ba2d9 100644 --- a/src/assets/locales/ro.json +++ b/src/assets/locales/ro.json @@ -114,7 +114,10 @@ "failed": "Găsire media eșuată, încearcă din nou!", "loading": "Se încarcă...", "noResults": "Nu am putut găsi nimic!", - "placeholder": "La ce dorești să te uiți?", + "placeholder": { + "default": "La ce dorești să te uiți?", + "extra": [] + }, "sectionTitle": "Rezultate de căutare" }, "titles": { @@ -126,15 +129,11 @@ }, "morning": { "default": "La ce dorești să te in uiți dimineață aceasta?", - "extra": [ - "Aud că Before Sunrise este bun" - ] + "extra": ["Aud că Before Sunrise este bun"] }, "night": { "default": "La ce dorești să te uiți în astă seară?", - "extra": [ - "Obosit? Aud că The Exorcist is good." - ] + "extra": ["Obosit? Aud că The Exorcist is good."] } } }, diff --git a/src/assets/locales/ru.json b/src/assets/locales/ru.json index bac2ae8d..668ab561 100644 --- a/src/assets/locales/ru.json +++ b/src/assets/locales/ru.json @@ -116,7 +116,10 @@ "failed": "Не удалось найти медиафайл, попробуйте снова!", "loading": "Загрузка...", "noResults": "Мы ничего не нашли!", - "placeholder": "Что вы хотите посмотреть?", + "placeholder": { + "default": "Что вы хотите посмотреть?", + "extra": [] + }, "sectionTitle": "Результаты поиска" }, "titles": { @@ -128,9 +131,7 @@ }, "morning": { "default": "Что бы вы хотели посмотреть этим утром?", - "extra": [ - "Слышали, что «Перед рассветом» – отличный фильм" - ] + "extra": ["Слышали, что «Перед рассветом» – отличный фильм"] }, "night": { "default": "Что бы вы хотели посмотреть этим вечером?", diff --git a/src/assets/locales/sl.json b/src/assets/locales/sl.json index ef51e2b7..ee374b4a 100644 --- a/src/assets/locales/sl.json +++ b/src/assets/locales/sl.json @@ -115,7 +115,10 @@ "failed": "Ni uspelo najti medija, prosim poskusite znova!", "loading": "Nalaganje...", "noResults": "Vsebin nismo našli!", - "placeholder": "Kaj si želite gledati?", + "placeholder": { + "default": "Kaj si želite gledati?", + "extra": [] + }, "sectionTitle": "Rezultati iskanja" }, "titles": { @@ -127,9 +130,7 @@ }, "morning": { "default": "Kateri film ali serijo bi si želeli ogledati ob tem jutru?", - "extra": [ - "Slišala sem, da je film \"Pred sončnim vzhodom\" odličen" - ] + "extra": ["Slišala sem, da je film \"Pred sončnim vzhodom\" odličen"] }, "night": { "default": "Kateri film ali serijo bi si želeli ogledati nocoj?", diff --git a/src/assets/locales/sv.json b/src/assets/locales/sv.json index 94263b93..ac35a4bf 100644 --- a/src/assets/locales/sv.json +++ b/src/assets/locales/sv.json @@ -114,7 +114,10 @@ "failed": "Misslyckades med att hitta media, försök igen!", "loading": "Laddar...", "noResults": "Vi kunde inte hitta någonting!", - "placeholder": "Vad vill du titta på?", + "placeholder": { + "default": "Vad vill du titta på?", + "extra": [] + }, "sectionTitle": "Sökresultat" }, "titles": { @@ -123,15 +126,11 @@ }, "morning": { "default": "Vad vill du titta på den här morgonen?", - "extra": [ - "Jag hör att Before Sunrise är bra" - ] + "extra": ["Jag hör att Before Sunrise är bra"] }, "night": { "default": "Vad vill du titta på ikväll?", - "extra": [ - "Trött? Jag hör att The Exorcist är bra." - ] + "extra": ["Trött? Jag hör att The Exorcist är bra."] } } }, diff --git a/src/assets/locales/th.json b/src/assets/locales/th.json index 2ff9cac9..2e130daa 100644 --- a/src/assets/locales/th.json +++ b/src/assets/locales/th.json @@ -115,7 +115,10 @@ "failed": "ไม่พบสื่อนี้ ลองอีกครั้ง!", "loading": "กำลังโหลด..", "noResults": "เราไม่พบอะไรเลย!", - "placeholder": "คุณอยากดูอะไรคะ?", + "placeholder": { + "default": "คุณอยากดูอะไรคะ?", + "extra": [] + }, "sectionTitle": "ผลการค้นหา" }, "titles": { @@ -124,15 +127,11 @@ }, "morning": { "default": "คุณอยากดูอะไรเช้านี้?", - "extra": [ - "ฉันได้ยินมาว่าเรื่อง Before Sunrise สนุก" - ] + "extra": ["ฉันได้ยินมาว่าเรื่อง Before Sunrise สนุก"] }, "night": { "default": "คุณอยากดูเรื่องอะไรในช่วงค่ำ?", - "extra": [ - "เหนื่อยมั้ย? ฉันได้ยินมาว่า The Exorcist นั้นดี" - ] + "extra": ["เหนื่อยมั้ย? ฉันได้ยินมาว่า The Exorcist นั้นดี"] } } }, diff --git a/src/assets/locales/tok.json b/src/assets/locales/tok.json index 189b3ff0..7856144e 100644 --- a/src/assets/locales/tok.json +++ b/src/assets/locales/tok.json @@ -115,27 +115,24 @@ "failed": "lukin li pakala a! o alasa sin", "loading": "alasa...", "noResults": "ijo li lon ala a!", - "placeholder": "sina wile lukin e seme?", + "placeholder": { + "default": "sina wile lukin e seme?", + "extra": [] + }, "sectionTitle": "mi lukin e ni:" }, "titles": { "day": { "default": "tenpo suno ni la sina wile lukin e seme?", - "extra": [ - "sina pilin alasa la o lukin e sitelen Jurassic Park" - ] + "extra": ["sina pilin alasa la o lukin e sitelen Jurassic Park"] }, "morning": { "default": "tenpo sin ni la sina wile lukin e seme?", - "extra": [ - "ken la sitelen Before Sunrise li pona" - ] + "extra": ["ken la sitelen Before Sunrise li pona"] }, "night": { "default": "tenpo pimeja ni la sina wile lukin e seme?", - "extra": [ - "sina pilin lape anu seme? o alasa lukin e sitelen Exorcist" - ] + "extra": ["sina pilin lape anu seme? o alasa lukin e sitelen Exorcist"] } } }, diff --git a/src/assets/locales/tr.json b/src/assets/locales/tr.json index f26aa6a0..5d8a24b3 100644 --- a/src/assets/locales/tr.json +++ b/src/assets/locales/tr.json @@ -116,7 +116,10 @@ "failed": "Medya bulunamadı, tekrar deneyin!", "loading": "Yükleniyor...", "noResults": "Hiçbir şey bulamadık!", - "placeholder": "Ne izlemek istersiniz?", + "placeholder": { + "default": "Ne izlemek istersiniz?", + "extra": [] + }, "sectionTitle": "Arama sonuçları" }, "titles": { @@ -128,15 +131,11 @@ }, "morning": { "default": "Bu sabah ne izlemek istersiniz?", - "extra": [ - "Before Sunrise'a iyi diyorlar" - ] + "extra": ["Before Sunrise'a iyi diyorlar"] }, "night": { "default": "Bu akşam ne izlemek istersiniz?", - "extra": [ - "Yoruldun mu? The Exorcist'e iyi diyorlar." - ] + "extra": ["Yoruldun mu? The Exorcist'e iyi diyorlar."] } } }, diff --git a/src/assets/locales/uk.json b/src/assets/locales/uk.json index e6142426..5b568aa6 100644 --- a/src/assets/locales/uk.json +++ b/src/assets/locales/uk.json @@ -116,7 +116,10 @@ "failed": "Не вдалося знайти медіафайли, повторіть спробу!", "loading": "Завантаження...", "noResults": "Ми не змогли знайти нічого!", - "placeholder": "Що ви хочете подивитися?", + "placeholder": { + "default": "Що ви хочете подивитися?", + "extra": [] + }, "sectionTitle": "Результати пошуку" }, "titles": { @@ -128,15 +131,11 @@ }, "morning": { "default": "Що б ви хотіли подивитися сьогодні вранці?", - "extra": [ - "Я чув, що \"Перед сходом сонця\" гарний" - ] + "extra": ["Я чув, що \"Перед сходом сонця\" гарний"] }, "night": { "default": "Що б ви хотіли подивитися сьогодні ввечері?", - "extra": [ - "Втомився? Я чув, що \"Екзорцист\" хороший." - ] + "extra": ["Втомився? Я чув, що \"Екзорцист\" хороший."] } } }, diff --git a/src/assets/locales/vi.json b/src/assets/locales/vi.json index ab553b01..12bca47f 100644 --- a/src/assets/locales/vi.json +++ b/src/assets/locales/vi.json @@ -116,7 +116,10 @@ "failed": "Không thể tìm thấy nội dung, hãy thử lại!", "loading": "Đang tải...", "noResults": "Chúng tôi không thể tìm thấy gì!", - "placeholder": "Bạn muốn xem gì?", + "placeholder": { + "default": "Bạn muốn xem gì?", + "extra": [] + }, "sectionTitle": "Kết quả tìm kiếm" }, "titles": { diff --git a/src/assets/locales/zh-Hant.json b/src/assets/locales/zh-Hant.json index a273328f..1d140961 100644 --- a/src/assets/locales/zh-Hant.json +++ b/src/assets/locales/zh-Hant.json @@ -116,27 +116,24 @@ "failed": "未能找到媒體,請重試!", "loading": "載入中...", "noResults": "我们找不到任何结果!", - "placeholder": "您想看什麼?", + "placeholder": { + "default": "您想看什麼?", + "extra": [] + }, "sectionTitle": "搜索結果" }, "titles": { "day": { "default": "您今天下午想看什麼?", - "extra": [ - "想要來場冒險嗎?《侏羅紀公園》可能是完美選擇。" - ] + "extra": ["想要來場冒險嗎?《侏羅紀公園》可能是完美選擇。"] }, "morning": { "default": "您今天早上想看什麼?", - "extra": [ - "我聽說《情留半天》不錯" - ] + "extra": ["我聽說《情留半天》不錯"] }, "night": { "default": "您今晚想看什麼?", - "extra": [ - "疲倦了嗎?我聽說《驅魔人》不錯。" - ] + "extra": ["疲倦了嗎?我聽說《驅魔人》不錯。"] } } }, diff --git a/src/assets/locales/zh.json b/src/assets/locales/zh.json index b2b13da6..81717569 100644 --- a/src/assets/locales/zh.json +++ b/src/assets/locales/zh.json @@ -116,27 +116,24 @@ "failed": "查找媒体失败,请重试!", "loading": "载入中……", "noResults": "我们找不到任何结果!", - "placeholder": "您想看些什么?", + "placeholder": { + "default": "您想看些什么?", + "extra": [] + }, "sectionTitle": "搜索结果" }, "titles": { "day": { "default": "您今天下午想看什么?", - "extra": [ - "想要来场冒险?《侏罗纪公园》可能是最佳选项。" - ] + "extra": ["想要来场冒险?《侏罗纪公园》可能是最佳选项。"] }, "morning": { "default": "您今早想看什么?", - "extra": [ - "我听说《爱在黎明破晓前》不错" - ] + "extra": ["我听说《爱在黎明破晓前》不错"] }, "night": { "default": "您今晚想看什么?", - "extra": [ - "累了?我听说《驱魔人》不错。" - ] + "extra": ["累了?我听说《驱魔人》不错。"] } } }, diff --git a/src/pages/parts/home/HeroPart.tsx b/src/pages/parts/home/HeroPart.tsx index fab50f4d..9fdea893 100644 --- a/src/pages/parts/home/HeroPart.tsx +++ b/src/pages/parts/home/HeroPart.tsx @@ -1,5 +1,4 @@ import { useCallback, useEffect, useRef, useState } from "react"; -import { useTranslation } from "react-i18next"; import Sticky from "react-sticky-el"; import { useWindowSize } from "react-use"; @@ -26,7 +25,6 @@ function getTimeOfDay(date: Date): "night" | "morning" | "day" { export function HeroPart({ setIsSticky, searchParams }: HeroPartProps) { const { t: randomT } = useRandomTranslation(); - const { t } = useTranslation(); const [search, setSearch, setSearchUnFocus] = searchParams; const [, setShowBg] = useState(false); const bannerSize = useBannerSize(); @@ -54,7 +52,7 @@ export function HeroPart({ setIsSticky, searchParams }: HeroPartProps) { const time = getTimeOfDay(new Date()); const title = randomT(`home.titles.${time}`); - + const placeholder = randomT(`home.search.placeholder`); const inputRef = useRef(null); useSlashFocus(inputRef); @@ -77,7 +75,7 @@ export function HeroPart({ setIsSticky, searchParams }: HeroPartProps) { onChange={setSearch} value={search} onUnFocus={setSearchUnFocus} - placeholder={t("home.search.placeholder") ?? ""} + placeholder={placeholder ?? ""} />