Skip to content

Conversation

ozp
Copy link

@ozp ozp commented Aug 5, 2025

🎯 目标

为NoteGen应用程序添加葡萄牙语(pt)语言支持。

✅ 更改内容

  • 添加葡萄牙语翻译文件(messages/pt.json
  • 更新中间件以在支持的语言中包含'pt'
  • 在语言选择器组件中添加葡萄牙语选项
  • 更新TypeScript接口以支持葡萄牙语

🧪 测试

  • ✅ 构建成功(生成27MB .deb文件)
  • ✅ 所有翻译键正确映射
  • ✅ 语言切换功能正常工作

📁 修改的文件

  • messages/pt.json(包含完整葡萄牙语翻译的新文件)
  • middleware.ts(在支持的语言中添加'pt')
  • chat-language.tsx(添加葡萄牙语选项)
  • page.tsx(更新LanguageType接口)

准备好接受审查!🚀

  • Add "Português" option to chat language selector
  • Add 'pt' to supported locales in i18n configuration
  • Create messages/pt.json with Portuguese translations
  • Enable Portuguese language selection in chat interface

- Add "Português" option to chat language selector
- Add 'pt' to supported locales in i18n configuration
- Create messages/pt.json with Portuguese translations
- Enable Portuguese language selection in chat interface
@codexu
Copy link
Owner

codexu commented Aug 11, 2025

我对葡萄牙语不了解,好像 pt.json 中全都是英语,并未翻译。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants