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
3 changes: 2 additions & 1 deletion packages/ui/src/lib/components/Card/Card.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -114,7 +115,7 @@
variant="ghost"
shape="round"
size="large"
aria-label="Expand"
aria-label={t('expand')}
/>
</div>
</button>
Expand Down
3 changes: 2 additions & 1 deletion packages/ui/src/lib/internal/DatePicker.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -104,7 +105,7 @@
{size}
icon={mdiCalendar}
{disabled}
aria-label="Open calendar"
aria-label={t('open_calendar')}
/>
</DatePicker.Trigger>
{/snippet}
Expand Down
3 changes: 2 additions & 1 deletion packages/ui/src/lib/internal/Select.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -107,7 +108,7 @@
class="m-1"
icon={mdiChevronDown}
{disabled}
aria-label="Expand"
aria-label={t('expand')}
/>
{/snippet}
</Input>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
5 changes: 3 additions & 2 deletions packages/ui/src/lib/services/translation.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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?',
Expand All @@ -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',
Expand All @@ -49,7 +51,6 @@ const defaultTranslations = {
save: 'Save',

supporter: 'Supporter',
global: 'Global',
};

export type Translations = typeof defaultTranslations;
Expand Down
Loading