chore(frontend): i18n pass on mostly-translated frontend components (#6786)

* i18n pass on mostly-translated frontend components

* Run prepr

* Fix SRV-records text and unescape tooltip braces

* Fix changed wording

* Remove unneeded strings

* Use ICU-safe placeholder
This commit is contained in:
Arthur
2026-07-21 11:36:06 -07:00
committed by GitHub
parent b14fad4237
commit 84b4f8e474
40 changed files with 1338 additions and 307 deletions
@@ -205,11 +205,16 @@
<UpToDate class="icon" />
<br />
<span class="preserve-lines text">
This organization doesn't have any projects yet.
<template v-if="isPermission(currentMember?.permissions, 1 << 4)">
Would you like to
<a class="link" @click="modal_creation?.show()">create one</a>?
<IntlFormatted :message-id="messages.noProjectsWithCreatePrompt">
<template #create-link="{ children }">
<a class="link" @click="modal_creation?.show()"
><component :is="() => normalizeChildren(children)"
/></a>
</template>
</IntlFormatted>
</template>
<template v-else>{{ formatMessage(messages.noProjects) }}</template>
</span>
</div>
</div>
@@ -233,8 +238,11 @@ import {
Avatar,
ButtonStyled,
commonMessages,
defineMessages,
injectModrinthClient,
IntlFormatted,
NavTabs,
normalizeChildren,
PROJECT_DEP_MARKER_QUERY,
ProjectCard,
ProjectCardList,
@@ -266,6 +274,18 @@ type ProjectV3 = Labrinth.Projects.v3.Project & {
const vintl = useVIntl()
const { formatMessage } = vintl
const messages = defineMessages({
noProjects: {
id: 'organization.projects.none',
defaultMessage: "This organization doesn't have any projects yet.",
},
noProjectsWithCreatePrompt: {
id: 'organization.projects.none-with-create-prompt',
defaultMessage:
"This organization doesn't have any projects yet. Would you like to <create-link>create one</create-link>?",
},
})
const { formatCompactNumber } = useCompactNumber()
const auth: { user: any } & any = await useAuth()