Skip to content

Commit 92147d0

Browse files
committed
fix(i18n): show the right kept-fields toast and fall back for unknown routine frequency and activity window (TM-286)
1 parent cc4a690 commit 92147d0

3 files changed

Lines changed: 11 additions & 4 deletions

File tree

‎src/components/categories/CategorySettingsPane.vue‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1034,7 +1034,9 @@
10341034
initial.value = current();
10351035
if (kept.length) {
10361036
notify(
1037-
t(`board.categories.pane.toasts.kept.${kept.join('And')}`),
1037+
t(
1038+
`board.categories.pane.toasts.kept.${kept.length === 2 ? 'codeAndParent' : kept[0]}`,
1039+
),
10381040
t('board.categories.pane.toasts.otherSaved'),
10391041
'destructive',
10401042
);

‎src/components/dailyRoutine/moveToCloud/MoveRoutinesPicker.vue‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,15 @@
5454
class="mt-0.5 flex items-center gap-2 text-2xs text-ink-subtle"
5555
>
5656
<span v-if="r.pattern" class="capitalize">{{
57-
$t(
57+
$te(
5858
'dailyRoutine.editModal.freq.' +
5959
r.pattern.frequency.toLowerCase(),
6060
)
61+
? $t(
62+
'dailyRoutine.editModal.freq.' +
63+
r.pattern.frequency.toLowerCase(),
64+
)
65+
: r.pattern.frequency.toLowerCase()
6166
}}</span>
6267
<span v-if="r.scheduledDate">{{ r.scheduledDate }}</span>
6368
</span>

‎src/components/dashboard/TeamActivityWidget.vue‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,14 +248,14 @@
248248
const windowLabel = computed(() =>
249249
t(
250250
'board.dashboard.teamActivityWidget.windows.' +
251-
windowKeys[currentWindow.value],
251+
(windowKeys[currentWindow.value] ?? 'd7'),
252252
),
253253
);
254254
255255
const subtitle = computed(() =>
256256
t(
257257
'board.dashboard.teamActivityWidget.subtitles.' +
258-
windowKeys[currentWindow.value],
258+
(windowKeys[currentWindow.value] ?? 'd7'),
259259
),
260260
);
261261

0 commit comments

Comments
 (0)