Skip to content
/ Folo Public
forked from RSSNext/Folo

Commit 0bd1599

Browse files
kovsulawvs
authored andcommitted
feat(desktop): add missing i18n key (RSSNext#4066)
1 parent 261aec9 commit 0bd1599

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

apps/desktop/layer/renderer/src/modules/profile/user-profile-modal/UserProfileModalContent.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ const UserSocialSection = ({ user }: { user: PickedUser }) => {
282282
return (
283283
<div className="border-fill bg-material-thin border-b px-6 py-4">
284284
<h3 className="text-text mb-3 text-sm font-medium uppercase tracking-wide">
285-
{t("user_profile.about", "About")}
285+
{t("user_profile.about")}
286286
</h3>
287287
{user.bio && <p className="text-text-secondary mb-3 text-sm leading-relaxed">{user.bio}</p>}
288288
<div className="space-y-2">
@@ -339,9 +339,7 @@ const Subscriptions = ({ userId }: { userId: string }) => {
339339
return (
340340
<>
341341
<div className="-mb-4 mt-4 flex items-center justify-between">
342-
<h2 className="text-text text-lg font-semibold">
343-
{t("user_profile.subscriptions", "Subscriptions")}
344-
</h2>
342+
<h2 className="text-text text-lg font-semibold">{t("user_profile.subscriptions")}</h2>
345343
<ActionButton
346344
tooltip={t("user_profile.toggle_item_style")}
347345
onClick={() => {
@@ -379,9 +377,7 @@ const Lists = ({ lists }: { lists: List[] }) => {
379377
return (
380378
<div>
381379
<div className="mb-4 flex items-center justify-between">
382-
<h2 className="text-text text-lg font-semibold">
383-
{t("user_profile.created_lists", "Created Lists")}
384-
</h2>
380+
<h2 className="text-text text-lg font-semibold">{t("user_profile.created_lists")}</h2>
385381
</div>
386382
<div className="@[500px]:grid-cols-2 @[700px]:grid-cols-3 grid grid-cols-1 gap-4">
387383
{lists.map((list) => (

locales/app/en.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,10 +431,13 @@
431431
"user_button.preferences": "Preferences",
432432
"user_button.profile": "Profile",
433433
"user_button.zen_mode": "Zen Mode",
434+
"user_profile.about": "About",
434435
"user_profile.close": "Close",
436+
"user_profile.created_lists": "Created Lists",
435437
"user_profile.edit": "Edit",
436438
"user_profile.loading": "Loading",
437439
"user_profile.share": "Share",
440+
"user_profile.subscriptions": "Subscriptions",
438441
"user_profile.toggle_item_style": "Toggle Item Style",
439442
"words.achievement": "Achievements",
440443
"words.actions": "Actions",

0 commit comments

Comments
 (0)