mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
feat(editor): Use i18n component instead od v-html for localization
* feat(editor): Export i18n instance and bind it to Vue instance * feat(editor): Audit usage of v-html and replace with alternatives where possible * 🔀 Fix conflicted element in RunDataTable * ♻️ Refactor issues elements with the new TitledList component * 🐛 Fixing unknown node modal dialog content rendering Co-authored-by: Milorad Filipovic <milorad@n8n.io>
This commit is contained in:
@@ -28,11 +28,14 @@
|
||||
</div>
|
||||
<div v-if="isCommunityNode" :class="$style.descriptionContainer">
|
||||
<div class="mb-l">
|
||||
<span
|
||||
v-html="$locale.baseText('nodeSettings.communityNodeUnknown.description', { interpolate: { packageName: node.type.split('.')[0] } })"
|
||||
@click="onMissingNodeTextClick"
|
||||
>
|
||||
</span>
|
||||
<i18n path="nodeSettings.communityNodeUnknown.description" tag="span" @click="onMissingNodeTextClick">
|
||||
<template #action>
|
||||
<a
|
||||
:href="`https://www.npmjs.com/package/${node.type.split('.')[0]}`"
|
||||
target="_blank"
|
||||
>{{ node.type.split('.')[0] }}</a>
|
||||
</template>
|
||||
</i18n>
|
||||
</div>
|
||||
<n8n-link
|
||||
:to="COMMUNITY_NODES_INSTALLATION_DOCS_URL"
|
||||
@@ -41,14 +44,15 @@
|
||||
{{ $locale.baseText('nodeSettings.communityNodeUnknown.installLink.text') }}
|
||||
</n8n-link>
|
||||
</div>
|
||||
<span v-else
|
||||
v-html="
|
||||
$locale.baseText('nodeSettings.nodeTypeUnknown.description',
|
||||
{
|
||||
interpolate: { docURL: CUSTOM_NODES_DOCS_URL }
|
||||
})
|
||||
">
|
||||
</span>
|
||||
<i18n v-else path="nodeSettings.nodeTypeUnknown.description" tag="span">
|
||||
<template #action>
|
||||
<a
|
||||
:href="CUSTOM_NODES_DOCS_URL"
|
||||
target="_blank"
|
||||
v-text="$locale.baseText('nodeSettings.nodeTypeUnknown.description.customNode')"
|
||||
/>
|
||||
</template>
|
||||
</i18n>
|
||||
</div>
|
||||
<div class="node-parameters-wrapper" v-if="node && nodeValid">
|
||||
<div v-show="openPanel === 'params'">
|
||||
|
||||
Reference in New Issue
Block a user