mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
fix(editor): Fix i18n usage in design-system (no-changelog) (#9341)
This commit is contained in:
committed by
GitHub
parent
e217473f9e
commit
9003c15811
6
.github/workflows/chromatic.yml
vendored
6
.github/workflows/chromatic.yml
vendored
@@ -1,9 +1,11 @@
|
|||||||
name: Chromatic
|
name: Chromatic
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
|
||||||
- cron: '0 0 * * *'
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- packages/design-system/**
|
||||||
|
- .github/workflows/chromatic.yml
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
chromatic:
|
chromatic:
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { useI18n } from '@/composables/useI18n';
|
import { useI18n } from '../../composables/useI18n';
|
||||||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
|
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
|
||||||
import N8nTooltip from '../N8nTooltip';
|
import N8nTooltip from '../N8nTooltip';
|
||||||
import { ElTag } from 'element-plus';
|
import { ElTag } from 'element-plus';
|
||||||
@@ -20,7 +20,7 @@ defineEmits<{
|
|||||||
(event: 'tooltipClick', $e: MouseEvent): void;
|
(event: 'tooltipClick', $e: MouseEvent): void;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
const i18n = useI18n();
|
const { t } = useI18n();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
@@ -44,7 +44,7 @@ const i18n = useI18n();
|
|||||||
v-if="isTrigger"
|
v-if="isTrigger"
|
||||||
icon="bolt"
|
icon="bolt"
|
||||||
size="xs"
|
size="xs"
|
||||||
:title="i18n.baseText('nodeCreator.nodeItem.triggerIconTitle')"
|
:title="t('nodeCreator.nodeItem.triggerIconTitle')"
|
||||||
:class="$style.triggerIcon"
|
:class="$style.triggerIcon"
|
||||||
/>
|
/>
|
||||||
<N8nTooltip
|
<N8nTooltip
|
||||||
|
|||||||
Reference in New Issue
Block a user