-
Notifications
You must be signed in to change notification settings - Fork 669
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add i18next * language selector * add chinese translation to general settings * fix: type error Signed-off-by: Innei <i@innei.in> * fix: selection style Signed-off-by: Innei <i@innei.in> * refactor: init i18n and language map Signed-off-by: Innei <i@innei.in> * feat: intelligence Signed-off-by: Innei <i@innei.in> * refactor: i18n dx hmr Signed-off-by: Innei <i@innei.in> * chore: lockfile Signed-off-by: Innei <i@innei.in> * chore: code style Signed-off-by: Innei <i@innei.in> * cleanup Signed-off-by: Innei <i@innei.in> --------- Signed-off-by: Innei <i@innei.in> Co-authored-by: Innei <i@innei.in>
- Loading branch information
Showing
28 changed files
with
585 additions
and
182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
{ | ||
"words": { | ||
"search": "Search", | ||
"import": "Import", | ||
"discover": "Discover", | ||
"language": "Language" | ||
}, | ||
"signin": { | ||
"continue_with_github": "Continue with GitHub", | ||
"continue_with_google": "Continue with Google", | ||
"sign_in_to": "Sign in to" | ||
}, | ||
"settings": { | ||
"general": { | ||
"app": "App", | ||
"launch_at_login": "Launch at login", | ||
"timeline": "Timeline", | ||
"show_unread_on_launch": { | ||
"description": "Show unread content on launch", | ||
"label": "Show unread content on launch" | ||
}, | ||
"rebuild_database": { | ||
"warning": { | ||
"line1": "Rebuilding the database will clear all your local data.", | ||
"line2": "Are you sure you want to continue?" | ||
}, | ||
"label": "Rebuild Database", | ||
"description": "If you are experiencing rendering issues, rebuilding the database may solve them.", | ||
"button": "Rebuild", | ||
"title": "Rebuild Database" | ||
}, | ||
"group_by_date": { | ||
"label": "Group by date", | ||
"description": "Group entries by date." | ||
}, | ||
"mark_as_read": { | ||
"scroll": { | ||
"label": "Mark as read when scrolling", | ||
"description": "Automatically mark entries as read when scrolled out of the view." | ||
}, | ||
"hover": { | ||
"label": "Mark as read when hovering", | ||
"description": "Automatically mark entries as read when hovered." | ||
}, | ||
"render": { | ||
"label": "Mark as read when in the view", | ||
"description": "Automatically mark single-level entries (e.g. social media posts, pictures, video views) as read when they enter the view." | ||
} | ||
}, | ||
"privacy_data": "Privacy & Data", | ||
"data_persist": { | ||
"label": "Persist data for offline usage", | ||
"description": "Persist data locally to enable offline access and local search." | ||
}, | ||
"send_anonymous_data": { | ||
"label": "Send anonymous data", | ||
"description": "By opting to send anonymized telemetry data, you contribute to improving the overall user experience of Follow." | ||
}, | ||
"voices": "Voices" | ||
}, | ||
"integration": { | ||
"title": "Integration", | ||
"eagle": { | ||
"title": "Eagle", | ||
"enable": { | ||
"label": "Enable", | ||
"description": "Display 'Save media to Eagle' button when available." | ||
} | ||
}, | ||
"readwise": { | ||
"title": "Readwise", | ||
"enable": { | ||
"label": "Enable", | ||
"description": "Display 'Save to Readwise' button when available." | ||
}, | ||
"token": { | ||
"label": "Readwise Access Token", | ||
"description": "You can get it here: readwise.io/access_token." | ||
} | ||
}, | ||
"instapaper": { | ||
"title": "Instapaper", | ||
"enable": { | ||
"label": "Enable", | ||
"description": "Display 'Save to Instapaper' button when available." | ||
}, | ||
"username": { | ||
"label": "Instapaper Username" | ||
}, | ||
"password": { | ||
"label": "Instapaper Password" | ||
} | ||
}, | ||
"tip": "Tip: Your sensitive data is stored locally and is not uploaded to the server." | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"name": "English" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"name": "简体中文(部分完成)" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{ | ||
"words": { | ||
"search": "搜索", | ||
"import": "导入", | ||
"discover": "发现", | ||
"language": "语言" | ||
}, | ||
"signin": { | ||
"continue_with_github": "使用 GitHub 登录", | ||
"continue_with_google": "使用 Google 登录", | ||
"sign_in_to": "登录到" | ||
}, | ||
"settings": { | ||
"general": { | ||
"app": "应用程序", | ||
"data_persist": { | ||
"description": "在本地保留数据以启用离线访问和本地搜索。", | ||
"label": "保留数据以供离线使用" | ||
}, | ||
"group_by_date": { | ||
"description": "按日期对条目进行分组。", | ||
"label": "按日期分组" | ||
}, | ||
"launch_at_login": "登录时启动", | ||
"mark_as_read": { | ||
"hover": { | ||
"description": "悬停时自动将条目标记为已读。", | ||
"label": "悬停时标记为已读" | ||
}, | ||
"render": { | ||
"description": "当单级条目(例如社交媒体帖子、图片、视频视图)进入视图时自动将其标记为已读。", | ||
"label": "在视图中标记为已读" | ||
}, | ||
"scroll": { | ||
"description": "当滚动出视图时自动将条目标记为已读。", | ||
"label": "滚动时标记为已读" | ||
} | ||
}, | ||
"privacy_data": "隐私", | ||
"rebuild_database": { | ||
"button": "重建", | ||
"description": "如果您遇到渲染问题,重建数据库可能会解决这些问题。", | ||
"label": "重建数据库", | ||
"title": "重建数据库", | ||
"warning[0]": "重建数据库将清除所有本地数据。", | ||
"warning[1]": "您确定要继续吗?", | ||
"warning": { | ||
"line1": "重建数据库将清除所有本地数据。", | ||
"line2": "您确定要继续吗?" | ||
} | ||
}, | ||
"send_anonymous_data": { | ||
"description": "通过选择发送匿名遥测数据,您可以为改善“关注”的整体用户体验做出贡献。", | ||
"label": "发送匿名数据" | ||
}, | ||
"show_unread_on_launch": { | ||
"description": "启动时显示未读内容", | ||
"label": "启动时显示未读内容" | ||
}, | ||
"timeline": "时间轴", | ||
"voices": "声音" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import type resources from "./resources" | ||
|
||
declare module "i18next" { | ||
interface CustomTypeOptions { | ||
resources: (typeof resources)["en"] | ||
defaultNS: "translation" | ||
// if you see an error like: "Argument of type 'DefaultTFuncReturn' is not assignable to parameter of type xyz" | ||
// set returnNull to false (and also in the i18next init options) | ||
// returnNull: false; | ||
} | ||
} |
Oops, something went wrong.