Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
<mt-banner
v-if="hasCurrencyMismatch"
class="swag-migration-confirm-warning__banner"
:title="$tc('swag-migration.index.confirmWarningCard.currencyMismatch.title')"
:title="$t('swag-migration.index.confirmWarningCard.currencyMismatch.title')"
variant="attention"
>
{{ $tc('swag-migration.index.confirmWarningCard.currencyMismatch.text', { sourceSystemCurrency, targetSystemCurrency }, 0) }}
{{ $t('swag-migration.index.confirmWarningCard.currencyMismatch.text', { sourceSystemCurrency, targetSystemCurrency }, 0) }}
</mt-banner>

<mt-banner
v-if="hasLanguageMismatch"
class="swag-migration-confirm-warning__banner"
:title="$tc('swag-migration.index.confirmWarningCard.languageMismatch.title')"
:title="$t('swag-migration.index.confirmWarningCard.languageMismatch.title')"
variant="attention"
>
{{ $tc('swag-migration.index.confirmWarningCard.languageMismatch.text', { sourceSystemLanguage, targetSystemLanguage }, 0) }}
{{ $t('swag-migration.index.confirmWarningCard.languageMismatch.text', { sourceSystemLanguage, targetSystemLanguage }, 0) }}
</mt-banner>
</div>
{% endblock %}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<swag-migration-tab-card
v-if="!isLoading && premapping.length > 0"
class="swag-migration-premapping__tab-card"
:title="$tc('swag-migration.index.premappingCard.cardTitle')"
:title="$t('swag-migration.index.premappingCard.cardTitle')"
:items="premapping"
>
<template #items="{ item }">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,23 +125,23 @@ export default Shopware.Component.wrapComponentConfig({

updateBannerTitle() {
if (this.isResettingChecksum) {
return this.$tc('swag-migration.index.shopInfoCard.updateBanner.isResettingChecksums.title');
return this.$t('swag-migration.index.shopInfoCard.updateBanner.isResettingChecksums.title');
}

if (this.isTruncatingMigration) {
return this.$tc('swag-migration.index.shopInfoCard.updateBanner.isTruncatingMigration.title');
return this.$t('swag-migration.index.shopInfoCard.updateBanner.isTruncatingMigration.title');
}

return '';
},

updateBannerMessage() {
if (this.isResettingChecksum) {
return this.$tc('swag-migration.index.shopInfoCard.updateBanner.isResettingChecksums.message');
return this.$t('swag-migration.index.shopInfoCard.updateBanner.isResettingChecksums.message');
}

if (this.isTruncatingMigration) {
return this.$tc('swag-migration.index.shopInfoCard.updateBanner.isTruncatingMigration.message');
return this.$t('swag-migration.index.shopInfoCard.updateBanner.isTruncatingMigration.message');
}

return '';
Expand All @@ -150,7 +150,7 @@ export default Shopware.Component.wrapComponentConfig({
connectionName() {
return this.connection !== null
? this.connection.name
: this.$tc('swag-migration.index.shopInfoCard.noConnection');
: this.$t('swag-migration.index.shopInfoCard.noConnection');
},

connectionBadgeLabel() {
Expand Down Expand Up @@ -398,8 +398,8 @@ export default Shopware.Component.wrapComponentConfig({
} catch {
this.unregisterPolling(type);
this.createNotificationError({
title: this.$tc('global.default.error'),
message: this.$tc('swag-migration.api-error.getState'),
title: this.$t('global.default.error'),
message: this.$t('swag-migration.api-error.getState'),
});
}
},
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ export default Shopware.Component.wrapComponentConfig({

computed: {
progressBarLeftPointDescription() {
return this.$tc(`swag-migration.index.loadingScreenCard.status.${this.step}.short`);
return this.$t(`swag-migration.index.loadingScreenCard.status.${this.step}.short`);
},

caption() {
return this.$tc(`swag-migration.index.loadingScreenCard.status.${this.step}.caption`);
return this.$t(`swag-migration.index.loadingScreenCard.status.${this.step}.caption`);
},

statusLong() {
return this.$tc(`swag-migration.index.loadingScreenCard.status.${this.step}.long`);
return this.$t(`swag-migration.index.loadingScreenCard.status.${this.step}.long`);
},
},
});
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
class="swag-migration-loading-screen__notice"
variant="info"
>
<span>{{ $tc('swag-migration.index.loadingScreenCard.notice') }}</span>
<span>{{ $t('swag-migration.index.loadingScreenCard.notice') }}</span>
<mt-link
as="a"
:to="$tc('swag-migration.index.loadingScreenCard.documentationLink')"
:to="$t('swag-migration.index.loadingScreenCard.documentationLink')"
type="external"
target="_blank"
>
{{ $tc('swag-migration.index.loadingScreenCard.documentationLinkText') }}
{{ $t('swag-migration.index.loadingScreenCard.documentationLinkText') }}
</mt-link>
</mt-banner>

Expand All @@ -41,7 +41,7 @@
{% block swag_migration_index_loading_screen_progress_bar %}
<swag-migration-progress-bar
:left-point-description="progressBarLeftPointDescription"
:right-point-description="$tc('swag-migration.index.loadingScreenCard.status.finish')"
:right-point-description="$t('swag-migration.index.loadingScreenCard.status.finish')"
:value="progress"
:max-value="total"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
class="swag-migration-result-screen__log-summary"
position-identifier="swag-migration-result-screen__log-summary"
:is-loading="!latestRun"
:title="$tc('swag-migration.index.loadingScreenCard.result.title')"
:title="$t('swag-migration.index.loadingScreenCard.result.title')"
>
<mt-banner
class="swag-migration-result-screen__log-summary-banner"
variant="info"
>
{{ $tc('swag-migration.index.loadingScreenCard.result.historyHint') }}
{{ $t('swag-migration.index.loadingScreenCard.result.historyHint') }}
</mt-banner>

<swag-migration-history-detail-errors
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{% block swag_migration_dashboard_card_title %}
<template #title>
<span class="swag-migration-dashboard-card__title">
{{ $tc('swag-migration.dashboard.title') }}
{{ $t('swag-migration.dashboard.title') }}
</span>
</template>
{% endblock %}
Expand All @@ -25,21 +25,21 @@
<div class="swag-migration-dashboard-card__left-content">
{% block swag_migration_dashboard_card_headline %}
<div class="swag-migration-dashboard-card__headline">
{{ $tc('swag-migration.dashboard.headline') }}
{{ $t('swag-migration.dashboard.headline') }}
</div>
{% endblock %}

{% block swag_migration_dashboard_card_information %}
<div class="swag-migration-dashboard-card__information">
{{ $tc('swag-migration.dashboard.information') }}
{{ $t('swag-migration.dashboard.information') }}
</div>
{% endblock %}

{% block swag_migration_dashboard_card_button %}
<mt-button variant="primary"
@click="goToMigrationIndexPage"
>
{{ $tc('swag-migration.dashboard.button') }}
{{ $t('swag-migration.dashboard.button') }}
</mt-button>
{% endblock %}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default Shopware.Component.wrapComponentConfig({
},

modalTitle(): string {
return this.$tc('swag-migration.index.error-resolution.modals.details.title', { entityName: this.entityName });
return this.$t('swag-migration.index.error-resolution.modals.details.title', { entityName: this.entityName });
},
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
v-if="convertedData"
class="swag-migration-error-resolution-details-modal__code-editor-converted-data"
name="migration-resolution-details-modal--code-editor"
:label="$tc('swag-migration.index.error-resolution.modals.details.convertedDataLabel')"
:label="$t('swag-migration.index.error-resolution.modals.details.convertedDataLabel')"
:value="convertedData"
/>
{% endblock %}
Expand All @@ -21,7 +21,7 @@
v-if="sourceData"
class="swag-migration-error-resolution-details-modal__code-editor-source-data"
name="migration-resolution-details-modal--code-editor"
:label="$tc('swag-migration.index.error-resolution.modals.details.sourceDataLabel')"
:label="$t('swag-migration.index.error-resolution.modals.details.sourceDataLabel')"
:value="sourceData"
/>
{% endblock %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@
<mt-banner
v-if="noOptionsFound"
class="swag-migration-error-resolution-field-relation__info-banner"
:title="$tc('swag-migration.index.error-resolution.modals.error.right.banner.title')"
:title="$t('swag-migration.index.error-resolution.modals.error.right.banner.title')"
variant="critical"
>
<p>{{ $tc('swag-migration.index.error-resolution.modals.error.right.banner.content') }}</p>
<p>{{ $t('swag-migration.index.error-resolution.modals.error.right.banner.content') }}</p>

<mt-link
v-if="entityLink"
Expand All @@ -61,7 +61,7 @@
variant="primary"
type="internal"
>
{{ $tc('swag-migration.index.error-resolution.modals.error.right.banner.link') }}
{{ $t('swag-migration.index.error-resolution.modals.error.right.banner.link') }}
</mt-link>
</mt-banner>
{% endblock %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<div class="swag-migration-error-resolution-field-unhandled">
<mt-banner
class="swag-migration-error-resolution-field-unhandled__banner"
:title="$tc('swag-migration.index.error-resolution.modals.error.right.unhandledBanner.title')"
:title="$t('swag-migration.index.error-resolution.modals.error.right.unhandledBanner.title')"
variant="attention"
>
{{ $tc('swag-migration.index.error-resolution.modals.error.right.unhandledBanner.content') }}
{{ $t('swag-migration.index.error-resolution.modals.error.right.unhandledBanner.content') }}
</mt-banner>

<sw-code-editor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export default Shopware.Component.wrapComponentConfig({
this.exampleValue = response?.example ?? null;
} catch {
this.createNotificationError({
message: this.$tc('swag-migration.index.error-resolution.errors.fetchExampleFailed'),
message: this.$t('swag-migration.index.error-resolution.errors.fetchExampleFailed'),
});
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
v-if="effectiveEntityField?.description"
class="swag-migration-error-resolution-field__description-banner"
variant="neutral"
:title="$tc('swag-migration.index.error-resolution.descriptionTitle')"
:title="$t('swag-migration.index.error-resolution.descriptionTitle')"
:hide-icon="true"
>
"{{ effectiveEntityField.description }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@ export default Shopware.Component.wrapComponentConfig({
return [
{
value: 'resolved',
label: this.$tc('swag-migration.index.error-resolution.step.card.filter.status.options.resolved'),
label: this.$t('swag-migration.index.error-resolution.step.card.filter.status.options.resolved'),
},
{
value: 'unresolved',
label: this.$tc('swag-migration.index.error-resolution.step.card.filter.status.options.unresolved'),
label: this.$t('swag-migration.index.error-resolution.step.card.filter.status.options.unresolved'),
},
];
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="swag-migration-error-resolution-log-filter">
<mt-popover
class="swag-migration-error-resolution-log-filter__popover"
:title="$tc('swag-migration.index.error-resolution.step.card.filter.title', { count: filterCount })"
:title="$t('swag-migration.index.error-resolution.step.card.filter.title', { count: filterCount })"
:child-views="[{ name: 'base' }]"
width="large"
@update:isOpened="onPopoverOpenChange"
Expand All @@ -23,7 +23,7 @@
/>
</template>

<span>{{ $tc('swag-migration.index.error-resolution.step.card.filter.title', { count: filterCount }) }}</span>
<span>{{ $t('swag-migration.index.error-resolution.step.card.filter.title', { count: filterCount }) }}</span>
</mt-button>
{% endblock %}
</template>
Expand Down Expand Up @@ -86,7 +86,7 @@
variant="critical"
@click="onReset"
>
{{ $tc('swag-migration.index.error-resolution.step.card.filter.reset') }}
{{ $t('swag-migration.index.error-resolution.step.card.filter.reset') }}
</mt-link>
{% endblock %}
</div>
Expand Down
Loading
Loading