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

[i18n] Safe fallback to original string #1838

Merged
merged 2 commits into from
Dec 7, 2024
Merged

[i18n] Safe fallback to original string #1838

merged 2 commits into from
Dec 7, 2024

Conversation

huchenlei
Copy link
Member

Resolves #1834

The root cause of the issue is that in node name / description, some custom nodes are using reserved chars for i18n messages in vue-i18n. This PR adds a extra safe translate method st to check for existense of the key first then fallback to the extact original message instead of trying to interpret the message.

Ref: https://vue-i18n.intlify.dev/guide/essentials/syntax#special-characters

@huchenlei huchenlei requested a review from a team as a code owner December 7, 2024 22:14
@huchenlei huchenlei added the i18n Anything related to translation label Dec 7, 2024
@huchenlei huchenlei merged commit c17d446 into main Dec 7, 2024
10 checks passed
@huchenlei huchenlei deleted the safe_translate branch December 7, 2024 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
i18n Anything related to translation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Comfyui keeps loading. -> Bug on the latest version v1.5.8
1 participant