Skip to content

Commit

Permalink
chore: updates existing i18n-t tag casing
Browse files Browse the repository at this point in the history
  • Loading branch information
kelsos committed Jul 17, 2023
1 parent 1d8fe8b commit 3227ecf
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 14 deletions.
11 changes: 11 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,15 @@ process.env.ESLINT_TSCONFIG = '.nuxt/tsconfig.json';

module.exports = {
extends: ['plugin:nuxt/recommended', '@rotki'],
rules: {
'vue/component-name-in-template-casing': [
'error',
'PascalCase',
{
registeredComponentsOnly: false,
// components are only exported in kebab-case
ignores: ['i18n-t'],
},
],
},
};
4 changes: 2 additions & 2 deletions components/HeroArea.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ const { t } = useI18n();
<div :class="css.wrapper">
<div :class="css.title">
<div :class="css.column">
<I18nT keypath="home.hero.title" scope="global">
<i18n-t keypath="home.hero.title" scope="global">
<br />
</I18nT>
</i18n-t>
</div>
</div>
<div :class="css.subtitle">
Expand Down
4 changes: 2 additions & 2 deletions components/checkout/pay/SelectedPlanOverview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const css = useCssModule();
<template>
<PlanOverview>
<span :class="css.plan">{{ name }} Plan.</span>
<I18nT keypath="selected_plan_overview.plan" scope="global">
<i18n-t keypath="selected_plan_overview.plan" scope="global">
<template #date>
{{ date }}
</template>
Expand All @@ -81,7 +81,7 @@ const css = useCssModule();
}}
</span>
</template>
</I18nT>
</i18n-t>
<span>
{{
t(
Expand Down
4 changes: 2 additions & 2 deletions components/features/details/ProfitLossReport.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ const css = useCssModule();
<img :class="css.image" alt="Cryptocurrencies" src="/img/crypto.svg" />
</template>
<FeatureDetails>
<I18nT keypath="home.profit_loss_report.detail" scope="global">
<i18n-t keypath="home.profit_loss_report.detail" scope="global">
<br />
</I18nT>
</i18n-t>
</FeatureDetails>
</FeatureContainer>
</template>
Expand Down
4 changes: 2 additions & 2 deletions components/hero/UseApp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ const css = useCssModule();
<div :class="css.column2">
<div :class="css.row">
<div :class="css.text">
<I18nT keypath="home.use_app" scope="global">
<i18n-t keypath="home.use_app" scope="global">
<br />
</I18nT>
</i18n-t>
</div>
</div>
<DownloadButton :class="css.button" @click="emit('download')" />
Expand Down
4 changes: 2 additions & 2 deletions components/premium/details/DexSupport.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ const { t } = useI18n();
{{ t('home.premium_features.features.dex_support.title') }}
</template>

<I18nT
<i18n-t
keypath="home.premium_features.features.dex_support.detail"
scope="global"
>
<br />
</I18nT>
</i18n-t>
</PremiumFeature>
</template>
4 changes: 2 additions & 2 deletions components/premium/details/GraphsStatistics.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ const { t } = useI18n();
{{ t('home.premium_features.features.graphs_and_statistics.title') }}
</template>

<I18nT
<i18n-t
keypath="home.premium_features.features.graphs_and_statistics.detail"
scope="global"
>
<br />
</I18nT>
</i18n-t>
</PremiumFeature>
</template>
4 changes: 2 additions & 2 deletions components/premium/details/PremiumStaking.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ const { t } = useI18n();
{{ t('home.premium_features.features.premium_staking.title') }}
</template>

<I18nT
<i18n-t
keypath="home.premium_features.features.premium_staking.detail"
scope="global"
>
<br />
</I18nT>
</i18n-t>
</PremiumFeature>
</template>

0 comments on commit 3227ecf

Please sign in to comment.