forked from mirrors/misskey
enhance(frontend): ウィジェットの設定項目の多言語対応 (#17032)
* enhance(frontend): ウィジェットの設定項目の多言語対応 * Update Changelog * refactor: move options locale key to root for optimizing artifacts for locale inlining * fix * fix * ✌️ --------- Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
This commit is contained in:
@@ -18,6 +18,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||
<script lang="ts" setup>
|
||||
import { onUnmounted, ref, watch } from 'vue';
|
||||
import { useWidgetPropsManager } from './widget.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
import type { WidgetComponentEmits, WidgetComponentExpose, WidgetComponentProps } from './widget.js';
|
||||
import type { FormWithDefault, GetFormResultType } from '@/utility/form.js';
|
||||
|
||||
@@ -26,19 +27,23 @@ const name = 'unixClock';
|
||||
const widgetPropsDef = {
|
||||
transparent: {
|
||||
type: 'boolean',
|
||||
label: i18n.ts._widgetOptions.transparent,
|
||||
default: false,
|
||||
},
|
||||
fontSize: {
|
||||
type: 'number',
|
||||
label: i18n.ts.fontSize,
|
||||
default: 1.5,
|
||||
step: 0.1,
|
||||
},
|
||||
showMs: {
|
||||
type: 'boolean',
|
||||
label: i18n.ts._widgetOptions._clock.showMs,
|
||||
default: true,
|
||||
},
|
||||
showLabel: {
|
||||
type: 'boolean',
|
||||
label: i18n.ts._widgetOptions._clock.showLabel,
|
||||
default: true,
|
||||
},
|
||||
} satisfies FormWithDefault;
|
||||
|
||||
Reference in New Issue
Block a user