fix(editor): Fix i18n usage in design-system (no-changelog) (#9341)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2024-05-08 14:33:53 +02:00 committed by GitHub
parent e217473f9e
commit 9003c15811
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 5 deletions

View file

@ -1,9 +1,11 @@
name: Chromatic
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
pull_request:
paths:
- packages/design-system/**
- .github/workflows/chromatic.yml
jobs:
chromatic:

View file

@ -1,5 +1,5 @@
<script setup lang="ts">
import { useI18n } from '@/composables/useI18n';
import { useI18n } from '../../composables/useI18n';
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
import N8nTooltip from '../N8nTooltip';
import { ElTag } from 'element-plus';
@ -20,7 +20,7 @@ defineEmits<{
(event: 'tooltipClick', $e: MouseEvent): void;
}>();
const i18n = useI18n();
const { t } = useI18n();
</script>
<template>
@ -44,7 +44,7 @@ const i18n = useI18n();
v-if="isTrigger"
icon="bolt"
size="xs"
:title="i18n.baseText('nodeCreator.nodeItem.triggerIconTitle')"
:title="t('nodeCreator.nodeItem.triggerIconTitle')"
:class="$style.triggerIcon"
/>
<N8nTooltip