-
Notifications
You must be signed in to change notification settings - Fork 2
Use vue-i18n useI18n/t and add Erlang i18n #21
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,6 +34,7 @@ | |
| "projectDeno": "Dự án Deno", | ||
| "projectBun": "Dự án Bun", | ||
| "projectPerl": "Dự án Perl", | ||
| "projectErlang": "Dự án Erlang", | ||
| "jarPackagePath": "Đường dẫn gói JAR", | ||
| "jdkPath": "Đường dẫn JDK", | ||
| "pythonPath": "Đường dẫn Python", | ||
|
|
@@ -67,5 +68,8 @@ | |
| "copyCommand": "Sao chép lệnh", | ||
| "showFile": "Hiển thị tệp", | ||
| "sticky": "Ghim", | ||
| "dbclickRowToEdit": "Nhấp đúp vào dòng này để chỉnh sửa" | ||
| "dbclickRowToEdit": "Nhấp đúp vào dòng này để chỉnh sửa", | ||
|
|
||
| "OnlineDomain": "Tên miền trực tuyến", | ||
| "LocalDoman": "Tên miền Local" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,7 +21,7 @@ | |
| ></Manager> | ||
| <ProjectIndex | ||
| v-else-if="tab === 2" | ||
| :title="`Erlang ${I18nT('base.projects')}`" | ||
| :title="I18nT('host.projectErlang')" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This component still uses the legacy |
||
| :type-flag="'erlang'" | ||
| > | ||
| </ProjectIndex> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: The removal of
legacy: truefromcreateI18nmakesi18n.global.localeaRef. The direct assignmenti18n.global.locale = lwill fail, breaking language switching.Severity: CRITICAL
Suggested Fix
When
legacy: false(the new default), the locale must be updated by assigning to the.valueproperty of theRef. Changei18n.global.locale = ltoi18n.global.locale.value = lto correctly update the language.Prompt for AI Agent
Did we get this right? 👍 / 👎 to inform future reviews.