Merge refactor/i18n into develop

This commit is contained in:
Methapon Metanipat 2024-08-26 16:24:08 +07:00
parent 3da5bf9079
commit c681b19e39
99 changed files with 2192 additions and 2987 deletions

View file

@ -19,8 +19,8 @@ defineProps<{
v-bind="{ ...$props, ...$attrs }"
icon="mdi-plus"
color="var(--info-bg)"
:title="iconOnly ? $t('add') : undefined"
:title="iconOnly ? $t('general.add') : undefined"
>
{{ $t('add') }}
{{ $t('general.add') }}
</MainButton>
</template>

View file

@ -19,8 +19,8 @@ defineProps<{
v-bind="{ ...$props, ...$attrs }"
icon="mdi-arrow-left"
color="var(--info-bg)"
:title="iconOnly ? $t('back') : undefined"
:title="iconOnly ? $t('general.back') : undefined"
>
{{ $t('back') }}
{{ $t('general.back') }}
</MainButton>
</template>

View file

@ -19,8 +19,8 @@ defineProps<{
v-bind="{ ...$props, ...$attrs }"
icon="mdi-close"
color="var(--negative-bg)"
:title="iconOnly ? $t('cancel') : undefined"
:title="iconOnly ? $t('general.cancel') : undefined"
>
{{ $t('cancel') }}
{{ $t('general.cancel') }}
</MainButton>
</template>

View file

@ -19,8 +19,8 @@ defineProps<{
v-bind="{ ...$props, ...$attrs }"
icon="mdi-trash-can-outline"
color="var(--negative-bg)"
:title="iconOnly ? $t('delete') : undefined"
:title="iconOnly ? $t('general.delete') : undefined"
>
{{ $t('delete') }}
{{ $t('general.delete') }}
</MainButton>
</template>

View file

@ -19,8 +19,8 @@ defineProps<{
v-bind="{ ...$props, ...$attrs }"
icon="mdi-pencil-outline"
color="var(--cyan-6-hsl)"
:title="iconOnly ? $t('edit') : undefined"
:title="iconOnly ? $t('general.edit') : undefined"
>
{{ $t('edit') }}
{{ $t('general.edit') }}
</MainButton>
</template>

View file

@ -11,6 +11,8 @@ defineProps<{
disabled?: boolean;
dark?: boolean;
label?: string;
amount?: number;
}>();
</script>
@ -21,8 +23,9 @@ defineProps<{
v-bind="{ ...$props, ...$attrs }"
icon="mdi-content-save-outline"
color="207 96% 32%"
:title="iconOnly ? $t('save') : undefined"
:title="iconOnly ? $t('general.save') : undefined"
>
{{ $t('save') }} {{ amount && amount > 0 ? `(${amount})` : '' }}
{{ label || $t('general.save') }}
{{ amount && amount > 0 ? `(${amount})` : '' }}
</MainButton>
</template>

View file

@ -19,8 +19,8 @@ defineProps<{
v-bind="{ ...$props, ...$attrs }"
icon="mdi-arrow-left"
color="var(--gray-8-hsl)"
:title="iconOnly ? $t('undo') : undefined"
:title="iconOnly ? $t('general.undo') : undefined"
>
{{ $t('undo') }}
{{ $t('general.undo') }}
</MainButton>
</template>