mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-22 21:11:14 +00:00
fix: the gate texts formatted as the locales are, gate detection as a table of rules, and no non-null assertions in its tests
This commit is contained in:
@@ -49,7 +49,7 @@ describe('detectAuthGate', () => {
|
||||
headers: { 'WWW-Authenticate': 'Basic realm="trek"' },
|
||||
});
|
||||
expect(gate).toEqual({ kind: 'basic', loginHost: null });
|
||||
expect(canSignInInApp(gate!)).toBe(false);
|
||||
expect(gate !== null && canSignInInApp(gate)).toBe(false);
|
||||
});
|
||||
|
||||
it('calls any other sign-in page an unknown gate', () => {
|
||||
@@ -59,7 +59,7 @@ describe('detectAuthGate', () => {
|
||||
data: page('<input type="password">'),
|
||||
});
|
||||
expect(gate).toEqual({ kind: 'unknown', loginHost: 'sso.example.com' });
|
||||
expect(canSignInInApp(gate!)).toBe(true);
|
||||
expect(gate !== null && canSignInInApp(gate)).toBe(true);
|
||||
});
|
||||
|
||||
it('sees no gate in a server that is simply something else', () => {
|
||||
|
||||
@@ -56,6 +56,46 @@ function looksLikeSignIn(html: string): boolean {
|
||||
return /type=["']?password/i.test(html) || /\b(sign|log)[\s-]?in\b/i.test(html);
|
||||
}
|
||||
|
||||
/** What the check got back, read once for the rules below. */
|
||||
interface Seen {
|
||||
host: string | null;
|
||||
path: string;
|
||||
html: string;
|
||||
status: number;
|
||||
headers: Record<string, string> | undefined;
|
||||
}
|
||||
|
||||
/** The named gates, each by what gives it away; the first that matches wins. */
|
||||
const NAMED_GATES: Array<[Exclude<AuthGateKind, 'basic' | 'unknown'>, (seen: Seen) => boolean]> = [
|
||||
[
|
||||
'cloudflare',
|
||||
(seen) => !!seen.host?.endsWith('.cloudflareaccess.com') || !!header(seen.headers, 'cf-access-domain'),
|
||||
],
|
||||
['authentik', (seen) => seen.path.includes('/outpost.goauthentik.io/') || /authentik/i.test(seen.html)],
|
||||
['authelia', (seen) => /authelia/i.test(seen.html)],
|
||||
['oauth2proxy', (seen) => seen.path.startsWith('/oauth2/') || /oauth2[\s-]?proxy/i.test(seen.html)],
|
||||
['pangolin', (seen) => seen.path.startsWith('/auth/resource/') || /pangolin/i.test(seen.html)],
|
||||
];
|
||||
|
||||
function pathOf(url: string): string {
|
||||
try {
|
||||
return new URL(url).pathname;
|
||||
} catch {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
/** A gate that gives no name away: a password prompt, or any other page that asks for a sign-in. */
|
||||
function unnamedGate(seen: Seen, loginHost: string | null): AuthGate | null {
|
||||
if (seen.status === 401 && /^basic\b/i.test(header(seen.headers, 'www-authenticate'))) {
|
||||
return { kind: 'basic', loginHost: null };
|
||||
}
|
||||
// Only a page that reads as a sign-in counts: a server that is simply
|
||||
// something other than TREK answers with a page of its own too.
|
||||
if (!seen.html || !looksLikeSignIn(seen.html)) return null;
|
||||
return loginHost || [200, 401, 403].includes(seen.status) ? { kind: 'unknown', loginHost } : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* The gate in front of `requested`, judged from what came back instead of
|
||||
* TREK's answer, or null when nothing points to one: then the address simply
|
||||
@@ -63,34 +103,17 @@ function looksLikeSignIn(html: string): boolean {
|
||||
*/
|
||||
export function detectAuthGate(requested: string, response: GateResponse): AuthGate | null {
|
||||
const finalUrl = response.url || requested;
|
||||
const requestedHost = hostOf(requested);
|
||||
const finalHost = hostOf(finalUrl);
|
||||
const movedHost = finalHost !== null && finalHost !== requestedHost;
|
||||
const loginHost = movedHost ? finalHost : null;
|
||||
const html = typeof response.data === 'string' ? response.data : '';
|
||||
let path = '';
|
||||
try {
|
||||
path = new URL(finalUrl).pathname;
|
||||
} catch {
|
||||
/* an unparsable URL leaves only the page itself to go by */
|
||||
}
|
||||
|
||||
if (finalHost?.endsWith('.cloudflareaccess.com') || header(response.headers, 'cf-access-domain')) {
|
||||
return { kind: 'cloudflare', loginHost };
|
||||
}
|
||||
if (path.includes('/outpost.goauthentik.io/') || /authentik/i.test(html)) return { kind: 'authentik', loginHost };
|
||||
if (/authelia/i.test(html)) return { kind: 'authelia', loginHost };
|
||||
if (path.startsWith('/oauth2/') || /oauth2[\s-]?proxy/i.test(html)) return { kind: 'oauth2proxy', loginHost };
|
||||
if (path.startsWith('/auth/resource/') || /pangolin/i.test(html)) return { kind: 'pangolin', loginHost };
|
||||
if (response.status === 401 && /^basic\b/i.test(header(response.headers, 'www-authenticate'))) {
|
||||
return { kind: 'basic', loginHost: null };
|
||||
}
|
||||
// Anything else counts only when it reads as a sign-in: a server that is
|
||||
// simply something other than TREK answers with a page of its own too.
|
||||
if (html && looksLikeSignIn(html) && (movedHost || [200, 401, 403].includes(response.status))) {
|
||||
return { kind: 'unknown', loginHost };
|
||||
}
|
||||
return null;
|
||||
const host = hostOf(finalUrl);
|
||||
const loginHost = host !== null && host !== hostOf(requested) ? host : null;
|
||||
const seen: Seen = {
|
||||
host,
|
||||
path: pathOf(finalUrl),
|
||||
html: typeof response.data === 'string' ? response.data : '',
|
||||
status: response.status,
|
||||
headers: response.headers,
|
||||
};
|
||||
const named = NAMED_GATES.find(([, matches]) => matches(seen));
|
||||
return named ? { kind: named[0], loginHost } : unnamedGate(seen, loginHost);
|
||||
}
|
||||
|
||||
/** Whether the app can show this gate's sign-in itself: a password prompt it cannot. */
|
||||
|
||||
@@ -136,8 +136,10 @@ const native: TranslationStrings = {
|
||||
'native.gate.hint': 'سجّل الدخول هناك مرة واحدة داخل التطبيق، كما في المتصفح. يحتفظ التطبيق بتلك الجلسة.',
|
||||
'native.gate.signIn': 'تسجيل الدخول إلى {name}',
|
||||
'native.gate.signInGeneric': 'تسجيل الدخول',
|
||||
'native.gate.googleNote': 'لا يعمل تسجيل الدخول عبر Google داخل التطبيقات. إن كان تسجيلك يستخدمه، فاسمح لـ TREK بتجاوز الوكيل بدلًا من ذلك.',
|
||||
'native.gate.basicHint': 'لا يستطيع التطبيق الرد على هذا الطلب. اسمح لـ TREK بتجاوزه في الوكيل: سيظل TREK يطلب تسجيل الدخول الخاص به.',
|
||||
'native.gate.googleNote':
|
||||
'لا يعمل تسجيل الدخول عبر Google داخل التطبيقات. إن كان تسجيلك يستخدمه، فاسمح لـ TREK بتجاوز الوكيل بدلًا من ذلك.',
|
||||
'native.gate.basicHint':
|
||||
'لا يستطيع التطبيق الرد على هذا الطلب. اسمح لـ TREK بتجاوزه في الوكيل: سيظل TREK يطلب تسجيل الدخول الخاص به.',
|
||||
'native.gate.help': 'استخدام التطبيق خلف وكيل تسجيل دخول',
|
||||
};
|
||||
|
||||
|
||||
@@ -140,8 +140,10 @@ const native: TranslationStrings = {
|
||||
'native.gate.hint': 'Orada bir dəfə tətbiqin içində, brauzerdə olduğu kimi daxil olun. Tətbiq bu sessiyanı saxlayır.',
|
||||
'native.gate.signIn': '{name} hesabına daxil olun',
|
||||
'native.gate.signInGeneric': 'Daxil olun',
|
||||
'native.gate.googleNote': 'Google ilə giriş tətbiqin içində işləmir. Sizinki ondan istifadə edirsə, TREK-i proksidən keçirin.',
|
||||
'native.gate.basicHint': 'Tətbiq bu sorğuya cavab verə bilmir. TREK-i proksinizdə keçirin: TREK yenə öz girişini istəyir.',
|
||||
'native.gate.googleNote':
|
||||
'Google ilə giriş tətbiqin içində işləmir. Sizinki ondan istifadə edirsə, TREK-i proksidən keçirin.',
|
||||
'native.gate.basicHint':
|
||||
'Tətbiq bu sorğuya cavab verə bilmir. TREK-i proksinizdə keçirin: TREK yenə öz girişini istəyir.',
|
||||
'native.gate.help': 'Tətbiqi giriş proksisinin arxasında istifadə etmək',
|
||||
};
|
||||
|
||||
|
||||
@@ -139,8 +139,10 @@ const native: TranslationStrings = {
|
||||
'native.gate.hint': 'Entre lá uma vez dentro do app, como no navegador. O app mantém essa sessão.',
|
||||
'native.gate.signIn': 'Entrar no {name}',
|
||||
'native.gate.signInGeneric': 'Entrar',
|
||||
'native.gate.googleNote': 'Um login com o Google não funciona dentro de um app. Se o seu usa, deixe o TREK passar pelo proxy.',
|
||||
'native.gate.basicHint': 'O app não consegue responder a este pedido. Deixe o TREK passar no seu proxy: o TREK continua pedindo o próprio login.',
|
||||
'native.gate.googleNote':
|
||||
'Um login com o Google não funciona dentro de um app. Se o seu usa, deixe o TREK passar pelo proxy.',
|
||||
'native.gate.basicHint':
|
||||
'O app não consegue responder a este pedido. Deixe o TREK passar no seu proxy: o TREK continua pedindo o próprio login.',
|
||||
'native.gate.help': 'Usar o app atrás de um proxy de login',
|
||||
};
|
||||
|
||||
|
||||
@@ -135,14 +135,16 @@ const native: TranslationStrings = {
|
||||
'native.widget.noMessages': 'Encara no hi ha missatges',
|
||||
'native.widget.departure': 'Sortida',
|
||||
'native.gate.title': '{name} protegeix aquest servidor',
|
||||
'native.gate.titleUnknown': 'Una pàgina d\'inici de sessió protegeix aquest servidor',
|
||||
'native.gate.titleUnknown': "Una pàgina d'inici de sessió protegeix aquest servidor",
|
||||
'native.gate.titleBasic': 'Una sol·licitud de contrasenya protegeix aquest servidor',
|
||||
'native.gate.hint': 'Inicia la sessió allà un cop dins l\'app, com en un navegador. L\'app conserva aquesta sessió.',
|
||||
'native.gate.hint': "Inicia la sessió allà un cop dins l'app, com en un navegador. L'app conserva aquesta sessió.",
|
||||
'native.gate.signIn': 'Inicia la sessió a {name}',
|
||||
'native.gate.signInGeneric': 'Inicia la sessió',
|
||||
'native.gate.googleNote': 'Un inici de sessió amb Google no funciona dins d\'una app. Si el teu el fa servir, deixa passar TREK pel proxy.',
|
||||
'native.gate.basicHint': 'L\'app no pot respondre aquesta sol·licitud. Deixa passar TREK al teu proxy: TREK continua demanant el seu propi inici de sessió.',
|
||||
'native.gate.help': 'Fer servir l\'app darrere d\'un proxy d\'inici de sessió',
|
||||
'native.gate.googleNote':
|
||||
"Un inici de sessió amb Google no funciona dins d'una app. Si el teu el fa servir, deixa passar TREK pel proxy.",
|
||||
'native.gate.basicHint':
|
||||
"L'app no pot respondre aquesta sol·licitud. Deixa passar TREK al teu proxy: TREK continua demanant el seu propi inici de sessió.",
|
||||
'native.gate.help': "Fer servir l'app darrere d'un proxy d'inici de sessió",
|
||||
};
|
||||
|
||||
export default native;
|
||||
|
||||
@@ -138,8 +138,10 @@ const native: TranslationStrings = {
|
||||
'native.gate.hint': 'Přihlaste se tam jednou v aplikaci, jako v prohlížeči. Aplikace si relaci ponechá.',
|
||||
'native.gate.signIn': 'Přihlásit se k {name}',
|
||||
'native.gate.signInGeneric': 'Přihlásit se',
|
||||
'native.gate.googleNote': 'Přihlášení přes Google v aplikaci nefunguje. Pokud ho používáte, nechte TREK projít přes proxy.',
|
||||
'native.gate.basicHint': 'Aplikace na tuto výzvu nedokáže odpovědět. Nechte TREK ve své proxy projít: TREK stále žádá své vlastní přihlášení.',
|
||||
'native.gate.googleNote':
|
||||
'Přihlášení přes Google v aplikaci nefunguje. Pokud ho používáte, nechte TREK projít přes proxy.',
|
||||
'native.gate.basicHint':
|
||||
'Aplikace na tuto výzvu nedokáže odpovědět. Nechte TREK ve své proxy projít: TREK stále žádá své vlastní přihlášení.',
|
||||
'native.gate.help': 'Používání aplikace za přihlašovací proxy',
|
||||
};
|
||||
|
||||
|
||||
@@ -141,8 +141,10 @@ const native: TranslationStrings = {
|
||||
'native.gate.hint': 'Melde dich dort einmal in der App an, wie im Browser. Die App behält diese Sitzung.',
|
||||
'native.gate.signIn': 'Bei {name} anmelden',
|
||||
'native.gate.signInGeneric': 'Anmelden',
|
||||
'native.gate.googleNote': 'Eine Anmeldung mit Google funktioniert nicht in einer App. Nutzt deine sie, lass TREK stattdessen am Proxy vorbei.',
|
||||
'native.gate.basicHint': 'Die App kann diese Abfrage nicht beantworten. Lass TREK in deinem Proxy daran vorbei: TREK fragt weiterhin nach seiner eigenen Anmeldung.',
|
||||
'native.gate.googleNote':
|
||||
'Eine Anmeldung mit Google funktioniert nicht in einer App. Nutzt deine sie, lass TREK stattdessen am Proxy vorbei.',
|
||||
'native.gate.basicHint':
|
||||
'Die App kann diese Abfrage nicht beantworten. Lass TREK in deinem Proxy daran vorbei: TREK fragt weiterhin nach seiner eigenen Anmeldung.',
|
||||
'native.gate.help': 'Die App hinter einem Anmelde-Proxy nutzen',
|
||||
};
|
||||
|
||||
|
||||
@@ -139,8 +139,10 @@ const native: TranslationStrings = {
|
||||
'native.gate.hint': 'Sign in there once inside the app, as you would in a browser. The app keeps that session.',
|
||||
'native.gate.signIn': 'Sign in to {name}',
|
||||
'native.gate.signInGeneric': 'Sign in',
|
||||
'native.gate.googleNote': 'A sign-in with Google cannot run inside an app. If yours uses it, let TREK through the proxy instead.',
|
||||
'native.gate.basicHint': 'The app cannot answer this prompt. Let TREK through it in your proxy: TREK still asks for its own login.',
|
||||
'native.gate.googleNote':
|
||||
'A sign-in with Google cannot run inside an app. If yours uses it, let TREK through the proxy instead.',
|
||||
'native.gate.basicHint':
|
||||
'The app cannot answer this prompt. Let TREK through it in your proxy: TREK still asks for its own login.',
|
||||
'native.gate.help': 'Using the app behind a sign-in proxy',
|
||||
};
|
||||
|
||||
|
||||
@@ -141,8 +141,10 @@ const native: TranslationStrings = {
|
||||
'native.gate.hint': 'Inicia sesión allí una vez dentro de la app, como en un navegador. La app conserva esa sesión.',
|
||||
'native.gate.signIn': 'Iniciar sesión en {name}',
|
||||
'native.gate.signInGeneric': 'Iniciar sesión',
|
||||
'native.gate.googleNote': 'Un inicio de sesión con Google no funciona dentro de una app. Si el tuyo lo usa, deja pasar TREK por el proxy.',
|
||||
'native.gate.basicHint': 'La app no puede responder a esta solicitud. Deja pasar TREK en tu proxy: TREK sigue pidiendo su propio inicio de sesión.',
|
||||
'native.gate.googleNote':
|
||||
'Un inicio de sesión con Google no funciona dentro de una app. Si el tuyo lo usa, deja pasar TREK por el proxy.',
|
||||
'native.gate.basicHint':
|
||||
'La app no puede responder a esta solicitud. Deja pasar TREK en tu proxy: TREK sigue pidiendo su propio inicio de sesión.',
|
||||
'native.gate.help': 'Usar la app detrás de un proxy de inicio de sesión',
|
||||
};
|
||||
|
||||
|
||||
@@ -139,8 +139,10 @@ const native: TranslationStrings = {
|
||||
'native.gate.hint': 'Logi seal üks kord rakenduses sisse, nagu brauseris. Rakendus jätab selle seansi meelde.',
|
||||
'native.gate.signIn': 'Logi sisse: {name}',
|
||||
'native.gate.signInGeneric': 'Logi sisse',
|
||||
'native.gate.googleNote': 'Google kaudu sisselogimine rakenduses ei tööta. Kui sinu oma seda kasutab, lase TREK proksist hoopis läbi.',
|
||||
'native.gate.basicHint': 'Rakendus ei saa sellele päringule vastata. Lase TREK oma proksis läbi: TREK küsib endiselt oma sisselogimist.',
|
||||
'native.gate.googleNote':
|
||||
'Google kaudu sisselogimine rakenduses ei tööta. Kui sinu oma seda kasutab, lase TREK proksist hoopis läbi.',
|
||||
'native.gate.basicHint':
|
||||
'Rakendus ei saa sellele päringule vastata. Lase TREK oma proksis läbi: TREK küsib endiselt oma sisselogimist.',
|
||||
'native.gate.help': 'Rakenduse kasutamine sisselogimisproksi taga',
|
||||
};
|
||||
|
||||
|
||||
@@ -138,12 +138,14 @@ const native: TranslationStrings = {
|
||||
'native.gate.title': '{name} protège ce serveur',
|
||||
'native.gate.titleUnknown': 'Une page de connexion protège ce serveur',
|
||||
'native.gate.titleBasic': 'Une demande de mot de passe protège ce serveur',
|
||||
'native.gate.hint': 'Connectez-vous-y une fois dans l\'app, comme dans un navigateur. L\'app garde cette session.',
|
||||
'native.gate.hint': "Connectez-vous-y une fois dans l'app, comme dans un navigateur. L'app garde cette session.",
|
||||
'native.gate.signIn': 'Se connecter à {name}',
|
||||
'native.gate.signInGeneric': 'Se connecter',
|
||||
'native.gate.googleNote': 'Une connexion avec Google ne fonctionne pas dans une app. Si la vôtre l\'utilise, laissez plutôt passer TREK dans le proxy.',
|
||||
'native.gate.basicHint': 'L\'app ne peut pas répondre à cette demande. Laissez passer TREK dans votre proxy : TREK demande toujours sa propre connexion.',
|
||||
'native.gate.help': 'Utiliser l\'app derrière un proxy de connexion',
|
||||
'native.gate.googleNote':
|
||||
"Une connexion avec Google ne fonctionne pas dans une app. Si la vôtre l'utilise, laissez plutôt passer TREK dans le proxy.",
|
||||
'native.gate.basicHint':
|
||||
"L'app ne peut pas répondre à cette demande. Laissez passer TREK dans votre proxy : TREK demande toujours sa propre connexion.",
|
||||
'native.gate.help': "Utiliser l'app derrière un proxy de connexion",
|
||||
};
|
||||
|
||||
export default native;
|
||||
|
||||
@@ -139,11 +139,14 @@ const native: TranslationStrings = {
|
||||
'native.gate.title': 'Το {name} προστατεύει αυτόν τον διακομιστή',
|
||||
'native.gate.titleUnknown': 'Μια σελίδα σύνδεσης προστατεύει αυτόν τον διακομιστή',
|
||||
'native.gate.titleBasic': 'Ένα αίτημα κωδικού προστατεύει αυτόν τον διακομιστή',
|
||||
'native.gate.hint': 'Συνδεθείτε εκεί μία φορά μέσα στην εφαρμογή, όπως σε ένα πρόγραμμα περιήγησης. Η εφαρμογή κρατά αυτή τη συνεδρία.',
|
||||
'native.gate.hint':
|
||||
'Συνδεθείτε εκεί μία φορά μέσα στην εφαρμογή, όπως σε ένα πρόγραμμα περιήγησης. Η εφαρμογή κρατά αυτή τη συνεδρία.',
|
||||
'native.gate.signIn': 'Σύνδεση στο {name}',
|
||||
'native.gate.signInGeneric': 'Σύνδεση',
|
||||
'native.gate.googleNote': 'Η σύνδεση με Google δεν λειτουργεί μέσα σε εφαρμογή. Αν τη χρησιμοποιεί ο δικός σας, αφήστε το TREK να περνά από τον proxy.',
|
||||
'native.gate.basicHint': 'Η εφαρμογή δεν μπορεί να απαντήσει σε αυτό το αίτημα. Αφήστε το TREK να περνά στον proxy σας: το TREK ζητά ακόμη τη δική του σύνδεση.',
|
||||
'native.gate.googleNote':
|
||||
'Η σύνδεση με Google δεν λειτουργεί μέσα σε εφαρμογή. Αν τη χρησιμοποιεί ο δικός σας, αφήστε το TREK να περνά από τον proxy.',
|
||||
'native.gate.basicHint':
|
||||
'Η εφαρμογή δεν μπορεί να απαντήσει σε αυτό το αίτημα. Αφήστε το TREK να περνά στον proxy σας: το TREK ζητά ακόμη τη δική του σύνδεση.',
|
||||
'native.gate.help': 'Χρήση της εφαρμογής πίσω από proxy σύνδεσης',
|
||||
};
|
||||
|
||||
|
||||
@@ -136,8 +136,10 @@ const native: TranslationStrings = {
|
||||
'native.gate.hint': 'התחבר שם פעם אחת בתוך האפליקציה, כמו בדפדפן. האפליקציה שומרת את ההתחברות.',
|
||||
'native.gate.signIn': 'התחברות ל{name}',
|
||||
'native.gate.signInGeneric': 'התחברות',
|
||||
'native.gate.googleNote': 'התחברות עם Google לא עובדת בתוך אפליקציה. אם שלך משתמש בה, אפשר ל TREK לעבור את הפרוקסי במקום זאת.',
|
||||
'native.gate.basicHint': 'האפליקציה לא יכולה לענות לבקשה הזו. אפשר ל TREK לעבור אותה בפרוקסי שלך: TREK עדיין מבקש התחברות משלו.',
|
||||
'native.gate.googleNote':
|
||||
'התחברות עם Google לא עובדת בתוך אפליקציה. אם שלך משתמש בה, אפשר ל TREK לעבור את הפרוקסי במקום זאת.',
|
||||
'native.gate.basicHint':
|
||||
'האפליקציה לא יכולה לענות לבקשה הזו. אפשר ל TREK לעבור אותה בפרוקסי שלך: TREK עדיין מבקש התחברות משלו.',
|
||||
'native.gate.help': 'שימוש באפליקציה מאחורי פרוקסי התחברות',
|
||||
};
|
||||
|
||||
|
||||
@@ -138,11 +138,14 @@ const native: TranslationStrings = {
|
||||
'native.gate.title': 'A(z) {name} védi ezt a szervert',
|
||||
'native.gate.titleUnknown': 'Egy bejelentkezési oldal védi ezt a szervert',
|
||||
'native.gate.titleBasic': 'Egy jelszókérés védi ezt a szervert',
|
||||
'native.gate.hint': 'Jelentkezz be ott egyszer az alkalmazásban, mint egy böngészőben. Az alkalmazás megőrzi ezt a munkamenetet.',
|
||||
'native.gate.hint':
|
||||
'Jelentkezz be ott egyszer az alkalmazásban, mint egy böngészőben. Az alkalmazás megőrzi ezt a munkamenetet.',
|
||||
'native.gate.signIn': 'Bejelentkezés: {name}',
|
||||
'native.gate.signInGeneric': 'Bejelentkezés',
|
||||
'native.gate.googleNote': 'A Google-bejelentkezés nem működik alkalmazáson belül. Ha a tiéd ezt használja, inkább engedd át a TREK-et a proxyn.',
|
||||
'native.gate.basicHint': 'Az alkalmazás nem tud válaszolni erre a kérésre. Engedd át a TREK-et a proxyban: a TREK továbbra is a saját bejelentkezését kéri.',
|
||||
'native.gate.googleNote':
|
||||
'A Google-bejelentkezés nem működik alkalmazáson belül. Ha a tiéd ezt használja, inkább engedd át a TREK-et a proxyn.',
|
||||
'native.gate.basicHint':
|
||||
'Az alkalmazás nem tud válaszolni erre a kérésre. Engedd át a TREK-et a proxyban: a TREK továbbra is a saját bejelentkezését kéri.',
|
||||
'native.gate.help': 'Az alkalmazás használata bejelentkezési proxy mögött',
|
||||
};
|
||||
|
||||
|
||||
@@ -140,8 +140,10 @@ const native: TranslationStrings = {
|
||||
'native.gate.hint': 'Masuk di sana sekali di dalam aplikasi, seperti di browser. Aplikasi menyimpan sesi itu.',
|
||||
'native.gate.signIn': 'Masuk ke {name}',
|
||||
'native.gate.signInGeneric': 'Masuk',
|
||||
'native.gate.googleNote': 'Masuk dengan Google tidak bisa berjalan di dalam aplikasi. Jika milikmu memakainya, loloskan TREK di proxy saja.',
|
||||
'native.gate.basicHint': 'Aplikasi tidak bisa menjawab permintaan ini. Loloskan TREK di proxy kamu: TREK tetap meminta login miliknya sendiri.',
|
||||
'native.gate.googleNote':
|
||||
'Masuk dengan Google tidak bisa berjalan di dalam aplikasi. Jika milikmu memakainya, loloskan TREK di proxy saja.',
|
||||
'native.gate.basicHint':
|
||||
'Aplikasi tidak bisa menjawab permintaan ini. Loloskan TREK di proxy kamu: TREK tetap meminta login miliknya sendiri.',
|
||||
'native.gate.help': 'Memakai aplikasi di balik proxy masuk',
|
||||
};
|
||||
|
||||
|
||||
@@ -138,12 +138,14 @@ const native: TranslationStrings = {
|
||||
'native.gate.title': '{name} protegge questo server',
|
||||
'native.gate.titleUnknown': 'Una pagina di accesso protegge questo server',
|
||||
'native.gate.titleBasic': 'Una richiesta di password protegge questo server',
|
||||
'native.gate.hint': 'Accedi lì una volta dentro l\'app, come in un browser. L\'app mantiene quella sessione.',
|
||||
'native.gate.hint': "Accedi lì una volta dentro l'app, come in un browser. L'app mantiene quella sessione.",
|
||||
'native.gate.signIn': 'Accedi a {name}',
|
||||
'native.gate.signInGeneric': 'Accedi',
|
||||
'native.gate.googleNote': 'Un accesso con Google non funziona dentro un\'app. Se il tuo lo usa, lascia passare TREK nel proxy.',
|
||||
'native.gate.basicHint': 'L\'app non può rispondere a questa richiesta. Lascia passare TREK nel tuo proxy: TREK chiede comunque il proprio accesso.',
|
||||
'native.gate.help': 'Usare l\'app dietro un proxy di accesso',
|
||||
'native.gate.googleNote':
|
||||
"Un accesso con Google non funziona dentro un'app. Se il tuo lo usa, lascia passare TREK nel proxy.",
|
||||
'native.gate.basicHint':
|
||||
"L'app non può rispondere a questa richiesta. Lascia passare TREK nel tuo proxy: TREK chiede comunque il proprio accesso.",
|
||||
'native.gate.help': "Usare l'app dietro un proxy di accesso",
|
||||
};
|
||||
|
||||
export default native;
|
||||
|
||||
@@ -137,11 +137,14 @@ const native: TranslationStrings = {
|
||||
'native.gate.title': '{name} がこのサーバーを保護しています',
|
||||
'native.gate.titleUnknown': 'サインインページがこのサーバーを保護しています',
|
||||
'native.gate.titleBasic': 'パスワード入力がこのサーバーを保護しています',
|
||||
'native.gate.hint': 'ブラウザと同じように、アプリ内で一度サインインしてください。アプリがそのセッションを保持します。',
|
||||
'native.gate.hint':
|
||||
'ブラウザと同じように、アプリ内で一度サインインしてください。アプリがそのセッションを保持します。',
|
||||
'native.gate.signIn': '{name} にサインイン',
|
||||
'native.gate.signInGeneric': 'サインイン',
|
||||
'native.gate.googleNote': 'Google でのサインインはアプリ内では動作しません。お使いのものが Google を使う場合は、プロキシで TREK を通過させてください。',
|
||||
'native.gate.basicHint': 'アプリはこの入力に応答できません。プロキシで TREK を通過させてください。TREK は引き続き独自のログインを求めます。',
|
||||
'native.gate.googleNote':
|
||||
'Google でのサインインはアプリ内では動作しません。お使いのものが Google を使う場合は、プロキシで TREK を通過させてください。',
|
||||
'native.gate.basicHint':
|
||||
'アプリはこの入力に応答できません。プロキシで TREK を通過させてください。TREK は引き続き独自のログインを求めます。',
|
||||
'native.gate.help': 'サインインプロキシの背後でアプリを使う',
|
||||
};
|
||||
|
||||
|
||||
@@ -137,8 +137,10 @@ const native: TranslationStrings = {
|
||||
'native.gate.hint': '브라우저처럼 앱 안에서 한 번 로그인하세요. 앱이 그 세션을 유지합니다.',
|
||||
'native.gate.signIn': '{name}에 로그인',
|
||||
'native.gate.signInGeneric': '로그인',
|
||||
'native.gate.googleNote': 'Google 로그인은 앱 안에서 작동하지 않습니다. 사용 중이라면 대신 프록시에서 TREK을 통과시키세요.',
|
||||
'native.gate.basicHint': '앱은 이 요청에 응답할 수 없습니다. 프록시에서 TREK을 통과시키세요. TREK은 여전히 자체 로그인을 요청합니다.',
|
||||
'native.gate.googleNote':
|
||||
'Google 로그인은 앱 안에서 작동하지 않습니다. 사용 중이라면 대신 프록시에서 TREK을 통과시키세요.',
|
||||
'native.gate.basicHint':
|
||||
'앱은 이 요청에 응답할 수 없습니다. 프록시에서 TREK을 통과시키세요. TREK은 여전히 자체 로그인을 요청합니다.',
|
||||
'native.gate.help': '로그인 프록시 뒤에서 앱 사용하기',
|
||||
};
|
||||
|
||||
|
||||
@@ -139,8 +139,10 @@ const native: TranslationStrings = {
|
||||
'native.gate.hint': 'Meld je daar één keer aan in de app, zoals in een browser. De app onthoudt die sessie.',
|
||||
'native.gate.signIn': 'Aanmelden bij {name}',
|
||||
'native.gate.signInGeneric': 'Aanmelden',
|
||||
'native.gate.googleNote': 'Aanmelden met Google werkt niet in een app. Gebruikt de jouwe dat, laat TREK dan langs de proxy.',
|
||||
'native.gate.basicHint': 'De app kan deze vraag niet beantwoorden. Laat TREK er in je proxy langs: TREK vraagt nog steeds om zijn eigen aanmelding.',
|
||||
'native.gate.googleNote':
|
||||
'Aanmelden met Google werkt niet in een app. Gebruikt de jouwe dat, laat TREK dan langs de proxy.',
|
||||
'native.gate.basicHint':
|
||||
'De app kan deze vraag niet beantwoorden. Laat TREK er in je proxy langs: TREK vraagt nog steeds om zijn eigen aanmelding.',
|
||||
'native.gate.help': 'De app achter een aanmeldproxy gebruiken',
|
||||
};
|
||||
|
||||
|
||||
@@ -139,8 +139,10 @@ const native: TranslationStrings = {
|
||||
'native.gate.hint': 'Zaloguj się tam raz w aplikacji, jak w przeglądarce. Aplikacja zachowa tę sesję.',
|
||||
'native.gate.signIn': 'Zaloguj się do {name}',
|
||||
'native.gate.signInGeneric': 'Zaloguj się',
|
||||
'native.gate.googleNote': 'Logowanie przez Google nie działa w aplikacji. Jeśli Twoje go używa, przepuść TREK przez proxy.',
|
||||
'native.gate.basicHint': 'Aplikacja nie może odpowiedzieć na tę prośbę. Przepuść TREK w swoim proxy: TREK nadal pyta o własne logowanie.',
|
||||
'native.gate.googleNote':
|
||||
'Logowanie przez Google nie działa w aplikacji. Jeśli Twoje go używa, przepuść TREK przez proxy.',
|
||||
'native.gate.basicHint':
|
||||
'Aplikacja nie może odpowiedzieć na tę prośbę. Przepuść TREK w swoim proxy: TREK nadal pyta o własne logowanie.',
|
||||
'native.gate.help': 'Korzystanie z aplikacji za proxy logowania',
|
||||
};
|
||||
|
||||
|
||||
@@ -140,8 +140,10 @@ const native: TranslationStrings = {
|
||||
'native.gate.hint': 'Войдите там один раз прямо в приложении, как в браузере. Приложение сохранит этот сеанс.',
|
||||
'native.gate.signIn': 'Войти в {name}',
|
||||
'native.gate.signInGeneric': 'Войти',
|
||||
'native.gate.googleNote': 'Вход через Google не работает внутри приложения. Если ваш вход использует его, пропустите TREK через прокси.',
|
||||
'native.gate.basicHint': 'Приложение не может ответить на этот запрос. Пропустите TREK в вашем прокси: TREK по-прежнему просит собственный вход.',
|
||||
'native.gate.googleNote':
|
||||
'Вход через Google не работает внутри приложения. Если ваш вход использует его, пропустите TREK через прокси.',
|
||||
'native.gate.basicHint':
|
||||
'Приложение не может ответить на этот запрос. Пропустите TREK в вашем прокси: TREK по-прежнему просит собственный вход.',
|
||||
'native.gate.help': 'Приложение за прокси со входом',
|
||||
};
|
||||
|
||||
|
||||
@@ -138,8 +138,10 @@ const native: TranslationStrings = {
|
||||
'native.gate.hint': 'Prihláste sa tam raz v aplikácii, ako v prehliadači. Aplikácia si reláciu ponechá.',
|
||||
'native.gate.signIn': 'Prihlásiť sa do {name}',
|
||||
'native.gate.signInGeneric': 'Prihlásiť sa',
|
||||
'native.gate.googleNote': 'Prihlásenie cez Google v aplikácii nefunguje. Ak ho používate, nechajte TREK prejsť cez proxy.',
|
||||
'native.gate.basicHint': 'Aplikácia nedokáže na túto výzvu odpovedať. Nechajte TREK vo svojej proxy prejsť: TREK stále žiada vlastné prihlásenie.',
|
||||
'native.gate.googleNote':
|
||||
'Prihlásenie cez Google v aplikácii nefunguje. Ak ho používate, nechajte TREK prejsť cez proxy.',
|
||||
'native.gate.basicHint':
|
||||
'Aplikácia nedokáže na túto výzvu odpovedať. Nechajte TREK vo svojej proxy prejsť: TREK stále žiada vlastné prihlásenie.',
|
||||
'native.gate.help': 'Používanie aplikácie za prihlasovacou proxy',
|
||||
};
|
||||
|
||||
|
||||
@@ -139,8 +139,10 @@ const native: TranslationStrings = {
|
||||
'native.gate.hint': 'Logga in där en gång i appen, som i en webbläsare. Appen behåller sessionen.',
|
||||
'native.gate.signIn': 'Logga in på {name}',
|
||||
'native.gate.signInGeneric': 'Logga in',
|
||||
'native.gate.googleNote': 'Inloggning med Google fungerar inte i en app. Om din använder det, släpp i stället förbi TREK i proxyn.',
|
||||
'native.gate.basicHint': 'Appen kan inte svara på den här frågan. Släpp förbi TREK i din proxy: TREK frågar fortfarande efter sin egen inloggning.',
|
||||
'native.gate.googleNote':
|
||||
'Inloggning med Google fungerar inte i en app. Om din använder det, släpp i stället förbi TREK i proxyn.',
|
||||
'native.gate.basicHint':
|
||||
'Appen kan inte svara på den här frågan. Släpp förbi TREK i din proxy: TREK frågar fortfarande efter sin egen inloggning.',
|
||||
'native.gate.help': 'Använda appen bakom en inloggningsproxy',
|
||||
};
|
||||
|
||||
|
||||
@@ -137,7 +137,8 @@ const native: TranslationStrings = {
|
||||
'native.gate.signIn': 'ลงชื่อเข้าใช้ {name}',
|
||||
'native.gate.signInGeneric': 'ลงชื่อเข้าใช้',
|
||||
'native.gate.googleNote': 'การลงชื่อเข้าใช้ด้วย Google ใช้ในแอปไม่ได้ หากของคุณใช้ ให้ปล่อย TREK ผ่านพร็อกซีแทน',
|
||||
'native.gate.basicHint': 'แอปตอบคำขอนี้ไม่ได้ ให้ปล่อย TREK ผ่านในพร็อกซีของคุณ: TREK ยังคงขอการลงชื่อเข้าใช้ของตัวเอง',
|
||||
'native.gate.basicHint':
|
||||
'แอปตอบคำขอนี้ไม่ได้ ให้ปล่อย TREK ผ่านในพร็อกซีของคุณ: TREK ยังคงขอการลงชื่อเข้าใช้ของตัวเอง',
|
||||
'native.gate.help': 'การใช้แอปหลังพร็อกซีลงชื่อเข้าใช้',
|
||||
};
|
||||
|
||||
|
||||
@@ -140,8 +140,10 @@ const native: TranslationStrings = {
|
||||
'native.gate.hint': 'Orada bir kez uygulamanın içinde, tarayıcıdaki gibi giriş yapın. Uygulama bu oturumu saklar.',
|
||||
'native.gate.signIn': '{name} ile giriş yap',
|
||||
'native.gate.signInGeneric': 'Giriş yap',
|
||||
'native.gate.googleNote': 'Google ile giriş bir uygulamanın içinde çalışmaz. Sizinki bunu kullanıyorsa TREK’i proxy’den geçirin.',
|
||||
'native.gate.basicHint': 'Uygulama bu isteğe yanıt veremez. TREK’i proxy’nizde geçirin: TREK yine kendi girişini ister.',
|
||||
'native.gate.googleNote':
|
||||
'Google ile giriş bir uygulamanın içinde çalışmaz. Sizinki bunu kullanıyorsa TREK’i proxy’den geçirin.',
|
||||
'native.gate.basicHint':
|
||||
'Uygulama bu isteğe yanıt veremez. TREK’i proxy’nizde geçirin: TREK yine kendi girişini ister.',
|
||||
'native.gate.help': 'Uygulamayı bir giriş proxy’sinin arkasında kullanma',
|
||||
};
|
||||
|
||||
|
||||
@@ -139,8 +139,10 @@ const native: TranslationStrings = {
|
||||
'native.gate.hint': 'Увійдіть там один раз просто в застосунку, як у браузері. Застосунок збереже цей сеанс.',
|
||||
'native.gate.signIn': 'Увійти в {name}',
|
||||
'native.gate.signInGeneric': 'Увійти',
|
||||
'native.gate.googleNote': 'Вхід через Google не працює в застосунку. Якщо ваш вхід його використовує, пропустіть TREK через проксі.',
|
||||
'native.gate.basicHint': 'Застосунок не може відповісти на цей запит. Пропустіть TREK у вашому проксі: TREK і далі просить власний вхід.',
|
||||
'native.gate.googleNote':
|
||||
'Вхід через Google не працює в застосунку. Якщо ваш вхід його використовує, пропустіть TREK через проксі.',
|
||||
'native.gate.basicHint':
|
||||
'Застосунок не може відповісти на цей запит. Пропустіть TREK у вашому проксі: TREK і далі просить власний вхід.',
|
||||
'native.gate.help': 'Застосунок за проксі з входом',
|
||||
};
|
||||
|
||||
|
||||
@@ -141,8 +141,10 @@ const native: TranslationStrings = {
|
||||
'native.gate.hint': 'Đăng nhập ở đó một lần ngay trong ứng dụng, như trên trình duyệt. Ứng dụng giữ phiên đó.',
|
||||
'native.gate.signIn': 'Đăng nhập vào {name}',
|
||||
'native.gate.signInGeneric': 'Đăng nhập',
|
||||
'native.gate.googleNote': 'Đăng nhập bằng Google không chạy được trong ứng dụng. Nếu của bạn dùng nó, hãy cho TREK đi qua proxy.',
|
||||
'native.gate.basicHint': 'Ứng dụng không thể trả lời yêu cầu này. Hãy cho TREK đi qua proxy của bạn: TREK vẫn hỏi đăng nhập riêng của nó.',
|
||||
'native.gate.googleNote':
|
||||
'Đăng nhập bằng Google không chạy được trong ứng dụng. Nếu của bạn dùng nó, hãy cho TREK đi qua proxy.',
|
||||
'native.gate.basicHint':
|
||||
'Ứng dụng không thể trả lời yêu cầu này. Hãy cho TREK đi qua proxy của bạn: TREK vẫn hỏi đăng nhập riêng của nó.',
|
||||
'native.gate.help': 'Dùng ứng dụng sau một proxy đăng nhập',
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user