Skip to content

Commit c5faf4c

Browse files
committed
$t
1 parent 88b2745 commit c5faf4c

5 files changed

Lines changed: 31 additions & 7 deletions

File tree

app/components/Package/TrendsChart.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1714,12 +1714,12 @@ watch(selectedMetric, value => {
17141714
:class="showFilterControls ? 'i-lucide:chevron-down' : 'i-lucide:chevron-right'"
17151715
aria-hidden="true"
17161716
/>
1717-
Filters
1717+
{{ $t('package.trends.filters') }}
17181718
</button>
17191719
<div v-if="showFilterControls" class="flex items-end gap-3">
17201720
<label class="flex flex-col gap-1 flex-1">
17211721
<span class="text-2xs font-mono text-fg-subtle tracking-wide uppercase">
1722-
Average
1722+
{{ $t('package.trends.average') }}
17231723
<span class="text-fg-muted">({{ settings.chartFilter.averageWindow }})</span>
17241724
</span>
17251725
<input
@@ -1733,7 +1733,7 @@ watch(selectedMetric, value => {
17331733
</label>
17341734
<label class="flex flex-col gap-1 flex-1">
17351735
<span class="text-2xs font-mono text-fg-subtle tracking-wide uppercase">
1736-
Smoothing
1736+
{{ $t('package.trends.smoothing') }}
17371737
<span class="text-fg-muted">({{ settings.chartFilter.smoothingTau }})</span>
17381738
</span>
17391739
<input
@@ -1753,7 +1753,7 @@ watch(selectedMetric, value => {
17531753
type="checkbox"
17541754
class="accent-[var(--accent-color,var(--fg-subtle))]"
17551755
/>
1756-
Anomalies fixed
1756+
{{ $t('package.trends.anomalies_fixed') }}
17571757
</label>
17581758
</div>
17591759
</div>

i18n/locales/en.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,11 @@
374374
"contributors": "Contributors"
375375
},
376376
"play_animation": "Play animation",
377-
"pause_animation": "Pause animation"
377+
"pause_animation": "Pause animation",
378+
"filters": "Filters",
379+
"average": "Average",
380+
"smoothing": "Smoothing",
381+
"anomalies_fixed": "Anomalies fixed"
378382
},
379383
"downloads": {
380384
"title": "Weekly Downloads",

i18n/schema.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,6 +1128,18 @@
11281128
},
11291129
"pause_animation": {
11301130
"type": "string"
1131+
},
1132+
"filters": {
1133+
"type": "string"
1134+
},
1135+
"average": {
1136+
"type": "string"
1137+
},
1138+
"smoothing": {
1139+
"type": "string"
1140+
},
1141+
"anomalies_fixed": {
1142+
"type": "string"
11311143
}
11321144
},
11331145
"additionalProperties": false

lunaria/files/en-GB.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,11 @@
373373
"contributors": "Contributors"
374374
},
375375
"play_animation": "Play animation",
376-
"pause_animation": "Pause animation"
376+
"pause_animation": "Pause animation",
377+
"filters": "Filters",
378+
"average": "Average",
379+
"smoothing": "Smoothing",
380+
"anomalies_fixed": "Anomalies fixed"
377381
},
378382
"downloads": {
379383
"title": "Weekly Downloads",

lunaria/files/en-US.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,11 @@
373373
"contributors": "Contributors"
374374
},
375375
"play_animation": "Play animation",
376-
"pause_animation": "Pause animation"
376+
"pause_animation": "Pause animation",
377+
"filters": "Filters",
378+
"average": "Average",
379+
"smoothing": "Smoothing",
380+
"anomalies_fixed": "Anomalies fixed"
377381
},
378382
"downloads": {
379383
"title": "Weekly Downloads",

0 commit comments

Comments
 (0)