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

fix: lark document i18n error #2671

Merged
merged 1 commit into from
Mar 25, 2025
Merged

fix: lark document i18n error #2671

merged 1 commit into from
Mar 25, 2025

Conversation

shaohuzhang1
Copy link
Contributor

fix: lark document i18n error --bug=1053850 --user=王孝刚 [知识库]英文语言模式-添加飞书文档页面未国际化&提示的翻译错误 https://www.tapd.cn/57709429/s/1675482

--bug=1053850 --user=王孝刚 [知识库]英文语言模式-添加飞书文档页面未国际化&提示的翻译错误 https://www.tapd.cn/57709429/s/1675482
Copy link

f2c-ci-robot bot commented Mar 25, 2025

Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Copy link

f2c-ci-robot bot commented Mar 25, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

appIdPlaceholder: 'Please enter APP ID',
appSecretPlaceholder: 'Please enter APP secret',
appIdPlaceholder: 'Please enter App ID',
appSecretPlaceholder: 'Please enter App secret',
verificationTokenPlaceholder: 'Please enter verification token',
urlInfo:
'-Events and callbacks - event configuration - configure the "request address" of the subscription method',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The code is correct and doesn't contain any irregularities or potential issues. The only change you made is to capitalize the word "App" in the appIdPlaceholder, which is a stylistic preference rather than functional. However, both original placeholders were already correctly formatted.

No optimization suggestions are necessary for this simple object definition in JavaScript.

@@ -151,7 +151,7 @@
:placeholder="$t('views.application.applicationAccess.larkSetting.appIdPlaceholder')"
/>
</el-form-item>
<el-form-item label="App Secret" prop="app_id" v-if="datasetForm.type === '2'">
<el-form-item label="App Secret" prop="app_secret" v-if="datasetForm.type === '2'">
<el-input
v-model="datasetForm.app_secret"
type="password"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The provided code has a few minor issues:

  1. The placeholder text "App ID Placeholder" in the v-text directive is incorrectly spelled as "larkSetting".
  2. The attribute name used for binding to the datasetForm.app_secret in the input field should match the property key in the data object.

Here are the corrected lines of code:

@@ -151,7 +151,7 @@
           :placeholder="$t('views.application.applicationAccess.larkSetting.appIdPlaceholder')"
         />
       </el-form-item>
-      <el-form-item label="App Secret" prop="app_id" v-if="datasetForm.type === '2'">
+      <el-form-item label="App Secret" prop="app_secret" v-if="datasetForm.type === '2'">
         <el-input
           v-model="datasetForm.app_secret"
           type="password"

These changes ensure that the correct placeholders and form items are used throughout the component.

@@ -3,6 +3,7 @@ export default {
createDataset: 'Create Knowledge',
general: 'General',
web: 'Web Site',
lark: 'Lark',
relatedApplications: 'Linked App',
document_count: 'docs',
relatedApp_count: 'linked apps',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The provided code is syntactically correct, free from grammatical errors, and does not contain significant optimization opportunities within its current structure. However, if you have additional context about how this code block will be used or if there are specific performance considerations related to locale handling or other areas, I can offer further feedback on those specifics.

@wxg0103 wxg0103 merged commit 82b06d1 into main Mar 25, 2025
4 of 5 checks passed
@wxg0103 wxg0103 deleted the pr@main@fix_1053850 branch March 25, 2025 02:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants