fix: i18n

This commit is contained in:
sim1222 2022-12-25 16:44:45 +09:00
parent 37fdb998c9
commit 7f84edc46e
No known key found for this signature in database
GPG Key ID: 04EF48D01BEB0298
7 changed files with 42 additions and 23 deletions

View File

@ -1812,4 +1812,23 @@ _deck:
_simkey: _simkey:
reactionList: "リアクション一覧" reactionList: "リアクション一覧"
emojiGen: "絵文字を生成"
emojiAlign: "文字揃え"
emojiSizeSetting: "サイズ調整"
emojiSizeFixed: "文字サイズを固定する"
emojiStretch: "自動で伸縮しない"
emojiGenerate: "生成"
emojiColor: "カラーコード"
colorPicker: "カラーピッカー"
emojiApproval: "絵文字を登録"
emojiNormal: "もじもじ"
emojiIfilter: "見せてほしい"
deckOld: "旧デッキ"
pakuruConfirm: "パクりますか?"
pakuru: "パクる"
duplicateEmoji: "同じ名前の絵文字が存在します。インポートしますか?"
experimentalFeatures: "試験機能"
ownRisk: "自己責任で使用してください"
localMediaProxy: "ローカルメディアプロキシ"
localMediaProxyInfo: "クライアント側でメディアプロキシを指定します"
confirmReset: "リセットしてもよろしいですか?"

View File

@ -20,21 +20,21 @@
</FormTextarea> </FormTextarea>
<FormRadios v-model="emojiAlign" class="_formBlock"> <FormRadios v-model="emojiAlign" class="_formBlock">
<template #label>{{ $ts.emojiAlign }}</template> <template #label>{{ $ts._simkey.emojiAlign }}</template>
<option value="left"><i class="fas fa-align-left"/></option> <option value="left"><i class="fas fa-align-left"/></option>
<option value="center"><i class="fas fa-align-center"></i></option> <option value="center"><i class="fas fa-align-center"></i></option>
<option value="right"><i class="fas fa-align-right"/></option> <option value="right"><i class="fas fa-align-right"/></option>
</FormRadios> </FormRadios>
<FormFolder :default-open="false" class="_formBlock"> <FormFolder :default-open="false" class="_formBlock">
<template #label>{{ $ts.emojiSizeSetting }}</template> <template #label>{{ $ts._simkey.emojiSizeSetting }}</template>
<FormSection> <FormSection>
<FormSwitch v-model="emojiSizeFixed" class="_formBlock"> <FormSwitch v-model="emojiSizeFixed" class="_formBlock">
<template #label>{{ $ts.emojiSizeFixed }}</template> <template #label>{{ $ts._simkey.emojiSizeFixed }}</template>
</FormSwitch> </FormSwitch>
<FormSwitch v-model="emojiStretch" class="_formBlock"> <FormSwitch v-model="emojiStretch" class="_formBlock">
<template #label>{{ $ts.emojiStretch }}</template> <template #label>{{ $ts._simkey.emojiStretch }}</template>
</FormSwitch> </FormSwitch>
</FormSection> </FormSection>
</FormFolder> </FormFolder>
@ -53,7 +53,7 @@
<FormFolder :default-open="false" class="_formBlock"> <FormFolder :default-open="false" class="_formBlock">
<template #label>{{ $ts.emojiColor }}</template> <template #label>{{ $ts._simkey.emojiColor }}</template>
<FormSection> <FormSection>
<div class="cwepdizn-colors"> <div class="cwepdizn-colors">
<div class="row"> <div class="row">
@ -65,10 +65,10 @@
<FormInput v-model="emojiColor" class="_formBlock" :style="{ color: '#' + emojiColor }"> <FormInput v-model="emojiColor" class="_formBlock" :style="{ color: '#' + emojiColor }">
<template #prefix><i class="fas fa-palette"></i></template> <template #prefix><i class="fas fa-palette"></i></template>
<template #label @click="colorPick()">{{ $ts.emojiColor }}</template> <template #label @click="colorPick()">{{ $ts._simkey.emojiColor }}</template>
<template #caption>#RRGGBB</template> <template #caption>#RRGGBB</template>
</FormInput> </FormInput>
<FormButton @click="colorPick()">{{ $ts.colorPicker }}</FormButton> <FormButton @click="colorPick()">{{ $ts._simkey.colorPicker }}</FormButton>
</FormSection> </FormSection>
</FormFolder> </FormFolder>
</FormSection> </FormSection>
@ -79,7 +79,7 @@
<template #label>{{ $ts.preview }}</template> <template #label>{{ $ts.preview }}</template>
<canvas class="preview__content" ref="canvas" width="64" height="30" /> <canvas class="preview__content" ref="canvas" width="64" height="30" />
</FormSection> </FormSection>
<FormButton primary class="_formBlock" @click="uploadEmoji('')">{{ $ts.emojiApproval }}</FormButton> <FormButton primary class="_formBlock" @click="uploadEmoji('')">{{ $ts._simkey.emojiApproval }}</FormButton>
<FormSection> <FormSection>
<template #label>{{ $ts.settings }}</template> <template #label>{{ $ts.settings }}</template>
<FormInput v-model="emojiName" class="_formBlock"> <FormInput v-model="emojiName" class="_formBlock">
@ -129,17 +129,17 @@ import { buttonImages } from "misetehoshii/src/assets";
import { draw } from "misetehoshii/src/canvas" import { draw } from "misetehoshii/src/canvas"
definePageMetadata(computed(() => ({ definePageMetadata(computed(() => ({
title: i18n.ts.emojiGen, title: i18n.ts._simkey.emojiGen,
icon: 'fas fa-kiss-wink-heart', icon: 'fas fa-kiss-wink-heart',
}))); })));
const tab = ref('string'); const tab = ref('string');
const headerTabs = $computed(() => [{ const headerTabs = $computed(() => [{
key: 'string', key: 'string',
title: 'もじもじ', title: i18n.ts._simkey.emojiNormal,
}, { }, {
key: 'misetehoshii', key: 'misetehoshii',
title: '見せてほしい', title: i18n.ts._simkey.emojiIfilter,
}]); }]);
const font = ref('rounded-x-mplus-1p-black'); const font = ref('rounded-x-mplus-1p-black');

View File

@ -103,8 +103,8 @@ const menuDef = $computed(() => [{
to: '/admin/emojis', to: '/admin/emojis',
active: currentPage?.route.name === 'emojis', active: currentPage?.route.name === 'emojis',
}, { }, {
icon: 'fas fa-laugh', icon: 'fas fa-kiss-wink-heart',
text: i18n.ts.emojiGen, text: i18n.ts._simkey.emojiGen,
to: '/admin/emojigen', to: '/admin/emojigen',
active: currentPage?.route.name === 'emojigen', active: currentPage?.route.name === 'emojigen',
}, { }, {

View File

@ -1,12 +1,12 @@
<template> <template>
<div class="_formRoot"> <div class="_formRoot">
<div class="yellowBorder"/> <div class="yellowBorder"/>
<div style="text-align: center;">自己責任で使用してください</div> <div style="text-align: center;">{{ i18n.ts._simkey.ownRisk }}</div>
<MkSpacer></MkSpacer> <MkSpacer></MkSpacer>
<FormInput v-model="mediaProxy"> <FormInput v-model="mediaProxy">
<template #label>{{ "ローカルメディアプロキシ" }}</template> <template #label>{{ i18n.ts._simkey.localMediaProxy }}</template>
<template #caption>{{ "クライアント側でメディアプロキシを指定します" }}</template> <template #caption>{{ i18n.ts._simkey.localMediaProxyInfo }}</template>
</FormInput> </FormInput>
<FormButton danger class="_formBlock" @click="reset()"><i class="fas fa-redo"></i> {{ i18n.ts.default }}</FormButton> <FormButton danger class="_formBlock" @click="reset()"><i class="fas fa-redo"></i> {{ i18n.ts.default }}</FormButton>
@ -27,7 +27,7 @@ const mediaProxy = computed(defaultStore.makeGetterSetter('mediaProxy'));
const reset = ():void => { const reset = ():void => {
os.confirm({ os.confirm({
type: 'warning', type: 'warning',
text: 'リセットしてもよろしいですか?', text: i18n.ts._simkey.confirmReset,
}).then(res => { }).then(res => {
if (res.canceled) return; if (res.canceled) return;
mediaProxy.value = ''; mediaProxy.value = '';
@ -39,7 +39,7 @@ const headerActions = $computed(() => []);
const headerTabs = $computed(() => []); const headerTabs = $computed(() => []);
definePageMetadata({ definePageMetadata({
title: 'Experimental Features', title: i18n.ts._simkey.experimentalFeatures,
icon: 'fas fa-music', icon: 'fas fa-music',
}); });
</script> </script>

View File

@ -170,7 +170,7 @@ const menuDef = computed(() => [{
active: currentPage?.route.name === 'other', active: currentPage?.route.name === 'other',
}, { }, {
icon: 'fas fa-flask', icon: 'fas fa-flask',
text: 'Experimental Features', text: i18n.ts._simkey.experimentalFeatures,
to: '/settings/experimental-features', to: '/settings/experimental-features',
active: currentPage?.route.name === 'experimental-features', active: currentPage?.route.name === 'experimental-features',
}], }],

View File

@ -36,7 +36,7 @@ export function getNoteMenu(props: {
function pakuru(): void { function pakuru(): void {
os.confirm({ os.confirm({
type: 'question', type: 'question',
text: i18n.ts.pakuruConfirm, text: i18n.ts._simkey.pakuruConfirm,
}).then(({ canceled }) => { }).then(({ canceled }) => {
if (canceled) return; if (canceled) return;
const postData = { const postData = {
@ -224,7 +224,7 @@ export function getNoteMenu(props: {
), ),
{ {
icon: 'fas fa-copy', icon: 'fas fa-copy',
text: i18n.ts.pakuru, text: i18n.ts._simkey.pakuru,
action: pakuru, action: pakuru,
}, },
{ {

View File

@ -133,7 +133,7 @@ export async function openReactionImportMenu(ev: MouseEvent, reaction: string, n
if (await duplication) { if (await duplication) {
os.confirm({ os.confirm({
type: 'warning', type: 'warning',
text: i18n.ts.duplicateEmoji, text: i18n.ts._simkey.duplicateEmoji,
}).then(res => { }).then(res => {
if (res.canceled) return; if (res.canceled) return;
importEmoji(false); importEmoji(false);