audio_vibe/findings.md
2026-05-30 20:54:38 +08:00

12 lines
1.1 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 多语言与硬编码文案发现记录
## 当前发现
- 默认 `values/strings.xml` 现在有 243 个 key。
- 22 个本地化 `values-xx/strings.xml` 均已补齐到同一组 key,无缺失、无多余。
- Kotlin 中剩余中文硬编码只存在于语言原生名和 `fallbackStrings.chinese`,属于语言显示名,不需要迁移。
- 剩余扫描到的硬编码 UI 文本为符号、格式化拼接或日志表头,例如 `—`、`▼`、进度/速度拼接,不作为可翻译文案处理。
- 播放页和底部播放条的 toast 来源是 `PlaybackState.errorMessage`,需要继续检查 `AudioPlaybackController` 内部错误文案。
- Compose 界面使用 `LocalAppStrings` 已经跟随用户语言;Repository、Service、ViewModel 内部直接 `context.getString()` 的提示会跟随系统语言,需要统一走语言解析器。
- 非 Compose 层剩余 `getString(R.string...)` 点复查后,除 `AppLanguage` 构建语言包外,业务代码已全部改为 `AppStringResolver` 或 `LocalAppStrings`。
- 播放通知 action label 和反馈邮件标题/正文也属于用户可见文本,需要跟随用户语言设置。