为什么:客户端此前完全没有账号概念(mine 页的"登录"只是本地 demo 开关), 而受限动作(收藏/评论)要对到具体账号。本批把账号链路接上,为后续互动、进度同步、下载打底。 - AuthApi + AuthController + AuthSessionStore:注册/登录/登出/刷新,令牌与设备号存 shared_preferences (用 SharedPreferencesAsync,与 engagement 仓库同一套 API) - ApiClient:统一带 Authorization 与 X-Device-Id;401 自动刷新一次并重试,刷新失败清登录态走 onUnauthorized - 登录/注册页(pages/auth,沿用 binding/logic/view 与现有视觉):邮箱格式、密码 8-64 位含字母数字本地先校验, 错误提示走 l10n;登录/注册一键切换 - 匿名/登录分叉:首页、发现、详情保持匿名可看;收藏/点赞等受限动作走 ensureSignedIn() 弹底部提示引导登录 - mine 页展示真实账号(昵称 + uid),拿不到才回落到演示文案 - 测试:新增 auth 控制器(注册落盘/401 刷新重试/刷新失败清会话/登出)与登录页(校验/切换)用例; widget_test 改为预置本地会话(账号不再是本地开关);修掉 playback 用例对 host 大小写的环境依赖断言 门禁:flutter analyze 0 问题;flutter test 148 全过。
185 lines
7.1 KiB
Plaintext
185 lines
7.1 KiB
Plaintext
{
|
|
"@@locale": "en",
|
|
"appName": "Nontonki",
|
|
"demo": "DEMO",
|
|
"homeHeadline": "Watch now",
|
|
"homeSubtitle": "Free short drama preview.",
|
|
"mediaNotice": "User-provided local demo video · Free preview",
|
|
"featuredDemo": "FEATURED · TECHNICAL DEMO",
|
|
"demoTitle": "The Signal",
|
|
"demoSynopsis": "A short local video preview. More episodes can be added when media is available.",
|
|
"homeTab": "Home",
|
|
"openQuickMenu": "Open quick menu",
|
|
"quickAccess": "Quick access",
|
|
"currentSeries": "Current series",
|
|
"discoverTab": "Discover",
|
|
"searchDiscover": "Search dramas, actors, genres...",
|
|
"featured": "Featured",
|
|
"suspense": "Suspense",
|
|
"romance": "Romance",
|
|
"actionGenre": "Action",
|
|
"filter": "Filter",
|
|
"topCharts": "Top Charts",
|
|
"newReleases": "New Releases",
|
|
"trendingMicroDramas": "Trending Micro-Dramas",
|
|
"seeAll": "See All",
|
|
"artworkOnly": "Artwork",
|
|
"artworkOnlyNotice": "This is a visual catalog item. No video is available yet.",
|
|
"videoPending": "Video pending",
|
|
"watchNow": "Watch free",
|
|
"noSearchResults": "No matching dramas.",
|
|
"demoCatalogNotice": "Three demo dramas share the same local video.",
|
|
"myTab": "My",
|
|
"localViewer": "Local Viewer",
|
|
"localDemoProfile": "Local demo profile",
|
|
"continueWatching": "Continue Watching",
|
|
"watchedPercent": "Watched {percent}%",
|
|
"@watchedPercent": {"placeholders": {"percent": {"type": "int"}}},
|
|
"resume": "Resume",
|
|
"history": "History",
|
|
"watchlist": "Watchlist",
|
|
"likedTab": "Liked",
|
|
"all": "All",
|
|
"inProgress": "In Progress",
|
|
"completed": "Completed",
|
|
"noSavedShows": "No shows here yet.",
|
|
"preferences": "Preferences",
|
|
"appLanguage": "App Language",
|
|
"followingTab": "Following",
|
|
"animatedTab": "Animated",
|
|
"recommendedTab": "Recommended",
|
|
"noCategoryDramas": "No dramas in this category yet.",
|
|
"trendingTab": "Trending",
|
|
"liveActionTab": "Live Action",
|
|
"search": "Search",
|
|
"free": "Free",
|
|
"mute": "Mute",
|
|
"unmute": "Unmute",
|
|
"like": "Like",
|
|
"save": "Save",
|
|
"comments": "Comments",
|
|
"share": "Share",
|
|
"localOnlyComments": "Only visible on this device",
|
|
"noComments": "No comments yet.",
|
|
"writeComment": "Write a comment",
|
|
"postComment": "Post",
|
|
"shareFailed": "Could not open the share sheet.",
|
|
"nowPlaying": "Playing now",
|
|
"watchFullscreen": "Watch in landscape",
|
|
"exitFullscreen": "Exit fullscreen",
|
|
"pictureInPicture": "Picture in picture",
|
|
"pipUnavailable": "Picture in picture is unavailable on this device",
|
|
"originalTag": "Original",
|
|
"dramaTag": "Short drama",
|
|
"episodeLabel": "Episode {number}",
|
|
"@episodeLabel": {"placeholders": {"number": {"type": "int"}}},
|
|
"exploreSeries": "Explore series",
|
|
"episodeCount": "{count} EPISODES",
|
|
"@episodeCount": {"placeholders": {"count": {"type": "int"}}},
|
|
"technicalDemoCount": "FREE PREVIEW · {count} EPISODES",
|
|
"@technicalDemoCount": {"placeholders": {"count": {"type": "int"}}},
|
|
"episodes": "Episodes",
|
|
"watchEpisodeOne": "Watch episode 1",
|
|
"continueEpisode": "Continue episode {number}",
|
|
"@continueEpisode": {"placeholders": {"number": {"type": "int"}}},
|
|
"freeTestMedia": "Same demo clip · free",
|
|
"lockedStoreUnavailable": "Locked · store unavailable",
|
|
"freeTestClip": "Free test clip",
|
|
"locked": "Locked",
|
|
"freeSamplesNotice": "Two free samples · store setup pending",
|
|
"demoTestMedia": "FREE · SAME DEMO CLIP",
|
|
"episodeProgress": "EPISODE {number} / {total}",
|
|
"@episodeProgress": {"placeholders": {"number": {"type": "int"}, "total": {"type": "int"}}},
|
|
"testVideoNotice": "Self-generated technical test video",
|
|
"lockedTitle": "Episode {number} is locked",
|
|
"@lockedTitle": {"placeholders": {"number": {"type": "int"}}},
|
|
"lockedBody": "Unlocking will be available after store and verification setup. This demo does not process payments.",
|
|
"playbackError": "This clip could not be played.",
|
|
"catalogError": "The catalog could not be loaded.",
|
|
"detailError": "The episode list could not be loaded.",
|
|
"noMediaNotice": "This episode has no playable media yet.",
|
|
"noStories": "No stories available yet.",
|
|
"retry": "Retry",
|
|
"backToSeries": "Back to series",
|
|
"nextEpisode": "Next episode",
|
|
"pause": "Pause",
|
|
"play": "Play",
|
|
"seekVideo": "Seek video",
|
|
"seekFailed": "Could not change playback position.",
|
|
"captions": "Captions",
|
|
"captionsOff": "Captions off",
|
|
"englishCaptions": "English captions",
|
|
"chineseCaptions": "Chinese captions",
|
|
"language": "Language",
|
|
"systemLanguage": "System",
|
|
"english": "English",
|
|
"simplifiedChinese": "简体中文",
|
|
"episodeOneTitle": "First Light",
|
|
"episodeTwoTitle": "A New Frequency",
|
|
"episodeThreeTitle": "Crossing Over",
|
|
"episodeFourTitle": "After the Echo",
|
|
"dramaSignalTitle": "The Signal",
|
|
"dramaSignalSynopsis": "A demo series for vertical playback. Every episode reuses one local clip.",
|
|
"dramaCityTitle": "City Lights & Velvet Nights",
|
|
"dramaCitySynopsis": "A demo romance series. The same local video is used to try switching and resume.",
|
|
"dramaVengeanceTitle": "Vengeance Rising",
|
|
"dramaVengeanceSynopsis": "A demo action series. The same local video is used to try switching and resume.",
|
|
"dramaEchoesTitle": "Echoes of Fate",
|
|
"genreSuspenseMystery": "Suspense · Mystery",
|
|
"genreUrbanRomance": "Urban Romance",
|
|
"genreActionThriller": "Action · Thriller",
|
|
"genreDramaMystery": "Drama · Mystery",
|
|
"continueWatchingHeading": "CONTINUE WATCHING",
|
|
"preferencesHeading": "PREFERENCES",
|
|
"brandMark": "NONTONKI · DEMO",
|
|
"shareFooter": "Nontonki demo",
|
|
"shortsTab": "Shorts",
|
|
"myListTab": "My List",
|
|
"watchFull": "Watch Full",
|
|
"swipeForNext": "Swipe up for next",
|
|
"clearScreen": "Clear screen",
|
|
"exitClearScreen": "Exit clear screen",
|
|
"logIn": "Log in",
|
|
"logInHint": "Keep your coins and list",
|
|
"rewards": "Rewards",
|
|
"forYou": "For You",
|
|
"hot": "Hot",
|
|
"newest": "New",
|
|
"favorite": "Favorite",
|
|
"myAccount": "My account",
|
|
"coins": "Coins",
|
|
"topUpWallet": "Top Up Wallet",
|
|
"vipMembership": "VIP Membership",
|
|
"notActive": "Not Active",
|
|
"joinVip": "Join VIP",
|
|
"earnRewards": "Earn Rewards",
|
|
"freeBonus": "Get Free Bonus",
|
|
"watchHistory": "Watch History",
|
|
"settings": "Settings",
|
|
"signOut": "Sign Out",
|
|
"mockUserName": "Vicky sheng",
|
|
"mockUserId": "ID: M1CZWVYE",
|
|
"mockNotice": "Sample data only.",
|
|
"topBadge": "TOP 1",
|
|
"signIn": "Sign In",
|
|
"signUp": "Sign Up",
|
|
"authSignInTitle": "Welcome back",
|
|
"authSignUpTitle": "Create your account",
|
|
"authSubtitle": "Sign in with your email and password.",
|
|
"authEmailLabel": "Email",
|
|
"authPasswordLabel": "Password",
|
|
"authPasswordHint": "At least 8 characters, letters and numbers",
|
|
"authEmailRequired": "Enter your email",
|
|
"authEmailInvalid": "That email doesn't look right",
|
|
"authPasswordRequired": "Enter your password",
|
|
"authPasswordLength": "Password must be 8-64 characters",
|
|
"authPasswordWeak": "Password needs both letters and numbers",
|
|
"authNetworkError": "Network error, please try again",
|
|
"authSwitchToSignUp": "New here? Create an account",
|
|
"authSwitchToSignIn": "Already have an account? Sign in",
|
|
"authGateTitle": "Sign in to continue",
|
|
"authGateMessage": "Favorites and comments need an account.",
|
|
"authGateAction": "Sign In",
|
|
"cancel": "Not now"
|
|
}
|