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
2 changed files with 7 additions and 5 deletions

View File

@@ -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:

View File

@@ -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