i18n: clean up unused keys

This commit is contained in:
Anthony Fu 2022-12-27 19:00:42 +01:00
parent cf5e6ed5b5
commit f621ef8b4b
11 changed files with 19 additions and 30 deletions

View file

@ -19,5 +19,9 @@
"i18n-ally.keystyle": "nested", "i18n-ally.keystyle": "nested",
"i18n-ally.sourceLanguage": "en-US", "i18n-ally.sourceLanguage": "en-US",
"i18n-ally.preferredDelimiter": "_", "i18n-ally.preferredDelimiter": "_",
"i18n-ally.sortKeys": true "i18n-ally.sortKeys": true,
"i18n-ally.keysInUse": [
"time_ago_options.*",
"visibility.*"
]
} }

View file

@ -1,5 +1,6 @@
<script setup lang="ts"> <script setup lang="ts">
import type { Status, StatusEdit } from 'masto' import type { Status, StatusEdit } from 'masto'
import { formatTimeAgo } from '@vueuse/core'
const { status } = defineProps<{ const { status } = defineProps<{
status: Status status: Status
@ -23,9 +24,17 @@ const timeAgoOptions = useTimeAgoOptions()
@click="showHistory(edit)" @click="showHistory(edit)"
> >
{{ getDisplayName(edit.account) }} {{ getDisplayName(edit.account) }}
<i18n-t :keypath="`status_history.${idx === statusEdits.length - 1 ? 'created' : 'edited'}`">
{{ useTimeAgo(edit.createdAt, timeAgoOptions).value }} <template v-if="idx === statusEdits.length - 1">
</i18n-t> <i18n-t keypath="status_history.created">
{{ formatTimeAgo(new Date(edit.createdAt), timeAgoOptions) }}
</i18n-t>
</template>
<template v-else>
<i18n-t keypath="status_history.edited">
{{ formatTimeAgo(new Date(edit.createdAt), timeAgoOptions) }}
</i18n-t>
</template>
</CommonDropdownItem> </CommonDropdownItem>
</template> </template>
<template v-else> <template v-else>

View file

@ -57,7 +57,6 @@
"activate": "تفعيل", "activate": "تفعيل",
"complete": "أكمل", "complete": "أكمل",
"compose_desc": "اكتب منشور جديد", "compose_desc": "اكتب منشور جديد",
"lang": "اللغات",
"n-people-in-the-past-n-days": "{0} أشخاص في الأيام ال {1} الماضية", "n-people-in-the-past-n-days": "{0} أشخاص في الأيام ال {1} الماضية",
"select_lang": "اختار اللغة", "select_lang": "اختار اللغة",
"sign_in_desc": "إضافة حساب قائم", "sign_in_desc": "إضافة حساب قائم",
@ -181,8 +180,6 @@
}, },
"pwa": { "pwa": {
"dismiss": "تجاهل", "dismiss": "تجاهل",
"message": "@:pwa.title{','} اضغط على @:pwa.reload الزر للتحديث",
"reload": "تحديث",
"title": "يتوفر تحديث Elk الجديد" "title": "يتوفر تحديث Elk الجديد"
}, },
"search": { "search": {
@ -228,7 +225,6 @@
"edited": "تم تعديله في {0}" "edited": "تم تعديله في {0}"
}, },
"tab": { "tab": {
"accounts": "الحسابات",
"for_you": "مصممة لك", "for_you": "مصممة لك",
"hashtags": "هاشتاغ", "hashtags": "هاشتاغ",
"media": "الصور/الفيديو", "media": "الصور/الفيديو",

View file

@ -53,7 +53,6 @@
"activate": "Aktivovat", "activate": "Aktivovat",
"complete": "Dokončit", "complete": "Dokončit",
"compose_desc": "Napsat příspěvek", "compose_desc": "Napsat příspěvek",
"lang": "Jazyky",
"n-people-in-the-past-n-days": "{0} lidí v posledních {1} dnech", "n-people-in-the-past-n-days": "{0} lidí v posledních {1} dnech",
"select_lang": "Vybrat jazyk", "select_lang": "Vybrat jazyk",
"sign_in_desc": "Přidat existující účet", "sign_in_desc": "Přidat existující účet",

View file

@ -53,7 +53,6 @@
"activate": "Aktivieren", "activate": "Aktivieren",
"complete": "Vollständig", "complete": "Vollständig",
"compose_desc": "Schreib einen neuen Beitrag", "compose_desc": "Schreib einen neuen Beitrag",
"lang": "Sprache",
"n-people-in-the-past-n-days": "{0} Personen in den vergangenen {1} Tagen", "n-people-in-the-past-n-days": "{0} Personen in den vergangenen {1} Tagen",
"select_lang": "Sprache auswählen", "select_lang": "Sprache auswählen",
"sign_in_desc": "Bestehenden Nutzer hinzufügen", "sign_in_desc": "Bestehenden Nutzer hinzufügen",
@ -187,7 +186,6 @@
"edited": "Bearbeitet: {0}" "edited": "Bearbeitet: {0}"
}, },
"tab": { "tab": {
"accounts": "Nutzer",
"for_you": "Für dich", "for_you": "Für dich",
"hashtags": "Hashtags", "hashtags": "Hashtags",
"media": "Medien", "media": "Medien",

View file

@ -73,7 +73,6 @@
"activate": "Activate", "activate": "Activate",
"complete": "Complete", "complete": "Complete",
"compose_desc": "Write a new post", "compose_desc": "Write a new post",
"lang": "Languages",
"n-people-in-the-past-n-days": "{0} people in the past {1} days", "n-people-in-the-past-n-days": "{0} people in the past {1} days",
"select_lang": "Select language", "select_lang": "Select language",
"sign_in_desc": "Add an existing account", "sign_in_desc": "Add an existing account",
@ -204,8 +203,6 @@
}, },
"pwa": { "pwa": {
"dismiss": "Dismiss", "dismiss": "Dismiss",
"message": "@:pwa.title{','} click on the @:pwa.reload button to update.",
"reload": "Reload",
"title": "New Elk update available!", "title": "New Elk update available!",
"update": "Update", "update": "Update",
"update_available_short": "Update Elk" "update_available_short": "Update Elk"
@ -282,7 +279,6 @@
"edited": "edited {0}" "edited": "edited {0}"
}, },
"tab": { "tab": {
"accounts": "Accounts",
"for_you": "For you", "for_you": "For you",
"hashtags": "Hashtags", "hashtags": "Hashtags",
"media": "Media", "media": "Media",

View file

@ -71,7 +71,6 @@
"activate": "Activar", "activate": "Activar",
"complete": "Completar", "complete": "Completar",
"compose_desc": "Escribir una nueva publicación", "compose_desc": "Escribir una nueva publicación",
"lang": "Idiomas",
"n-people-in-the-past-n-days": "{0} personas en los últimos {1} días", "n-people-in-the-past-n-days": "{0} personas en los últimos {1} días",
"select_lang": "Seleccionar idioma", "select_lang": "Seleccionar idioma",
"sign_in_desc": "Agregar una cuenta existente", "sign_in_desc": "Agregar una cuenta existente",
@ -198,8 +197,6 @@
}, },
"pwa": { "pwa": {
"dismiss": "Descartar", "dismiss": "Descartar",
"message": "@:pwa.title{','} haz click en el botón @:pwa.reload para actualizar.",
"reload": "Recargar",
"title": "Nueva versión de Elk disponible" "title": "Nueva versión de Elk disponible"
}, },
"search": { "search": {
@ -246,7 +243,6 @@
"edited": "editado el {0}" "edited": "editado el {0}"
}, },
"tab": { "tab": {
"accounts": "Cuentas",
"for_you": "Para ti", "for_you": "Para ti",
"hashtags": "Etiquetas", "hashtags": "Etiquetas",
"media": "Multimedia", "media": "Multimedia",

View file

@ -70,7 +70,6 @@
"activate": "Activer", "activate": "Activer",
"complete": "Compléter", "complete": "Compléter",
"compose_desc": "Écrire un nouveau message", "compose_desc": "Écrire un nouveau message",
"lang": "Langages",
"n-people-in-the-past-n-days": "{0} personnes dans les {1} jours", "n-people-in-the-past-n-days": "{0} personnes dans les {1} jours",
"select_lang": "Sélectionner langue", "select_lang": "Sélectionner langue",
"sign_in_desc": "Ajouter un compte existant", "sign_in_desc": "Ajouter un compte existant",
@ -196,8 +195,6 @@
}, },
"pwa": { "pwa": {
"dismiss": "Fermer", "dismiss": "Fermer",
"message": "@:pwa.title{','} cliquez sur le bouton @:pwa.reload pour mettre à jour.",
"reload": "Recharger",
"title": "Nouvelle mise à jour Elk disponible !", "title": "Nouvelle mise à jour Elk disponible !",
"update": "Mettre à jour", "update": "Mettre à jour",
"update_available_short": "Mettre à jour Elk" "update_available_short": "Mettre à jour Elk"
@ -245,7 +242,6 @@
"edited": "a édité {0}" "edited": "a édité {0}"
}, },
"tab": { "tab": {
"accounts": "Comptes",
"for_you": "Pour vous", "for_you": "Pour vous",
"hashtags": "Hashtags", "hashtags": "Hashtags",
"media": "Média", "media": "Média",

View file

@ -78,7 +78,6 @@
"uploading": "更新中..." "uploading": "更新中..."
}, },
"tab": { "tab": {
"accounts": "アカウント",
"hashtags": "ハッシュタグ", "hashtags": "ハッシュタグ",
"media": "メディア", "media": "メディア",
"posts": "投稿", "posts": "投稿",

View file

@ -60,7 +60,6 @@
"activate": "执行", "activate": "执行",
"complete": "完成", "complete": "完成",
"compose_desc": "写一条新帖文", "compose_desc": "写一条新帖文",
"lang": "语言",
"n-people-in-the-past-n-days": "{0} 人在过去 {1} 天", "n-people-in-the-past-n-days": "{0} 人在过去 {1} 天",
"select_lang": "选择语言", "select_lang": "选择语言",
"sign_in_desc": "添加现有帐户", "sign_in_desc": "添加现有帐户",
@ -189,8 +188,6 @@
}, },
"pwa": { "pwa": {
"dismiss": "忽略", "dismiss": "忽略",
"message": "@:{'pwa.title'},点击@:{'pwa.reload'}按钮来更新。",
"reload": "重启",
"title": "鹿鸣存在新的更新" "title": "鹿鸣存在新的更新"
}, },
"search": { "search": {
@ -199,7 +196,7 @@
"settings": { "settings": {
"feature_flags": { "feature_flags": {
"avatar_on_avatar": "头像堆叠", "avatar_on_avatar": "头像堆叠",
"github_cards": "Github 卡片", "github_cards": "GitHub 卡片",
"user_switcher_sidebar": "用户切换侧边栏", "user_switcher_sidebar": "用户切换侧边栏",
"virtual_scroll": "虚拟滚动" "virtual_scroll": "虚拟滚动"
}, },
@ -254,7 +251,6 @@
"edited": "在 {0} 编辑了" "edited": "在 {0} 编辑了"
}, },
"tab": { "tab": {
"accounts": "账号",
"for_you": "推荐关注", "for_you": "推荐关注",
"hashtags": "话题标签", "hashtags": "话题标签",
"media": "媒体", "media": "媒体",

View file

@ -38,7 +38,7 @@ onActivated(() => {
<button <button
flex rounded-4 p1 flex rounded-4 p1
hover:bg-active cursor-pointer transition-100 hover:bg-active cursor-pointer transition-100
:title="$t(showSettings ? 'notification.settings.close_btn' : 'notification.settings.show_btn')" :title="showSettings ? t('notification.settings.close_btn') : t('notification.settings.show_btn')"
@click="showSettings = !showSettings" @click="showSettings = !showSettings"
> >
<span aria-hidden="true" w-1.75em h-1.75em :class="showSettings ? 'i-ri:close-line' : 'i-ri:settings-line'" /> <span aria-hidden="true" w-1.75em h-1.75em :class="showSettings ? 'i-ri:close-line' : 'i-ri:settings-line'" />