Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问可以支持 VSCODE 的 i18n Ally吗 #40

Open
eachann1024 opened this issue May 30, 2024 · 2 comments
Open

请问可以支持 VSCODE 的 i18n Ally吗 #40

eachann1024 opened this issue May 30, 2024 · 2 comments

Comments

@eachann1024
Copy link

RT

@eachann1024
Copy link
Author

先 star

@zhangfisher
Copy link
Owner

i18n Ally是一个非常棒的多语言辅助插件。

VoerkaI18n的设计理念与其他多语言方案一个显著的不同就是,不需要使用key

在其他多语言方案中一般是通过,指定key来查表的,如:

t('Layout configuration')
t("twoColumnsMenuBarColor")
t("twoIsColumnsMenuBarColorGradual")
t("twoIsColumnsMenuHoverPreload")
t("threeTitle")
t("threeIsCollapse")

这导致一个问题,不符合直觉,实际编码时不能直观地知道内容是什么,又时要取一个有意义的key也是让人头疼的。

因此,i18n Ally的核心功能就是让我们可以类型提示,也可以进行实时反向显示,就是因为不直观,才需要i18n Ally插件的帮助。

VoerkaI18n则抛弃了这种设计机制,直接在代码中使用t("布局")这种翻译机制,再通过一系列工具链完成自动化工作,所以是不需要i18n Ally来做辅助的。

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

No branches or pull requests

2 participants