Open-source gym & body-weight tracker, now in the App Store (iPhone + Apple Watch) and as an Android APK. Plan routines, log workouts, see which muscles are trained, import from Strong/Hevy/FitNotes. Self-host it or use it on the phone alone.
JavaScript apple-watchbodyweightdockerfitnessfitness-trackergymhealthiosmcpnodejspasskeysprogressive-web-applicationspwareactself-hostedself-hostingvitewebauthnweightliftingworkout-tracker
app: a write refused for the wrong address says which ORIGIN the server expects
Duarte Santos1a53ce32021e
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 2e506a7ea..23d9760f2 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -237,6 +237,10 @@ you leave it alone. Handy for deciding whether those legs are really ready (thanhandy with a model on your own network), the output-token ceiling a reasoning model needsraised, and how long a message may be. You're the admin there, after all (#527, thanks@xueyang-dev).+- **Wrong address, clear answer.** When your api service's ORIGIN isn't the address in your+ browser, the app now says which address the server expects and what to change, instead of a+ bare "cross-origin request refused". The server log names the exact `ORIGIN=` and `RP_ID=`+ to set (thanks tcmac, who lost a morning to this one).## v1.4.2 (2026-10-18)diff --git a/frontend/src/lib/api.js b/frontend/src/lib/api.jsindex bee8e221e..4ec876e99 100644--- a/frontend/src/lib/api.js+++ b/frontend/src/lib/api.js@@ -48,6 +48,14 @@ const TIMEOUT_GET_MS = 20000const TIMEOUT_MS = 60000const failure = (message, code, status) => Object.assign(new Error(message), { code, status })+// The message an error answer is shown with. The server's English `error`, except a write the+// origin check refused (or a passkey made at another address): a self-hoster whose ORIGIN is not+// the address they opened only ever saw "cross-origin request refused", and nobody could tell+// what to change. The answer names ORIGIN, so the sentence can too (api/verify-error.js).+function refusal(status, body) {+ if (body && body.code === 'origin-mismatch') return t('This server only takes changes made at {0}. If you opened openGym at another address, whoever runs the server can set ORIGIN and RP_ID to match it (the self-hosting guide shows how).', String(body.expected || '?'))+ return (body && body.error) || ('HTTP ' + status)+}export async function api(path, opts) {const { timeout, ...init } = opts || {}@@ -92,7 +100,7 @@ async function exchange(url, init) {try { data = await r.json() } catch { parsed = false }const body = parsed && data && typeof data === 'object' ? data : null// The body rides along on the error: a 409 from /api/data carries the server's document.- if (!r.ok) { const e = new Error((body && body.error) || ('HTTP ' + r.status)); e.status = r.status; e.data = body || {}; throw e }+ if (!r.ok) { const e = new Error(refusal(r.status, body)); e.status = r.status; e.data = body || {}; throw e }if (!body) throw failure(t('The server answered with something other than openGym data.'), 'bad-response', r.status)return body}@@ -149,7 +157,7 @@ export async function apiBlob(path, { expectSize, idleMs = 30000, fetchImpl = glif (!r.ok) {let body = nulltry { body = await r.json() } catch { /* not JSON: a proxy's page */ }- throw Object.assign(new Error((body && body.error) || 'HTTP ' + r.status), { status: r.status, code: (body && body.code) || 'http', data: body || {} })+ throw Object.assign(new Error(refusal(r.status, body)), { status: r.status, code: (body && body.code) || 'http', data: body || {} })}const announced = Number(r.headers?.get?.('content-length'))if (Number.isFinite(announced) && announced > max) { ctl?.abort(); throw tooBig(r.status) }@@ -207,7 +215,7 @@ export function apiUpload(path, blob, mime, { onProgress, idleMs = 60000, XHR =return}if (xhr.status === 413 && !body) { reject(failure('HTTP 413', 'proxy-too-large', 413)); return }- const e = Object.assign(new Error((body && body.error) || 'HTTP ' + xhr.status), { status: xhr.status, code: (body && body.code) || 'http', data: body || {} })+ const e = Object.assign(new Error(refusal(xhr.status, body)), { status: xhr.status, code: (body && body.code) || 'http', data: body || {} })if (xhr.status === 429) {const header = Number(xhr.getResponseHeader && xhr.getResponseHeader('Retry-After'))e.retryAfter = Number(body && body.retryAfter) || (Number.isFinite(header) && header > 0 ? header : 60)@@ -375,6 +383,7 @@ export function passkeyError(e, fallback) {case 'unknown-credential': return t('This server doesn’t know that passkey. Make a profile first.')case 'disabled': return t('This account has been disabled.')case 'challenge-expired': return t('That took a little too long. Give it another go.')+ case 'origin-mismatch': return refusal(e.status, e.data)}return e?.message || fallback}diff --git a/frontend/src/lib/api.test.js b/frontend/src/lib/api.test.jsindex ec64e7cff..b7573061f 100644--- a/frontend/src/lib/api.test.js+++ b/frontend/src/lib/api.test.js@@ -1,6 +1,6 @@// @vitest-environment happy-domimport { afterEach, describe, expect, it, vi } from 'vitest'-import { webauthnOK, bio, BIO, passkeyError } from './api.js'+import { webauthnOK, bio, BIO, passkeyError, api } from './api.js'import de from '../locales/de.js'import { _setLangState } from './i18n-core.js'@@ -202,3 +202,26 @@ describe('passkeyError', () => {expect(passkeyError({}, 'Sign-in failed')).toBe('Sign-in failed')})})++// Self-hosting (Discord tcmac 10-21): an api service whose ORIGIN is not the address in the+// browser refuses every write, and the app used to show "cross-origin request refused".+describe('a write refused for the wrong address', () => {+ const KEY = 'This server only takes changes made at {0}. If you opened openGym at another address, whoever runs the server can set ORIGIN and RP_ID to match it (the self-hosting guide shows how).'+ afterEach(() => { _setLangState('en', {}, null, null); vi.unstubAllGlobals() })+ const answer = (status, body) => vi.stubGlobal('fetch', vi.fn(async () => new Response(JSON.stringify(body), { status, headers: { 'Content-Type': 'application/json' } })))+ it('says which address the server expects, in the UI language', async () => {+ _setLangState('de', de, null, null)+ answer(403, { error: 'cross-origin request refused', code: 'origin-mismatch', expected: 'http://localhost:8080' })+ const e = await api('/api/data', { method: 'PUT', body: '{}' }).catch(x => x)+ expect(e.status).toBe(403)+ expect(e.message).toBe(de[KEY].replace('{0}', 'http://localhost:8080'))+ })+ it('a passkey refused for the same reason says the same', () => {+ const e = Object.assign(new Error('Unexpected authentication response origin ...'), { status: 400, data: { code: 'origin-mismatch', expected: 'https://gym.example.com' } })+ expect(passkeyError(e, 'x')).toBe(KEY.replace('{0}', 'https://gym.example.com'))+ })+ it('any other refusal keeps the server\'s words', async () => {+ answer(403, { error: 'forbidden' })+ expect((await api('/api/data', { method: 'PUT', body: '{}' }).catch(x => x)).message).toBe('forbidden')+ })+})diff --git a/frontend/src/locales/ar.js b/frontend/src/locales/ar.jsindex ea8b77f95..efc353c32 100644--- a/frontend/src/locales/ar.js+++ b/frontend/src/locales/ar.js@@ -1938,6 +1938,7 @@ export default {'Couldn’t read that file.': 'تعذّرت قراءة هذا الملف.','This server doesn’t know that passkey. Make a profile first.': 'هذا الخادم لا يعرف مفتاح المرور هذا. أنشئ ملفًا شخصيًا أولًا.','That took a little too long. Give it another go.': 'استغرق ذلك وقتًا أطول قليلًا من اللازم. جرّب مرة أخرى.',+ "This server only takes changes made at {0}. If you opened openGym at another address, whoever runs the server can set ORIGIN and RP_ID to match it (the self-hosting guide shows how).": "هذا الخادم يقبل التغييرات من {0} فقط. إذا فتحت openGym على عنوان آخر، يمكن لمن يدير الخادم ضبط ORIGIN و RP_ID ليطابقاه (دليل الاستضافة الذاتية يشرح الطريقة).",'That code didn’t work. Codes last 5 minutes and work once, so grab a fresh one.': 'لم ينجح هذا الرمز. الرموز صالحة لمدة 5 دقائق ولمرة واحدة فقط، فاطلب رمزًا جديدًا.','Create profile with a password': 'إنشاء ملف شخصي بكلمة مرور','Set {0} done': 'المجموعة {0} مكتملة',diff --git a/frontend/src/locales/bn.js b/frontend/src/locales/bn.jsindex 170d55286..11f72aa4a 100644--- a/frontend/src/locales/bn.js+++ b/frontend/src/locales/bn.js@@ -1925,6 +1925,7 @@ export default {'Couldn’t read that file.': 'ফাইলটি পড়া যায়নি।','This server doesn’t know that passkey. Make a profile first.': 'এই সার্ভার ওই পাসকি চেনে না। আগে একটি প্রোফাইল তৈরি করুন।','That took a little too long. Give it another go.': 'একটু বেশি সময় লেগে গেল। আরেকবার চেষ্টা করুন।',+ "This server only takes changes made at {0}. If you opened openGym at another address, whoever runs the server can set ORIGIN and RP_ID to match it (the self-hosting guide shows how).": "এই সার্ভার শুধু {0} থেকে করা পরিবর্তন নেয়। আপনি যদি অন্য কোনো ঠিকানায় openGym খুলে থাকেন, সার্ভার যিনি চালান তিনি ORIGIN আর RP_ID সেই অনুযায়ী সেট করতে পারেন (সেলফ-হোস্টিং গাইডে কীভাবে তা দেখানো আছে)।",'That code didn’t work. Codes last 5 minutes and work once, so grab a fresh one.': 'কোডটি কাজ করেনি। কোড 5 মিনিট থাকে এবং একবারই কাজ করে, তাই একটি নতুন নিন।','Create profile with a password': 'পাসওয়ার্ড দিয়ে প্রোফাইল তৈরি করুন','Set {0} done': 'সেট {0} সম্পন্ন',diff --git a/frontend/src/locales/de.js b/frontend/src/locales/de.jsindex 81e7cc639..2f618e952 100644--- a/frontend/src/locales/de.js+++ b/frontend/src/locales/de.js@@ -1903,6 +1903,7 @@ export default {'Couldn’t read that file.': 'Diese Datei lässt sich nicht lesen.','This server doesn’t know that passkey. Make a profile first.': 'Diesen Passkey kennt der Server nicht. Erstell zuerst ein Profil.','That took a little too long. Give it another go.': 'Das hat etwas zu lange gedauert. Versuch es gleich noch mal.',+ "This server only takes changes made at {0}. If you opened openGym at another address, whoever runs the server can set ORIGIN and RP_ID to match it (the self-hosting guide shows how).": "Dieser Server nimmt nur Änderungen von {0} an. Wenn du openGym unter einer anderen Adresse geöffnet hast, kann die Person, die den Server betreibt, ORIGIN und RP_ID darauf einstellen (die Self-Hosting-Anleitung zeigt, wie).",'That code didn’t work. Codes last 5 minutes and work once, so grab a fresh one.': 'Der Code hat nicht geklappt. Codes gelten 5 Minuten und nur einmal, also hol dir einen frischen.','Create profile with a password': 'Profil mit Passwort erstellen','Set {0} done': 'Satz {0} erledigt',diff --git a/frontend/src/locales/es.js b/frontend/src/locales/es.jsindex 110768585..8017bcd43 100644--- a/frontend/src/locales/es.js+++ b/frontend/src/locales/es.js@@ -1883,6 +1883,7 @@ export default {'Couldn’t read that file.': 'No se pudo leer ese archivo.','This server doesn’t know that passkey. Make a profile first.': 'Este servidor no conoce esa passkey. Crea un perfil primero.','That took a little too long. Give it another go.': 'Eso tardó un poco de más. Inténtalo otra vez.',+ "This server only takes changes made at {0}. If you opened openGym at another address, whoever runs the server can set ORIGIN and RP_ID to match it (the self-hosting guide shows how).": "Este servidor solo acepta cambios hechos desde {0}. Si abriste openGym en otra dirección, quien gestione el servidor puede ajustar ORIGIN y RP_ID para que coincidan (la guía de self-hosting explica cómo).",'That code didn’t work. Codes last 5 minutes and work once, so grab a fresh one.': 'Ese código no funcionó. Los códigos duran 5 minutos y sirven una sola vez, así que pide uno nuevo.','Create profile with a password': 'Crear perfil con contraseña','Set {0} done': 'Serie {0} hecha',diff --git a/frontend/src/locales/fr.js b/frontend/src/locales/fr.jsindex d33708389..e08a2f304 100644--- a/frontend/src/locales/fr.js+++ b/frontend/src/locales/fr.js@@ -1883,6 +1883,7 @@ export default {'Couldn’t read that file.': 'Impossible de lire ce fichier.','This server doesn’t know that passkey. Make a profile first.': 'Ce serveur ne connaît pas cette passkey. Crée d’abord un profil.','That took a little too long. Give it another go.': 'C’était un peu trop long. Réessaie.',+ "This server only takes changes made at {0}. If you opened openGym at another address, whoever runs the server can set ORIGIN and RP_ID to match it (the self-hosting guide shows how).": "Ce serveur n’accepte que les modifications faites depuis {0}. Si tu as ouvert openGym à une autre adresse, la personne qui gère le serveur peut régler ORIGIN et RP_ID sur celle-ci (le guide d’auto-hébergement explique comment).",'That code didn’t work. Codes last 5 minutes and work once, so grab a fresh one.': 'Ce code n’a pas marché. Un code dure 5 minutes et ne sert qu’une fois, alors prends-en un tout neuf.','Create profile with a password': 'Créer un profil avec un mot de passe','Set {0} done': 'Série {0} faite',diff --git a/frontend/src/locales/hi.js b/frontend/src/locales/hi.jsindex fbabaf016..86bbb632e 100644--- a/frontend/src/locales/hi.js+++ b/frontend/src/locales/hi.js@@ -1883,6 +1883,7 @@ export default {'Couldn’t read that file.': 'यह फ़ाइल पढ़ी नहीं जा सकी।','This server doesn’t know that passkey. Make a profile first.': 'यह सर्वर इस पासकी को नहीं पहचानता। पहले एक प्रोफ़ाइल बनाएँ।','That took a little too long. Give it another go.': 'इसमें थोड़ा ज़्यादा समय लग गया। एक बार फिर कोशिश करें।',+ "This server only takes changes made at {0}. If you opened openGym at another address, whoever runs the server can set ORIGIN and RP_ID to match it (the self-hosting guide shows how).": "यह सर्वर सिर्फ़ {0} से किए गए बदलाव लेता है। अगर आपने openGym किसी दूसरे पते पर खोला है, तो सर्वर चलाने वाला ORIGIN और RP_ID को उसके हिसाब से सेट कर सकता है (सेल्फ़-होस्टिंग गाइड में तरीका दिया है)।",'That code didn’t work. Codes last 5 minutes and work once, so grab a fresh one.': 'यह कोड काम नहीं किया। कोड 5 मिनट चलते हैं और सिर्फ़ एक बार काम करते हैं, तो एक नया कोड ले लें।','Create profile with a password': 'पासवर्ड के साथ प्रोफ़ाइल बनाएँ','Set {0} done': 'सेट {0} पूरा',diff --git a/frontend/src/locales/hu.js b/frontend/src/locales/hu.jsindex cbe3a2b74..440f67c85 100644--- a/frontend/src/locales/hu.js+++ b/frontend/src/locales/hu.js@@ -1886,6 +1886,7 @@ export default {'Couldn’t read that file.': 'Ezt a fájlt nem sikerült beolvasni.','This server doesn’t know that passkey. Make a profile first.': 'Ez a szerver nem ismeri ezt a jelszókulcsot. Előbb hozz létre egy profilt.','That took a little too long. Give it another go.': 'Ez egy kicsit túl sokáig tartott. Próbáld újra.',+ "This server only takes changes made at {0}. If you opened openGym at another address, whoever runs the server can set ORIGIN and RP_ID to match it (the self-hosting guide shows how).": "Ez a szerver csak a(z) {0} címről fogad el módosításokat. Ha más címen nyitottad meg az openGymet, a szerver üzemeltetője beállíthatja hozzá az ORIGIN és RP_ID értékét (a self-hosting útmutató megmutatja, hogyan).",'That code didn’t work. Codes last 5 minutes and work once, so grab a fresh one.': 'Ez a kód nem működött. A kódok 5 percig érvényesek és csak egyszer használhatók, úgyhogy kérj egy újat.','Create profile with a password': 'Profil létrehozása jelszóval','Set {0} done': '{0}. sorozat kész',diff --git a/frontend/src/locales/it.js b/frontend/src/locales/it.jsindex 4562817ca..ae79e7871 100644--- a/frontend/src/locales/it.js+++ b/frontend/src/locales/it.js@@ -1883,6 +1883,7 @@ export default {'Couldn’t read that file.': 'Impossibile leggere questo file.','This server doesn’t know that passkey. Make a profile first.': 'Questo server non conosce questa passkey. Crea prima un profilo.','That took a little too long. Give it another go.': 'Ci è voluto un po’ troppo. Riprova.',+ "This server only takes changes made at {0}. If you opened openGym at another address, whoever runs the server can set ORIGIN and RP_ID to match it (the self-hosting guide shows how).": "Questo server accetta modifiche solo da {0}. Se hai aperto openGym a un altro indirizzo, chi gestisce il server può impostare ORIGIN e RP_ID su quello (la guida al self-hosting spiega come).",'That code didn’t work. Codes last 5 minutes and work once, so grab a fresh one.': 'Questo codice non ha funzionato. I codici durano 5 minuti e valgono una volta sola, quindi prendine uno nuovo.','Create profile with a password': 'Crea profilo con password','Set {0} done': 'Serie {0} fatta',diff --git a/frontend/src/locales/ko.js b/frontend/src/locales/ko.jsindex 18708efc7..4e1d2dce4 100644--- a/frontend/src/locales/ko.js+++ b/frontend/src/locales/ko.js@@ -1883,6 +1883,7 @@ export default {'Couldn’t read that file.': '이 파일을 읽을 수 없어요.','This server doesn’t know that passkey. Make a profile first.': '이 서버는 이 패스키를 몰라요. 먼저 프로필을 만들어 주세요.','That took a little too long. Give it another go.': '조금 너무 오래 걸렸어요. 다시 해 보세요.',+ "This server only takes changes made at {0}. If you opened openGym at another address, whoever runs the server can set ORIGIN and RP_ID to match it (the self-hosting guide shows how).": "이 서버는 {0}에서 한 변경만 받아요. 다른 주소에서 openGym을 열었다면, 서버를 운영하는 분이 ORIGIN과 RP_ID를 그 주소에 맞게 설정하면 돼요 (셀프 호스팅 가이드에 방법이 있어요).",'That code didn’t work. Codes last 5 minutes and work once, so grab a fresh one.': '이 코드는 안 됐어요. 코드는 5분 동안 한 번만 쓸 수 있으니 새 코드를 받아 주세요.','Create profile with a password': '비밀번호로 프로필 만들기','Set {0} done': '{0}세트 완료',diff --git a/frontend/src/locales/pl.js b/frontend/src/locales/pl.jsindex 51ded9be8..02438983c 100644--- a/frontend/src/locales/pl.js+++ b/frontend/src/locales/pl.js@@ -1883,6 +1883,7 @@ export default {'Couldn’t read that file.': 'Nie udało się odczytać tego pliku.','This server doesn’t know that passkey. Make a profile first.': 'Ten serwer nie zna tego klucza dostępu. Najpierw utwórz profil.','That took a little too long. Give it another go.': 'Trwało to trochę za długo. Spróbuj jeszcze raz.',+ "This server only takes changes made at {0}. If you opened openGym at another address, whoever runs the server can set ORIGIN and RP_ID to match it (the self-hosting guide shows how).": "Ten serwer przyjmuje zmiany tylko z {0}. Jeśli otworzyłeś openGym pod innym adresem, osoba prowadząca serwer może ustawić ORIGIN i RP_ID tak, żeby pasowały (przewodnik self-hostingu pokazuje jak).",'That code didn’t work. Codes last 5 minutes and work once, so grab a fresh one.': 'Ten kod nie zadziałał. Kody są ważne 5 minut i działają raz, więc weź świeży.','Create profile with a password': 'Utwórz profil z hasłem','Set {0} done': 'Seria {0} zrobiona',diff --git a/frontend/src/locales/pt-BR.js b/frontend/src/locales/pt-BR.jsindex 3b2f39eb8..041e2dd09 100644--- a/frontend/src/locales/pt-BR.js+++ b/frontend/src/locales/pt-BR.js@@ -1173,6 +1173,7 @@ export const PT_BR_OVERRIDES = {'Couldn’t read that file.': 'Não foi possível ler esse arquivo.','This server doesn’t know that passkey. Make a profile first.': 'Este servidor não conhece essa chave de acesso. Crie um perfil primeiro.','That took a little too long. Give it another go.': 'Demorou um pouquinho demais. Tente de novo.',+ "This server only takes changes made at {0}. If you opened openGym at another address, whoever runs the server can set ORIGIN and RP_ID to match it (the self-hosting guide shows how).": "Este servidor só aceita alterações feitas em {0}. Se você abriu o openGym em outro endereço, quem administra o servidor pode ajustar ORIGIN e RP_ID para bater com ele (o guia de self-hosting mostra como).",'That code didn’t work. Codes last 5 minutes and work once, so grab a fresh one.': 'Esse código não funcionou. Os códigos duram 5 minutos e só valem uma vez, então pegue um novo.','Create profile with a password': 'Criar perfil com senha',// Swipe on sets (v1.3.11)diff --git a/frontend/src/locales/pt.js b/frontend/src/locales/pt.jsindex 125442c02..a7f57a7c3 100644--- a/frontend/src/locales/pt.js+++ b/frontend/src/locales/pt.js@@ -1883,6 +1883,7 @@ export default {'Couldn’t read that file.': 'Não foi possível ler esse ficheiro.','This server doesn’t know that passkey. Make a profile first.': 'Este servidor não conhece essa passkey. Cria primeiro um perfil.','That took a little too long. Give it another go.': 'Demorou um bocadinho demais. Tenta outra vez.',+ "This server only takes changes made at {0}. If you opened openGym at another address, whoever runs the server can set ORIGIN and RP_ID to match it (the self-hosting guide shows how).": "Este servidor só aceita alterações feitas em {0}. Se abriste o openGym noutro endereço, quem gere o servidor pode definir ORIGIN e RP_ID para coincidir (o guia de self-hosting mostra como).",'That code didn’t work. Codes last 5 minutes and work once, so grab a fresh one.': 'Esse código não funcionou. Os códigos duram 5 minutos e só servem uma vez, por isso pede um novo.','Create profile with a password': 'Criar perfil com palavra-passe','Set {0} done': 'Série {0} concluída',diff --git a/frontend/src/locales/ru.js b/frontend/src/locales/ru.jsindex 43584f92e..0283963ad 100644--- a/frontend/src/locales/ru.js+++ b/frontend/src/locales/ru.js@@ -1887,6 +1887,7 @@ export default {'Couldn’t read that file.': 'Не удалось прочитать этот файл.','This server doesn’t know that passkey. Make a profile first.': 'Этот сервер не знает такой ключ доступа. Сначала создайте профиль.','That took a little too long. Give it another go.': 'Это заняло слишком много времени. Попробуйте ещё раз.',+ "This server only takes changes made at {0}. If you opened openGym at another address, whoever runs the server can set ORIGIN and RP_ID to match it (the self-hosting guide shows how).": "Этот сервер принимает изменения только с {0}. Если вы открыли openGym по другому адресу, тот, кто управляет сервером, может выставить ORIGIN и RP_ID под него (как это сделать, описано в руководстве по self-hosting).",'That code didn’t work. Codes last 5 minutes and work once, so grab a fresh one.': 'Этот код не сработал. Коды действуют 5 минут и только один раз, так что возьмите свежий.','Create profile with a password': 'Создать профиль с паролем','Set {0} done': 'Подход {0} выполнен',diff --git a/frontend/src/locales/sv.js b/frontend/src/locales/sv.jsindex f756142b5..183b962b1 100644--- a/frontend/src/locales/sv.js+++ b/frontend/src/locales/sv.js@@ -1904,6 +1904,7 @@ export default {'Couldn’t read that file.': 'Kunde inte läsa filen.','This server doesn’t know that passkey. Make a profile first.': 'Servern känner inte till den här passkeyn. Skapa en profil först.','That took a little too long. Give it another go.': 'Det tog lite för lång tid. Försök igen.',+ "This server only takes changes made at {0}. If you opened openGym at another address, whoever runs the server can set ORIGIN and RP_ID to match it (the self-hosting guide shows how).": "Den här servern tar bara emot ändringar från {0}. Om du öppnade openGym på en annan adress kan den som driver servern ställa in ORIGIN och RP_ID så att de stämmer (guiden för egen server visar hur).",'That code didn’t work. Codes last 5 minutes and work once, so grab a fresh one.': 'Koden fungerade inte. Koderna gäller i 5 minuter och fungerar en gång, så hämta en ny.','Create profile with a password': 'Skapa profil med lösenord','Set {0} done': 'Set {0} klart',diff --git a/frontend/src/locales/th.js b/frontend/src/locales/th.jsindex 9bcba155f..209a0eee6 100644--- a/frontend/src/locales/th.js+++ b/frontend/src/locales/th.js@@ -1894,6 +1894,7 @@ export default {'Couldn’t read that file.': 'อ่านไฟล์นี้ไม่ได้','This server doesn’t know that passkey. Make a profile first.': 'เซิร์ฟเวอร์นี้ไม่รู้จักพาสคีย์นี้ สร้างโปรไฟล์ก่อนนะ','That took a little too long. Give it another go.': 'ใช้เวลานานไปหน่อย ลองอีกครั้งนะ',+ "This server only takes changes made at {0}. If you opened openGym at another address, whoever runs the server can set ORIGIN and RP_ID to match it (the self-hosting guide shows how).": "เซิร์ฟเวอร์นี้รับการเปลี่ยนแปลงจาก {0} เท่านั้น ถ้าคุณเปิด openGym ที่อยู่อื่น ผู้ดูแลเซิร์ฟเวอร์ตั้ง ORIGIN และ RP_ID ให้ตรงได้ (คู่มือโฮสต์เองมีวิธีบอกไว้)",'That code didn’t work. Codes last 5 minutes and work once, so grab a fresh one.': 'รหัสนี้ใช้ไม่ได้ รหัสใช้ได้ 5 นาทีและใช้ได้ครั้งเดียว ขอรหัสใหม่นะ','Create profile with a password': 'สร้างโปรไฟล์ด้วยรหัสผ่าน','Set {0} done': 'เซ็ต {0} เสร็จแล้ว',diff --git a/frontend/src/locales/tr.js b/frontend/src/locales/tr.jsindex 8a6a70471..47bbcd91e 100644--- a/frontend/src/locales/tr.js+++ b/frontend/src/locales/tr.js@@ -1883,6 +1883,7 @@ export default {'Couldn’t read that file.': 'Bu dosya okunamadı.','This server doesn’t know that passkey. Make a profile first.': 'Bu sunucu o geçiş anahtarını tanımıyor. Önce bir profil oluştur.','That took a little too long. Give it another go.': 'Bu biraz fazla uzun sürdü. Bir kez daha dene.',+ "This server only takes changes made at {0}. If you opened openGym at another address, whoever runs the server can set ORIGIN and RP_ID to match it (the self-hosting guide shows how).": "Bu sunucu yalnızca {0} adresinden yapılan değişiklikleri kabul ediyor. openGym’i başka bir adreste açtıysan, sunucuyu yöneten kişi ORIGIN ve RP_ID değerlerini buna göre ayarlayabilir (self-hosting rehberi nasıl yapılacağını gösteriyor).",'That code didn’t work. Codes last 5 minutes and work once, so grab a fresh one.': 'Bu kod işe yaramadı. Kodlar 5 dakika geçerli ve tek kullanımlık, yenisini al.','Create profile with a password': 'Şifreyle profil oluştur','Set {0} done': 'Set {0} tamam',diff --git a/frontend/src/locales/uk.js b/frontend/src/locales/uk.jsindex 4d2f787b1..45c23ca65 100644--- a/frontend/src/locales/uk.js+++ b/frontend/src/locales/uk.js@@ -1880,6 +1880,7 @@ export default {'Couldn’t read that file.': 'Не вдалося прочитати цей файл.','This server doesn’t know that passkey. Make a profile first.': 'Цей сервер не знає такого ключа доступу. Спершу створіть профіль.','That took a little too long. Give it another go.': 'Це тривало трохи задовго. Спробуйте ще раз.',+ "This server only takes changes made at {0}. If you opened openGym at another address, whoever runs the server can set ORIGIN and RP_ID to match it (the self-hosting guide shows how).": "Цей сервер приймає зміни лише з {0}. Якщо ви відкрили openGym за іншою адресою, той, хто керує сервером, може налаштувати ORIGIN і RP_ID під неї (як це зробити, описано в посібнику з self-hosting).",'That code didn’t work. Codes last 5 minutes and work once, so grab a fresh one.': 'Цей код не спрацював. Коди діють 5 хвилин і лише один раз, тож візьміть свіжий.','Create profile with a password': 'Створити профіль з паролем','Set {0} done': 'Підхід {0} виконано',diff --git a/frontend/src/locales/zh-TW.js b/frontend/src/locales/zh-TW.jsindex 2ab83c107..bd3cb2e6d 100644--- a/frontend/src/locales/zh-TW.js+++ b/frontend/src/locales/zh-TW.js@@ -1876,6 +1876,7 @@ export default {'Couldn’t read that file.': '無法讀取這個檔案。','This server doesn’t know that passkey. Make a profile first.': '這個伺服器不認得這個通行密鑰。請先建立個人檔案。','That took a little too long. Give it another go.': '花的時間有點太久了。再試一次吧。',+ "This server only takes changes made at {0}. If you opened openGym at another address, whoever runs the server can set ORIGIN and RP_ID to match it (the self-hosting guide shows how).": "此伺服器只接受來自 {0} 的變更。如果你是在其他網址開啟 openGym,伺服器管理員可以把 ORIGIN 和 RP_ID 設成一致(自架指南裡有做法)。",'That code didn’t work. Codes last 5 minutes and work once, so grab a fresh one.': '這個代碼沒用。代碼只在 5 分鐘內有效,而且只能用一次,換個新的吧。','Create profile with a password': '用密碼建立個人檔案','Set {0} done': '第 {0} 組完成',diff --git a/frontend/src/locales/zh.js b/frontend/src/locales/zh.jsindex 7eb76e7aa..3021f9929 100644--- a/frontend/src/locales/zh.js+++ b/frontend/src/locales/zh.js@@ -1883,6 +1883,7 @@ export default {'Couldn’t read that file.': '无法读取这个文件。','This server doesn’t know that passkey. Make a profile first.': '这个服务器不认识这个通行密钥。请先创建个人资料。','That took a little too long. Give it another go.': '花的时间有点太长了。再试一次吧。',+ "This server only takes changes made at {0}. If you opened openGym at another address, whoever runs the server can set ORIGIN and RP_ID to match it (the self-hosting guide shows how).": "此服务器只接受来自 {0} 的更改。如果你是在其他地址打开的 openGym,服务器管理员可以把 ORIGIN 和 RP_ID 设成与之一致(自托管指南里有做法)。",'That code didn’t work. Codes last 5 minutes and work once, so grab a fresh one.': '这个代码没用。代码只在 5 分钟内有效,且只能用一次,换个新的吧。','Create profile with a password': '用密码创建个人资料','Set {0} done': '第 {0} 组完成',