From a010bd44c0dc74a00f96c2f8a71232e327b8c8b3 Mon Sep 17 00:00:00 2001 From: kyy Date: Tue, 26 May 2026 10:17:18 +0900 Subject: [PATCH] =?UTF-8?q?code-check=20i18n=20=EB=88=84=EB=9D=BD=20?= =?UTF-8?q?=EB=B0=8F=20userfront=20=ED=8F=AC=EB=A7=B7=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- locales/en.toml | 1 + locales/ko.toml | 1 + locales/template.toml | 1 + userfront/assets/translations/en.toml | 2 +- userfront/assets/translations/ko.toml | 2 +- userfront/assets/translations/template.toml | 2 +- .../auth/presentation/signup_screen.dart | 110 +++++++++--------- 7 files changed, 59 insertions(+), 60 deletions(-) diff --git a/locales/en.toml b/locales/en.toml index 75306535..782e480e 100644 --- a/locales/en.toml +++ b/locales/en.toml @@ -807,6 +807,7 @@ approved = "Approved. Complete sign-in in the original window." approved_local = "Approved. This device is already signed in, and the remote window will be signed in shortly." approved_remote = "Approved.\nPlease return to the screen where you requested sign-in." pending_remote = "Checking the sign-in approval request. Please wait." +close_hint = "You can close this window now." success = "Sign-in approval completed." [msg.userfront.login_success] diff --git a/locales/ko.toml b/locales/ko.toml index e0181764..202caa53 100644 --- a/locales/ko.toml +++ b/locales/ko.toml @@ -1298,6 +1298,7 @@ approved = "승인되었습니다. 로그인은 요청하신 창에서 완료됩 approved_local = "승인 되었습니다. 이 기기는 로그인되어 있는 상태입니다. 원격 창도 로그인이 될 예정입니다" approved_remote = "승인되었습니다.\n로그인 요청하신 화면으로 돌아가주세요." pending_remote = "승인 요청을 확인하고 있습니다. 잠시만 기다려 주세요." +close_hint = "이 창은 이제 닫으셔도 됩니다." success = "로그인 승인에 성공했습니다." [msg.userfront.login_success] diff --git a/locales/template.toml b/locales/template.toml index cccb4f4d..d6fdfa99 100644 --- a/locales/template.toml +++ b/locales/template.toml @@ -1158,6 +1158,7 @@ approved = "" approved_local = "" approved_remote = "" pending_remote = "" +close_hint = "" success = "" [msg.userfront.login_success] diff --git a/userfront/assets/translations/en.toml b/userfront/assets/translations/en.toml index 6f493d22..a129156e 100644 --- a/userfront/assets/translations/en.toml +++ b/userfront/assets/translations/en.toml @@ -233,6 +233,7 @@ approved = "Approved. Complete sign-in in the original window." approved_local = "Approved. This device is already signed in, and the remote window will be signed in shortly." approved_remote = "Approved.\nPlease return to the screen where you requested sign-in." pending_remote = "Checking the sign-in approval request. Please wait." +close_hint = "You can close this window now." success = "Sign-in approval completed." [msg.userfront.login_success] @@ -704,4 +705,3 @@ toggle_label = "Show active sessions only" [msg.userfront.audit.filter] description = "Toggle to view only active sessions." - diff --git a/userfront/assets/translations/ko.toml b/userfront/assets/translations/ko.toml index 01ce8fdd..b382f41a 100644 --- a/userfront/assets/translations/ko.toml +++ b/userfront/assets/translations/ko.toml @@ -457,6 +457,7 @@ approved = "승인되었습니다. 로그인은 요청하신 창에서 완료됩 approved_local = "승인 되었습니다. 이 기기는 로그인되어 있는 상태입니다. 원격 창도 로그인이 될 예정입니다" approved_remote = "승인되었습니다.\n로그인 요청하신 화면으로 돌아가주세요." pending_remote = "승인 요청을 확인하고 있습니다. 잠시만 기다려 주세요." +close_hint = "이 창은 이제 닫으셔도 됩니다." success = "로그인 승인에 성공했습니다." [msg.userfront.login_success] @@ -925,4 +926,3 @@ toggle_label = "활성 세션만 보기" [msg.userfront.audit.filter] description = "활성화된 세션만 보려면 토글을 켜주세요." - diff --git a/userfront/assets/translations/template.toml b/userfront/assets/translations/template.toml index 33da33cf..84a0359a 100644 --- a/userfront/assets/translations/template.toml +++ b/userfront/assets/translations/template.toml @@ -429,6 +429,7 @@ approved = "" approved_local = "" approved_remote = "" pending_remote = "" +close_hint = "" success = "" [msg.userfront.login_success] @@ -898,4 +899,3 @@ toggle_label = "" [msg.userfront.audit.filter] description = "" - diff --git a/userfront/lib/features/auth/presentation/signup_screen.dart b/userfront/lib/features/auth/presentation/signup_screen.dart index 1ed643de..20afee5f 100644 --- a/userfront/lib/features/auth/presentation/signup_screen.dart +++ b/userfront/lib/features/auth/presentation/signup_screen.dart @@ -70,13 +70,13 @@ class _SignupScreenState extends State { Color get _signupSurface => _scheme.surfaceContainerLow; Color get _signupCard => _scheme.surface; Color get _signupMuted => _scheme.onSurfaceVariant; - Color get _signupDone => _signupAccent.withValues(alpha: _isDark ? 0.78 : 0.72); + Color get _signupDone => + _signupAccent.withValues(alpha: _isDark ? 0.78 : 0.72); Color get _signupDoneSurface => _signupAccent.withValues(alpha: _isDark ? 0.18 : 0.12); Color get _signupAccent => _isDark ? const Color(0xFF93C5FD) : const Color(0xFF1E3A8A); - Color get _signupOnAccent => - _isDark ? const Color(0xFF082F49) : Colors.white; + Color get _signupOnAccent => _isDark ? const Color(0xFF082F49) : Colors.white; Color get _signupAccentSurface => _isDark ? const Color(0xFF172554) : const Color(0xFFDBEAFE); Color get _signupAccentInk => @@ -779,64 +779,64 @@ class _SignupScreenState extends State { child: CheckboxTheme( data: _signupCheckboxTheme, child: Column( - crossAxisAlignment: CrossAxisAlignment.stretch, - children: [ - Row( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Expanded( - child: CheckboxListTile( - title: Text( - title, - style: TextStyle( - fontSize: isDesktop ? 16 : 14, - fontWeight: FontWeight.w700, - color: _signupInk, - ), - ), - subtitle: Padding( - padding: const EdgeInsets.only(top: 6), - child: Text( - summary, + crossAxisAlignment: CrossAxisAlignment.stretch, + children: [ + Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Expanded( + child: CheckboxListTile( + title: Text( + title, style: TextStyle( - fontSize: 13, - height: 1.45, - color: _signupMuted, + fontSize: isDesktop ? 16 : 14, + fontWeight: FontWeight.w700, + color: _signupInk, ), ), + subtitle: Padding( + padding: const EdgeInsets.only(top: 6), + child: Text( + summary, + style: TextStyle( + fontSize: 13, + height: 1.45, + color: _signupMuted, + ), + ), + ), + value: value, + onChanged: onChanged, + controlAffinity: ListTileControlAffinity.leading, + contentPadding: EdgeInsets.zero, ), - value: value, - onChanged: onChanged, - controlAffinity: ListTileControlAffinity.leading, - contentPadding: EdgeInsets.zero, ), - ), - const SizedBox(width: 12), - _buildRequiredBadge(), - ], - ), - const SizedBox(height: 12), - Container( - height: contentHeight, - width: double.infinity, - padding: EdgeInsets.all(isDesktop ? 18 : 14), - decoration: BoxDecoration( - color: _signupSurface, - border: Border.all(color: _signupSummaryBorder), - borderRadius: BorderRadius.circular(14), + const SizedBox(width: 12), + _buildRequiredBadge(), + ], ), - child: SingleChildScrollView( - child: SelectableText( - content, - style: TextStyle( - fontSize: isDesktop ? 13 : 12, - color: _signupMuted, - height: 1.6, + const SizedBox(height: 12), + Container( + height: contentHeight, + width: double.infinity, + padding: EdgeInsets.all(isDesktop ? 18 : 14), + decoration: BoxDecoration( + color: _signupSurface, + border: Border.all(color: _signupSummaryBorder), + borderRadius: BorderRadius.circular(14), + ), + child: SingleChildScrollView( + child: SelectableText( + content, + style: TextStyle( + fontSize: isDesktop ? 13 : 12, + color: _signupMuted, + height: 1.6, + ), ), ), ), - ), - ], + ], ), ), ), @@ -2255,11 +2255,7 @@ Matters not expressly provided in this Policy are governed by the Company's inte const SizedBox(height: 6), Text( description, - style: TextStyle( - fontSize: 13, - height: 1.45, - color: _signupMuted, - ), + style: TextStyle(fontSize: 13, height: 1.45, color: _signupMuted), ), SizedBox(height: isDesktop ? 18 : 14), child,