完成英文翻译并添加语言切换功能#590
Open
aionoslondon wants to merge 9 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
你好,
感谢你开发了这个非常实用的音乐标签管理工具。我一直在使用它,并发现目前界面是中文的,对英文用户不太友好。因此,我完成了以下工作:
修改内容
完整英文翻译
web/src/i18n/index.js中的英文部分补全web/src/views/home/home.vue中所有硬编码的中文文本(placeholder、标签、按钮等)web/src/views/user/login.vue中的登录界面文本添加语言切换功能
web/src/components/LanguageSwitcher.vue组件App.vue中添加了语言切换器,用户可随时切换中英文localStorage中,刷新页面后保持更新相关配置
localStorage读取用户语言偏好测试说明
我已经在本地环境中测试了所有翻译和语言切换功能,目前运行正常。不过,由于项目依赖
node-sass,在 Node.js 16 环境下编译时有一些警告,但功能不受影响。如果您的开发环境使用了不同的 Node.js 版本,可能不会有这些问题。关于贡献
注意到这个项目还没有其他贡献者,希望我的翻译能帮助更多用户使用这个优秀的工具。如果有任何需要修改的地方,请随时告诉我,我会尽快调整。
感谢你的工作!