diff --git a/packages/ui/src/lib/components/Card/Card.svelte b/packages/ui/src/lib/components/Card/Card.svelte index fb8a9f93..e461d3c3 100644 --- a/packages/ui/src/lib/components/Card/Card.svelte +++ b/packages/ui/src/lib/components/Card/Card.svelte @@ -2,6 +2,7 @@ import { setChildContext } from '$lib/common/context.svelte.js'; import IconButton from '$lib/components/IconButton/IconButton.svelte'; import { ChildKey } from '$lib/constants.js'; + import { t } from '$lib/services/translation.svelte.js'; import type { Color } from '$lib/types.js'; import { cleanClass } from '$lib/utilities/internal.js'; import { mdiChevronDown } from '@mdi/js'; @@ -114,7 +115,7 @@ variant="ghost" shape="round" size="large" - aria-label="Expand" + aria-label={t('expand')} /> diff --git a/packages/ui/src/lib/internal/DatePicker.svelte b/packages/ui/src/lib/internal/DatePicker.svelte index 7138909f..8b295d05 100644 --- a/packages/ui/src/lib/internal/DatePicker.svelte +++ b/packages/ui/src/lib/internal/DatePicker.svelte @@ -4,6 +4,7 @@ import IconButton from '$lib/components/IconButton/IconButton.svelte'; import Label from '$lib/components/Label/Label.svelte'; import { zIndex } from '$lib/constants.js'; + import { t } from '$lib/services/translation.svelte.js'; import { getLocale } from '$lib/state/locale-state.svelte.js'; import { styleVariants } from '$lib/styles.js'; import type { Shape, Size } from '$lib/types.js'; @@ -104,7 +105,7 @@ {size} icon={mdiCalendar} {disabled} - aria-label="Open calendar" + aria-label={t('open_calendar')} /> {/snippet} diff --git a/packages/ui/src/lib/internal/Select.svelte b/packages/ui/src/lib/internal/Select.svelte index 6bea9012..5a3b52e9 100644 --- a/packages/ui/src/lib/internal/Select.svelte +++ b/packages/ui/src/lib/internal/Select.svelte @@ -4,6 +4,7 @@ import IconButton from '$lib/components/IconButton/IconButton.svelte'; import Input from '$lib/components/Input/Input.svelte'; import { zIndex } from '$lib/constants.js'; + import { t } from '$lib/services/translation.svelte.js'; import type { SelectCommonProps, SelectOption } from '$lib/types.js'; import { cleanClass } from '$lib/utilities/internal.js'; import { mdiArrowDown, mdiArrowUp, mdiCheck, mdiChevronDown } from '@mdi/js'; @@ -107,7 +108,7 @@ class="m-1" icon={mdiChevronDown} {disabled} - aria-label="Expand" + aria-label={t('expand')} /> {/snippet} diff --git a/packages/ui/src/lib/services/command-palette-manager.svelte.ts b/packages/ui/src/lib/services/command-palette-manager.svelte.ts index b0d87cda..8fd9c92e 100644 --- a/packages/ui/src/lib/services/command-palette-manager.svelte.ts +++ b/packages/ui/src/lib/services/command-palette-manager.svelte.ts @@ -10,13 +10,11 @@ import { on } from 'svelte/events'; export type CommandPaletteTranslations = TranslationProps< | 'search_placeholder' | 'search_no_results' - | 'search_recently_used' | 'command_palette_prompt_default' | 'command_palette_to_select' | 'command_palette_to_close' | 'command_palette_to_navigate' | 'command_palette_to_show_all' - | 'global' >; export type ActionProvider = { diff --git a/packages/ui/src/lib/services/translation.svelte.ts b/packages/ui/src/lib/services/translation.svelte.ts index 3ce90dc6..9f691e80 100644 --- a/packages/ui/src/lib/services/translation.svelte.ts +++ b/packages/ui/src/lib/services/translation.svelte.ts @@ -15,7 +15,6 @@ const defaultTranslations = { // search search_placeholder: 'Search...', search_no_results: 'No results', - search_recently_used: 'Recently used', // modal prompt_default: 'Are you sure you want to do this?', @@ -41,6 +40,9 @@ const defaultTranslations = { navigate_next: 'Next', navigate_previous: 'Previous', + // date picker + open_calendar: 'Open calendar', + toast_success_title: 'Success', toast_info_title: 'Info', toast_warning_title: 'Warning', @@ -49,7 +51,6 @@ const defaultTranslations = { save: 'Save', supporter: 'Supporter', - global: 'Global', }; export type Translations = typeof defaultTranslations;