mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-09 20:12:10 +10:00
Various bug fixes (#102)
* feat: set lang in html head * fix: add # in front of git ref * fix: remove unused vars from example env * fix: package name and license field * fix: enable sourcemap for client and server * fix: emojis not showing in prod this is extremely cursed, but it works * chore: refactor auth manager * feat: disable invitations if simple auth disabled * feat: add drop version to footer * feat: translate auth endpoints * chore: move oidc module * feat: add weekly tasks enabled object cleanup as weekly task * feat: add timestamp to task log msgs * feat: add guard to prevent invalid progress % * fix: add missing global scope to i18n components * feat: set base url for i18n * feat: switch task log to json format * ci: run ci on develop branch only * fix: UserWidget text not updating #109 * fix: EXTERNAL_URL being computed at build * feat: add basic language outlines for translation * feat: add more english dialects
This commit is contained in:
@ -21,7 +21,15 @@ export default defineI18nConfig(() => {
|
||||
// https://vue-i18n.intlify.dev/guide/essentials/datetime.html
|
||||
datetimeFormats: {
|
||||
"en-us": defaultDateTimeFormat,
|
||||
"en-gb": defaultDateTimeFormat,
|
||||
"en-au": defaultDateTimeFormat,
|
||||
"en-pirate": defaultDateTimeFormat,
|
||||
fr: defaultDateTimeFormat,
|
||||
de: defaultDateTimeFormat,
|
||||
it: defaultDateTimeFormat,
|
||||
es: defaultDateTimeFormat,
|
||||
zh: defaultDateTimeFormat,
|
||||
"zh-tw": defaultDateTimeFormat,
|
||||
},
|
||||
};
|
||||
});
|
||||
|
||||
1
i18n/locales/de.json
Normal file
1
i18n/locales/de.json
Normal file
@ -0,0 +1 @@
|
||||
{}
|
||||
1
i18n/locales/en_au.json
Normal file
1
i18n/locales/en_au.json
Normal file
@ -0,0 +1 @@
|
||||
{}
|
||||
1
i18n/locales/en_gb.json
Normal file
1
i18n/locales/en_gb.json
Normal file
@ -0,0 +1 @@
|
||||
{}
|
||||
@ -107,6 +107,17 @@
|
||||
"listItemPlaceholder": "list item"
|
||||
},
|
||||
"errors": {
|
||||
"auth": {
|
||||
"method": {
|
||||
"signinDisabled": "Sign in method not enabled"
|
||||
},
|
||||
"invalidUserOrPass": "Invalid username or password.",
|
||||
"disabled": "Invalid or disabled account. Please contact the server administrator.",
|
||||
"invalidPassState": "Invalid password state. Please contact the server administrator.",
|
||||
"inviteIdRequired": "id required in fetching invitation",
|
||||
"invalidInvite": "Invalid or expired invitation",
|
||||
"usernameTaken": "Username already taken."
|
||||
},
|
||||
"backHome": "{arrow} Back to home",
|
||||
"invalidBody": "Invalid request body: {0}",
|
||||
"inviteRequired": "Invitation required to sign up.",
|
||||
@ -201,7 +212,8 @@
|
||||
"discord": "Discord",
|
||||
"github": "GitHub"
|
||||
},
|
||||
"topSellers": "Top Sellers"
|
||||
"topSellers": "Top Sellers",
|
||||
"version": "Drop {version} {gitRef}"
|
||||
},
|
||||
"header": {
|
||||
"admin": {
|
||||
@ -218,17 +230,14 @@
|
||||
"admin": {
|
||||
"description": "Manage the users on your Drop instance, and configure your authentication methods.",
|
||||
"authLink": "Authentication {arrow}",
|
||||
|
||||
"displayNameHeader": "Display Name",
|
||||
"usernameHeader": "Username",
|
||||
"emailHeader": "Email",
|
||||
"adminHeader": "Admin?",
|
||||
"authoptionsHeader": "Auth Options",
|
||||
"srEditLabel": "Edit",
|
||||
|
||||
"adminUserLabel": "Admin user",
|
||||
"normalUserLabel": "Normal user",
|
||||
|
||||
"authentication": {
|
||||
"title": "Authentication",
|
||||
"description": "Drop supports a variety of \"authentication mechanisms\". As you enable or disable them, they are shown on the sign in screen for users to select from. Click the dot menu to configure the authentication mechanism.",
|
||||
@ -237,47 +246,33 @@
|
||||
"disabled": "Disabled",
|
||||
"srOpenOptions": "Open options",
|
||||
"configure": "Configure",
|
||||
|
||||
"simple": "Simple (username/password)",
|
||||
"oidc": "OpenID Connect"
|
||||
},
|
||||
|
||||
"simple": {
|
||||
"title": "Simple authentication",
|
||||
"description": "Simple authentication uses a system of 'invitations' to create users. You can create an invitation, and optionally specify a username or email for the user, and then it will generate a magic URL that can be used to create an account.",
|
||||
|
||||
"invitationTitle": "invitations",
|
||||
"createInvitation": "Create invitation",
|
||||
|
||||
"noUsernameEnforced": "No username enforced.",
|
||||
"noEmailEnforced": "No email enforced.",
|
||||
|
||||
"adminInvitation": "Admin invitation",
|
||||
"userInvitation": "User invitation",
|
||||
|
||||
"expires": "Expires: {expiry}",
|
||||
"neverExpires": "Never expires.",
|
||||
|
||||
"noInvitations": "No invitations.",
|
||||
|
||||
"inviteTitle": "Invite user to Drop",
|
||||
"inviteDescription": "Drop will generate a URL that you can send to the person you want to invite. You can optionally specify a username or email for them to use.",
|
||||
|
||||
"inviteUsernameLabel": "Username (optional)",
|
||||
"inviteUsernameFormat": "Must be 5 or more characters",
|
||||
"inviteUsernamePlaceholder": "myUsername",
|
||||
|
||||
"inviteEmailLabel": "Email address (optional)",
|
||||
"inviteEmailDescription": "Must be in the format user{'@'}example.com",
|
||||
"inviteEmailPlaceholder": "me{'@'}example.com",
|
||||
|
||||
"inviteAdminSwitchLabel": "Admin invitation",
|
||||
"inviteAdminSwitchDescription": "Create this user as an administrator",
|
||||
|
||||
"inviteExpiryLabel": "Expires",
|
||||
|
||||
"inviteButton": "Invite",
|
||||
|
||||
"invite3Days": "3 days",
|
||||
"inviteWeek": "1 week",
|
||||
"inviteMonth": "1 month",
|
||||
@ -347,18 +342,14 @@
|
||||
"imageCarouselEmpty": "No images added to the carousel yet.",
|
||||
"removeImageCarousel": "Remove image",
|
||||
"addCarouselNoImages": "No images to add.",
|
||||
|
||||
"imageLibrary": "Image library",
|
||||
"imageLibraryDescription": "Please note all images uploaded are accessible to all users through browser dev-tools.",
|
||||
"setBanner": "Set as banner",
|
||||
"setCover": "Set as cover",
|
||||
"deleteImage": "Delete image",
|
||||
|
||||
"currentBanner": "banner",
|
||||
"currentCover": "cover",
|
||||
|
||||
"addDescriptionNoImages": "No images to add.",
|
||||
|
||||
"editGameName": "Game Name",
|
||||
"editGameDescription": "Game Description"
|
||||
},
|
||||
@ -407,23 +398,19 @@
|
||||
"scheduled": {
|
||||
"cleanupInvitationsName": "Clean up invitations",
|
||||
"cleanupInvitationsDescription": "Cleans up expired invitations from the database to save space.",
|
||||
|
||||
"cleanupObjectsName": "Clean up objects",
|
||||
"cleanupObjectsDescription": "Detects and deletes unreferenced and unused objects to save space.",
|
||||
|
||||
"cleanupSessionsName": "Clean up sessions.",
|
||||
"cleanupSessionsDescription": "Cleans up expired sessions to save space and ensure security.",
|
||||
|
||||
"checkUpdateName": "Check update.",
|
||||
"checkUpdateDescription": "Check if Drop has an update."
|
||||
},
|
||||
|
||||
"runningTasksTitle": "Running tasks",
|
||||
"noTasksRunning": "No tasks currently running",
|
||||
"completedTasksTitle": "Completed tasks",
|
||||
"dailyScheduledTitle": "Daily scheduled tasks",
|
||||
"weeklyScheduledTitle": "Weekly scheduled tasks",
|
||||
"viewTask": "View {arrow}",
|
||||
|
||||
"back": "{arrow} Back to Tasks"
|
||||
}
|
||||
},
|
||||
|
||||
1
i18n/locales/es.json
Normal file
1
i18n/locales/es.json
Normal file
@ -0,0 +1 @@
|
||||
{}
|
||||
1
i18n/locales/fr.json
Normal file
1
i18n/locales/fr.json
Normal file
@ -0,0 +1 @@
|
||||
{}
|
||||
1
i18n/locales/it.json
Normal file
1
i18n/locales/it.json
Normal file
@ -0,0 +1 @@
|
||||
{}
|
||||
1
i18n/locales/zh.json
Normal file
1
i18n/locales/zh.json
Normal file
@ -0,0 +1 @@
|
||||
{}
|
||||
1
i18n/locales/zh_tw.json
Normal file
1
i18n/locales/zh_tw.json
Normal file
@ -0,0 +1 @@
|
||||
{}
|
||||
Reference in New Issue
Block a user