
- 创建SettingPage视图,包含用户信息管理、头像设置、昵称编辑等功能。 - 实现SettingViewModel,处理设置页面的业务逻辑,包括头像上传、昵称更新等。 - 添加相机和相册选择功能,支持头像更换。 - 更新MainPage和MainViewModel,添加导航逻辑以支持设置页面的访问。 - 完善本地化支持,确保多语言兼容性。 - 新增相关测试建议,确保功能完整性和用户体验。
225 lines
8.1 KiB
Plaintext
225 lines
8.1 KiB
Plaintext
/*
|
||
Localizable.strings
|
||
yana
|
||
|
||
Created on 2024.
|
||
中文简体本地化文件
|
||
*/
|
||
|
||
// MARK: - 登录界面
|
||
"login.id_login" = "ID 登录";
|
||
"login.email_login" = "邮箱登录";
|
||
"login.app_title" = "E-PARTI";
|
||
"login.agreement_policy" = "同意《用戶服務協議》和《隱私政策》";
|
||
"login.agreement" = "《用戶服務協議》";
|
||
"login.policy" = "《隱私政策》";
|
||
"login.agreement_alert_title" = "提示";
|
||
"login.agreement_alert_message" = "请先同意用户服务协议和隐私政策";
|
||
"login.agreement_alert_confirm" = "确定";
|
||
|
||
// MARK: - 通用按钮
|
||
"common.login" = "登录";
|
||
"common.register" = "注册";
|
||
"common.cancel" = "取消";
|
||
"common.confirm" = "确认";
|
||
"common.ok" = "确定";
|
||
|
||
// MARK: - 错误信息
|
||
"error.network" = "网络错误";
|
||
"error.invalid_input" = "输入无效";
|
||
"error.login_failed" = "登录失败";
|
||
|
||
// MARK: - 占位符文本
|
||
"placeholder.email" = "请输入邮箱";
|
||
"placeholder.password" = "请输入密码";
|
||
"placeholder.username" = "请输入用户名";
|
||
"placeholder.enter_id" = "请输入ID";
|
||
"placeholder.enter_password" = "请输入密码";
|
||
|
||
// MARK: - ID登录页面
|
||
"id_login.title" = "ID 登录";
|
||
"id_login.forgot_password" = "忘记密码?";
|
||
"id_login.login_button" = "登录";
|
||
"id_login.logging_in" = "登录中...";
|
||
"id_login.password" = "密码";
|
||
"id_login.login" = "登录";
|
||
"id_login.user_id" = "用户ID";
|
||
|
||
// MARK: - 邮箱登录页面
|
||
"email_login.title" = "邮箱登录";
|
||
"email_login.email_required" = "请输入邮箱";
|
||
"email_login.invalid_email" = "请输入有效的邮箱地址";
|
||
"email_login.fields_required" = "请输入邮箱和验证码";
|
||
"email_login.get_code" = "获取验证码";
|
||
"email_login.resend_code" = "重新发送";
|
||
"email_login.code_sent" = "验证码已发送";
|
||
"email_login.login_button" = "登录";
|
||
"email_login.logging_in" = "登录中...";
|
||
"email_login.email" = "邮箱";
|
||
"email_login.verification_code" = "验证码";
|
||
"email_login.login" = "登录";
|
||
"placeholder.enter_email" = "请输入邮箱";
|
||
"placeholder.enter_verification_code" = "请输入验证码";
|
||
|
||
// MARK: - 验证和错误信息
|
||
"validation.id_required" = "请输入您的ID";
|
||
"validation.password_required" = "请输入您的密码";
|
||
"error.encryption_failed" = "加密失败,请重试";
|
||
"error.login_failed" = "登录失败,请检查您的凭据";
|
||
|
||
// MARK: - 密码恢复页面
|
||
"recover_password.title" = "找回密码";
|
||
"recover_password.placeholder_email" = "请输入邮箱";
|
||
"recover_password.placeholder_verification_code" = "请输入验证码";
|
||
"recover_password.placeholder_new_password" = "6-16位数字+英文字母";
|
||
"recover_password.get_code" = "获取";
|
||
"recover_password.confirm_button" = "确认";
|
||
"recover_password.email_required" = "请输入邮箱";
|
||
"recover_password.invalid_email" = "请输入有效的邮箱地址";
|
||
"recover_password.fields_required" = "请填写所有字段";
|
||
"recover_password.invalid_password" = "密码必须是6-16位数字和字母";
|
||
"recover_password.code_send_failed" = "验证码发送失败";
|
||
"recover_password.reset_failed" = "密码重置失败";
|
||
"recover_password.reset_success" = "密码重置成功";
|
||
"recover_password.resetting" = "重置中...";
|
||
|
||
// MARK: - 主页
|
||
"home.title" = "享受您的生活时光";
|
||
|
||
"createFeed.enterContent" = "输入内容";
|
||
"createFeed.processingImages" = "处理图片中...";
|
||
"createFeed.publishing" = "发布中...";
|
||
"createFeed.publish" = "发布";
|
||
"createFeed.title" = "图文发布";
|
||
|
||
"editFeed.title" = "图文发布";
|
||
"editFeed.publish" = "发布";
|
||
"editFeed.enterContent" = "输入内容";
|
||
|
||
"feedList.title" = "享受您的生活时光";
|
||
"feedList.slogan" = "疾病如同残酷的统治者,\n而时间是我们最宝贵的财富。\n我们活着的每一刻,都是对不可避免命运的胜利。";
|
||
"feedList.empty" = "暂无动态";
|
||
|
||
"feed.title" = "享受您的生活时光";
|
||
"feed.empty" = "暂无动态内容";
|
||
"feed.error" = "错误: %@";
|
||
"feed.retry" = "重试";
|
||
"feed.loadingMore" = "加载更多...";
|
||
|
||
"splash.title" = "E-Parti";
|
||
|
||
"setting.title" = "设置";
|
||
"setting.user" = "用户";
|
||
"setting.language" = "语言设置";
|
||
"setting.about" = "关于我们";
|
||
"setting.version" = "版本信息";
|
||
"setting.logout" = "退出登录";
|
||
|
||
"me.title" = "我的";
|
||
"me.nickname" = "用户昵称";
|
||
"me.id" = "ID: %@";
|
||
"language.select" = "选择语言";
|
||
"language.current" = "当前语言";
|
||
"language.info" = "语言信息";
|
||
"feed.user" = "用户%d";
|
||
"feed.2hoursago" = "2小时前";
|
||
"feed.demoContent" = "今天是美好的一天,分享一些生活中的小确幸。希望大家都能珍惜每一个当下的时刻。";
|
||
"feed.vip" = "VIP%d";
|
||
|
||
// MARK: - App Setting
|
||
"appSetting.title" = "编辑";
|
||
"appSetting.nickname" = "昵称";
|
||
"appSetting.personalInfoPermissions" = "个人信息与权限";
|
||
"appSetting.help" = "帮助";
|
||
"appSetting.clearCache" = "清除缓存";
|
||
"appSetting.checkUpdates" = "检查更新";
|
||
"appSetting.logout" = "退出登录";
|
||
"appSetting.aboutUs" = "关于我们";
|
||
"appSetting.aboutUs.title" = "关于我们";
|
||
"appSetting.logoutConfirmation.title" = "确认退出";
|
||
"appSetting.logoutConfirmation.confirm" = "确认退出";
|
||
"appSetting.logoutConfirmation.message" = "确定要退出当前账户吗?";
|
||
"appSetting.deactivateAccount" = "注销帐号";
|
||
"appSetting.logoutAccount" = "退出账户";
|
||
"app_settings.not_set" = "未设置";
|
||
|
||
// MARK: - Detail
|
||
"detail.title" = "享受你的生活";
|
||
|
||
// MARK: - Edit Feed
|
||
"edit_feed.uploading_progress" = "正在上传图片...%d%%";
|
||
|
||
// MARK: - Web View
|
||
"web_view.load_failed" = "无法加载页面";
|
||
"web_view.open_webpage" = "打开网页";
|
||
|
||
// MARK: - Language Settings
|
||
"language_settings.select_language" = "选择语言";
|
||
"language_settings.current_language" = "当前语言";
|
||
"language_settings.language_info" = "语言信息";
|
||
"language_settings.test_area" = "语言切换测试";
|
||
"language_settings.test_region" = "测试区域";
|
||
"language_settings.token_success" = "✅ Token 获取成功";
|
||
"language_settings.bucket" = "存储桶: %@";
|
||
"language_settings.region" = "地域: %@";
|
||
"language_settings.app_id" = "应用ID: %@";
|
||
"language_settings.custom_domain" = "自定义域名: %@";
|
||
"language_settings.accelerate_enabled" = "启用";
|
||
"language_settings.accelerate_disabled" = "禁用";
|
||
"language_settings.accelerate_status" = "加速: %@";
|
||
"language_settings.expiration_date" = "过期时间: %@";
|
||
"language_settings.remaining_time" = "剩余时间: %d秒";
|
||
"language_settings.test_cos_token" = "测试腾讯云 COS Token";
|
||
"language_settings.title" = "语言设置";
|
||
|
||
// MARK: - App Settings
|
||
"app_settings.error" = "错误";
|
||
"app_settings.confirm" = "确定";
|
||
"app_settings.nickname_limit" = "昵称最长15个字符";
|
||
"app_settings.take_photo" = "拍照";
|
||
"app_settings.select_from_album" = "从相册选择";
|
||
|
||
// MARK: - Test
|
||
"test.test_page" = "测试页面";
|
||
"test.test_description" = "这是一个测试用的页面\n用于验证导航跳转功能";
|
||
"test.test_button" = "测试按钮";
|
||
"test.back" = "返回";
|
||
|
||
// MARK: - Image Picker
|
||
"image_picker.loading_image" = "加载图片中...";
|
||
"image_picker.cancel" = "取消";
|
||
"image_picker.confirm" = "确认";
|
||
|
||
// MARK: - Content View
|
||
"content_view.log_level" = "日志级别:";
|
||
"content_view.no_log" = "无日志";
|
||
"content_view.basic_log" = "基础日志";
|
||
"content_view.detailed_log" = "详细日志";
|
||
"content_view.api_test_result" = "API 测试结果:";
|
||
"content_view.status" = "状态: %@";
|
||
"content_view.message" = "消息: %@";
|
||
"content_view.version" = "版本: %@";
|
||
"content_view.unknown" = "未知";
|
||
"content_view.timestamp" = "时间戳: %d";
|
||
"content_view.config" = "配置:";
|
||
|
||
// MARK: - Screen Adapter
|
||
"screen_adapter.method1" = "方法1: 直接调用";
|
||
"screen_adapter.method2" = "方法2: View Extension";
|
||
"screen_adapter.method3" = "方法3: 比例计算";
|
||
|
||
// MARK: - Config
|
||
"config.api_test" = "API 配置测试";
|
||
"config.loading" = "正在加载配置...";
|
||
"config.error" = "错误";
|
||
"config.feature_list" = "功能列表";
|
||
"config.settings" = "设置";
|
||
"config.last_updated" = "最后更新: %@";
|
||
"config.click_to_load" = "点击下方按钮加载配置";
|
||
"config.use_new_tca" = "使用新的 TCA API 组件";
|
||
"config.clear_error" = "清除错误";
|
||
"config.version" = "版本";
|
||
"config.debug_mode" = "调试模式";
|
||
"config.api_timeout" = "API 超时";
|
||
"config.max_retries" = "最大重试次数";
|