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

feat:流水线变量语法支持两种风格 #10576 #10885

Open
wants to merge 30 commits into
base: master
Choose a base branch
from

Conversation

useryuyu
Copy link
Collaborator

…o issue_10576

# Reviewed, transaction id: 17783
…o issue_10576

# Reviewed, transaction id: 18626
…o issue_10576

# Reviewed, transaction id: 19919
@vhwweng vhwweng closed this Oct 11, 2024
@vhwweng vhwweng reopened this Oct 11, 2024
const pipelineDialectMap = {
'CLASSIC': t('传统风格'),
'CONSTRAINED': t('制约风格'),
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个可以做为一个公共的常量配置,我看挺多地方会用到的,比如下面这个,后续的话如果改到也好维护,国际化翻译方面,也可以直接用这两个常量CLASSIC,CONSTRAINED用Key就行
image

namingStyle: {
CLASSIC: this.$t('traditionalStyle'),
CONSTRAINED: this.$t('constraintStyle')
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里用的又是不同的国际化key,但是内容是一样的

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.

3 participants