@@ -229,9 +232,7 @@ export function LoginPage() {
{title}
{subtitle}
{step === 'email' && isPasswordEnabled && canUseMagicCode && (
-
- After you continue, you can use your password or choose a one-time email code instead.
-
+ {t('createAccountHint')}
)}
{error && (
@@ -269,7 +270,7 @@ export function LoginPage() {
fill="#EA4335"
/>
- Continue with Google
+ {t('continueWithGoogle')}
)}
{oauthProviders.github && (
@@ -281,7 +282,7 @@ export function LoginPage() {
- Continue with GitHub
+ {t('continueWithGitHub')}
)}
{oauthProviders.gitlab && (
@@ -293,7 +294,7 @@ export function LoginPage() {
- Continue with GitLab
+ {t('continueWithGitLab')}
)}
@@ -301,24 +302,24 @@ export function LoginPage() {
- or
+ {t('or')}
)}
>
@@ -339,11 +340,11 @@ export function LoginPage() {
setPassword(e.target.value)}
- placeholder="Enter password"
+ placeholder={t('passwordPlaceholder')}
required
autoComplete="current-password"
autoFocus
@@ -352,7 +353,7 @@ export function LoginPage() {
type="button"
className="absolute top-[2.1rem] right-3 text-(--txt-tertiary) hover:text-(--txt-primary)"
onClick={() => setShowPassword((v) => !v)}
- aria-label={showPassword ? 'Hide password' : 'Show password'}
+ aria-label={showPassword ? t('hidePassword') : t('showPassword')}
aria-pressed={showPassword}
>
{showPassword ? : }
@@ -367,12 +368,10 @@ export function LoginPage() {
state={{ email }}
className="text-xs text-(--txt-accent) hover:underline"
>
- Forgot your password?
+ {t('forgotPassword')}
) : (
-
- To reset your password, ask your administrator to configure SMTP.
-
+ {t('resetPasswordNoSmtp')}
)}
)}
@@ -384,19 +383,19 @@ export function LoginPage() {
disabled={isSubmitting}
className="w-full text-center text-xs font-medium text-(--txt-accent) hover:underline disabled:opacity-50"
>
- Sign in with email code instead
+ {t('useEmailCodeInstead')}
)}
{(allowSignup || !!inviteToken) && (
- {"Don't have an account? "}
+ {t('dontHaveAccount')}{' '}
- Sign up
+ {t('signUp')}
)}
@@ -417,7 +416,7 @@ export function LoginPage() {
{isPasswordEnabled && (
@@ -448,11 +447,15 @@ export function LoginPage() {
onClick={goBackToPassword}
className="w-full text-center text-xs text-(--txt-tertiary) hover:text-(--txt-primary)"
>
- Use password instead
+ {t('usePasswordInstead')}
)}
)}
+
+
+
+
);
diff --git a/apps/web/tsconfig.app.json b/apps/web/tsconfig.app.json
index a9b5a59c..5996e39d 100644
--- a/apps/web/tsconfig.app.json
+++ b/apps/web/tsconfig.app.json
@@ -10,6 +10,7 @@
/* Bundler mode */
"moduleResolution": "bundler",
+ "resolveJsonModule": true,
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"moduleDetection": "force",