Skip to content
This repository has been archived by the owner on Aug 3, 2024. It is now read-only.

Add translation keys for collections #1496

Merged
merged 24 commits into from
Jan 27, 2024
Merged
Show file tree
Hide file tree
Changes from 22 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
<hr class="divider" />
<NuxtLink class="item button-transparent" to="/dashboard/collections">
<LibraryIcon class="icon" />
<span class="title">Collections</span>
<span class="title">{{ formatMessage(commonMessages.collectionsLabel) }}</span>
</NuxtLink>
<NuxtLink class="item button-transparent" to="/dashboard/notifications">
<NotificationIcon class="icon" />
Expand Down Expand Up @@ -379,6 +379,8 @@ import NavRow from '~/components/ui/NavRow.vue'
import ModalCreation from '~/components/ui/ModalCreation.vue'
import Avatar from '~/components/ui/Avatar.vue'

const { formatMessage } = useVIntl()

const app = useNuxtApp()
const auth = await useAuth()
const cosmetics = useCosmetics()
Expand Down
104 changes: 103 additions & 1 deletion locales/en-US/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,78 @@
"button.save": {
"message": "Save"
},
"collection.button.delete-icon": {
"message": "Delete icon"
},
"collection.button.edit-icon": {
"message": "Edit icon"
},
"collection.button.remove-project": {
"message": "Remove project"
},
"collection.button.unfollow-project": {
"message": "Unfollow project"
},
"collection.button.upload-icon": {
"message": "Upload icon"
},
"collection.delete-modal.description": {
"message": "This will remove this collection forever. This action cannot be undone."
},
"collection.delete-modal.title": {
"message": "Are you sure you want to delete this collection?"
},
"collection.description": {
"message": "{description} - View the collection {name} by {username} on Modrinth"
},
"collection.description.following": {
"message": "Auto-generated collection of all the projects you're following."
},
"collection.error.not-found": {
"message": "Collection not found"
},
"collection.label.collection": {
"message": "Collection"
},
"collection.label.created-at": {
"message": "Created {ago}"
},
"collection.label.curated-by": {
"message": "Curated by"
},
"collection.label.no-projects": {
"message": "This collection has no projects!"
},
"collection.label.no-projects-auth": {
"message": "You don't have any projects.\nWould you like to <create-link>add one</create-link>?"
},
"collection.label.owner": {
"message": "Owner"
},
"collection.label.private": {
"message": "Private"
},
"collection.label.projects-count": {
"message": "{count, plural, one {<stat>{count}</stat> project} other {<stat>{count}</stat> projects}}"
},
"collection.label.updated-at": {
"message": "Updated {ago}"
},
"collection.title": {
"message": "{name} - Collection"
},
"dashboard.collections.button.create-new": {
"message": "Create new"
},
"dashboard.collections.label.projects-count": {
"message": "{count, plural, one {{count} project} other {{count} projects}}"
},
"dashboard.collections.label.search-input": {
"message": "Search your collections"
},
"dashboard.collections.long-title": {
"message": "Your collections"
},
"frog": {
"message": "You've been frogged! 🐸"
},
Expand All @@ -32,6 +104,33 @@
"input.view.list": {
"message": "List view"
},
"label.collections": {
"message": "Collections"
},
"label.delete": {
"message": "Delete"
},
"label.description": {
"message": "Description"
},
"label.followed-projects": {
"message": "Followed projects"
},
"label.public": {
"message": "Public"
},
"label.rejected": {
"message": "Rejected"
},
"label.title": {
"message": "Title"
},
"label.unlisted": {
"message": "Unlisted"
},
"label.visibility": {
"message": "Visibility"
},
"notification.error.title": {
"message": "An error occurred"
},
Expand All @@ -57,7 +156,7 @@
"message": "Username"
},
"profile.label.no-collections": {
"message": "This user has no collection!"
"message": "This user has no collections!"
},
"profile.label.no-collections-auth": {
"message": "You don't have any collections.\nWould you like to <create-link>create one</create-link>?"
Expand All @@ -68,6 +167,9 @@
"profile.label.no-projects-auth": {
"message": "You don't have any projects.\nWould you like to <create-link>create one</create-link>?"
},
"profile.label.organizations": {
"message": "Organizations"
},
"profile.meta.description": {
"message": "Download {username}'s projects on Modrinth"
},
Expand Down
Loading