Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ yarn.lock
packages/ui/
.eslintrc-auto-import.js
auto-imports.d.ts

# 词表文件经 paraglide 按严格 JSON 解析,prettier 的 json5 解析器会改写为无引号键与单引号串,导致编译失败
apps/web/messages/
18 changes: 18 additions & 0 deletions apps/web/messages/en/about.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"heading": "About",
"description": "The origins of {{site}}, the writer behind it, and what it covers.",
"eyebrow": "Journal · About",
"issueTitle": "What kind of journal is this",
"issueParagraphOne": "{{site}} is a personal journal published as field notes. It records the trade-offs made in engineering practice, the details noticed in design, and the fragments of reading and daily life worth keeping. Posts are arranged as issues and can be browsed from the post index or the archive timeline.",
"issueParagraphTwo": "The site is itself one of the works: a full-stack monorepo built with Go and SvelteKit, where comments, favorites, notifications and full-text search are all real implementations. If the engineering interests you, its full entry lives in the project archive.",
"authorTitle": "The writer",
"columnsTitle": "What it covers",
"columns": {
"engineeringName": "Engineering notes",
"engineeringNote": "Records from frontend work and backend architecture",
"designName": "Design notes",
"designNote": "Observations on interfaces, typography and interaction",
"notesName": "Occasional thoughts",
"notesNote": "Fragments from reading and daily life worth keeping"
}
}
69 changes: 69 additions & 0 deletions apps/web/messages/en/account.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"login": {
"title": "{{site}} - Sign in",
"description": "Sign in to comment, like, save posts and follow authors.",
"eyebrow": "Portal · Auth",
"heading": "Welcome back",
"usernameLabel": "Username",
"usernamePlaceholder": "Enter your username",
"passwordLabel": "Password",
"passwordPlaceholder": "Enter your password",
"showPassword": "Show password",
"hidePassword": "Hide password",
"submit": "Sign in",
"submitting": "Signing in…",
"guestNote": "Without an account you can still comment as a guest, or contact the site owner to have one created.",
"validationFailed": "Enter your username and password",
"failed": "Sign-in failed, please check your username and password",
"sessionFailed": "Failed to establish the session, please try again",
"success": "Signed in",
"networkFailed": "Network error, please try again later"
},
"profile": {
"title": "{{site}} - Profile",
"description": "Maintain the signed-in user's profile: display name, avatar, bio and password.",
"eyebrow": "Profile · Settings",
"heading": "Profile",
"basicsTitle": "Basic details",
"basicsNote": "Your display name and bio appear on comments and your author page.",
"nicknameLabel": "Display name",
"nicknamePlaceholder": "Your display name",
"avatarLabel": "Avatar URL",
"urlPlaceholder": "https://…",
"bioLabel": "Bio",
"bioPlaceholder": "One line about yourself",
"websiteLabel": "Website",
"saveSubmit": "Save profile",
"saveSubmitting": "Saving…",
"saveFailed": "Failed to save the profile, please try again later",
"saveSuccess": "Profile saved",
"passwordTitle": "Change password",
"passwordRule": "{{min}}-{{max}} characters, including both letters and digits.",
"currentPasswordLabel": "Current password",
"currentPasswordPlaceholder": "Enter your current password",
"newPasswordLabel": "New password",
"newPasswordPlaceholder": "Enter a new password",
"confirmPasswordLabel": "Confirm new password",
"confirmPasswordPlaceholder": "Repeat the new password",
"passwordMismatch": "The two new passwords do not match",
"passwordSubmit": "Change password",
"passwordFailed": "Failed to change the password, please try again later",
"passwordSuccess": "Password changed, please sign in again with the new password",
"loadFailed": "Failed to load the profile, please try again later"
},
"favorites": {
"title": "{{site}} - Favorites",
"description": "Posts saved by the signed-in user.",
"eyebrow": "Favorites · Bookmarks",
"heading": "Favorites",
"emptyTitle": "No saved posts yet.",
"emptyNote": "Use the save button on a post to collect it here.",
"loadFailed": "Failed to load the saved posts, please try again later"
},
"follow": {
"signInRequired": "Sign in to follow this author",
"busy": "Working…",
"following": "Following",
"follow": "Follow"
}
}
13 changes: 13 additions & 0 deletions apps/web/messages/en/author.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"title": "{{name}} - Author - {{site}}",
"description": "All posts published by {{name}}",
"eyebrow": "Author · Profile",
"articleCount_one": "{{count}} article",
"articleCount_other": "{{count}} articles",
"followerCount_one": "{{count}} follower",
"followerCount_other": "{{count}} followers",
"followingCount": "{{count}} following",
"emptyTitle": "This author has no published posts yet.",
"emptyNote": "Browse the post index for other content.",
"notFound": "Author not found"
}
50 changes: 50 additions & 0 deletions apps/web/messages/en/blog.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"list": {
"title": "{{site}} - Post index",
"description": "The index of every post, ordered by publication time, with keyword search and paging.",
"eyebrow": "Journal · All issues",
"heading": "Post index",
"resultCount_one": "“{{search}}” · {{count}} result",
"resultCount_other": "“{{search}}” · {{count}} results",
"searchLabel": "Search posts",
"searchPlaceholder": "Search titles and body text…",
"searchSubmit": "Search",
"searchEmpty": "No posts found for “{{search}}”.",
"searchEmptyBefore": "Try another keyword, or",
"searchEmptyClear": "clear the search",
"searchEmptyAfter": "to browse every issue."
},
"detail": {
"eyebrow": "Journal · Post",
"notFound": "This post does not exist or is not published yet",
"commentsClosed": "Comments are closed for this post.",
"backToIndex": "← Back to the index"
},
"archives": {
"title": "{{site}} - Archives",
"description": "The chronological archive of every post, arranged by year and month.",
"eyebrow": "Chronicle · Archives",
"heading": "Archives",
"orderNote": "Arranged by year",
"emptyTitle": "The timeline awaits its first posts.",
"yearCount_one": "{{count}} article",
"yearCount_other": "{{count}} articles",
"monthLine": "Month {{month}} · {{date}}"
},
"actions": {
"signInRequired": "Sign in to join the conversation",
"liked": "Liked",
"like": "Like",
"bookmarked": "Saved",
"bookmark": "Save"
},
"pagination": {
"label": "Pagination",
"previous": "← Previous",
"next": "Next →",
"position": "Page {{current}} / {{total}}"
},
"error": {
"archivesFailed": "Failed to load the archive data, please try again later"
}
}
7 changes: 7 additions & 0 deletions apps/web/messages/en/category.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"title": "{{name}} - Category - {{site}}",
"eyebrow": "Category · {{slug}}",
"emptyTitle": "No published posts in this category yet.",
"emptyNote": "Browse the post index for other content.",
"notFound": "Category not found"
}
17 changes: 17 additions & 0 deletions apps/web/messages/en/comment.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"title": "Comments",
"count_one": "{{count}} comment",
"count_other": "{{count}} comments",
"nameLabel": "Name",
"namePlaceholder": "Name *",
"emailPlaceholder": "Email (not published)",
"contentLabel": "Comment",
"contentPlaceholder": "Say something",
"guestContentPlaceholder": "Say something as a guest",
"moderationNote": "Comments are published after review",
"submit": "Post comment",
"empty": "No comments yet. Be the first to say something.",
"loadMore": "Load more comments",
"submitFailed": "Failed to submit the comment, please try again later",
"submitSuccess": "Comment submitted, it will be published after review"
}
13 changes: 13 additions & 0 deletions apps/web/messages/en/contact.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"heading": "Contact",
"description": "The real channels for reaching the {{site}} author: GitHub, email and link exchange.",
"eyebrow": "Correspondence · Contact",
"lead": "Letters are welcome, whether it is a correction, a technical discussion or simply saying hello.",
"channels": {
"emailNote": "Write in for collaboration or long-form exchanges; replies usually arrive within two to three working days.",
"githubNote": "Issues and discussions suit technical topics best, and progress stays visible."
},
"inSiteTitle": "On-site channels",
"inSiteComments": "Comments: leave a note under any post; guests may comment and the author reads every one.",
"inSiteLinks": "Link exchange: submit an application at the bottom of the friendly-links dialog in the header; approved links appear there."
}
55 changes: 55 additions & 0 deletions apps/web/messages/en/home.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"seo": {
"title": "{{site}} - Compiling ideas into interfaces",
"description": "A personal blog on engineering practice and creative design, exploring what modern web development makes possible.",
"descriptionShort": "A personal blog on engineering practice and creative design",
"keywords": "blog,technology,development,design,SvelteKit,Go,full-stack development"
},
"hero": {
"eyebrow": "Journal · Code & Life",
"headlineLead": "Compiling ideas",
"headlineTail": "into ",
"headlineAccent": "interfaces",
"headlineNote": "// engineering × design",
"intro": "Notes on engineering practice, city wanderings, and the books finished late at night. I believe in slow and solid accumulation, and favour clean structures and honest writing.",
"ctaRead": "Start reading",
"excerptLabel": "This month's excerpt",
"quote": "“Write down what you have thought through, then do what you have written down.”",
"quoteAuthor": "— founding editor's note",
"specEngineering": "01 / Engineering",
"specDesign": "02 / Design",
"specLife": "03 / Life",
"imprint": "{{site}} — EST. 2026",
"scrollHint": "Scroll"
},
"index": {
"title": "Recent posts",
"emptyNote": "You can browse the layout and the site introduction in the meantime, or wait for updates on the archive page.",
"viewAll": "View all posts"
},
"featured": {
"badge": "Featured",
"categoryFallback": "Journal",
"readMore": "Read the full post"
},
"sidebar": {
"popular": "Popular posts",
"tags": "Tags",
"subscribeTitle": "Subscribe to the journal",
"subscribeNote": "Email subscription is in preparation. Once open it will gather the month's posts and reading list, without intruding.",
"subscribeEmailLabel": "Email address",
"subscribeEmailPlaceholder": "you@example.com",
"subscribeSubmit": "Subscribe",
"subscribeNotice": "Subscription is not open yet. An announcement will follow on the site, thank you for waiting."
},
"archivePreview": {
"title": "Creative timeline",
"viewAll": "Full archive →"
},
"action": {
"backToTop": "Back to top"
},
"error": {
"loadFailed": "Failed to load the home page data, please try again later"
}
}
43 changes: 43 additions & 0 deletions apps/web/messages/en/privacy.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"heading": "Privacy Policy",
"description": "The privacy policy of {{site}}: what data is collected, why, how long it is kept and how it is redacted.",
"eyebrow": "Compliance · Privacy",
"lead": "The site processes visitor data on a minimal-necessary basis, collecting only what keeps the features running, and states all of it on this page.",
"collectionTitle": "What this site collects",
"collection": {
"browsing": {
"title": "Article view data",
"item1": "Viewing an article records the source IP address, used to count views de-duplicated by visitor and calendar day; the site does not currently use browser fingerprints or other extra visitor identifiers.",
"item2": "View details serve on-site statistics only; the aggregated result is the view count shown on the article page."
},
"search": {
"title": "On-site search records",
"item1": "Searching from the index page records the keyword, the number of results and the query duration, used to analyse search quality and refine popular terms.",
"item2": "Search records are not linked with your other activity into a profile."
},
"comment": {
"title": "Comment information",
"item1": "Guests leaving a comment provide a nickname and an email address; the nickname is shown publicly with the comment, the email address is not.",
"item2": "The IP and browser-identifier fields reserved in the comment table are not currently used; should they be enabled, this page will be updated first."
},
"account": {
"title": "Account data",
"item1": "Registration is closed and accounts are created by the site administrator. Signing in collects a username, an email address and a password, and the password is stored as a one-way bcrypt hash that nobody, including the administrator, can read.",
"item2": "The nickname, avatar, bio and website address entered on the profile page are used for on-site display only."
},
"session": {
"title": "Session cookies",
"item1": "After signing in, two cookies are written to the browser, mb_access_token and mb_refresh_token, used solely to keep the session alive; the tokens are opaque random strings issued by the server, and the cookies themselves carry no identity information.",
"item2": "Both cookies set the HttpOnly attribute, so page scripts cannot read them, and they are sent only with requests under the /api path; the same-site policy is SameSite=Lax, so cross-site requests do not carry them.",
"item3": "The access token lasts 15 minutes by default and the refresh token 7 days; signing out or changing the password revokes the corresponding session on the server and tells the browser to remove the local cookies."
}
},
"promiseTitle": "Our commitments",
"promise1": "Data is never sold or shared with third parties.",
"promise2": "The site carries no advertising scripts and no cross-site trackers.",
"promise3": "Public API output is redacted; sensitive fields such as comment email addresses and source IPs are never returned by public endpoints.",
"promise4": "View and search details are kept long term for statistical analysis only; if an automatic cleanup cycle is introduced, this page will be updated to say so.",
"promise5": "Any new data-collection scenario is announced on this page before it is introduced.",
"updateBefore": "This policy describes how the site actually processes data today; any change will be made directly on this page, keeping the latest version. Questions about the policy or about data handling can be raised through the channels on the",
"updateAfter": "page."
}
16 changes: 16 additions & 0 deletions apps/web/messages/en/projects.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"heading": "Projects",
"description": "An archive of personal and open-source work, currently featuring the {{site}} full-stack project.",
"eyebrow": "Archive · Projects",
"lead": "Everything here is real and verifiable; each entry is updated as the project evolves.",
"card": {
"title": "MyBlog · {{site}}",
"meta": "Since 2026 · under continuous iteration",
"paragraphOne": "The site you are reading is the first entry in this archive: a full-stack personal blog built with Go and SvelteKit, covering eleven business modules including articles, comments, favorites, follows, notifications, statistics and friendly links, with role-based access control and Chinese full-text search.",
"paragraphTwo": "The project is organised as a pnpm monorepo: the frontend is split into five shared packages, namely api, http, auth, shared and ui, while the backend is layered into handler, service and repository. The comment moderation state machine, the notification pipeline and the backup and restore scripts are real implementations rather than demo samples.",
"sourceLink": "View the source repository"
},
"techStackTitle": "Tech stack",
"moreTitle": "More entries are being prepared and will appear as they are ready.",
"moreNote": "New work shows up first in the post index as a journal entry, then moves here."
}
52 changes: 47 additions & 5 deletions apps/web/messages/en/ui.json5
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,52 @@
"site": {
"name": "IdleRain Blogs"
},
"brand": {
"github": "GitHub"
},
"label": {
"email": "Email"
},
"author": {
"name": "Developer",
"role": "Full-stack engineer",
"roleWithFields": "Full-stack engineer · programming and design",
"tagline": "A maker passionate about programming and design, weaving ideas with code and changing the world with technology.",
"note": "Writing code by day, writing prose by night. I believe in slow and solid accumulation, and favour clean structures and honest writing.",
"approach": "Drawn to where engineering structure meets interface quality; I break complex problems into clear small pieces and fit them back into an elegant whole."
},
"meta": {
"minutesRead": "{{count}} min read",
"minutesReadApprox": "about {{count}} min",
"views_one": "{{count}} view",
"views_other": "{{count}} views",
"postCount_one": "{{count}} post",
"postCount_other": "{{count}} posts",
"ongoing": "continuously updated",
"pageTitle": "{{title}} - {{site}}"
},
"empty": {
"inPreparation": "The inaugural issue is in preparation, posts will follow soon.",
"backHome": "You can head back to the home page to browse the layout and the site introduction."
},
"action": {
"failed": "Something went wrong, please try again later",
"submitting": "Submitting…",
"backHome": "Back home"
},
"session": {
"expired": "Your session has expired, please sign in again"
},
"placeholder": {
"scheduleNote": "Layout in progress · this section will arrive in a later iteration"
},
"codeBlock": {
"copy": "Copy",
"copied": "Copied",
"copyFailed": "Copy failed",
"copyAria": "Copy code",
"plainText": "Text"
},
"button": {
"save": "Save",
"cancel": "Cancel",
Expand Down Expand Up @@ -39,9 +85,6 @@
"githubHome": "GitHub home",
"themeToggle": "Toggle theme",
"aboutAuthor": "About the author",
"aboutAuthorDesc": "A maker passionate about programming and design, weaving ideas with code and changing the world with technology.",
"authorName": "Developer",
"authorTitle": "Full-stack engineer",
"notifications": "Notifications",
"markAllRead": "Mark all read",
"noNotifications": "No notifications yet"
Expand Down Expand Up @@ -73,7 +116,6 @@
"contactEmail": "Contact email",
"contactEmailPlaceholder": "Used to receive the review result",
"submit": "Submit application",
"submitting": "Submitting…",
"applySubmitted": "Application submitted, awaiting review",
"submitFailed": "Failed to submit the application, please try again later"
},
Expand All @@ -84,6 +126,6 @@
"serverErrorTitle": "The printing press broke down",
"serverErrorSubtitle": "The server ran into an unexpected problem and the content is temporarily unavailable",
"retry": "Retry",
"backHome": "Back home"
"listFailed": "Failed to load the post list, please try again later"
}
}
Loading
Loading