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

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

Merged
merged 3 commits into from
May 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -20,7 +20,7 @@ defineEmits<{
(event: 'tooltipClick', $e: MouseEvent): void;
}>();

const i18n = useI18n();
const { t } = useI18n();
</script>

<template>
Expand All @@ -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
Expand Down
Loading