summaryrefslogtreecommitdiff
path: root/packages/client/src/widgets/memo.vue
diff options
context:
space:
mode:
Diffstat (limited to 'packages/client/src/widgets/memo.vue')
-rw-r--r--packages/client/src/widgets/memo.vue11
1 files changed, 6 insertions, 5 deletions
diff --git a/packages/client/src/widgets/memo.vue b/packages/client/src/widgets/memo.vue
index 8670cb2bac..92c4168fff 100644
--- a/packages/client/src/widgets/memo.vue
+++ b/packages/client/src/widgets/memo.vue
@@ -1,21 +1,22 @@
<template>
<MkContainer :show-header="widgetProps.showHeader" class="mkw-memo">
- <template #header><i class="fas fa-sticky-note"></i>{{ $ts._widgets.memo }}</template>
+ <template #header><i class="fas fa-sticky-note"></i>{{ i18n.ts._widgets.memo }}</template>
<div class="otgbylcu">
- <textarea v-model="text" :placeholder="$ts.placeholder" @input="onChange"></textarea>
- <button :disabled="!changed" class="_buttonPrimary" @click="saveMemo">{{ $ts.save }}</button>
+ <textarea v-model="text" :placeholder="i18n.ts.placeholder" @input="onChange"></textarea>
+ <button :disabled="!changed" class="_buttonPrimary" @click="saveMemo">{{ i18n.ts.save }}</button>
</div>
</MkContainer>
</template>
<script lang="ts" setup>
import { onMounted, onUnmounted, reactive, ref, watch } from 'vue';
-import { GetFormResultType } from '@/scripts/form';
import { useWidgetPropsManager, Widget, WidgetComponentEmits, WidgetComponentExpose, WidgetComponentProps } from './widget';
+import { GetFormResultType } from '@/scripts/form';
import * as os from '@/os';
-import MkContainer from '@/components/ui/container.vue';
+import MkContainer from '@/components/MkContainer.vue';
import { defaultStore } from '@/store';
+import { i18n } from '@/i18n';
const name = 'memo';