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

Commit

Permalink
Add translation keys for collections (#1496)
Browse files Browse the repository at this point in the history
* Begin Work

* Add more common messages

* Work on modal

* Add more keys

* Add keys for icon buttons

* Add more keys

* Handle error keys

* Add more keys

* Add more keys

* Edit fields keys

* Finish (almost)

* Finish work for collection page

* Dashboard Nav stack & Format

* WIP

* Move some messages to common

* Finish work

* Format

* Reorganization

* Fix some mistake

* add common collections label

* Add collections label key to default layout

* Make title and description reactive (#8)

---------

Co-authored-by: Sasha Sorokin <[email protected]>
  • Loading branch information
Mysterious-Dev and brawaru authored Jan 27, 2024
1 parent 0195e94 commit 52b2993
Show file tree
Hide file tree
Showing 6 changed files with 375 additions and 67 deletions.
4 changes: 3 additions & 1 deletion layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,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 @@ -398,6 +398,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
99 changes: 99 additions & 0 deletions locales/en-US/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,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 @@ -50,6 +122,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 Down
Loading

0 comments on commit 52b2993

Please sign in to comment.