i18n: switch from mixed case to sentence case

This commit is contained in:
James Xylight committed 2025-08-31 10:18:27 -07:00
1 parent ac3d544410
commit 602fab0f1e
4 files changed
+49 -74

No files matched your search

+1 -1
View File
@@ -76,7 +76,7 @@
color="tertiary" color="tertiary"
size="square-lg" size="square-lg"
rounding="pill" rounding="pill"
title={$t('post.image.close')} title={$t('common.back')}
> >
{#snippet prefix()} {#snippet prefix()}
<Icon src={XMark} size="20" micro /> <Icon src={XMark} size="20" micro />
@@ -392,14 +392,9 @@ export function getGroups(
actions: [ actions: [
{ {
href: '/create/post', href: '/create/post',
name: t.get('routes.createPost'), name: t.get('form.post.create'),
icon: PencilSquare, icon: PencilSquare,
}, },
{
href: '/create/community',
name: t.get('routes.createCommunity'),
icon: Newspaper,
},
], ],
}, },
{ {
+43 -63
View File
@@ -22,7 +22,7 @@
"app": "App", "app": "App",
"settings": "Settings", "settings": "Settings",
"colorscheme": { "colorscheme": {
"label": "Color Scheme", "label": "Color scheme",
"system": "System", "system": "System",
"dark": "Dark", "dark": "Dark",
"light": "Light" "light": "Light"
@@ -34,7 +34,7 @@
"instance": "Instance" "instance": "Instance"
}, },
"commands": { "commands": {
"prompt": "Command Palette", "prompt": "Command palette",
"recents": "Recents", "recents": "Recents",
"content": "Content", "content": "Content",
"search": "Search for {{default}}", "search": "Search for {{default}}",
@@ -52,15 +52,15 @@
"notifications": "Notifications" "notifications": "Notifications"
}, },
"account": { "account": {
"login": "Log In", "login": "Log in",
"logout": "Log Out", "logout": "Log out",
"signup": "Sign Up", "signup": "Sign up",
"accounts": "Accounts", "accounts": "Accounts",
"changeinstance": "Change Instance", "changeinstance": "Change instance",
"resetColor": "Reset Color", "resetColor": "Reset color",
"addGuest": "Add Guest", "addGuest": "Add guest",
"moveUp": "Move Up", "moveUp": "Move up",
"moveDown": "Move Down", "moveDown": "Move down",
"guest": "Guest", "guest": "Guest",
"versionGate": "This version of Photon supports instances running {{version}} or higher." "versionGate": "This version of Photon supports instances running {{version}} or higher."
}, },
@@ -121,24 +121,24 @@
"name": "Name", "name": "Name",
"instance": "Instance URL", "instance": "Instance URL",
"password": "Password", "password": "Password",
"confirmPassword": "Confirm Password", "confirmPassword": "Confirm password",
"2fa": "2FA Code", "2fa": "2FA Code",
"forgotpassword": "Forgot Password", "forgotpassword": "Forgot password",
"submit": "Submit", "submit": "Submit",
"edit": "Edit", "edit": "Edit",
"preview": "Preview", "preview": "Preview",
"post": { "post": {
"create": "Create Post", "create": "Create post",
"edit": "Edit Post", "edit": "Edit post",
"community": "Community", "community": "Community",
"title": "Title", "title": "Title",
"url": "URL", "url": "URL",
"body": "Body", "body": "Body",
"nsfw": "NSFW", "nsfw": "NSFW",
"generateTitle": "Generate Title", "generateTitle": "Generate title",
"uploadImage": "Upload Image", "uploadImage": "Upload image",
"selectFile": "Select a file", "selectFile": "Select a file",
"altText": "Alt Text", "altText": "Alt text",
"addUrl": "Add URL", "addUrl": "Add URL",
"setLanguage": "Set language", "setLanguage": "Set language",
"unset": "Unset", "unset": "Unset",
@@ -150,15 +150,15 @@
"avatar": "Avatar", "avatar": "Avatar",
"banner": "Banner", "banner": "Banner",
"email": "Email", "email": "Email",
"matrix": "Matrix User", "matrix": "Matrix user",
"showNSFW": "Show NSFW content", "showNSFW": "Show NSFW content",
"scores": "Show Scores", "scores": "Show scores",
"bot": "Bot Account", "bot": "Bot account",
"showBots": "Show Bots", "showBots": "Show bots",
"showRead": "Show Read Posts", "showRead": "Show read posts",
"currentPassword": "Current Password", "currentPassword": "Current password",
"newPassword": "New Password", "newPassword": "New password",
"verifyNewPassword": "Verify New Password", "verifyNewPassword": "Verify new password",
"2fa": { "2fa": {
"totp": "TOTP", "totp": "TOTP",
"2fa": "2FA", "2fa": "2FA",
@@ -166,7 +166,6 @@
"disabled": "2FA is disabled" "disabled": "2FA is disabled"
}, },
"deleteAccount": { "deleteAccount": {
"label": "Delete account",
"deleteContent": "Delete content", "deleteContent": "Delete content",
"warning": "This will delete ALL of your submissions." "warning": "This will delete ALL of your submissions."
}, },
@@ -253,7 +252,6 @@
"download": "Download" "download": "Download"
}, },
"logins": "Logins", "logins": "Logins",
"welcome": "Welcome, {{default}}!",
"delete": { "delete": {
"title": "Delete account", "title": "Delete account",
"warning": "This is permanent. Are you sure you want to do this?" "warning": "This is permanent. Are you sure you want to do this?"
@@ -284,8 +282,6 @@
"other": "Other results" "other": "Other results"
}, },
"saved": "Saved", "saved": "Saved",
"createPost": "Create Post",
"createCommunity": "Create Community",
"post": { "post": {
"crosspostCount": "Crossposts", "crosspostCount": "Crossposts",
"commentCount": "Comments", "commentCount": "Comments",
@@ -365,15 +361,15 @@
"sidebar": "Sidebar", "sidebar": "Sidebar",
"icon": "Icon", "icon": "Icon",
"banner": "Banner", "banner": "Banner",
"downvotesEnabled": "Enable Downvotes", "downvotesEnabled": "Enable downvotes",
"nsfwEnabled": "Enable NSFW", "nsfwEnabled": "Enable NSFW",
"registration": { "registration": {
"label": "Registration Mode", "label": "Registration mode",
"open": "Open", "open": "Open",
"application": "Require Application", "application": "Require application",
"closed": "Closed" "closed": "Closed"
}, },
"applicationQuestion": "Application Question", "applicationQuestion": "Application question",
"adminCommunityOnly": "Only admins can create communities", "adminCommunityOnly": "Only admins can create communities",
"requireVerifyEmail": "Require email verification", "requireVerifyEmail": "Require email verification",
"emailAdminsOnApplication": "Email admins on receiving new applications", "emailAdminsOnApplication": "Email admins on receiving new applications",
@@ -389,7 +385,7 @@
"federation": "Federation enabled", "federation": "Federation enabled",
"federationDebug": "Federation debug mode", "federationDebug": "Federation debug mode",
"captcha": { "captcha": {
"enabled": "CAPTCHA Enabled" "enabled": "CAPTCHA enabled"
} }
}, },
"applications": { "applications": {
@@ -405,7 +401,7 @@
"deny": "Deny", "deny": "Deny",
"approve": "Approve", "approve": "Approve",
"reason": "Reason", "reason": "Reason",
"modalTitle": "Deny Application" "modalTitle": "Deny application"
}, },
"taglines": { "taglines": {
"title": "Taglines", "title": "Taglines",
@@ -425,10 +421,10 @@
"federation": { "federation": {
"title": "Federation", "title": "Federation",
"csv": "Upload CSV", "csv": "Upload CSV",
"blocked": "Blocked Instances", "blocked": "Blocked instances",
"block": "Block", "block": "Block",
"blockplaceholder": "Block an instance...", "blockplaceholder": "Block an instance...",
"allowed": "Whitelisted Instances", "allowed": "Whitelisted instances",
"allow": "Whitelist", "allow": "Whitelist",
"allowplaceholder": "Whitelist an instance", "allowplaceholder": "Whitelist an instance",
"emptyBlock": { "emptyBlock": {
@@ -449,7 +445,7 @@
"error": "Failed to verify your email." "error": "Failed to verify your email."
}, },
"passwordChange": { "passwordChange": {
"title": "Change Password", "title": "Change password",
"description": "Choose your new password.", "description": "Choose your new password.",
"instance": "Which instance is your account hosted on?" "instance": "Which instance is your account hosted on?"
}, },
@@ -459,25 +455,22 @@
}, },
"theme": { "theme": {
"title": "Theme", "title": "Theme",
"import": "Import",
"export": "Export",
"reset": "Reset",
"accent": "Accent", "accent": "Accent",
"resetWarning": { "resetWarning": {
"title": "Reset Theme", "title": "Reset theme",
"description": "This will reset all of your colors to the default. It is recommended to export your theme before this." "description": "This will reset all of your colors to the default. It is recommended to export your theme before this."
}, },
"preset": { "preset": {
"title": "Can't be modified", "title": "Can't be modified",
"description": "This is a default theme, and can't be modified.", "description": "This is a default theme, and can't be modified.",
"delete": { "delete": {
"title": "Delete Theme", "title": "Delete theme",
"confirm": "Confirm" "confirm": "Confirm"
}, },
"default": "Default", "default": "Default",
"classic": "Classic", "classic": "Classic",
"imported": "Your Theme", "imported": "Your theme",
"new": "New Theme", "new": "New theme",
"presets": "Presets" "presets": "Presets"
} }
}, },
@@ -505,8 +498,6 @@
"block": "Block", "block": "Block",
"unblock": "Unblock", "unblock": "Unblock",
"blockInstance": "Block instance", "blockInstance": "Block instance",
"favorite": "Favorite",
"unfavorite": "Remove Favorite",
"activeDay": "Active Today" "activeDay": "Active Today"
} }
}, },
@@ -515,7 +506,7 @@
"instance": "Instance", "instance": "Instance",
"label": "Administration", "label": "Administration",
"purgeCommunity": { "purgeCommunity": {
"title": "Purging Community", "title": "Purging community",
"warning": "This will delete all posts. Are you sure? (The button will enable in 3 seconds.)" "warning": "This will delete all posts. Are you sure? (The button will enable in 3 seconds.)"
} }
}, },
@@ -535,25 +526,19 @@
"save": "Save", "save": "Save",
"unsave": "Unsave", "unsave": "Unsave",
"more": { "more": {
"label": "More Actions", "label": "More actions",
"edit": "Edit", "edit": "Edit",
"creator": "Creator", "creator": "Creator",
"actions": "Actions", "actions": "Actions",
"markRead": "Mark as Read", "markRead": "Mark as read",
"markUnread": "Mark as Unread", "markUnread": "Mark as unread",
"hide": "Hide", "hide": "Hide",
"unhide": "Unhide", "unhide": "Unhide",
"translate": "Translate",
"mediaBias": "Media Bias",
"share": "Share", "share": "Share",
"crosspost": "Crosspost", "crosspost": "Crosspost",
"delete": "Delete", "delete": "Delete",
"restore": "Restore" "restore": "Restore"
}, },
"link": {
"title": "Alternative Links",
"actions": "Link Actions"
},
"vote": { "vote": {
"upvote": "Upvote", "upvote": "Upvote",
"downvote": "Downvote", "downvote": "Downvote",
@@ -570,8 +555,7 @@
}, },
"image": { "image": {
"zoomIn": "Zoom in", "zoomIn": "Zoom in",
"zoomOut": "Zoom out", "zoomOut": "Zoom out"
"close": "Close"
}, },
"meta": { "meta": {
"lastEdited": "Last edited {{default}}", "lastEdited": "Last edited {{default}}",
@@ -738,10 +722,6 @@
"description": "Customize the UI colors.", "description": "Customize the UI colors.",
"link": "Go to themes" "link": "Go to themes"
}, },
"colorscheme": {
"title": "Color Scheme",
"description": "The color scheme to use."
},
"lang": { "lang": {
"title": "Language", "title": "Language",
"description": "The language used for text in the UI.", "description": "The language used for text in the UI.",
+4 -4
View File
@@ -105,7 +105,7 @@
disabled={themeData.current.id <= 0} disabled={themeData.current.id <= 0}
> >
<Icon src={ArrowUpTray} size="16" mini /> <Icon src={ArrowUpTray} size="16" mini />
{$t('routes.theme.import')} {$t('settings.import')}
</Button> </Button>
<Button <Button
onclick={() => { onclick={() => {
@@ -115,7 +115,7 @@
size="lg" size="lg"
> >
<Icon src={ArrowDownTray} size="16" mini /> <Icon src={ArrowDownTray} size="16" mini />
{$t('routes.theme.export')} {$t('settings.export')}
</Button> </Button>
<Button <Button
disabled={themeData.current.id <= 0} disabled={themeData.current.id <= 0}
@@ -135,7 +135,7 @@
slate: {}, slate: {},
} }
}, },
content: $t('routes.theme.reset'), content: $t('settings.reset'),
close: true, close: true,
type: 'danger', type: 'danger',
}), }),
@@ -147,7 +147,7 @@
size="lg" size="lg"
> >
<Icon src={ArrowPath} size="16" mini /> <Icon src={ArrowPath} size="16" mini />
{$t('routes.theme.reset')} {$t('settings.reset')}
</Button> </Button>
</div> </div>
{#if themeData.current.id <= 0} {#if themeData.current.id <= 0}