[clean] Remove unused translations
This commit is contained in:
parent
2de3811ad9
commit
6c495315d3
|
@ -55,7 +55,7 @@
|
||||||
"favourite": "Favourited",
|
"favourite": "Favourited",
|
||||||
"bookmark": "Bookmarks",
|
"bookmark": "Bookmarks",
|
||||||
"local": "Local timeline",
|
"local": "Local timeline",
|
||||||
"public": "Public timeline",
|
"public": "Federated timeline",
|
||||||
"hashtag": "Hashtags",
|
"hashtag": "Hashtags",
|
||||||
"search": "Search",
|
"search": "Search",
|
||||||
"lists": "Lists"
|
"lists": "Lists"
|
||||||
|
@ -68,20 +68,12 @@
|
||||||
"follow_requests": "Follow requests",
|
"follow_requests": "Follow requests",
|
||||||
"direct_messages": "Direct messages",
|
"direct_messages": "Direct messages",
|
||||||
"local": "Local timeline",
|
"local": "Local timeline",
|
||||||
"public": "Public timeline",
|
"public": "Federated timeline",
|
||||||
"hashtag": "Hashtags",
|
"hashtag": "Hashtags",
|
||||||
"search": "Search",
|
"search": "Search",
|
||||||
"lists": "Lists",
|
"lists": "Lists",
|
||||||
"members": "Members",
|
"members": "Members",
|
||||||
"option": {
|
"reload": "Reload"
|
||||||
"title": "Option",
|
|
||||||
"show_reblogs": "Show boosts",
|
|
||||||
"show_replies": "Show replies",
|
|
||||||
"apply": "Apply"
|
|
||||||
},
|
|
||||||
"new_toot": "Publish",
|
|
||||||
"reload": "Reload",
|
|
||||||
"settings": "Settings"
|
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
"title": "Settings",
|
"title": "Settings",
|
||||||
|
@ -104,13 +96,6 @@
|
||||||
},
|
},
|
||||||
"timeline": {
|
"timeline": {
|
||||||
"title": "Timeline",
|
"title": "Timeline",
|
||||||
"unread_notification": {
|
|
||||||
"title": "Unread notifications",
|
|
||||||
"description": "Customize unread notifications for each timeline.",
|
|
||||||
"direct": "Direct messages",
|
|
||||||
"local": "Local timeline",
|
|
||||||
"public": "Public timeline"
|
|
||||||
},
|
|
||||||
"use_marker": {
|
"use_marker": {
|
||||||
"title": "Load the timeline from the last reading position",
|
"title": "Load the timeline from the last reading position",
|
||||||
"home": "Home",
|
"home": "Home",
|
||||||
|
@ -280,37 +265,6 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"modals": {
|
"modals": {
|
||||||
"new_toot": {
|
|
||||||
"title": "New post",
|
|
||||||
"cw": "Write your warning here",
|
|
||||||
"status": "What's on your mind?",
|
|
||||||
"cancel": "Cancel",
|
|
||||||
"toot": "Publish",
|
|
||||||
"close_confirm": "Are you sure you want to discard this post?",
|
|
||||||
"close_confirm_ok": "Discard",
|
|
||||||
"close_confirm_cancel": "Continue editing",
|
|
||||||
"description": "Add alternate text for this media",
|
|
||||||
"footer": {
|
|
||||||
"add_image": "Add images",
|
|
||||||
"poll": "Add a poll",
|
|
||||||
"change_visibility": "Change visibility",
|
|
||||||
"change_sensitive": "Mark media as sensitive",
|
|
||||||
"add_cw": "Add content warnings",
|
|
||||||
"pined_hashtag": "Pinned hashtag"
|
|
||||||
},
|
|
||||||
"poll": {
|
|
||||||
"add_choice": "Add an option",
|
|
||||||
"expires": {
|
|
||||||
"5_minutes": "5 minutes",
|
|
||||||
"30_minutes": "30 minutes",
|
|
||||||
"1_hour": "1 hour",
|
|
||||||
"6_hours": "6 hours",
|
|
||||||
"1_day": "1 day",
|
|
||||||
"3_days": "3 days",
|
|
||||||
"7_days": "7 days"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"jump": {
|
"jump": {
|
||||||
"jump_to": "Jump to..."
|
"jump_to": "Jump to..."
|
||||||
},
|
},
|
||||||
|
@ -331,13 +285,10 @@
|
||||||
"title": "Keyboard shortcuts",
|
"title": "Keyboard shortcuts",
|
||||||
"ctrl_number": "Switch accounts",
|
"ctrl_number": "Switch accounts",
|
||||||
"ctrl_k": "Jump to other timelines",
|
"ctrl_k": "Jump to other timelines",
|
||||||
"ctrl_n": "Open the new post dialog",
|
"ctrl_enter": "Send the post",
|
||||||
"ctrl_enter": "Publish the post",
|
|
||||||
"ctrl_r": "Refresh current timeline",
|
"ctrl_r": "Refresh current timeline",
|
||||||
"j": "Select the next post",
|
"j": "Select the next post",
|
||||||
"k": "Select the previous post",
|
"k": "Select the previous post",
|
||||||
"h": "Switch focus to the left column",
|
|
||||||
"l": "Switch focus to the right column",
|
|
||||||
"r": "Reply to the selected post",
|
"r": "Reply to the selected post",
|
||||||
"b": "Boost the selected post",
|
"b": "Boost the selected post",
|
||||||
"f": "Favourite the selected post",
|
"f": "Favourite the selected post",
|
||||||
|
@ -509,7 +460,7 @@
|
||||||
"require_domain_name": "A domain name is required",
|
"require_domain_name": "A domain name is required",
|
||||||
"domain_format": "Please only enter the domain name"
|
"domain_format": "Please only enter the domain name"
|
||||||
},
|
},
|
||||||
"new_toot": {
|
"compose": {
|
||||||
"toot_length": "Post length should be between {{min}} and {{max}}",
|
"toot_length": "Post length should be between {{min}} and {{max}}",
|
||||||
"attach_length": "You can only attach up to {{max}} image",
|
"attach_length": "You can only attach up to {{max}} image",
|
||||||
"attach_length_plural": "You can only attach up to {{max}} images",
|
"attach_length_plural": "You can only attach up to {{max}} images",
|
||||||
|
@ -554,5 +505,33 @@
|
||||||
"title": "Poll expired",
|
"title": "Poll expired",
|
||||||
"body": "{{username}}'s poll has ended"
|
"body": "{{username}}'s poll has ended"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"compose": {
|
||||||
|
"title": "New post",
|
||||||
|
"cw": "Write your warning here",
|
||||||
|
"status": "What's on your mind?",
|
||||||
|
"cancel": "Cancel",
|
||||||
|
"toot": "Post",
|
||||||
|
"description": "Add alternate text for this media",
|
||||||
|
"footer": {
|
||||||
|
"add_image": "Add images",
|
||||||
|
"poll": "Add a poll",
|
||||||
|
"change_visibility": "Change visibility",
|
||||||
|
"change_sensitive": "Mark media as sensitive",
|
||||||
|
"add_cw": "Add content warnings",
|
||||||
|
"pined_hashtag": "Pinned hashtag"
|
||||||
|
},
|
||||||
|
"poll": {
|
||||||
|
"add_choice": "Add an option",
|
||||||
|
"expires": {
|
||||||
|
"5_minutes": "5 minutes",
|
||||||
|
"30_minutes": "30 minutes",
|
||||||
|
"1_hour": "1 hour",
|
||||||
|
"6_hours": "6 hours",
|
||||||
|
"1_day": "1 day",
|
||||||
|
"3_days": "3 days",
|
||||||
|
"7_days": "7 days"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,14 +3,8 @@
|
||||||
<Quote v-if="inReplyTo" :message="inReplyTo" @close="clearReply" />
|
<Quote v-if="inReplyTo" :message="inReplyTo" @close="clearReply" />
|
||||||
<Quote v-if="quoteTo" :message="quoteTo" @close="clearQuote" />
|
<Quote v-if="quoteTo" :message="quoteTo" @close="clearQuote" />
|
||||||
<el-form :model="form" class="compose-form">
|
<el-form :model="form" class="compose-form">
|
||||||
<el-input v-model="form.spoiler" class="spoiler" :placeholder="$t('modals.new_toot.cw')" v-if="cw" />
|
<el-input v-model="form.spoiler" class="spoiler" :placeholder="$t('compose.cw')" v-if="cw" />
|
||||||
<el-input
|
<el-input v-model="form.status" type="textarea" :autosize="{ minRows: 2 }" :placeholder="$t('compose.status')" ref="statusRef" />
|
||||||
v-model="form.status"
|
|
||||||
type="textarea"
|
|
||||||
:autosize="{ minRows: 2 }"
|
|
||||||
:placeholder="$t('modals.new_toot.status')"
|
|
||||||
ref="statusRef"
|
|
||||||
/>
|
|
||||||
<div class="preview" ref="previewRef">
|
<div class="preview" ref="previewRef">
|
||||||
<div class="image-wrapper" v-for="media in attachments" :key="media.id">
|
<div class="image-wrapper" v-for="media in attachments" :key="media.id">
|
||||||
<img :src="media.preview_url" class="preview-image" />
|
<img :src="media.preview_url" class="preview-image" />
|
||||||
|
@ -18,7 +12,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="nsfw" v-if="attachments.length > 0">
|
<div class="nsfw" v-if="attachments.length > 0">
|
||||||
<el-checkbox v-model="nsfw">{{ $t('modals.new_toot.footer.change_sensitive') }}</el-checkbox>
|
<el-checkbox v-model="nsfw">{{ $t('compose.footer.change_sensitive') }}</el-checkbox>
|
||||||
</div>
|
</div>
|
||||||
<div class="poll" v-if="poll.options.length > 0">
|
<div class="poll" v-if="poll.options.length > 0">
|
||||||
<ul class="options-list">
|
<ul class="options-list">
|
||||||
|
@ -31,7 +25,7 @@
|
||||||
</el-radio>
|
</el-radio>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<el-button class="add-poll" type="info" size="small" @click="addPollOption">{{ $t('modals.new_toot.poll.add_choice') }}</el-button>
|
<el-button class="add-poll" type="info" size="small" @click="addPollOption">{{ $t('compose.poll.add_choice') }}</el-button>
|
||||||
<el-select v-model="poll.expires_in" size="small" value-key="value">
|
<el-select v-model="poll.expires_in" size="small" value-key="value">
|
||||||
<el-option v-for="exp in expiresList" :key="exp.value" :label="exp.label" :value="exp.value"> </el-option>
|
<el-option v-for="exp in expiresList" :key="exp.value" :label="exp.label" :value="exp.value"> </el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
|
@ -47,7 +41,7 @@
|
||||||
</el-button>
|
</el-button>
|
||||||
<div>
|
<div>
|
||||||
<el-dropdown trigger="click" @command="changeVisibility">
|
<el-dropdown trigger="click" @command="changeVisibility">
|
||||||
<el-button size="default" link :title="$t('modals.new_toot.footer.change_visibility')">
|
<el-button size="default" link :title="$t('compose.footer.change_visibility')">
|
||||||
<font-awesome-icon :icon="visibilityIcon" />
|
<font-awesome-icon :icon="visibilityIcon" />
|
||||||
</el-button>
|
</el-button>
|
||||||
<template #dropdown>
|
<template #dropdown>
|
||||||
|
@ -94,7 +88,7 @@
|
||||||
</el-button-group>
|
</el-button-group>
|
||||||
<div class="actions-group">
|
<div class="actions-group">
|
||||||
<span>{{ statusChars }}</span>
|
<span>{{ statusChars }}</span>
|
||||||
<el-button type="primary" @click="post" :loading="loading"> {{ $t('modals.new_toot.toot') }} </el-button>
|
<el-button type="primary" @click="post" :loading="loading"> {{ $t('compose.toot') }} </el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
@ -152,31 +146,31 @@ export default defineComponent({
|
||||||
})
|
})
|
||||||
const expiresList = reactive<Array<Expire>>([
|
const expiresList = reactive<Array<Expire>>([
|
||||||
{
|
{
|
||||||
label: i18n.t('modals.new_toot.poll.expires.5_minutes'),
|
label: i18n.t('compose.poll.expires.5_minutes'),
|
||||||
value: 60 * 5
|
value: 60 * 5
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: i18n.t('modals.new_toot.poll.expires.30_minutes'),
|
label: i18n.t('compose.poll.expires.30_minutes'),
|
||||||
value: 60 * 30
|
value: 60 * 30
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: i18n.t('modals.new_toot.poll.expires.1_hour'),
|
label: i18n.t('compose.poll.expires.1_hour'),
|
||||||
value: 3600
|
value: 3600
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: i18n.t('modals.new_toot.poll.expires.6_hours'),
|
label: i18n.t('compose.poll.expires.6_hours'),
|
||||||
value: 3600 * 6
|
value: 3600 * 6
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: i18n.t('modals.new_toot.poll.expires.1_day'),
|
label: i18n.t('compose.poll.expires.1_day'),
|
||||||
value: 3600 * 24
|
value: 3600 * 24
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: i18n.t('modals.new_toot.poll.expires.3_days'),
|
label: i18n.t('compose.poll.expires.3_days'),
|
||||||
value: 3600 * 24 * 3
|
value: 3600 * 24 * 3
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: i18n.t('modals.new_toot.poll.expires.7_days'),
|
label: i18n.t('compose.poll.expires.7_days'),
|
||||||
value: 3600 * 24 * 7
|
value: 3600 * 24 * 7
|
||||||
}
|
}
|
||||||
])
|
])
|
||||||
|
@ -399,7 +393,7 @@ export default defineComponent({
|
||||||
const file = e.dataTransfer?.files.item(0)
|
const file = e.dataTransfer?.files.item(0)
|
||||||
if (file === null || (!file.type.includes('image') && !file.type.includes('video'))) {
|
if (file === null || (!file.type.includes('image') && !file.type.includes('video'))) {
|
||||||
ElMessage({
|
ElMessage({
|
||||||
message: i18n.t('validation.new_toot.attach_image'),
|
message: i18n.t('validation.compose.attach_image'),
|
||||||
type: 'error'
|
type: 'error'
|
||||||
})
|
})
|
||||||
return false
|
return false
|
||||||
|
|
Loading…
Reference in New Issue