Refactor scopes to use Intl for labels and descriptions (#1570)

* Refactor scope labels for applications and pats

* move scopes to composables

* Refactor pages to use intl

* Fix merge error

* Extract messages
This commit is contained in:
Carter
2024-01-12 12:55:51 -08:00
committed by GitHub
parent 1cbe99a0d8
commit 0adb7685f6
7 changed files with 959 additions and 361 deletions

View File

@@ -68,6 +68,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"
},
@@ -134,6 +137,258 @@
"project-type.shader.singular": {
"message": "Shader"
},
"revenue.transfers.total": {
"message": "You have withdrawn {amount} in total."
},
"revenue.transfers.total.method": {
"message": "You have withdrawn {amount} through {method}."
},
"revenue.transfers.total.year": {
"message": "You have withdrawn {amount} in {year}."
},
"revenue.transfers.total.year_method": {
"message": "You have withdrawn {amount} in {year} through {method}."
},
"scopes.analytics.description": {
"message": "Access your analytics data"
},
"scopes.analytics.label": {
"message": "Read analytics"
},
"scopes.collectionCreate.description": {
"message": "Create collections"
},
"scopes.collectionCreate.label": {
"message": "Create collections"
},
"scopes.collectionDelete.description": {
"message": "Delete collections"
},
"scopes.collectionDelete.label": {
"message": "Delete collections"
},
"scopes.collectionRead.description": {
"message": "Read collections"
},
"scopes.collectionRead.label": {
"message": "Read collections"
},
"scopes.collectionWrite.description": {
"message": "Write to collections"
},
"scopes.collectionWrite.label": {
"message": "Write collections"
},
"scopes.notificationRead.description": {
"message": "Read your notifications"
},
"scopes.notificationRead.label": {
"message": "Read notifications"
},
"scopes.notificationWrite.description": {
"message": "Delete/View your notifications"
},
"scopes.notificationWrite.label": {
"message": "Write notifications"
},
"scopes.organizationCreate.description": {
"message": "Create organizations"
},
"scopes.organizationCreate.label": {
"message": "Create organizations"
},
"scopes.organizationDelete.description": {
"message": "Delete organizations"
},
"scopes.organizationDelete.label": {
"message": "Delete organizations"
},
"scopes.organizationRead.description": {
"message": "Read organizations"
},
"scopes.organizationRead.label": {
"message": "Read organizations"
},
"scopes.organizationWrite.description": {
"message": "Write to organizations"
},
"scopes.organizationWrite.label": {
"message": "Write organizations"
},
"scopes.patCreate.description": {
"message": "Create personal API tokens"
},
"scopes.patCreate.label": {
"message": "Create PATs"
},
"scopes.patDelete.description": {
"message": "Delete your personal API tokens"
},
"scopes.patDelete.label": {
"message": "Delete PATs"
},
"scopes.patRead.description": {
"message": "View created API tokens"
},
"scopes.patRead.label": {
"message": "Read PATs"
},
"scopes.patWrite.description": {
"message": "Edit personal API tokens"
},
"scopes.patWrite.label": {
"message": "Write PATs"
},
"scopes.payoutsRead.description": {
"message": "Read your payouts data"
},
"scopes.payoutsRead.label": {
"message": "Read payouts"
},
"scopes.payoutsWrite.description": {
"message": "Withdraw money"
},
"scopes.payoutsWrite.label": {
"message": "Write payouts"
},
"scopes.performAnalytics.description": {
"message": "Perform analytics actions"
},
"scopes.performAnalytics.label": {
"message": "Perform analytics"
},
"scopes.projectCreate.description": {
"message": "Create new projects"
},
"scopes.projectCreate.label": {
"message": "Create projects"
},
"scopes.projectDelete.description": {
"message": "Delete your projects"
},
"scopes.projectDelete.label": {
"message": "Delete projects"
},
"scopes.projectRead.description": {
"message": "Read all your projects"
},
"scopes.projectRead.label": {
"message": "Read projects"
},
"scopes.projectWrite.description": {
"message": "Write to project data"
},
"scopes.projectWrite.label": {
"message": "Write projects"
},
"scopes.reportCreate.description": {
"message": "Create reports"
},
"scopes.reportCreate.label": {
"message": "Create reports"
},
"scopes.reportDelete.description": {
"message": "Delete reports"
},
"scopes.reportDelete.label": {
"message": "Delete reports"
},
"scopes.reportRead.description": {
"message": "Read reports"
},
"scopes.reportRead.label": {
"message": "Read reports"
},
"scopes.reportWrite.description": {
"message": "Edit reports"
},
"scopes.reportWrite.label": {
"message": "Write reports"
},
"scopes.sessionAccess.description": {
"message": "Access modrinth-issued sessions"
},
"scopes.sessionAccess.label": {
"message": "Access sessions"
},
"scopes.sessionDelete.description": {
"message": "Delete sessions"
},
"scopes.sessionDelete.label": {
"message": "Delete sessions"
},
"scopes.sessionRead.description": {
"message": "Read active sessions"
},
"scopes.sessionRead.label": {
"message": "Read sessions"
},
"scopes.threadRead.description": {
"message": "Read threads"
},
"scopes.threadRead.label": {
"message": "Read threads"
},
"scopes.threadWrite.description": {
"message": "Write to threads"
},
"scopes.threadWrite.label": {
"message": "Write threads"
},
"scopes.userAuthWrite.description": {
"message": "Modify your authentication data"
},
"scopes.userAuthWrite.label": {
"message": "Write auth data"
},
"scopes.userDelete.description": {
"message": "Delete your account"
},
"scopes.userDelete.label": {
"message": "Delete your account"
},
"scopes.userRead.description": {
"message": "Access your public profile information"
},
"scopes.userRead.label": {
"message": "Read user data"
},
"scopes.userReadEmail.description": {
"message": "Read your email"
},
"scopes.userReadEmail.label": {
"message": "Read user email"
},
"scopes.userWrite.description": {
"message": "Write to your profile"
},
"scopes.userWrite.label": {
"message": "Write user data"
},
"scopes.versionCreate.description": {
"message": "Create new versions"
},
"scopes.versionCreate.label": {
"message": "Create versions"
},
"scopes.versionDelete.description": {
"message": "Delete a version"
},
"scopes.versionDelete.label": {
"message": "Delete versions"
},
"scopes.versionRead.description": {
"message": "Read all versions"
},
"scopes.versionRead.label": {
"message": "Read versions"
},
"scopes.versionWrite.description": {
"message": "Write to version data"
},
"scopes.versionWrite.label": {
"message": "Write versions"
},
"settings.language.categories.auto": {
"message": "Automatic"
},