From 396ed8a80caab4b04c21458ef351f228f1971993 Mon Sep 17 00:00:00 2001 From: Zhiyuan Zheng Date: Sun, 28 Mar 2021 01:12:26 +0100 Subject: [PATCH] Put all localisation into json --- src/Screens.tsx | 3 +- src/i18n/en/_all.ts | 56 +++--- src/i18n/en/common.json | 32 ++++ src/i18n/en/common.ts | 33 ---- src/i18n/en/components/instance.json | 28 +++ src/i18n/en/components/instance.ts | 31 ---- src/i18n/en/components/parse.json | 9 + src/i18n/en/components/parse.ts | 9 - src/i18n/en/components/relationship.json | 16 ++ src/i18n/en/components/relationship.ts | 16 -- src/i18n/en/components/relativeTime.json | 20 +++ src/i18n/en/components/relativeTime.ts | 21 --- src/i18n/en/components/timeline.json | 164 ++++++++++++++++++ src/i18n/en/components/timeline.ts | 160 ----------------- src/i18n/en/screens/local.json | 3 + src/i18n/en/screens/local.ts | 3 - src/i18n/en/screens/meBookmarks.json | 3 + src/i18n/en/screens/meBookmarks.ts | 4 - src/i18n/en/screens/meConversations.json | 3 + src/i18n/en/screens/meConversations.ts | 4 - src/i18n/en/screens/meFavourites.json | 3 + src/i18n/en/screens/meFavourites.ts | 4 - src/i18n/en/screens/meLists.json | 3 + src/i18n/en/screens/meLists.ts | 4 - src/i18n/en/screens/meListsList.json | 3 + src/i18n/en/screens/meListsList.ts | 4 - src/i18n/en/screens/meRoot.json | 31 ++++ src/i18n/en/screens/meRoot.ts | 31 ---- src/i18n/en/screens/meSettings.json | 65 +++++++ src/i18n/en/screens/meSettings.ts | 65 ------- src/i18n/en/screens/meSettingsFontsize.json | 15 ++ src/i18n/en/screens/meSettingsFontsize.ts | 10 -- src/i18n/en/screens/meSettingsPush.json | 40 +++++ src/i18n/en/screens/meSettingsPush.ts | 41 ----- src/i18n/en/screens/meSwitch.json | 7 + src/i18n/en/screens/meSwitch.ts | 7 - src/i18n/en/screens/notifications.json | 3 + src/i18n/en/screens/notifications.ts | 3 - src/i18n/en/screens/public.json | 8 + src/i18n/en/screens/public.ts | 8 - src/i18n/en/screens/screenActions.json | 19 ++ src/i18n/en/screens/screenActions.ts | 19 -- src/i18n/en/screens/screenImageViewer.json | 13 ++ src/i18n/en/screens/screenImageViewer.ts | 13 -- src/i18n/en/screens/sharedAccount.json | 11 ++ src/i18n/en/screens/sharedAccount.ts | 11 -- src/i18n/en/screens/sharedAnnouncements.json | 10 ++ src/i18n/en/screens/sharedAnnouncements.ts | 10 -- src/i18n/en/screens/sharedAttachments.json | 3 + src/i18n/en/screens/sharedAttachments.ts | 3 - src/i18n/en/screens/sharedCompose.json | 157 +++++++++++++++++ src/i18n/en/screens/sharedCompose.ts | 159 ----------------- src/i18n/en/screens/sharedSearch.json | 26 +++ src/i18n/en/screens/sharedSearch.ts | 31 ---- src/i18n/en/screens/sharedToot.json | 3 + src/i18n/en/screens/sharedToot.ts | 3 - src/i18n/en/screens/sharedUsers.json | 12 ++ src/i18n/en/screens/sharedUsers.ts | 12 -- src/i18n/zh-Hans/_all.ts | 56 +++--- src/i18n/zh-Hans/common.json | 32 ++++ src/i18n/zh-Hans/common.ts | 32 ---- src/i18n/zh-Hans/components/instance.json | 28 +++ src/i18n/zh-Hans/components/instance.ts | 30 ---- src/i18n/zh-Hans/components/parse.json | 9 + src/i18n/zh-Hans/components/parse.ts | 9 - src/i18n/zh-Hans/components/relationship.json | 16 ++ src/i18n/zh-Hans/components/relationship.ts | 16 -- src/i18n/zh-Hans/components/relativeTime.json | 20 +++ src/i18n/zh-Hans/components/relativeTime.ts | 20 --- src/i18n/zh-Hans/components/timeline.json | 162 +++++++++++++++++ src/i18n/zh-Hans/components/timeline.ts | 158 ----------------- src/i18n/zh-Hans/screens/local.json | 3 + src/i18n/zh-Hans/screens/local.ts | 3 - src/i18n/zh-Hans/screens/meBookmarks.json | 4 + src/i18n/zh-Hans/screens/meBookmarks.ts | 4 - src/i18n/zh-Hans/screens/meConversations.json | 4 + src/i18n/zh-Hans/screens/meConversations.ts | 4 - src/i18n/zh-Hans/screens/meFavourites.json | 4 + src/i18n/zh-Hans/screens/meFavourites.ts | 4 - src/i18n/zh-Hans/screens/meLists.json | 4 + src/i18n/zh-Hans/screens/meLists.ts | 4 - src/i18n/zh-Hans/screens/meListsList.json | 4 + src/i18n/zh-Hans/screens/meListsList.ts | 4 - src/i18n/zh-Hans/screens/meRoot.json | 31 ++++ src/i18n/zh-Hans/screens/meRoot.ts | 31 ---- src/i18n/zh-Hans/screens/meSettings.json | 65 +++++++ src/i18n/zh-Hans/screens/meSettings.ts | 65 ------- .../zh-Hans/screens/meSettingsFontsize.json | 10 ++ .../zh-Hans/screens/meSettingsFontsize.ts | 10 -- src/i18n/zh-Hans/screens/meSettingsPush.json | 40 +++++ src/i18n/zh-Hans/screens/meSettingsPush.ts | 41 ----- src/i18n/zh-Hans/screens/meSwitch.json | 7 + src/i18n/zh-Hans/screens/meSwitch.ts | 7 - src/i18n/zh-Hans/screens/notifications.json | 3 + src/i18n/zh-Hans/screens/notifications.ts | 3 - src/i18n/zh-Hans/screens/public.json | 8 + src/i18n/zh-Hans/screens/public.ts | 8 - src/i18n/zh-Hans/screens/screenActions.json | 19 ++ src/i18n/zh-Hans/screens/screenActions.ts | 19 -- .../zh-Hans/screens/screenImageViewer.json | 13 ++ src/i18n/zh-Hans/screens/screenImageViewer.ts | 13 -- src/i18n/zh-Hans/screens/sharedAccount.json | 11 ++ src/i18n/zh-Hans/screens/sharedAccount.ts | 11 -- .../zh-Hans/screens/sharedAnnouncements.json | 10 ++ .../zh-Hans/screens/sharedAnnouncements.ts | 10 -- .../zh-Hans/screens/sharedAttachments.json | 3 + src/i18n/zh-Hans/screens/sharedAttachments.ts | 3 - src/i18n/zh-Hans/screens/sharedCompose.json | 156 +++++++++++++++++ src/i18n/zh-Hans/screens/sharedCompose.ts | 157 ----------------- src/i18n/zh-Hans/screens/sharedSearch.json | 26 +++ src/i18n/zh-Hans/screens/sharedSearch.ts | 31 ---- src/i18n/zh-Hans/screens/sharedToot.json | 3 + src/i18n/zh-Hans/screens/sharedToot.ts | 3 - src/i18n/zh-Hans/screens/sharedUsers.json | 12 ++ src/i18n/zh-Hans/screens/sharedUsers.ts | 12 -- 115 files changed, 1474 insertions(+), 1489 deletions(-) create mode 100644 src/i18n/en/common.json delete mode 100644 src/i18n/en/common.ts create mode 100644 src/i18n/en/components/instance.json delete mode 100644 src/i18n/en/components/instance.ts create mode 100644 src/i18n/en/components/parse.json delete mode 100644 src/i18n/en/components/parse.ts create mode 100644 src/i18n/en/components/relationship.json delete mode 100644 src/i18n/en/components/relationship.ts create mode 100644 src/i18n/en/components/relativeTime.json delete mode 100644 src/i18n/en/components/relativeTime.ts create mode 100644 src/i18n/en/components/timeline.json delete mode 100644 src/i18n/en/components/timeline.ts create mode 100644 src/i18n/en/screens/local.json delete mode 100644 src/i18n/en/screens/local.ts create mode 100644 src/i18n/en/screens/meBookmarks.json delete mode 100644 src/i18n/en/screens/meBookmarks.ts create mode 100644 src/i18n/en/screens/meConversations.json delete mode 100644 src/i18n/en/screens/meConversations.ts create mode 100644 src/i18n/en/screens/meFavourites.json delete mode 100644 src/i18n/en/screens/meFavourites.ts create mode 100644 src/i18n/en/screens/meLists.json delete mode 100644 src/i18n/en/screens/meLists.ts create mode 100644 src/i18n/en/screens/meListsList.json delete mode 100644 src/i18n/en/screens/meListsList.ts create mode 100644 src/i18n/en/screens/meRoot.json delete mode 100644 src/i18n/en/screens/meRoot.ts create mode 100644 src/i18n/en/screens/meSettings.json delete mode 100644 src/i18n/en/screens/meSettings.ts create mode 100644 src/i18n/en/screens/meSettingsFontsize.json delete mode 100644 src/i18n/en/screens/meSettingsFontsize.ts create mode 100644 src/i18n/en/screens/meSettingsPush.json delete mode 100644 src/i18n/en/screens/meSettingsPush.ts create mode 100644 src/i18n/en/screens/meSwitch.json delete mode 100644 src/i18n/en/screens/meSwitch.ts create mode 100644 src/i18n/en/screens/notifications.json delete mode 100644 src/i18n/en/screens/notifications.ts create mode 100644 src/i18n/en/screens/public.json delete mode 100644 src/i18n/en/screens/public.ts create mode 100644 src/i18n/en/screens/screenActions.json delete mode 100644 src/i18n/en/screens/screenActions.ts create mode 100644 src/i18n/en/screens/screenImageViewer.json delete mode 100644 src/i18n/en/screens/screenImageViewer.ts create mode 100644 src/i18n/en/screens/sharedAccount.json delete mode 100644 src/i18n/en/screens/sharedAccount.ts create mode 100644 src/i18n/en/screens/sharedAnnouncements.json delete mode 100644 src/i18n/en/screens/sharedAnnouncements.ts create mode 100644 src/i18n/en/screens/sharedAttachments.json delete mode 100644 src/i18n/en/screens/sharedAttachments.ts create mode 100644 src/i18n/en/screens/sharedCompose.json delete mode 100644 src/i18n/en/screens/sharedCompose.ts create mode 100644 src/i18n/en/screens/sharedSearch.json delete mode 100644 src/i18n/en/screens/sharedSearch.ts create mode 100644 src/i18n/en/screens/sharedToot.json delete mode 100644 src/i18n/en/screens/sharedToot.ts create mode 100644 src/i18n/en/screens/sharedUsers.json delete mode 100644 src/i18n/en/screens/sharedUsers.ts create mode 100644 src/i18n/zh-Hans/common.json delete mode 100644 src/i18n/zh-Hans/common.ts create mode 100644 src/i18n/zh-Hans/components/instance.json delete mode 100644 src/i18n/zh-Hans/components/instance.ts create mode 100644 src/i18n/zh-Hans/components/parse.json delete mode 100644 src/i18n/zh-Hans/components/parse.ts create mode 100644 src/i18n/zh-Hans/components/relationship.json delete mode 100644 src/i18n/zh-Hans/components/relationship.ts create mode 100644 src/i18n/zh-Hans/components/relativeTime.json delete mode 100644 src/i18n/zh-Hans/components/relativeTime.ts create mode 100644 src/i18n/zh-Hans/components/timeline.json delete mode 100644 src/i18n/zh-Hans/components/timeline.ts create mode 100644 src/i18n/zh-Hans/screens/local.json delete mode 100644 src/i18n/zh-Hans/screens/local.ts create mode 100644 src/i18n/zh-Hans/screens/meBookmarks.json delete mode 100644 src/i18n/zh-Hans/screens/meBookmarks.ts create mode 100644 src/i18n/zh-Hans/screens/meConversations.json delete mode 100644 src/i18n/zh-Hans/screens/meConversations.ts create mode 100644 src/i18n/zh-Hans/screens/meFavourites.json delete mode 100644 src/i18n/zh-Hans/screens/meFavourites.ts create mode 100644 src/i18n/zh-Hans/screens/meLists.json delete mode 100644 src/i18n/zh-Hans/screens/meLists.ts create mode 100644 src/i18n/zh-Hans/screens/meListsList.json delete mode 100644 src/i18n/zh-Hans/screens/meListsList.ts create mode 100644 src/i18n/zh-Hans/screens/meRoot.json delete mode 100644 src/i18n/zh-Hans/screens/meRoot.ts create mode 100644 src/i18n/zh-Hans/screens/meSettings.json delete mode 100644 src/i18n/zh-Hans/screens/meSettings.ts create mode 100644 src/i18n/zh-Hans/screens/meSettingsFontsize.json delete mode 100644 src/i18n/zh-Hans/screens/meSettingsFontsize.ts create mode 100644 src/i18n/zh-Hans/screens/meSettingsPush.json delete mode 100644 src/i18n/zh-Hans/screens/meSettingsPush.ts create mode 100644 src/i18n/zh-Hans/screens/meSwitch.json delete mode 100644 src/i18n/zh-Hans/screens/meSwitch.ts create mode 100644 src/i18n/zh-Hans/screens/notifications.json delete mode 100644 src/i18n/zh-Hans/screens/notifications.ts create mode 100644 src/i18n/zh-Hans/screens/public.json delete mode 100644 src/i18n/zh-Hans/screens/public.ts create mode 100644 src/i18n/zh-Hans/screens/screenActions.json delete mode 100644 src/i18n/zh-Hans/screens/screenActions.ts create mode 100644 src/i18n/zh-Hans/screens/screenImageViewer.json delete mode 100644 src/i18n/zh-Hans/screens/screenImageViewer.ts create mode 100644 src/i18n/zh-Hans/screens/sharedAccount.json delete mode 100644 src/i18n/zh-Hans/screens/sharedAccount.ts create mode 100644 src/i18n/zh-Hans/screens/sharedAnnouncements.json delete mode 100644 src/i18n/zh-Hans/screens/sharedAnnouncements.ts create mode 100644 src/i18n/zh-Hans/screens/sharedAttachments.json delete mode 100644 src/i18n/zh-Hans/screens/sharedAttachments.ts create mode 100644 src/i18n/zh-Hans/screens/sharedCompose.json delete mode 100644 src/i18n/zh-Hans/screens/sharedCompose.ts create mode 100644 src/i18n/zh-Hans/screens/sharedSearch.json delete mode 100644 src/i18n/zh-Hans/screens/sharedSearch.ts create mode 100644 src/i18n/zh-Hans/screens/sharedToot.json delete mode 100644 src/i18n/zh-Hans/screens/sharedToot.ts create mode 100644 src/i18n/zh-Hans/screens/sharedUsers.json delete mode 100644 src/i18n/zh-Hans/screens/sharedUsers.ts diff --git a/src/Screens.tsx b/src/Screens.tsx index c156b45a..7aa01265 100644 --- a/src/Screens.tsx +++ b/src/Screens.tsx @@ -28,13 +28,12 @@ import { useDispatch, useSelector } from 'react-redux' import * as Sentry from 'sentry-expo' const Stack = createNativeStackNavigator() +export const navigationRef = createRef() export interface Props { localCorrupt?: string } -export const navigationRef = createRef() - const Screens: React.FC = ({ localCorrupt }) => { const { t } = useTranslation('common') const dispatch = useDispatch() diff --git a/src/i18n/en/_all.ts b/src/i18n/en/_all.ts index 2512e104..7ae4e778 100644 --- a/src/i18n/en/_all.ts +++ b/src/i18n/en/_all.ts @@ -1,37 +1,37 @@ export default { - common: require('./common').default, + common: require('./common'), - local: require('./screens/local').default, + local: require('./screens/local'), - public: require('./screens/public').default, + public: require('./screens/public'), - notifications: require('./screens/notifications').default, + notifications: require('./screens/notifications'), - meRoot: require('./screens/meRoot').default, - meConversations: require('./screens/meConversations').default, - meBookmarks: require('./screens/meBookmarks').default, - meFavourites: require('./screens/meFavourites').default, - meLists: require('./screens/meLists').default, - meListsList: require('./screens/meListsList').default, - meSettings: require('./screens/meSettings').default, - meSettingsFontsize: require('./screens/meSettingsFontsize').default, - meSettingsPush: require('./screens/meSettingsPush').default, - meSwitch: require('./screens/meSwitch').default, + meRoot: require('./screens/meRoot'), + meConversations: require('./screens/meConversations'), + meBookmarks: require('./screens/meBookmarks'), + meFavourites: require('./screens/meFavourites'), + meLists: require('./screens/meLists'), + meListsList: require('./screens/meListsList'), + meSettings: require('./screens/meSettings'), + meSettingsFontsize: require('./screens/meSettingsFontsize'), + meSettingsPush: require('./screens/meSettingsPush'), + meSwitch: require('./screens/meSwitch'), - sharedAccount: require('./screens/sharedAccount').default, - sharedAnnouncements: require('./screens/sharedAnnouncements').default, - sharedAttachments: require('./screens/sharedAttachments').default, - sharedCompose: require('./screens/sharedCompose').default, - sharedSearch: require('./screens/sharedSearch').default, - sharedToot: require('./screens/sharedToot').default, - sharedUsers: require('./screens/sharedUsers').default, + sharedAccount: require('./screens/sharedAccount'), + sharedAnnouncements: require('./screens/sharedAnnouncements'), + sharedAttachments: require('./screens/sharedAttachments'), + sharedCompose: require('./screens/sharedCompose'), + sharedSearch: require('./screens/sharedSearch'), + sharedToot: require('./screens/sharedToot'), + sharedUsers: require('./screens/sharedUsers'), - componentInstance: require('./components/instance').default, - componentParse: require('./components/parse').default, - componentRelationship: require('./components/relationship').default, - componentRelativeTime: require('./components/relativeTime').default, - componentTimeline: require('./components/timeline').default, + componentInstance: require('./components/instance'), + componentParse: require('./components/parse'), + componentRelationship: require('./components/relationship'), + componentRelativeTime: require('./components/relativeTime'), + componentTimeline: require('./components/timeline'), - screenActions: require('./screens/screenActions').default, - screenImageViewer: require('./screens/screenImageViewer').default + screenActions: require('./screens/screenActions'), + screenImageViewer: require('./screens/screenImageViewer') } diff --git a/src/i18n/en/common.json b/src/i18n/en/common.json new file mode 100644 index 00000000..51ce2106 --- /dev/null +++ b/src/i18n/en/common.json @@ -0,0 +1,32 @@ +{ + "network": { + "disconnected": { + "message": "Lost network connection", + "description": "Please check your phone's network setting" + } + }, + "screenshot": { + "title": "Privacy Protection", + "message": "Please do not disclose other user's identity, such as username, avatar, etc. Thank you!", + "button": "Confirm" + }, + "index": { + "localCorrupt": "Login expired, please login again" + }, + "buttons": { + "apply": "Apply", + "cancel": "Cancel" + }, + "toastMessage": { + "success": { + "message": "{{function}} succeed" + }, + "warning": { + "message": "" + }, + "error": { + "message": "{{function}} failed, please retry" + } + }, + "separator": ", " +} \ No newline at end of file diff --git a/src/i18n/en/common.ts b/src/i18n/en/common.ts deleted file mode 100644 index 24705143..00000000 --- a/src/i18n/en/common.ts +++ /dev/null @@ -1,33 +0,0 @@ -export default { - network: { - disconnected: { - message: 'Lost network connection', - description: "Please check your phone's network setting" - } - }, - screenshot: { - title: 'Privacy Protection', - message: - "Please do not disclose other user's identity, such as username, avatar, etc. Thank you!", - button: 'Confirm' - }, - index: { - localCorrupt: 'Login expired, please login again' - }, - buttons: { - apply: 'Apply', - cancel: 'Cancel' - }, - toastMessage: { - success: { - message: '{{function}} succeed' - }, - warning: { - message: '' - }, - error: { - message: '{{function}} failed, please retry' - } - }, - separator: ', ' -} diff --git a/src/i18n/en/components/instance.json b/src/i18n/en/components/instance.json new file mode 100644 index 00000000..c9d1f43e --- /dev/null +++ b/src/i18n/en/components/instance.json @@ -0,0 +1,28 @@ +{ + "server": { + "textInput": { + "placeholder": "Instance' domain" + }, + "button": "Login", + "information": { + "name": "Name", + "accounts": "Users", + "statuses": "Toots", + "domains": "Universes" + }, + "disclaimer": { + "base": "Logging in process uses system broswer that, your account information won't be visible to tooot app. Read more ", + "privacy": "privacy policy" + } + }, + "update": { + "alert": { + "title": "Logged in to this instance", + "message": "You can login to another account, keeping existing logged in account", + "buttons": { + "cancel": "$t(common:buttons.cancel)", + "continue": "Continue" + } + } + } +} \ No newline at end of file diff --git a/src/i18n/en/components/instance.ts b/src/i18n/en/components/instance.ts deleted file mode 100644 index c7c29001..00000000 --- a/src/i18n/en/components/instance.ts +++ /dev/null @@ -1,31 +0,0 @@ -export default { - server: { - textInput: { placeholder: "Instance' domain" }, - privateInstance: 'Private instance, peeping not allowed', - EULA: { base: 'I have read and agreed to ', EULA: 'EULA' }, - button: 'Login', - information: { - name: 'Name', - description: { heading: 'Description', expandHint: 'description' }, - accounts: 'Users', - statuses: 'Toots', - domains: 'Universes' - }, - disclaimer: { - base: - "Logging in process uses system broswer that, your account information won't be visible to tooot app. Read more ", - privacy: 'privacy policy' - } - }, - update: { - alert: { - title: 'Logged in to this instance', - message: - 'You can login to another account, keeping existing logged in account', - buttons: { - cancel: '$t(common:buttons.cancel)', - continue: 'Continue' - } - } - } -} diff --git a/src/i18n/en/components/parse.json b/src/i18n/en/components/parse.json new file mode 100644 index 00000000..9932ccc2 --- /dev/null +++ b/src/i18n/en/components/parse.json @@ -0,0 +1,9 @@ +{ + "HTML": { + "expanded": { + "true": "Fold {{hint}}", + "false": "Expand {{hint}}" + }, + "defaultHint": "article" + } +} \ No newline at end of file diff --git a/src/i18n/en/components/parse.ts b/src/i18n/en/components/parse.ts deleted file mode 100644 index fd05c099..00000000 --- a/src/i18n/en/components/parse.ts +++ /dev/null @@ -1,9 +0,0 @@ -export default { - HTML: { - expanded: { - true: 'Fold {{hint}}', - false: 'Expand {{hint}}' - }, - defaultHint: 'article' - } -} diff --git a/src/i18n/en/components/relationship.json b/src/i18n/en/components/relationship.json new file mode 100644 index 00000000..8cd94c54 --- /dev/null +++ b/src/i18n/en/components/relationship.json @@ -0,0 +1,16 @@ +{ + "follow": { + "function": "Follow user" + }, + "block": { + "function": "Block user" + }, + "button": { + "error": "Loading error", + "blocked_by": "Blocked by user", + "blocking": "Unblock", + "following": "Unfollow", + "requested": "Withdraw request", + "default": "Follow" + } +} \ No newline at end of file diff --git a/src/i18n/en/components/relationship.ts b/src/i18n/en/components/relationship.ts deleted file mode 100644 index d9b34721..00000000 --- a/src/i18n/en/components/relationship.ts +++ /dev/null @@ -1,16 +0,0 @@ -export default { - follow: { - function: 'Follow user' - }, - block: { - function: 'Block user' - }, - button: { - error: 'Loading error', - blocked_by: 'Blocked by user', - blocking: 'Unblock', - following: 'Unfollow', - requested: 'Withdraw request', - default: 'Follow' - } -} diff --git a/src/i18n/en/components/relativeTime.json b/src/i18n/en/components/relativeTime.json new file mode 100644 index 00000000..41d18170 --- /dev/null +++ b/src/i18n/en/components/relativeTime.json @@ -0,0 +1,20 @@ +{ + "strings": { + "prefixAgo": null, + "prefixFromNow": null, + "suffixAgo": "ago", + "suffixFromNow": null, + "seconds": "%d seconds", + "minute": "about a minute", + "minutes": "%d minutes", + "hour": "about an hour", + "hours": "about %d hours", + "day": "a day", + "days": "%d days", + "month": "about a month", + "months": "%d months", + "year": "about a year", + "years": "%d years", + "wordSeparator": " " + } +} \ No newline at end of file diff --git a/src/i18n/en/components/relativeTime.ts b/src/i18n/en/components/relativeTime.ts deleted file mode 100644 index fccddd52..00000000 --- a/src/i18n/en/components/relativeTime.ts +++ /dev/null @@ -1,21 +0,0 @@ -export default { - strings: { - prefixAgo: null, - prefixFromNow: null, - suffixAgo: 'ago', - // suffixFromNow: 'from now', - suffixFromNow: null, - seconds: '%d seconds', - minute: 'about a minute', - minutes: '%d minutes', - hour: 'about an hour', - hours: 'about %d hours', - day: 'a day', - days: '%d days', - month: 'about a month', - months: '%d months', - year: 'about a year', - years: '%d years', - wordSeparator: ' ' - } -} diff --git a/src/i18n/en/components/timeline.json b/src/i18n/en/components/timeline.json new file mode 100644 index 00000000..6874f0c0 --- /dev/null +++ b/src/i18n/en/components/timeline.json @@ -0,0 +1,164 @@ +{ + "empty": { + "error": { + "message": "Loading error", + "button": "Retry" + }, + "success": { + "message": "Timeline empty" + } + }, + "end": { + "message": "The end, what about a cup of <0 />" + }, + "refresh": { + "fetchPreviousPage": "Newer from here", + "refetch": "To latest" + }, + "shared": { + "actioned": { + "pinned": "Pinned", + "favourite": "{{name}} favourited your toot", + "status": "{{name}} just posted", + "follow": "{{name}} followed you", + "follow_request": "{{name}} requested following you", + "poll": "A poll you have voted in has ended", + "reblog": { + "default": "{{name}} boosted", + "notification": "{{name}} boosted your toot" + } + }, + "actions": { + "favourited": { + "function": "Favourite toot" + }, + "reblogged": { + "function": "Boost toot" + }, + "bookmarked": { + "function": "Bookmark toot" + } + }, + "actionsUsers": { + "reblogged_by": "$t(sharedUsers:heading.statuses.reblogged_by)", + "favourited_by": "$t(sharedUsers:heading.statuses.favourited_by)" + }, + "attachment": { + "sensitive": { + "button": "Show sensitive media" + }, + "unsupported": { + "text": "Loading error", + "button": "Try remote link" + } + }, + "content": { + "expandHint": "hidden content" + }, + "fullConversation": "Read conversations", + "header": { + "shared": { + "application": "Tooted with {{application}}" + }, + "conversation": { + "withAccounts": "With", + "delete": { + "function": "Delete direct message" + } + }, + "actions": { + "account": { + "heading": "About user", + "mute": { + "function": "Mute user", + "button": "Mute @{{acct}}" + }, + "block": { + "function": "Block user", + "button": "Block @{{acct}}" + }, + "reports": { + "function": "Report user", + "button": "Report @{{acct}}" + } + }, + "domain": { + "heading": "About instance", + "block": { + "function": "Block instance", + "button": "Block instance {{domain}}" + }, + "alert": { + "title": "Confirm blocking {{domain}} ?", + "message": "Mostly you can mute or block certain user.\n\nAfter blocking instance, all its content including followers from this instance will be removed!", + "buttons": { + "confirm": "Confirm blocking", + "cancel": "$t(common:buttons.cancel)" + } + } + }, + "share": { + "status": { + "heading": "Share toot", + "button": "Share link to this toot" + }, + "account": { + "heading": "Share user", + "button": "Share link to this user" + } + }, + "status": { + "heading": "About toot", + "delete": { + "function": "Delete toot", + "button": "Delete this toot" + }, + "edit": { + "function": "Delete toot", + "button": "Delete and re-draft", + "alert": { + "title": "Confirm deleting toot?", + "message": "Are you sure to delete and re-draft this toot? All boosts and favourites will be cleared, including all replies.", + "buttons": { + "confirm": "Confirm deleting", + "cancel": "$t(common:buttons.cancel)" + } + } + }, + "mute": { + "function": "Mute toot", + "button": { + "positive": "Mute this toot and replies", + "negative": "Unmute this toot and replies" + } + }, + "pin": { + "function": "Pin", + "button": { + "positive": "Pin this toot", + "negative": "Unpin this toot" + } + } + } + } + }, + "poll": { + "meta": { + "button": { + "vote": "Vote", + "refresh": "Refresh" + }, + "count": { + "voters": "{{count}} user voted • ", + "voters_plural": "{{count}} users voted • ", + "votes": "{{count}} vote • ", + "votes_plural": "{{count}} votes • " + }, + "expiration": { + "expired": "Vote expired", + "until": "Expires in <0 />" + } + } + } + } +} \ No newline at end of file diff --git a/src/i18n/en/components/timeline.ts b/src/i18n/en/components/timeline.ts deleted file mode 100644 index e58be39e..00000000 --- a/src/i18n/en/components/timeline.ts +++ /dev/null @@ -1,160 +0,0 @@ -export default { - empty: { - error: { - message: 'Loading error', - button: 'Retry' - }, - success: { - message: 'Timeline empty' - } - }, - end: { - message: 'The end, what about a cup of <0 />' - }, - refresh: { - fetchPreviousPage: 'Newer from here', - refetch: 'To latest' - }, - shared: { - actioned: { - pinned: 'Pinned', - favourite: '{{name}} favourited your toot', - status: '{{name}} just posted', - follow: '{{name}} followed you', - follow_request: '{{name}} requested following you', - poll: 'A poll you have voted in has ended', - reblog: { - default: '{{name}} boosted', - notification: '{{name}} boosted your toot' - } - }, - actions: { - favourited: { - function: 'Favourite toot' - }, - reblogged: { - function: 'Boost toot' - }, - bookmarked: { - function: 'Bookmark toot' - } - }, - actionsUsers: { - reblogged_by: '$t(sharedUsers:heading.statuses.reblogged_by)', - favourited_by: '$t(sharedUsers:heading.statuses.favourited_by)' - }, - attachment: { - sensitive: { - button: 'Show sensitive media' - }, - unsupported: { - text: 'Loading error', - button: 'Try remote link' - } - }, - content: { - expandHint: 'hidden content' - }, - fullConversation: 'Read conversations', - header: { - shared: { - application: 'Tooted with {{application}}' - }, - conversation: { - withAccounts: 'With', - delete: { - function: 'Delete direct message' - } - }, - actions: { - account: { - heading: 'About user', - mute: { - function: 'Mute user', - button: 'Mute @{{acct}}' - }, - block: { - function: 'Block user', - button: 'Block @{{acct}}' - }, - reports: { - function: 'Report user', - button: 'Report @{{acct}}' - } - }, - domain: { - heading: 'About instance', - block: { - function: 'Block instance', - button: 'Block instance {{domain}}' - }, - alert: { - title: 'Confirm blocking {{domain}} ?', - message: - 'Mostly you can mute or block certain user.\n\nAfter blocking instance, all its content including followers from this instance will be removed!', - buttons: { - confirm: 'Confirm blocking', - cancel: '$t(common:buttons.cancel)' - } - } - }, - share: { - status: { heading: 'Share toot', button: 'Share link to this toot' }, - account: { heading: 'Share user', button: 'Share link to this user' } - }, - status: { - heading: 'About toot', - delete: { - function: 'Delete toot', - button: 'Delete this toot' - }, - edit: { - function: 'Delete toot', - button: 'Delete and re-draft', - alert: { - title: 'Confirm deleting toot?', - message: - 'Are you sure to delete and re-draft this toot? All boosts and favourites will be cleared, including all replies.', - buttons: { - confirm: 'Confirm deleting', - cancel: '$t(common:buttons.cancel)' - } - } - }, - mute: { - function: 'Mute toot', - button: { - positive: 'Mute this toot and replies', - negative: 'Unmute this toot and replies' - } - }, - pin: { - function: 'Pin', - button: { - positive: 'Pin this toot', - negative: 'Unpin this toot' - } - } - } - } - }, - poll: { - meta: { - button: { - vote: 'Vote', - refresh: 'Refresh' - }, - count: { - voters: '{{count}} user voted • ', - voters_plural: '{{count}} users voted • ', - votes: '{{count}} vote • ', - votes_plural: '{{count}} votes • ' - }, - expiration: { - expired: 'Vote expired', - until: 'Expires in <0 />' - } - } - } - } -} diff --git a/src/i18n/en/screens/local.json b/src/i18n/en/screens/local.json new file mode 100644 index 00000000..10c6bb61 --- /dev/null +++ b/src/i18n/en/screens/local.json @@ -0,0 +1,3 @@ +{ + "heading": "Following" +} \ No newline at end of file diff --git a/src/i18n/en/screens/local.ts b/src/i18n/en/screens/local.ts deleted file mode 100644 index 4073fa32..00000000 --- a/src/i18n/en/screens/local.ts +++ /dev/null @@ -1,3 +0,0 @@ -export default { - heading: 'Following' -} diff --git a/src/i18n/en/screens/meBookmarks.json b/src/i18n/en/screens/meBookmarks.json new file mode 100644 index 00000000..eccc46ec --- /dev/null +++ b/src/i18n/en/screens/meBookmarks.json @@ -0,0 +1,3 @@ +{ + "heading": "Bookmarks" +} \ No newline at end of file diff --git a/src/i18n/en/screens/meBookmarks.ts b/src/i18n/en/screens/meBookmarks.ts deleted file mode 100644 index 6320935a..00000000 --- a/src/i18n/en/screens/meBookmarks.ts +++ /dev/null @@ -1,4 +0,0 @@ -export default { - heading: 'Bookmarks', - content: {} -} diff --git a/src/i18n/en/screens/meConversations.json b/src/i18n/en/screens/meConversations.json new file mode 100644 index 00000000..8cb0e552 --- /dev/null +++ b/src/i18n/en/screens/meConversations.json @@ -0,0 +1,3 @@ +{ + "heading": "Direct Messages" +} \ No newline at end of file diff --git a/src/i18n/en/screens/meConversations.ts b/src/i18n/en/screens/meConversations.ts deleted file mode 100644 index 4f929cd1..00000000 --- a/src/i18n/en/screens/meConversations.ts +++ /dev/null @@ -1,4 +0,0 @@ -export default { - heading: 'Direct Messages', - content: {} -} diff --git a/src/i18n/en/screens/meFavourites.json b/src/i18n/en/screens/meFavourites.json new file mode 100644 index 00000000..724f5655 --- /dev/null +++ b/src/i18n/en/screens/meFavourites.json @@ -0,0 +1,3 @@ +{ + "heading": "Favourites" +} \ No newline at end of file diff --git a/src/i18n/en/screens/meFavourites.ts b/src/i18n/en/screens/meFavourites.ts deleted file mode 100644 index 66cb2953..00000000 --- a/src/i18n/en/screens/meFavourites.ts +++ /dev/null @@ -1,4 +0,0 @@ -export default { - heading: 'Favourites', - content: {} -} diff --git a/src/i18n/en/screens/meLists.json b/src/i18n/en/screens/meLists.json new file mode 100644 index 00000000..119451ed --- /dev/null +++ b/src/i18n/en/screens/meLists.json @@ -0,0 +1,3 @@ +{ + "heading": "Lists" +} \ No newline at end of file diff --git a/src/i18n/en/screens/meLists.ts b/src/i18n/en/screens/meLists.ts deleted file mode 100644 index f95beb75..00000000 --- a/src/i18n/en/screens/meLists.ts +++ /dev/null @@ -1,4 +0,0 @@ -export default { - heading: 'Lists', - content: {} -} diff --git a/src/i18n/en/screens/meListsList.json b/src/i18n/en/screens/meListsList.json new file mode 100644 index 00000000..9b98fa76 --- /dev/null +++ b/src/i18n/en/screens/meListsList.json @@ -0,0 +1,3 @@ +{ + "heading": "List: {{list}}" +} \ No newline at end of file diff --git a/src/i18n/en/screens/meListsList.ts b/src/i18n/en/screens/meListsList.ts deleted file mode 100644 index c27c6629..00000000 --- a/src/i18n/en/screens/meListsList.ts +++ /dev/null @@ -1,4 +0,0 @@ -export default { - heading: 'List: {{list}}', - content: {} -} diff --git a/src/i18n/en/screens/meRoot.json b/src/i18n/en/screens/meRoot.json new file mode 100644 index 00000000..83a2d6c7 --- /dev/null +++ b/src/i18n/en/screens/meRoot.json @@ -0,0 +1,31 @@ +{ + "content": { + "collections": { + "conversations": "$t(meConversations:heading)", + "bookmarks": "$t(meBookmarks:heading)", + "favourites": "$t(meFavourites:heading)", + "lists": "$t(meLists:heading)", + "announcements": { + "heading": "$t(sharedAnnouncements:heading)", + "content": { + "unread": "{{amount}} unread", + "read": "All read", + "empty": "None" + } + } + }, + "accountSettings": "Account Settings", + "appSettings": "$t(meSettings:heading)", + "logout": { + "button": "Log out", + "alert": { + "title": "Logging out?", + "message": "After logging out, you need to log in again", + "buttons": { + "logout": "Logout", + "cancel": "$t(common:buttons.cancel)" + } + } + } + } +} \ No newline at end of file diff --git a/src/i18n/en/screens/meRoot.ts b/src/i18n/en/screens/meRoot.ts deleted file mode 100644 index 6959f6cc..00000000 --- a/src/i18n/en/screens/meRoot.ts +++ /dev/null @@ -1,31 +0,0 @@ -export default { - content: { - collections: { - conversations: '$t(meConversations:heading)', - bookmarks: '$t(meBookmarks:heading)', - favourites: '$t(meFavourites:heading)', - lists: '$t(meLists:heading)', - announcements: { - heading: '$t(sharedAnnouncements:heading)', - content: { - unread: '{{amount}} unread', - read: 'All read', - empty: 'None' - } - } - }, - accountSettings: 'Account Settings', - appSettings: '$t(meSettings:heading)', - logout: { - button: 'Log out', - alert: { - title: 'Logging out?', - message: 'After logging out, you need to log in again', - buttons: { - logout: 'Logout', - cancel: '$t(common:buttons.cancel)' - } - } - } - } -} diff --git a/src/i18n/en/screens/meSettings.json b/src/i18n/en/screens/meSettings.json new file mode 100644 index 00000000..e2fcd8aa --- /dev/null +++ b/src/i18n/en/screens/meSettings.json @@ -0,0 +1,65 @@ +{ + "heading": "Settings", + "content": { + "push": { + "heading": "$t(meSettingsPush:heading)", + "content": { + "enabled": "Enabled", + "disabled": "Disabled" + } + }, + "fontsize": { + "heading": "$t(meSettingsFontsize:heading)", + "content": { + "S": "$t(meSettingsFontsize:content.sizes.S)", + "M": "$t(meSettingsFontsize:content.sizes.M)", + "L": "$t(meSettingsFontsize:content.sizes.L)", + "XL": "$t(meSettingsFontsize:content.sizes.XL)", + "XXL": "$t(meSettingsFontsize:content.sizes.XXL)" + } + }, + "language": { + "heading": "Language", + "options": { + "en": "English", + "zh-Hans": "简体中文", + "cancel": "$t(common:buttons.cancel)" + } + }, + "theme": { + "heading": "Appearance", + "options": { + "auto": "As system", + "light": "Light mode", + "dark": "Dark mode", + "cancel": "$t(common:buttons.cancel)" + } + }, + "browser": { + "heading": "Opening link", + "options": { + "internal": "Inside app", + "external": "Use system browser", + "cancel": "$t(common:buttons.cancel)" + } + }, + "cache": { + "heading": "Clear cache", + "empty": "Cache empty" + }, + "support": { + "heading": "Support tooot" + }, + "review": { + "heading": "Review tooot" + }, + "contact": { + "heading": "Contact tooot" + }, + "analytics": { + "heading": "Help us improve", + "description": "Collecting only non-user relative usage" + }, + "version": "Version v{{version}}" + } +} \ No newline at end of file diff --git a/src/i18n/en/screens/meSettings.ts b/src/i18n/en/screens/meSettings.ts deleted file mode 100644 index a82980af..00000000 --- a/src/i18n/en/screens/meSettings.ts +++ /dev/null @@ -1,65 +0,0 @@ -export default { - heading: 'Settings', - content: { - push: { - heading: '$t(meSettingsPush:heading)', - content: { - enabled: 'Enabled', - disabled: 'Disabled' - } - }, - fontsize: { - heading: '$t(meSettingsFontsize:heading)', - content: { - S: '$t(meSettingsFontsize:content.sizes.S)', - M: '$t(meSettingsFontsize:content.sizes.M)', - L: '$t(meSettingsFontsize:content.sizes.L)', - XL: '$t(meSettingsFontsize:content.sizes.XL)', - XXL: '$t(meSettingsFontsize:content.sizes.XXL)' - } - }, - language: { - heading: 'Language', - options: { - en: 'English', - 'zh-Hans': '简体中文', - cancel: '$t(common:buttons.cancel)' - } - }, - theme: { - heading: 'Appearance', - options: { - auto: 'As system', - light: 'Light mode', - dark: 'Dark mode', - cancel: '$t(common:buttons.cancel)' - } - }, - browser: { - heading: 'Opening link', - options: { - internal: 'Inside app', - external: 'Use system browser', - cancel: '$t(common:buttons.cancel)' - } - }, - cache: { - heading: 'Clear cache', - empty: 'Cache empty' - }, - support: { - heading: 'Support tooot' - }, - review: { - heading: 'Review tooot' - }, - contact: { - heading: 'Contact tooot' - }, - analytics: { - heading: 'Help us improve', - description: 'Collecting only non-user relative usage' - }, - version: 'Version v{{version}}' - } -} diff --git a/src/i18n/en/screens/meSettingsFontsize.json b/src/i18n/en/screens/meSettingsFontsize.json new file mode 100644 index 00000000..a811d3b1 --- /dev/null +++ b/src/i18n/en/screens/meSettingsFontsize.json @@ -0,0 +1,15 @@ +{ + "heading": "Toot Font Size", + "content": { + "showcase": "Example toot", + "demo": "

This is a demo toot😊. You can choose from several options from below.

This setting only affects the main content of toots, but not other font sizes.

", + "availableSizes": "Available sizes", + "sizes": { + "S": "S", + "M": "M - Default", + "L": "L", + "XL": "XL", + "XXL": "XXL" + } + } +} \ No newline at end of file diff --git a/src/i18n/en/screens/meSettingsFontsize.ts b/src/i18n/en/screens/meSettingsFontsize.ts deleted file mode 100644 index 09e6143d..00000000 --- a/src/i18n/en/screens/meSettingsFontsize.ts +++ /dev/null @@ -1,10 +0,0 @@ -export default { - heading: 'Toot Font Size', - content: { - showcase: 'Example toot', - demo: - '

This is a demo toot😊. You can choose from several options from below.

This setting only affects the main content of toots, but not other font sizes.

', - availableSizes: 'Available sizes', - sizes: { S: 'S', M: 'M - Default', L: 'L', XL: 'XL', XXL: 'XXL' } - } -} diff --git a/src/i18n/en/screens/meSettingsPush.json b/src/i18n/en/screens/meSettingsPush.json new file mode 100644 index 00000000..346de88b --- /dev/null +++ b/src/i18n/en/screens/meSettingsPush.json @@ -0,0 +1,40 @@ +{ + "heading": "Push Notification", + "content": { + "enable": { + "direct": "Enable push notification", + "settings": "Enable in settings" + }, + "global": { + "heading": "Enable push notification", + "description": "Messages are routed through tooot's server" + }, + "decode": { + "heading": "Show message details", + "description": "Messages routed through tooot's server are encrypted, but you can choose to decode the message on the server. Our server source code is open source, and no log policy." + }, + "default": { + "heading": "Default" + }, + "follow": { + "heading": "New follower" + }, + "favourite": { + "heading": "Favourited" + }, + "reblog": { + "heading": "Boosted" + }, + "mention": { + "heading": "Mentioned you" + }, + "poll": { + "heading": "Poll updates" + }, + "howitworks": "Learn how routing works" + }, + "error": { + "message": "Push service error", + "description": "Please re-enable push notification in settings" + } +} \ No newline at end of file diff --git a/src/i18n/en/screens/meSettingsPush.ts b/src/i18n/en/screens/meSettingsPush.ts deleted file mode 100644 index 218a71bb..00000000 --- a/src/i18n/en/screens/meSettingsPush.ts +++ /dev/null @@ -1,41 +0,0 @@ -export default { - heading: 'Push Notification', - content: { - enable: { - direct: 'Enable push notification', - settings: 'Enable in settings' - }, - global: { - heading: 'Enable push notification', - description: "Messages are routed through tooot's server" - }, - decode: { - heading: 'Show message details', - description: - "Messages routed through tooot's server are encrypted, but you can choose to decode the message on the server. Our server source code is open source, and no log policy." - }, - default: { - heading: 'Default' // Android notification channel name only - }, - follow: { - heading: 'New follower' - }, - favourite: { - heading: 'Favourited' - }, - reblog: { - heading: 'Boosted' - }, - mention: { - heading: 'Mentioned you' - }, - poll: { - heading: 'Poll updates' - }, - howitworks: 'Learn how routing works' - }, - error: { - message: 'Push service error', - description: 'Please re-enable push notification in settings' - } -} diff --git a/src/i18n/en/screens/meSwitch.json b/src/i18n/en/screens/meSwitch.json new file mode 100644 index 00000000..27790e18 --- /dev/null +++ b/src/i18n/en/screens/meSwitch.json @@ -0,0 +1,7 @@ +{ + "heading": "Switch Account", + "content": { + "existing": "Choose from logged in", + "new": "Log in to instance" + } +} \ No newline at end of file diff --git a/src/i18n/en/screens/meSwitch.ts b/src/i18n/en/screens/meSwitch.ts deleted file mode 100644 index 6e2dd498..00000000 --- a/src/i18n/en/screens/meSwitch.ts +++ /dev/null @@ -1,7 +0,0 @@ -export default { - heading: 'Switch Account', - content: { - existing: 'Choose from logged in', - new: 'Log in to instance' - } -} diff --git a/src/i18n/en/screens/notifications.json b/src/i18n/en/screens/notifications.json new file mode 100644 index 00000000..dab801e4 --- /dev/null +++ b/src/i18n/en/screens/notifications.json @@ -0,0 +1,3 @@ +{ + "heading": "Notifications" +} \ No newline at end of file diff --git a/src/i18n/en/screens/notifications.ts b/src/i18n/en/screens/notifications.ts deleted file mode 100644 index b30e6022..00000000 --- a/src/i18n/en/screens/notifications.ts +++ /dev/null @@ -1,3 +0,0 @@ -export default { - heading: 'Notifications' -} diff --git a/src/i18n/en/screens/public.json b/src/i18n/en/screens/public.json new file mode 100644 index 00000000..68a1593e --- /dev/null +++ b/src/i18n/en/screens/public.json @@ -0,0 +1,8 @@ +{ + "heading": { + "segments": { + "left": "Federated", + "right": "Local" + } + } +} \ No newline at end of file diff --git a/src/i18n/en/screens/public.ts b/src/i18n/en/screens/public.ts deleted file mode 100644 index 94aa8bb5..00000000 --- a/src/i18n/en/screens/public.ts +++ /dev/null @@ -1,8 +0,0 @@ -export default { - heading: { - segments: { - left: 'Federated', - right: 'Local' - } - } -} diff --git a/src/i18n/en/screens/screenActions.json b/src/i18n/en/screens/screenActions.json new file mode 100644 index 00000000..17e8214d --- /dev/null +++ b/src/i18n/en/screens/screenActions.json @@ -0,0 +1,19 @@ +{ + "content": { + "button": { + "apply": "$t(common:buttons.apply)", + "cancel": "$t(common:buttons.cancel)" + }, + "notificationsFilter": { + "heading": "Show notification types", + "content": { + "follow": "$t(meSettingsPush:content.follow.heading)", + "favourite": "$t(meSettingsPush:content.favourite.heading)", + "reblog": "$t(meSettingsPush:content.reblog.heading)", + "mention": "$t(meSettingsPush:content.mention.heading)", + "poll": "$t(meSettingsPush:content.poll.heading)", + "follow_request": "Follow request" + } + } + } +} \ No newline at end of file diff --git a/src/i18n/en/screens/screenActions.ts b/src/i18n/en/screens/screenActions.ts deleted file mode 100644 index 9bb5b72d..00000000 --- a/src/i18n/en/screens/screenActions.ts +++ /dev/null @@ -1,19 +0,0 @@ -export default { - content: { - button: { - apply: '$t(common:buttons.apply)', - cancel: '$t(common:buttons.cancel)' - }, - notificationsFilter: { - heading: 'Show notification types', - content: { - follow: '$t(meSettingsPush:content.follow.heading)', - favourite: '$t(meSettingsPush:content.favourite.heading)', - reblog: '$t(meSettingsPush:content.reblog.heading)', - mention: '$t(meSettingsPush:content.mention.heading)', - poll: '$t(meSettingsPush:content.poll.heading)', - follow_request: 'Follow request' - } - } - } -} diff --git a/src/i18n/en/screens/screenImageViewer.json b/src/i18n/en/screens/screenImageViewer.json new file mode 100644 index 00000000..d88a9762 --- /dev/null +++ b/src/i18n/en/screens/screenImageViewer.json @@ -0,0 +1,13 @@ +{ + "content": { + "options": { + "save": "Save image", + "share": "Share iamge", + "cancel": "$t(common:buttons.cancel)" + }, + "save": { + "function": "Saving image", + "success": "Image saved" + } + } +} \ No newline at end of file diff --git a/src/i18n/en/screens/screenImageViewer.ts b/src/i18n/en/screens/screenImageViewer.ts deleted file mode 100644 index dc37a9e3..00000000 --- a/src/i18n/en/screens/screenImageViewer.ts +++ /dev/null @@ -1,13 +0,0 @@ -export default { - content: { - options: { - save: 'Save image', - share: 'Share iamge', - cancel: '$t(common:buttons.cancel)' - }, - save: { - function: 'Saving image', - success: 'Image saved' - } - } -} diff --git a/src/i18n/en/screens/sharedAccount.json b/src/i18n/en/screens/sharedAccount.json new file mode 100644 index 00000000..d43530d2 --- /dev/null +++ b/src/i18n/en/screens/sharedAccount.json @@ -0,0 +1,11 @@ +{ + "content": { + "moved": "User moved", + "created_at": "Registered: {{date}}", + "summary": { + "statuses_count": "{{count}} toots", + "following_count": "$t(sharedUsers:heading.accounts.following)", + "followers_count": "$t(sharedUsers:heading.accounts.followers)" + } + } +} \ No newline at end of file diff --git a/src/i18n/en/screens/sharedAccount.ts b/src/i18n/en/screens/sharedAccount.ts deleted file mode 100644 index a8bd00df..00000000 --- a/src/i18n/en/screens/sharedAccount.ts +++ /dev/null @@ -1,11 +0,0 @@ -export default { - content: { - moved: 'User moved', - created_at: 'Registered: {{date}}', - summary: { - statuses_count: '{{count}} toots', - following_count: '$t(sharedUsers:heading.accounts.following)', - followers_count: '$t(sharedUsers:heading.accounts.followers)' - } - } -} diff --git a/src/i18n/en/screens/sharedAnnouncements.json b/src/i18n/en/screens/sharedAnnouncements.json new file mode 100644 index 00000000..5352fea2 --- /dev/null +++ b/src/i18n/en/screens/sharedAnnouncements.json @@ -0,0 +1,10 @@ +{ + "heading": "Announcements", + "content": { + "published": "Published <0 />", + "button": { + "read": "Read", + "unread": "Mark read" + } + } +} \ No newline at end of file diff --git a/src/i18n/en/screens/sharedAnnouncements.ts b/src/i18n/en/screens/sharedAnnouncements.ts deleted file mode 100644 index 2653d902..00000000 --- a/src/i18n/en/screens/sharedAnnouncements.ts +++ /dev/null @@ -1,10 +0,0 @@ -export default { - heading: 'Announcements', - content: { - published: 'Published <0 />', - button: { - read: 'Read', - unread: 'Mark read' - } - } -} diff --git a/src/i18n/en/screens/sharedAttachments.json b/src/i18n/en/screens/sharedAttachments.json new file mode 100644 index 00000000..37256a16 --- /dev/null +++ b/src/i18n/en/screens/sharedAttachments.json @@ -0,0 +1,3 @@ +{ + "heading": "<0 />\"s <1>media" +} \ No newline at end of file diff --git a/src/i18n/en/screens/sharedAttachments.ts b/src/i18n/en/screens/sharedAttachments.ts deleted file mode 100644 index 2a580889..00000000 --- a/src/i18n/en/screens/sharedAttachments.ts +++ /dev/null @@ -1,3 +0,0 @@ -export default { - heading: '<0 />\'s <1>media' -} diff --git a/src/i18n/en/screens/sharedCompose.json b/src/i18n/en/screens/sharedCompose.json new file mode 100644 index 00000000..202d303c --- /dev/null +++ b/src/i18n/en/screens/sharedCompose.json @@ -0,0 +1,157 @@ +{ + "heading": { + "left": { + "button": "Cancel", + "alert": { + "title": "Cancel editing?", + "buttons": { + "save": "Save draft", + "delete": "Delete draft", + "cancel": "Cancel" + } + } + }, + "right": { + "button": { + "default": "Toot", + "conversation": "Toot DM", + "reply": "Toot reply", + "edit": "Toot" + }, + "alert": { + "default": { + "title": "Tooting failed", + "button": "Try again" + }, + "removeReply": { + "title": "Replied toot could not be found", + "description": "Replied toot could have been deleted. Do you want to remove it from your reference?", + "cancel": "$t(common:buttons.cancel)", + "confirm": "Remove reference" + } + } + } + }, + "content": { + "root": { + "header": { + "postingAs": "Tooting as @{{acct}}@{{domain}}", + "spoilerInput": { + "placeholder": "Spoiler warning message" + }, + "textInput": { + "placeholder": "What's on your mind" + } + }, + "footer": { + "attachments": { + "sensitive": "Mark attachments as sensitive" + }, + "poll": { + "option": { + "placeholder": { + "single": "Single choice", + "multiple": "Multiple choice" + } + }, + "multiple": { + "heading": "Choice type", + "options": { + "single": "Single choice", + "multiple": "Multiple choice", + "cancel": "$t(common:buttons.cancel)" + } + }, + "expiration": { + "heading": "Validity", + "options": { + "300": "5 minutes", + "1800": "30 minutes", + "3600": "1 hour", + "21600": "6 hours", + "86400": "1 day", + "259200": "3 days", + "604800": "7 days", + "cancel": "$t(common:buttons.cancel)" + } + } + } + }, + "actions": { + "attachment": { + "actions": { + "options": { + "library": "Upload from photo library", + "photo": "Upload with camera", + "cancel": "$t(common:buttons.cancel)" + }, + "library": { + "alert": { + "title": "No permission", + "message": "Require photo library read permission to upload", + "buttons": { + "settings": "Update setting", + "cancel": "Cancel" + } + } + }, + "photo": { + "alert": { + "title": "No permission", + "message": "Require camera usage permission to upload", + "buttons": { + "settings": "Update setting", + "cancel": "Cancel" + } + } + } + }, + "failed": { + "alert": { + "title": "Upload failed", + "button": "Try again" + } + } + }, + "visibility": { + "title": "Toot visibility", + "options": { + "public": "Public", + "unlisted": "Unlisted", + "private": "Followers only", + "direct": "Direct message", + "cancel": "$t(common:buttons.cancel)" + } + } + }, + "drafts": "Draft ({{count}})", + "drafts_plural": "Drafts ({{count}})" + }, + "editAttachment": { + "header": { + "title": "Edit attachment", + "right": { + "failed": { + "title": "Editing failed", + "button": "Try again" + } + } + }, + "content": { + "altText": { + "heading": "Describe media for the visually impaired", + "placeholder": "You can add a description, sometimes called alt-text, to your media so they are accessible to even more people, including those who are blind or visually impaired.\n\nGood descriptions are concise, but present what is in your media accurately enough to understand their context." + }, + "imageFocus": "Drag the focus circle to update focus point" + } + }, + "draftsList": { + "header": { + "title": "Draft" + }, + "content": { + "textEmpty": "Content empty" + } + } + } +} \ No newline at end of file diff --git a/src/i18n/en/screens/sharedCompose.ts b/src/i18n/en/screens/sharedCompose.ts deleted file mode 100644 index 12bc2f78..00000000 --- a/src/i18n/en/screens/sharedCompose.ts +++ /dev/null @@ -1,159 +0,0 @@ -export default { - heading: { - left: { - button: 'Cancel', - alert: { - title: 'Cancel editing?', - buttons: { - save: 'Save draft', - delete: 'Delete draft', - cancel: 'Cancel' - } - } - }, - right: { - button: { - default: 'Toot', - conversation: 'Toot DM', - reply: 'Toot reply', - edit: 'Toot' - }, - alert: { - default: { - title: 'Tooting failed', - button: 'Try again' - }, - removeReply: { - title: 'Replied toot could not be found', - description: - 'Replied toot could have been deleted. Do you want to remove it from your reference?', - cancel: '$t(common:buttons.cancel)', - confirm: 'Remove reference' - } - } - } - }, - content: { - root: { - header: { - postingAs: 'Tooting as @{{acct}}@{{domain}}', - spoilerInput: { - placeholder: 'Spoiler warning message' - }, - textInput: { - placeholder: "What's on your mind" - } - }, - footer: { - attachments: { - sensitive: 'Mark attachments as sensitive' - }, - poll: { - option: { - placeholder: { - single: 'Single choice', - multiple: 'Multiple choice' - } - }, - multiple: { - heading: 'Choice type', - options: { - single: 'Single choice', - multiple: 'Multiple choice', - cancel: '$t(common:buttons.cancel)' - } - }, - expiration: { - heading: 'Validity', - options: { - '300': '5 minutes', - '1800': '30 minutes', - '3600': '1 hour', - '21600': '6 hours', - '86400': '1 day', - '259200': '3 days', - '604800': '7 days', - cancel: '$t(common:buttons.cancel)' - } - } - } - }, - actions: { - attachment: { - actions: { - options: { - library: 'Upload from photo library', - photo: 'Upload with camera', - cancel: '$t(common:buttons.cancel)' - }, - library: { - alert: { - title: 'No permission', - message: 'Require photo library read permission to upload', - buttons: { - settings: 'Update setting', - cancel: 'Cancel' - } - } - }, - photo: { - alert: { - title: 'No permission', - message: 'Require camera usage permission to upload', - buttons: { - settings: 'Update setting', - cancel: 'Cancel' - } - } - } - }, - failed: { - alert: { - title: 'Upload failed', - button: 'Try again' - } - } - }, - visibility: { - title: 'Toot visibility', - options: { - public: 'Public', - unlisted: 'Unlisted', - private: 'Followers only', - direct: 'Direct message', - cancel: '$t(common:buttons.cancel)' - } - } - }, - drafts: 'Draft ({{count}})', - drafts_plural: 'Drafts ({{count}})' - }, - editAttachment: { - header: { - title: 'Edit attachment', - right: { - failed: { - title: 'Editing failed', - button: 'Try again' - } - } - }, - content: { - altText: { - heading: 'Describe media for the visually impaired', - placeholder: - 'You can add a description, sometimes called alt-text, to your media so they are accessible to even more people, including those who are blind or visually impaired.\n\nGood descriptions are concise, but present what is in your media accurately enough to understand their context.' - }, - imageFocus: 'Drag the focus circle to update focus point' - } - }, - draftsList: { - header: { - title: 'Draft' - }, - content: { - textEmpty: 'Content empty' - } - } - } -} diff --git a/src/i18n/en/screens/sharedSearch.json b/src/i18n/en/screens/sharedSearch.json new file mode 100644 index 00000000..014fe3e5 --- /dev/null +++ b/src/i18n/en/screens/sharedSearch.json @@ -0,0 +1,26 @@ +{ + "content": { + "header": { + "prefix": "Search", + "placeholder": "for..." + }, + "empty": { + "general": "Enter keyword to search for $t(sharedSearch:content.sections.accounts)$t(sharedSearch:content.sections.hashtags) or $t(sharedSearch:content.sections.statuses)", + "advanced": { + "header": "Advanced search", + "example": { + "account": "$t(sharedSearch:content.header.prefix)$t(sharedSearch:content.sections.accounts)", + "hashtag": "$t(sharedSearch:content.header.prefix)$t(sharedSearch:content.sections.hashtags)", + "statusLink": "$t(sharedSearch:content.header.prefix)$t(sharedSearch:content.sections.statuses)", + "accountLink": "$t(sharedSearch:content.header.prefix)$t(sharedSearch:content.sections.accounts)" + } + } + }, + "sections": { + "accounts": "User", + "hashtags": "Hashtag", + "statuses": "Toot" + }, + "notFound": "Cannot find {{searchTerm}} related {{type}}" + } +} \ No newline at end of file diff --git a/src/i18n/en/screens/sharedSearch.ts b/src/i18n/en/screens/sharedSearch.ts deleted file mode 100644 index 425182cb..00000000 --- a/src/i18n/en/screens/sharedSearch.ts +++ /dev/null @@ -1,31 +0,0 @@ -export default { - content: { - header: { - prefix: 'Search', - placeholder: 'for...' - }, - empty: { - general: - 'Enter keyword to search for $t(sharedSearch:content.sections.accounts)$t(sharedSearch:content.sections.hashtags) or $t(sharedSearch:content.sections.statuses)', - advanced: { - header: 'Advanced search', - example: { - account: - '$t(sharedSearch:content.header.prefix)$t(sharedSearch:content.sections.accounts)', - hashtag: - '$t(sharedSearch:content.header.prefix)$t(sharedSearch:content.sections.hashtags)', - statusLink: - '$t(sharedSearch:content.header.prefix)$t(sharedSearch:content.sections.statuses)', - accountLink: - '$t(sharedSearch:content.header.prefix)$t(sharedSearch:content.sections.accounts)' - } - } - }, - sections: { - accounts: 'User', - hashtags: 'Hashtag', - statuses: 'Toot' - }, - notFound: 'Cannot find {{searchTerm}} related {{type}}' - } -} diff --git a/src/i18n/en/screens/sharedToot.json b/src/i18n/en/screens/sharedToot.json new file mode 100644 index 00000000..4f784340 --- /dev/null +++ b/src/i18n/en/screens/sharedToot.json @@ -0,0 +1,3 @@ +{ + "heading": "Discussions" +} \ No newline at end of file diff --git a/src/i18n/en/screens/sharedToot.ts b/src/i18n/en/screens/sharedToot.ts deleted file mode 100644 index 0e5766d8..00000000 --- a/src/i18n/en/screens/sharedToot.ts +++ /dev/null @@ -1,3 +0,0 @@ -export default { - heading: 'Discussions' -} diff --git a/src/i18n/en/screens/sharedUsers.json b/src/i18n/en/screens/sharedUsers.json new file mode 100644 index 00000000..56cdd349 --- /dev/null +++ b/src/i18n/en/screens/sharedUsers.json @@ -0,0 +1,12 @@ +{ + "heading": { + "accounts": { + "following": "Following {{count}}", + "followers": "{{count}} followers" + }, + "statuses": { + "reblogged_by": "{{count}} boosted", + "favourited_by": "{{count}} favourited" + } + } +} \ No newline at end of file diff --git a/src/i18n/en/screens/sharedUsers.ts b/src/i18n/en/screens/sharedUsers.ts deleted file mode 100644 index ac5cfba4..00000000 --- a/src/i18n/en/screens/sharedUsers.ts +++ /dev/null @@ -1,12 +0,0 @@ -export default { - heading: { - accounts: { - following: 'Following {{count}}', - followers: '{{count}} followers' - }, - statuses: { - reblogged_by: '{{count}} boosted', - favourited_by: '{{count}} favourited' - } - } -} diff --git a/src/i18n/zh-Hans/_all.ts b/src/i18n/zh-Hans/_all.ts index 2512e104..7ae4e778 100644 --- a/src/i18n/zh-Hans/_all.ts +++ b/src/i18n/zh-Hans/_all.ts @@ -1,37 +1,37 @@ export default { - common: require('./common').default, + common: require('./common'), - local: require('./screens/local').default, + local: require('./screens/local'), - public: require('./screens/public').default, + public: require('./screens/public'), - notifications: require('./screens/notifications').default, + notifications: require('./screens/notifications'), - meRoot: require('./screens/meRoot').default, - meConversations: require('./screens/meConversations').default, - meBookmarks: require('./screens/meBookmarks').default, - meFavourites: require('./screens/meFavourites').default, - meLists: require('./screens/meLists').default, - meListsList: require('./screens/meListsList').default, - meSettings: require('./screens/meSettings').default, - meSettingsFontsize: require('./screens/meSettingsFontsize').default, - meSettingsPush: require('./screens/meSettingsPush').default, - meSwitch: require('./screens/meSwitch').default, + meRoot: require('./screens/meRoot'), + meConversations: require('./screens/meConversations'), + meBookmarks: require('./screens/meBookmarks'), + meFavourites: require('./screens/meFavourites'), + meLists: require('./screens/meLists'), + meListsList: require('./screens/meListsList'), + meSettings: require('./screens/meSettings'), + meSettingsFontsize: require('./screens/meSettingsFontsize'), + meSettingsPush: require('./screens/meSettingsPush'), + meSwitch: require('./screens/meSwitch'), - sharedAccount: require('./screens/sharedAccount').default, - sharedAnnouncements: require('./screens/sharedAnnouncements').default, - sharedAttachments: require('./screens/sharedAttachments').default, - sharedCompose: require('./screens/sharedCompose').default, - sharedSearch: require('./screens/sharedSearch').default, - sharedToot: require('./screens/sharedToot').default, - sharedUsers: require('./screens/sharedUsers').default, + sharedAccount: require('./screens/sharedAccount'), + sharedAnnouncements: require('./screens/sharedAnnouncements'), + sharedAttachments: require('./screens/sharedAttachments'), + sharedCompose: require('./screens/sharedCompose'), + sharedSearch: require('./screens/sharedSearch'), + sharedToot: require('./screens/sharedToot'), + sharedUsers: require('./screens/sharedUsers'), - componentInstance: require('./components/instance').default, - componentParse: require('./components/parse').default, - componentRelationship: require('./components/relationship').default, - componentRelativeTime: require('./components/relativeTime').default, - componentTimeline: require('./components/timeline').default, + componentInstance: require('./components/instance'), + componentParse: require('./components/parse'), + componentRelationship: require('./components/relationship'), + componentRelativeTime: require('./components/relativeTime'), + componentTimeline: require('./components/timeline'), - screenActions: require('./screens/screenActions').default, - screenImageViewer: require('./screens/screenImageViewer').default + screenActions: require('./screens/screenActions'), + screenImageViewer: require('./screens/screenImageViewer') } diff --git a/src/i18n/zh-Hans/common.json b/src/i18n/zh-Hans/common.json new file mode 100644 index 00000000..c18b7ba7 --- /dev/null +++ b/src/i18n/zh-Hans/common.json @@ -0,0 +1,32 @@ +{ + "network": { + "disconnected": { + "message": "无法连接到网络", + "description": "请检查手机设置里的网络连接" + } + }, + "screenshot": { + "title": "隐私保护", + "message": "请确保不要泄露其它用户的敏感信息,例如用户名、头像等,谢谢!", + "button": "好的" + }, + "index": { + "localCorrupt": "登录已过期,请重新登录" + }, + "buttons": { + "apply": "应用", + "cancel": "取消" + }, + "toastMessage": { + "success": { + "message": "{{function}}成功" + }, + "warning": { + "message": "" + }, + "error": { + "message": "{{function}}失败,请重试" + } + }, + "separator": "," +} \ No newline at end of file diff --git a/src/i18n/zh-Hans/common.ts b/src/i18n/zh-Hans/common.ts deleted file mode 100644 index 854c9fb2..00000000 --- a/src/i18n/zh-Hans/common.ts +++ /dev/null @@ -1,32 +0,0 @@ -export default { - network: { - disconnected: { - message: '无法连接到网络', - description: '请检查手机设置里的网络连接' - } - }, - screenshot: { - title: '隐私保护', - message: '请确保不要泄露其它用户的敏感信息,例如用户名、头像等,谢谢!', - button: '好的' - }, - index: { - localCorrupt: '登录已过期,请重新登录' - }, - buttons: { - apply: '应用', - cancel: '取消' - }, - toastMessage: { - success: { - message: '{{function}}成功' - }, - warning: { - message: '' - }, - error: { - message: '{{function}}失败,请重试' - } - }, - separator: ',' -} diff --git a/src/i18n/zh-Hans/components/instance.json b/src/i18n/zh-Hans/components/instance.json new file mode 100644 index 00000000..1ac79f8f --- /dev/null +++ b/src/i18n/zh-Hans/components/instance.json @@ -0,0 +1,28 @@ +{ + "server": { + "textInput": { + "placeholder": "输入社区服务器地址" + }, + "button": "登录", + "information": { + "name": "社区名称", + "accounts": "用户总数", + "statuses": "嘟文总数", + "domains": "连结总数" + }, + "disclaimer": { + "base": "登录过程将使用系统浏览器,你的账号登录信息tooot应用无法读取。详见 ", + "privacy": "隐私条款" + } + }, + "update": { + "alert": { + "title": "此社区已登录", + "message": "你可以登录同个社区的另一个账号,不影响已登录的账号", + "buttons": { + "cancel": "$t(common:buttons.cancel)", + "continue": "继续" + } + } + } +} \ No newline at end of file diff --git a/src/i18n/zh-Hans/components/instance.ts b/src/i18n/zh-Hans/components/instance.ts deleted file mode 100644 index 554bd7bf..00000000 --- a/src/i18n/zh-Hans/components/instance.ts +++ /dev/null @@ -1,30 +0,0 @@ -export default { - server: { - textInput: { placeholder: '输入社区服务器地址' }, - privateInstance: '非公开社区, 不能围观', - EULA: { base: '我阅读并同意 ', EULA: '最终用户条款' }, - button: '登录', - information: { - name: '社区名称', - description: { heading: '社区简介', expandHint: '简介' }, - accounts: '用户总数', - statuses: '嘟文总数', - domains: '连结总数' - }, - disclaimer: { - base: - '登录过程将使用系统浏览器,你的账号登录信息tooot应用无法读取。详见 ', - privacy: '隐私条款' - } - }, - update: { - alert: { - title: '此社区已登录', - message: '你可以登录同个社区的另一个账号,不影响已登录的账号', - buttons: { - cancel: '$t(common:buttons.cancel)', - continue: '继续' - } - } - } -} diff --git a/src/i18n/zh-Hans/components/parse.json b/src/i18n/zh-Hans/components/parse.json new file mode 100644 index 00000000..f141f891 --- /dev/null +++ b/src/i18n/zh-Hans/components/parse.json @@ -0,0 +1,9 @@ +{ + "HTML": { + "expanded": { + "true": "折叠{{hint}}", + "false": "展开{{hint}}" + }, + "defaultHint": "全文" + } +} \ No newline at end of file diff --git a/src/i18n/zh-Hans/components/parse.ts b/src/i18n/zh-Hans/components/parse.ts deleted file mode 100644 index f1575725..00000000 --- a/src/i18n/zh-Hans/components/parse.ts +++ /dev/null @@ -1,9 +0,0 @@ -export default { - HTML: { - expanded: { - true: '折叠{{hint}}', - false: '展开{{hint}}' - }, - defaultHint: '全文' - } -} diff --git a/src/i18n/zh-Hans/components/relationship.json b/src/i18n/zh-Hans/components/relationship.json new file mode 100644 index 00000000..6f6b7e2d --- /dev/null +++ b/src/i18n/zh-Hans/components/relationship.json @@ -0,0 +1,16 @@ +{ + "follow": { + "function": "关注" + }, + "block": { + "function": "屏蔽" + }, + "button": { + "error": "读取错误", + "blocked_by": "被用户屏蔽", + "blocking": "取消屏蔽", + "following": "取消关注", + "requested": "取消关注请求", + "default": "关注" + } +} \ No newline at end of file diff --git a/src/i18n/zh-Hans/components/relationship.ts b/src/i18n/zh-Hans/components/relationship.ts deleted file mode 100644 index 3acf2ec6..00000000 --- a/src/i18n/zh-Hans/components/relationship.ts +++ /dev/null @@ -1,16 +0,0 @@ -export default { - follow: { - function: '关注' - }, - block: { - function: '屏蔽' - }, - button: { - error: '读取错误', - blocked_by: '被用户屏蔽', - blocking: '取消屏蔽', - following: '取消关注', - requested: '取消关注请求', - default: '关注' - } -} diff --git a/src/i18n/zh-Hans/components/relativeTime.json b/src/i18n/zh-Hans/components/relativeTime.json new file mode 100644 index 00000000..1286722b --- /dev/null +++ b/src/i18n/zh-Hans/components/relativeTime.json @@ -0,0 +1,20 @@ +{ + "strings": { + "prefixAgo": null, + "prefixFromNow": null, + "suffixAgo": "前", + "suffixFromNow": "后", + "seconds": "%d秒", + "minute": "1分钟", + "minutes": "%d分钟", + "hour": "1小时", + "hours": "%d小时", + "day": "1天", + "days": "%d天", + "month": "1个月", + "months": "%d月", + "year": "大约1年", + "years": "%d年", + "wordSeparator": "" + } +} \ No newline at end of file diff --git a/src/i18n/zh-Hans/components/relativeTime.ts b/src/i18n/zh-Hans/components/relativeTime.ts deleted file mode 100644 index 71c00f36..00000000 --- a/src/i18n/zh-Hans/components/relativeTime.ts +++ /dev/null @@ -1,20 +0,0 @@ -export default { - strings: { - prefixAgo: null, - prefixFromNow: null, - suffixAgo: '前', - suffixFromNow: '后', - seconds: '%d秒', - minute: '1分钟', - minutes: '%d分钟', - hour: '1小时', - hours: '%d小时', - day: '1天', - days: '%d天', - month: '1个月', - months: '%d月', - year: '大约1年', - years: '%d年', - wordSeparator: '' - } -} diff --git a/src/i18n/zh-Hans/components/timeline.json b/src/i18n/zh-Hans/components/timeline.json new file mode 100644 index 00000000..aaa08d09 --- /dev/null +++ b/src/i18n/zh-Hans/components/timeline.json @@ -0,0 +1,162 @@ +{ + "empty": { + "error": { + "message": "加载错误", + "button": "重试" + }, + "success": { + "message": "空无一物" + } + }, + "end": { + "message": "居然刷到底了,喝杯 <0 /> 吧" + }, + "refresh": { + "fetchPreviousPage": "较新于此的嘟嘟", + "refetch": "最新的嘟嘟" + }, + "shared": { + "actioned": { + "pinned": "置顶", + "favourite": "{{name}} 喜欢了你的嘟文", + "status": "{{name}} 刚刚发嘟", + "follow": "{{name}} 开始关注你", + "follow_request": "{{name}} 请求关注你", + "poll": "你参与的投票已结束", + "reblog": { + "default": "{{name}} 转嘟了", + "notification": "{{name}} 转嘟了你的嘟文" + } + }, + "actions": { + "favourited": { + "function": "喜欢嘟文" + }, + "reblogged": { + "function": "转嘟" + }, + "bookmarked": { + "function": "喜欢嘟文" + } + }, + "actionsUsers": { + "reblogged_by": "$t(sharedUsers:heading.statuses.reblogged_by)", + "favourited_by": "$t(sharedUsers:heading.statuses.favourited_by)" + }, + "attachment": { + "sensitive": { + "button": "显示敏感内容" + }, + "unsupported": { + "text": "附件读取错误", + "button": "尝试远程链接" + } + }, + "content": { + "expandHint": "隐藏内容" + }, + "fullConversation": "阅读全部对话", + "header": { + "shared": { + "application": "发自于 {{application}}" + }, + "conversation": { + "withAccounts": "与", + "delete": { + "function": "删除私信" + } + }, + "actions": { + "account": { + "heading": "关于用户", + "mute": { + "function": "隐藏 @{{acct}} 的嘟文", + "button": "隐藏 @{{acct}} 的嘟文" + }, + "block": { + "function": "屏蔽 @{{acct}}", + "button": "屏蔽 @{{acct}}" + }, + "reports": { + "function": "举报 @{{acct}}", + "button": "举报 @{{acct}}" + } + }, + "domain": { + "heading": "关于社区", + "block": { + "function": "屏蔽社区", + "button": "屏蔽社区 {{domain}}" + }, + "alert": { + "title": "确定要屏蔽 {{domain}} 吗?", + "message": "多数情况下,隐藏或屏蔽特定用户即可。\n\n屏蔽之后,来自此社区的所有内容将不再出现在你的时间轴里。同时,来自该社区的关注者将被移除。请谨慎使用。", + "buttons": { + "confirm": "确定屏蔽整个社区", + "cancel": "$t(common:buttons.cancel)" + } + } + }, + "share": { + "status": { + "heading": "分享嘟文", + "button": "分享此条嘟文的链接" + }, + "account": { + "heading": "分享用户", + "button": "分享此用户的链接" + } + }, + "status": { + "heading": "关于嘟文", + "delete": { + "function": "删除", + "button": "删除此条嘟文" + }, + "edit": { + "function": "删除", + "button": "删除并重新编辑此条嘟文", + "alert": { + "title": "确认删除嘟文?", + "message": "确定要删除这条嘟文并重新编辑它吗?所有相关的转嘟和喜欢都会被清除,回复将会失去关联。", + "buttons": { + "confirm": "删除并重新编辑", + "cancel": "$t(common:buttons.cancel)" + } + } + }, + "mute": { + "function": "静音", + "button": { + "positive": "静音此条嘟文及对话", + "negative": "取消静音此条嘟文及对话" + } + }, + "pin": { + "function": "置顶", + "button": { + "positive": "置顶此条嘟文", + "negative": "取消置顶此条嘟文" + } + } + } + } + }, + "poll": { + "meta": { + "button": { + "vote": "投票", + "refresh": "刷新" + }, + "count": { + "voters": "已投{{count}}人 • ", + "votes": "已投{{count}}票 • " + }, + "expiration": { + "expired": "投票已结束", + "until": "<0 />截止" + } + } + } + } +} \ No newline at end of file diff --git a/src/i18n/zh-Hans/components/timeline.ts b/src/i18n/zh-Hans/components/timeline.ts deleted file mode 100644 index 3930008c..00000000 --- a/src/i18n/zh-Hans/components/timeline.ts +++ /dev/null @@ -1,158 +0,0 @@ -export default { - empty: { - error: { - message: '加载错误', - button: '重试' - }, - success: { - message: '空无一物' - } - }, - end: { - message: '居然刷到底了,喝杯 <0 /> 吧' - }, - refresh: { - fetchPreviousPage: '较新于此的嘟嘟', - refetch: '最新的嘟嘟' - }, - shared: { - actioned: { - pinned: '置顶', - favourite: '{{name}} 喜欢了你的嘟文', - status: '{{name}} 刚刚发嘟', - follow: '{{name}} 开始关注你', - follow_request: '{{name}} 请求关注你', - poll: '你参与的投票已结束', - reblog: { - default: '{{name}} 转嘟了', - notification: '{{name}} 转嘟了你的嘟文' - } - }, - actions: { - favourited: { - function: '喜欢嘟文' - }, - reblogged: { - function: '转嘟' - }, - bookmarked: { - function: '喜欢嘟文' - } - }, - actionsUsers: { - reblogged_by: '$t(sharedUsers:heading.statuses.reblogged_by)', - favourited_by: '$t(sharedUsers:heading.statuses.favourited_by)' - }, - attachment: { - sensitive: { - button: '显示敏感内容' - }, - unsupported: { - text: '附件读取错误', - button: '尝试远程链接' - } - }, - content: { - expandHint: '隐藏内容' - }, - fullConversation: '阅读全部对话', - header: { - shared: { - application: '发自于 {{application}}' - }, - conversation: { - withAccounts: '与', - delete: { - function: '删除私信' - } - }, - actions: { - account: { - heading: '关于用户', - mute: { - function: '隐藏 @{{acct}} 的嘟文', - button: '隐藏 @{{acct}} 的嘟文' - }, - block: { - function: '屏蔽 @{{acct}}', - button: '屏蔽 @{{acct}}' - }, - reports: { - function: '举报 @{{acct}}', - button: '举报 @{{acct}}' - } - }, - domain: { - heading: '关于社区', - block: { - function: '屏蔽社区', - button: '屏蔽社区 {{domain}}' - }, - alert: { - title: '确定要屏蔽 {{domain}} 吗?', - message: - '多数情况下,隐藏或屏蔽特定用户即可。\n\n屏蔽之后,来自此社区的所有内容将不再出现在你的时间轴里。同时,来自该社区的关注者将被移除。请谨慎使用。', - buttons: { - confirm: '确定屏蔽整个社区', - cancel: '$t(common:buttons.cancel)' - } - } - }, - share: { - status: { heading: '分享嘟文', button: '分享此条嘟文的链接' }, - account: { heading: '分享用户', button: '分享此用户的链接' } - }, - status: { - heading: '关于嘟文', - delete: { - function: '删除', - button: '删除此条嘟文' - }, - edit: { - function: '删除', - button: '删除并重新编辑此条嘟文', - alert: { - title: '确认删除嘟文?', - message: - '确定要删除这条嘟文并重新编辑它吗?所有相关的转嘟和喜欢都会被清除,回复将会失去关联。', - buttons: { - confirm: '删除并重新编辑', - cancel: '$t(common:buttons.cancel)' - } - } - }, - mute: { - function: '静音', - button: { - positive: '静音此条嘟文及对话', - negative: '取消静音此条嘟文及对话' - } - }, - pin: { - function: '置顶', - button: { - positive: '置顶此条嘟文', - negative: '取消置顶此条嘟文' - } - } - } - } - }, - poll: { - meta: { - button: { - vote: '投票', - refresh: '刷新' - }, - count: { - voters: '已投{{count}}人 • ', - votes: '已投{{count}}票 • ' - }, - expiration: { - expired: '投票已结束', - until: '<0 />截止' - } - } - } - } -} diff --git a/src/i18n/zh-Hans/screens/local.json b/src/i18n/zh-Hans/screens/local.json new file mode 100644 index 00000000..d65a5ad8 --- /dev/null +++ b/src/i18n/zh-Hans/screens/local.json @@ -0,0 +1,3 @@ +{ + "heading": "我的关注" +} \ No newline at end of file diff --git a/src/i18n/zh-Hans/screens/local.ts b/src/i18n/zh-Hans/screens/local.ts deleted file mode 100644 index d0c8405e..00000000 --- a/src/i18n/zh-Hans/screens/local.ts +++ /dev/null @@ -1,3 +0,0 @@ -export default { - heading: '我的关注' -} diff --git a/src/i18n/zh-Hans/screens/meBookmarks.json b/src/i18n/zh-Hans/screens/meBookmarks.json new file mode 100644 index 00000000..56c1f4e7 --- /dev/null +++ b/src/i18n/zh-Hans/screens/meBookmarks.json @@ -0,0 +1,4 @@ +{ + "heading": "书签", + "content": {} +} diff --git a/src/i18n/zh-Hans/screens/meBookmarks.ts b/src/i18n/zh-Hans/screens/meBookmarks.ts deleted file mode 100644 index 11adfb9b..00000000 --- a/src/i18n/zh-Hans/screens/meBookmarks.ts +++ /dev/null @@ -1,4 +0,0 @@ -export default { - heading: '书签', - content: {} -} diff --git a/src/i18n/zh-Hans/screens/meConversations.json b/src/i18n/zh-Hans/screens/meConversations.json new file mode 100644 index 00000000..29e5f961 --- /dev/null +++ b/src/i18n/zh-Hans/screens/meConversations.json @@ -0,0 +1,4 @@ +{ + "heading": "私信", + "content": {} +} diff --git a/src/i18n/zh-Hans/screens/meConversations.ts b/src/i18n/zh-Hans/screens/meConversations.ts deleted file mode 100644 index 3a4028f7..00000000 --- a/src/i18n/zh-Hans/screens/meConversations.ts +++ /dev/null @@ -1,4 +0,0 @@ -export default { - heading: '私信', - content: {} -} diff --git a/src/i18n/zh-Hans/screens/meFavourites.json b/src/i18n/zh-Hans/screens/meFavourites.json new file mode 100644 index 00000000..c9bfa7e8 --- /dev/null +++ b/src/i18n/zh-Hans/screens/meFavourites.json @@ -0,0 +1,4 @@ +{ + "heading": "喜欢", + "content": {} +} diff --git a/src/i18n/zh-Hans/screens/meFavourites.ts b/src/i18n/zh-Hans/screens/meFavourites.ts deleted file mode 100644 index 072aeae6..00000000 --- a/src/i18n/zh-Hans/screens/meFavourites.ts +++ /dev/null @@ -1,4 +0,0 @@ -export default { - heading: '喜欢', - content: {} -} diff --git a/src/i18n/zh-Hans/screens/meLists.json b/src/i18n/zh-Hans/screens/meLists.json new file mode 100644 index 00000000..9453604b --- /dev/null +++ b/src/i18n/zh-Hans/screens/meLists.json @@ -0,0 +1,4 @@ +{ + "heading": "列表", + "content": {} +} diff --git a/src/i18n/zh-Hans/screens/meLists.ts b/src/i18n/zh-Hans/screens/meLists.ts deleted file mode 100644 index ec61bbdf..00000000 --- a/src/i18n/zh-Hans/screens/meLists.ts +++ /dev/null @@ -1,4 +0,0 @@ -export default { - heading: '列表', - content: {} -} diff --git a/src/i18n/zh-Hans/screens/meListsList.json b/src/i18n/zh-Hans/screens/meListsList.json new file mode 100644 index 00000000..f7b435c4 --- /dev/null +++ b/src/i18n/zh-Hans/screens/meListsList.json @@ -0,0 +1,4 @@ +{ + "heading": "列表:{{list}}", + "content": {} +} \ No newline at end of file diff --git a/src/i18n/zh-Hans/screens/meListsList.ts b/src/i18n/zh-Hans/screens/meListsList.ts deleted file mode 100644 index aaa55a97..00000000 --- a/src/i18n/zh-Hans/screens/meListsList.ts +++ /dev/null @@ -1,4 +0,0 @@ -export default { - heading: '列表:{{list}}', - content: {} -} diff --git a/src/i18n/zh-Hans/screens/meRoot.json b/src/i18n/zh-Hans/screens/meRoot.json new file mode 100644 index 00000000..07813ddc --- /dev/null +++ b/src/i18n/zh-Hans/screens/meRoot.json @@ -0,0 +1,31 @@ +{ + "content": { + "collections": { + "conversations": "$t(meConversations:heading)", + "bookmarks": "$t(meBookmarks:heading)", + "favourites": "$t(meFavourites:heading)", + "lists": "$t(meLists:heading)", + "announcements": { + "heading": "$t(sharedAnnouncements:heading)", + "content": { + "unread": "{{amount}} 条未读公告", + "read": "无未读公告", + "empty": "无公告" + } + } + }, + "accountSettings": "账户设置", + "appSettings": "$t(meSettings:heading)", + "logout": { + "button": "退出当前账号", + "alert": { + "title": "确认退出登录?", + "message": "退出登录后,需要重新认证账号", + "buttons": { + "logout": "退出登录", + "cancel": "$t(common:buttons.cancel)" + } + } + } + } +} \ No newline at end of file diff --git a/src/i18n/zh-Hans/screens/meRoot.ts b/src/i18n/zh-Hans/screens/meRoot.ts deleted file mode 100644 index 55fc95e0..00000000 --- a/src/i18n/zh-Hans/screens/meRoot.ts +++ /dev/null @@ -1,31 +0,0 @@ -export default { - content: { - collections: { - conversations: '$t(meConversations:heading)', - bookmarks: '$t(meBookmarks:heading)', - favourites: '$t(meFavourites:heading)', - lists: '$t(meLists:heading)', - announcements: { - heading: '$t(sharedAnnouncements:heading)', - content: { - unread: '{{amount}} 条未读公告', - read: '无未读公告', - empty: '无公告' - } - } - }, - accountSettings: '账户设置', - appSettings: '$t(meSettings:heading)', - logout: { - button: '退出当前账号', - alert: { - title: '确认退出登录?', - message: '退出登录后,需要重新认证账号', - buttons: { - logout: '退出登录', - cancel: '$t(common:buttons.cancel)' - } - } - } - } -} diff --git a/src/i18n/zh-Hans/screens/meSettings.json b/src/i18n/zh-Hans/screens/meSettings.json new file mode 100644 index 00000000..264baa0f --- /dev/null +++ b/src/i18n/zh-Hans/screens/meSettings.json @@ -0,0 +1,65 @@ +{ + "heading": "设置", + "content": { + "push": { + "heading": "$t(meSettingsPush:heading)", + "content": { + "enabled": "已开启", + "disabled": "已关闭" + } + }, + "fontsize": { + "heading": "$t(meSettingsFontsize:heading)", + "content": { + "S": "$t(meSettingsFontsize:content.sizes.S)", + "M": "$t(meSettingsFontsize:content.sizes.M)", + "L": "$t(meSettingsFontsize:content.sizes.L)", + "XL": "$t(meSettingsFontsize:content.sizes.XL)", + "XXL": "$t(meSettingsFontsize:content.sizes.XXL)" + } + }, + "language": { + "heading": "切换语言", + "options": { + "en": "English", + "zh-Hans": "简体中文", + "cancel": "$t(common:buttons.cancel)" + } + }, + "theme": { + "heading": "应用外观", + "options": { + "auto": "跟随系统", + "light": "浅色模式", + "dark": "深色模式", + "cancel": "$t(common:buttons.cancel)" + } + }, + "browser": { + "heading": "外部链接", + "options": { + "internal": "应用内打开", + "external": "浏览器打开", + "cancel": "$t(common:buttons.cancel)" + } + }, + "cache": { + "heading": "清空缓存", + "empty": "暂无缓存" + }, + "support": { + "heading": "赞助 tooot 开发" + }, + "review": { + "heading": "给 tooot 打分" + }, + "contact": { + "heading": "联系 tooot" + }, + "analytics": { + "heading": "帮助我们改进", + "description": "收集不与用户相关联的使用信息" + }, + "version": "版本 v{{version}}" + } +} \ No newline at end of file diff --git a/src/i18n/zh-Hans/screens/meSettings.ts b/src/i18n/zh-Hans/screens/meSettings.ts deleted file mode 100644 index 20ac6502..00000000 --- a/src/i18n/zh-Hans/screens/meSettings.ts +++ /dev/null @@ -1,65 +0,0 @@ -export default { - heading: '设置', - content: { - push: { - heading: '$t(meSettingsPush:heading)', - content: { - enabled: '已开启', - disabled: '已关闭' - } - }, - fontsize: { - heading: '$t(meSettingsFontsize:heading)', - content: { - S: '$t(meSettingsFontsize:content.sizes.S)', - M: '$t(meSettingsFontsize:content.sizes.M)', - L: '$t(meSettingsFontsize:content.sizes.L)', - XL: '$t(meSettingsFontsize:content.sizes.XL)', - XXL: '$t(meSettingsFontsize:content.sizes.XXL)' - } - }, - language: { - heading: '切换语言', - options: { - en: 'English', - 'zh-Hans': '简体中文', - cancel: '$t(common:buttons.cancel)' - } - }, - theme: { - heading: '应用外观', - options: { - auto: '跟随系统', - light: '浅色模式', - dark: '深色模式', - cancel: '$t(common:buttons.cancel)' - } - }, - browser: { - heading: '外部链接', - options: { - internal: '应用内打开', - external: '浏览器打开', - cancel: '$t(common:buttons.cancel)' - } - }, - cache: { - heading: '清空缓存', - empty: '暂无缓存' - }, - support: { - heading: '赞助 tooot 开发' - }, - review: { - heading: '给 tooot 打分' - }, - contact: { - heading: '联系 tooot' - }, - analytics: { - heading: '帮助我们改进', - description: '收集不与用户相关联的使用信息' - }, - version: '版本 v{{version}}' - } -} diff --git a/src/i18n/zh-Hans/screens/meSettingsFontsize.json b/src/i18n/zh-Hans/screens/meSettingsFontsize.json new file mode 100644 index 00000000..77bf04d5 --- /dev/null +++ b/src/i18n/zh-Hans/screens/meSettingsFontsize.json @@ -0,0 +1,10 @@ +{ + "heading": "嘟文字号", + "content": { + "showcase": "嘟文示例", + "demo": + "

这是一条测试用的嘟文😊。以下是可供选择的字号,从小号至超大号。

这个设置仅会调整嘟文的正文字号,不影响其它字号。

", + "availableSizes": "可选字号", + "sizes": { "S": "小号", "M": "默认", "L": "大号", "XL": "特大号", "XXL": "超大号" } + } +} diff --git a/src/i18n/zh-Hans/screens/meSettingsFontsize.ts b/src/i18n/zh-Hans/screens/meSettingsFontsize.ts deleted file mode 100644 index 343f19b5..00000000 --- a/src/i18n/zh-Hans/screens/meSettingsFontsize.ts +++ /dev/null @@ -1,10 +0,0 @@ -export default { - heading: '嘟文字号', - content: { - showcase: '嘟文示例', - demo: - '

这是一条测试用的嘟文😊。以下是可供选择的字号,从小号至超大号。

这个设置仅会调整嘟文的正文字号,不影响其它字号。

', - availableSizes: '可选字号', - sizes: { S: '小号', M: '默认', L: '大号', XL: '特大号', XXL: '超大号' } - } -} diff --git a/src/i18n/zh-Hans/screens/meSettingsPush.json b/src/i18n/zh-Hans/screens/meSettingsPush.json new file mode 100644 index 00000000..12cac018 --- /dev/null +++ b/src/i18n/zh-Hans/screens/meSettingsPush.json @@ -0,0 +1,40 @@ +{ + "heading": "推送通知", + "content": { + "enable": { + "direct": "启用tooot推送通知", + "settings": "去系统设置启用" + }, + "global": { + "heading": "启用通知", + "description": "通知消息将经由tooot服务器转发" + }, + "decode": { + "heading": "显示通知内容", + "description": "经由tooot服务器中转的通知消息已被加密,但可以允许tooot服务器解密并转发消息。tooot消息服务器源码开源,且不留存任何日志。" + }, + "default": { + "heading": "默认通知" + }, + "follow": { + "heading": "新关注者" + }, + "favourite": { + "heading": "嘟文被喜欢" + }, + "reblog": { + "heading": "嘟文被转嘟" + }, + "mention": { + "heading": "嘟文提及你" + }, + "poll": { + "heading": "投票更新" + }, + "howitworks": "了解通知消息转发如何工作" + }, + "error": { + "message": "推送服务错误", + "description": "请在设置中重新尝试启用推送通知" + } +} \ No newline at end of file diff --git a/src/i18n/zh-Hans/screens/meSettingsPush.ts b/src/i18n/zh-Hans/screens/meSettingsPush.ts deleted file mode 100644 index 6c624884..00000000 --- a/src/i18n/zh-Hans/screens/meSettingsPush.ts +++ /dev/null @@ -1,41 +0,0 @@ -export default { - heading: '推送通知', - content: { - enable: { - direct: '启用tooot推送通知', - settings: '去系统设置启用' - }, - global: { - heading: '启用通知', - description: '通知消息将经由tooot服务器转发' - }, - decode: { - heading: '显示通知内容', - description: - '经由tooot服务器中转的通知消息已被加密,但可以允许tooot服务器解密并转发消息。tooot消息服务器源码开源,且不留存任何日志。' - }, - default: { - heading: '默认通知' // Android notification channel name only - }, - follow: { - heading: '新关注者' - }, - favourite: { - heading: '嘟文被喜欢' - }, - reblog: { - heading: '嘟文被转嘟' - }, - mention: { - heading: '嘟文提及你' - }, - poll: { - heading: '投票更新' - }, - howitworks: '了解通知消息转发如何工作' - }, - error: { - message: '推送服务错误', - description: '请在设置中重新尝试启用推送通知' - } -} diff --git a/src/i18n/zh-Hans/screens/meSwitch.json b/src/i18n/zh-Hans/screens/meSwitch.json new file mode 100644 index 00000000..57b08a69 --- /dev/null +++ b/src/i18n/zh-Hans/screens/meSwitch.json @@ -0,0 +1,7 @@ +{ + "heading": "切换账号", + "content": { + "existing": "选择已登录的账号", + "new": "登录新社区" + } +} diff --git a/src/i18n/zh-Hans/screens/meSwitch.ts b/src/i18n/zh-Hans/screens/meSwitch.ts deleted file mode 100644 index 7f21a1cf..00000000 --- a/src/i18n/zh-Hans/screens/meSwitch.ts +++ /dev/null @@ -1,7 +0,0 @@ -export default { - heading: '切换账号', - content: { - existing: '选择已登录的账号', - new: '登录新社区' - } -} diff --git a/src/i18n/zh-Hans/screens/notifications.json b/src/i18n/zh-Hans/screens/notifications.json new file mode 100644 index 00000000..b381e116 --- /dev/null +++ b/src/i18n/zh-Hans/screens/notifications.json @@ -0,0 +1,3 @@ +{ + "heading": "通知" +} diff --git a/src/i18n/zh-Hans/screens/notifications.ts b/src/i18n/zh-Hans/screens/notifications.ts deleted file mode 100644 index 654c8ed2..00000000 --- a/src/i18n/zh-Hans/screens/notifications.ts +++ /dev/null @@ -1,3 +0,0 @@ -export default { - heading: '通知' -} diff --git a/src/i18n/zh-Hans/screens/public.json b/src/i18n/zh-Hans/screens/public.json new file mode 100644 index 00000000..a386891f --- /dev/null +++ b/src/i18n/zh-Hans/screens/public.json @@ -0,0 +1,8 @@ +{ + "heading": { + "segments": { + "left": "跨站嘟嘟", + "right": "本站嘟嘟" + } + } +} diff --git a/src/i18n/zh-Hans/screens/public.ts b/src/i18n/zh-Hans/screens/public.ts deleted file mode 100644 index e139771d..00000000 --- a/src/i18n/zh-Hans/screens/public.ts +++ /dev/null @@ -1,8 +0,0 @@ -export default { - heading: { - segments: { - left: '跨站嘟嘟', - right: '本站嘟嘟' - } - } -} diff --git a/src/i18n/zh-Hans/screens/screenActions.json b/src/i18n/zh-Hans/screens/screenActions.json new file mode 100644 index 00000000..89116dfb --- /dev/null +++ b/src/i18n/zh-Hans/screens/screenActions.json @@ -0,0 +1,19 @@ +{ + "content": { + "button": { + "apply": "$t(common:buttons.apply)", + "cancel": "$t(common:buttons.cancel)" + }, + "notificationsFilter": { + "heading": "显示通知", + "content": { + "follow": "$t(meSettingsPush:content.follow.heading)", + "favourite": "$t(meSettingsPush:content.favourite.heading)", + "reblog": "$t(meSettingsPush:content.reblog.heading)", + "mention": "$t(meSettingsPush:content.mention.heading)", + "poll": "$t(meSettingsPush:content.poll.heading)", + "follow_request": "关注请求" + } + } + } +} \ No newline at end of file diff --git a/src/i18n/zh-Hans/screens/screenActions.ts b/src/i18n/zh-Hans/screens/screenActions.ts deleted file mode 100644 index 5bf080d2..00000000 --- a/src/i18n/zh-Hans/screens/screenActions.ts +++ /dev/null @@ -1,19 +0,0 @@ -export default { - content: { - button: { - apply: '$t(common:buttons.apply)', - cancel: '$t(common:buttons.cancel)' - }, - notificationsFilter: { - heading: '显示通知', - content: { - follow: '$t(meSettingsPush:content.follow.heading)', - favourite: '$t(meSettingsPush:content.favourite.heading)', - reblog: '$t(meSettingsPush:content.reblog.heading)', - mention: '$t(meSettingsPush:content.mention.heading)', - poll: '$t(meSettingsPush:content.poll.heading)', - follow_request: '关注请求' - } - } - } -} diff --git a/src/i18n/zh-Hans/screens/screenImageViewer.json b/src/i18n/zh-Hans/screens/screenImageViewer.json new file mode 100644 index 00000000..3181927a --- /dev/null +++ b/src/i18n/zh-Hans/screens/screenImageViewer.json @@ -0,0 +1,13 @@ +{ + "content": { + "options": { + "save": "保存图片", + "share": "分享图片", + "cancel": "$t(common:buttons.cancel)" + }, + "save": { + "function": "保存图片", + "success": "图片保存成功" + } + } +} \ No newline at end of file diff --git a/src/i18n/zh-Hans/screens/screenImageViewer.ts b/src/i18n/zh-Hans/screens/screenImageViewer.ts deleted file mode 100644 index 6fa1d247..00000000 --- a/src/i18n/zh-Hans/screens/screenImageViewer.ts +++ /dev/null @@ -1,13 +0,0 @@ -export default { - content: { - options: { - save: '保存图片', - share: '分享图片', - cancel: '$t(common:buttons.cancel)' - }, - save: { - function: '保存图片', - success: '图片保存成功' - } - } -} diff --git a/src/i18n/zh-Hans/screens/sharedAccount.json b/src/i18n/zh-Hans/screens/sharedAccount.json new file mode 100644 index 00000000..e85c9117 --- /dev/null +++ b/src/i18n/zh-Hans/screens/sharedAccount.json @@ -0,0 +1,11 @@ +{ + "content": { + "moved": "账户已迁移", + "created_at": "注册时间:{{date}}", + "summary": { + "statuses_count": "{{count}} 条嘟文", + "following_count": "$t(sharedUsers:heading.accounts.following)", + "followers_count": "$t(sharedUsers:heading.accounts.followers)" + } + } +} \ No newline at end of file diff --git a/src/i18n/zh-Hans/screens/sharedAccount.ts b/src/i18n/zh-Hans/screens/sharedAccount.ts deleted file mode 100644 index 96624804..00000000 --- a/src/i18n/zh-Hans/screens/sharedAccount.ts +++ /dev/null @@ -1,11 +0,0 @@ -export default { - content: { - moved: '账户已迁移', - created_at: '注册时间:{{date}}', - summary: { - statuses_count: '{{count}} 条嘟文', - following_count: '$t(sharedUsers:heading.accounts.following)', - followers_count: '$t(sharedUsers:heading.accounts.followers)' - } - } -} diff --git a/src/i18n/zh-Hans/screens/sharedAnnouncements.json b/src/i18n/zh-Hans/screens/sharedAnnouncements.json new file mode 100644 index 00000000..bb404265 --- /dev/null +++ b/src/i18n/zh-Hans/screens/sharedAnnouncements.json @@ -0,0 +1,10 @@ +{ + "heading": "公告", + "content": { + "published": "发布于 <0 />", + "button": { + "read": "已读", + "unread": "标记已读" + } + } +} \ No newline at end of file diff --git a/src/i18n/zh-Hans/screens/sharedAnnouncements.ts b/src/i18n/zh-Hans/screens/sharedAnnouncements.ts deleted file mode 100644 index 0da2d31e..00000000 --- a/src/i18n/zh-Hans/screens/sharedAnnouncements.ts +++ /dev/null @@ -1,10 +0,0 @@ -export default { - heading: '公告', - content: { - published: '发布于 <0 />', - button: { - read: '已读', - unread: '标记已读' - } - } -} diff --git a/src/i18n/zh-Hans/screens/sharedAttachments.json b/src/i18n/zh-Hans/screens/sharedAttachments.json new file mode 100644 index 00000000..7e0b66bf --- /dev/null +++ b/src/i18n/zh-Hans/screens/sharedAttachments.json @@ -0,0 +1,3 @@ +{ + "heading": "<0 /> <1>的媒体" +} \ No newline at end of file diff --git a/src/i18n/zh-Hans/screens/sharedAttachments.ts b/src/i18n/zh-Hans/screens/sharedAttachments.ts deleted file mode 100644 index e3873f60..00000000 --- a/src/i18n/zh-Hans/screens/sharedAttachments.ts +++ /dev/null @@ -1,3 +0,0 @@ -export default { - heading: '<0 /> <1>的媒体' -} diff --git a/src/i18n/zh-Hans/screens/sharedCompose.json b/src/i18n/zh-Hans/screens/sharedCompose.json new file mode 100644 index 00000000..f5d056ea --- /dev/null +++ b/src/i18n/zh-Hans/screens/sharedCompose.json @@ -0,0 +1,156 @@ +{ + "heading": { + "left": { + "button": "退出编辑", + "alert": { + "title": "确认退出编辑?", + "buttons": { + "save": "保存草稿", + "delete": "删除草稿", + "cancel": "继续编辑" + } + } + }, + "right": { + "button": { + "default": "发嘟嘟", + "conversation": "发私信", + "reply": "发布回复", + "edit": "发嘟嘟" + }, + "alert": { + "default": { + "title": "发布失败", + "button": "返回重试" + }, + "removeReply": { + "title": "回复的嘟文不存在", + "description": "回复的嘟文可能已被删除。确认移除回复嘟文的关联?", + "cancel": "$t(common:buttons.cancel)", + "confirm": "移除关联" + } + } + } + }, + "content": { + "root": { + "header": { + "postingAs": "以 @{{acct}}@{{domain}} 发嘟", + "spoilerInput": { + "placeholder": "折叠部分的警告信息" + }, + "textInput": { + "placeholder": "想说点什么呢" + } + }, + "footer": { + "attachments": { + "sensitive": "标记附件为敏感内容" + }, + "poll": { + "option": { + "placeholder": { + "single": "单选项", + "multiple": "多选项" + } + }, + "multiple": { + "heading": "可选项", + "options": { + "single": "单选", + "multiple": "多选", + "cancel": "$t(common:buttons.cancel)" + } + }, + "expiration": { + "heading": "有效期", + "options": { + "300": "5分钟", + "1800": "30分钟", + "3600": "1小时", + "21600": "6小时", + "86400": "1天", + "259200": "3天", + "604800": "7天", + "cancel": "$t(common:buttons.cancel)" + } + } + } + }, + "actions": { + "attachment": { + "actions": { + "options": { + "library": "从相册上传", + "photo": "拍摄上传", + "cancel": "$t(common:buttons.cancel)" + }, + "library": { + "alert": { + "title": "无读取权限", + "message": "需要读取相册权限才能上传附件", + "buttons": { + "settings": "去更新设置", + "cancel": "取消上传" + } + } + }, + "photo": { + "alert": { + "title": "无拍照权限", + "message": "需要使用相机权限才能上传附件", + "buttons": { + "settings": "去更新设置", + "cancel": "取消上传" + } + } + } + }, + "failed": { + "alert": { + "title": "上传失败", + "button": "返回重试" + } + } + }, + "visibility": { + "title": "嘟文可见范围", + "options": { + "public": "公开", + "unlisted": "不公开", + "private": "仅关注者", + "direct": "私信", + "cancel": "$t(common:buttons.cancel)" + } + } + }, + "drafts": "草稿 ({{count}})" + }, + "editAttachment": { + "header": { + "title": "编辑附件", + "right": { + "failed": { + "title": "编辑失败", + "button": "返回重试" + } + } + }, + "content": { + "altText": { + "heading": "为附件添加文字说明", + "placeholder": "你可以为附件添加文字说明,以便更多人可以查看他们(包括视力障碍或视力受损人士)。\n\n优质的描述应该简洁明了,但要准确地描述照片中的内容,以便用户理解其含义。" + }, + "imageFocus": "在预览图上拖动圆圈,以选择缩略图的焦点" + } + }, + "draftsList": { + "header": { + "title": "草稿" + }, + "content": { + "textEmpty": "无正文内容" + } + } + } +} \ No newline at end of file diff --git a/src/i18n/zh-Hans/screens/sharedCompose.ts b/src/i18n/zh-Hans/screens/sharedCompose.ts deleted file mode 100644 index ee6f4c65..00000000 --- a/src/i18n/zh-Hans/screens/sharedCompose.ts +++ /dev/null @@ -1,157 +0,0 @@ -export default { - heading: { - left: { - button: '退出编辑', - alert: { - title: '确认退出编辑?', - buttons: { - save: '保存草稿', - delete: '删除草稿', - cancel: '继续编辑' - } - } - }, - right: { - button: { - default: '发嘟嘟', - conversation: '发私信', - reply: '发布回复', - edit: '发嘟嘟' - }, - alert: { - default: { - title: '发布失败', - button: '返回重试' - }, - removeReply: { - title: '回复的嘟文不存在', - description: '回复的嘟文可能已被删除。确认移除回复嘟文的关联?', - cancel: '$t(common:buttons.cancel)', - confirm: '移除关联' - } - } - } - }, - content: { - root: { - header: { - postingAs: '以 @{{acct}}@{{domain}} 发嘟', - spoilerInput: { - placeholder: '折叠部分的警告信息' - }, - textInput: { - placeholder: '想说点什么呢' - } - }, - footer: { - attachments: { - sensitive: '标记附件为敏感内容' - }, - poll: { - option: { - placeholder: { - single: '单选项', - multiple: '多选项' - } - }, - multiple: { - heading: '可选项', - options: { - single: '单选', - multiple: '多选', - cancel: '$t(common:buttons.cancel)' - } - }, - expiration: { - heading: '有效期', - options: { - '300': '5分钟', - '1800': '30分钟', - '3600': '1小时', - '21600': '6小时', - '86400': '1天', - '259200': '3天', - '604800': '7天', - cancel: '$t(common:buttons.cancel)' - } - } - } - }, - actions: { - attachment: { - actions: { - options: { - library: '从相册上传', - photo: '拍摄上传', - cancel: '$t(common:buttons.cancel)' - }, - library: { - alert: { - title: '无读取权限', - message: '需要读取相册权限才能上传附件', - buttons: { - settings: '去更新设置', - cancel: '取消上传' - } - } - }, - photo: { - alert: { - title: '无拍照权限', - message: '需要使用相机权限才能上传附件', - buttons: { - settings: '去更新设置', - cancel: '取消上传' - } - } - } - }, - failed: { - alert: { - title: '上传失败', - button: '返回重试' - } - } - }, - visibility: { - title: '嘟文可见范围', - options: { - public: '公开', - unlisted: '不公开', - private: '仅关注者', - direct: '私信', - cancel: '$t(common:buttons.cancel)' - } - } - }, - drafts: '草稿 ({{count}})' - }, - editAttachment: { - header: { - title: '编辑附件', - right: { - failed: { - title: '编辑失败', - button: '返回重试' - } - } - }, - content: { - altText: { - heading: '为附件添加文字说明', - placeholder: - '你可以为附件添加文字说明,以便更多人可以查看他们(包括视力障碍或视力受损人士)。\n\n优质的描述应该简洁明了,但要准确地描述照片中的内容,以便用户理解其含义。' - }, - imageFocus: '在预览图上拖动圆圈,以选择缩略图的焦点' - } - }, - draftsList: { - header: { - title: '草稿' - }, - content: { - textEmpty: '无正文内容' - } - } - } -} diff --git a/src/i18n/zh-Hans/screens/sharedSearch.json b/src/i18n/zh-Hans/screens/sharedSearch.json new file mode 100644 index 00000000..87caa26b --- /dev/null +++ b/src/i18n/zh-Hans/screens/sharedSearch.json @@ -0,0 +1,26 @@ +{ + "content": { + "header": { + "prefix": "搜索", + "placeholder": "什么呢" + }, + "empty": { + "general": "输入关键词搜索$t(sharedSearch:content.sections.accounts)$t(sharedSearch:content.sections.hashtags)或者$t(sharedSearch:content.sections.statuses)", + "advanced": { + "header": "高级搜索格式", + "example": { + "account": "$t(sharedSearch:content.header.prefix)$t(sharedSearch:content.sections.accounts)", + "hashtag": "$t(sharedSearch:content.header.prefix)$t(sharedSearch:content.sections.hashtags)", + "statusLink": "$t(sharedSearch:content.header.prefix)指定$t(sharedSearch:content.sections.statuses)", + "accountLink": "$t(sharedSearch:content.header.prefix)$t(sharedSearch:content.sections.accounts)" + } + } + }, + "sections": { + "accounts": "用户", + "hashtags": "话题标签", + "statuses": "嘟文" + }, + "notFound": "找不到 {{searchTerm}} 相关的 {{type}}" + } +} \ No newline at end of file diff --git a/src/i18n/zh-Hans/screens/sharedSearch.ts b/src/i18n/zh-Hans/screens/sharedSearch.ts deleted file mode 100644 index 1f669fd9..00000000 --- a/src/i18n/zh-Hans/screens/sharedSearch.ts +++ /dev/null @@ -1,31 +0,0 @@ -export default { - content: { - header: { - prefix: '搜索', - placeholder: '什么呢' - }, - empty: { - general: - '输入关键词搜索$t(sharedSearch:content.sections.accounts)$t(sharedSearch:content.sections.hashtags)或者$t(sharedSearch:content.sections.statuses)', - advanced: { - header: '高级搜索格式', - example: { - account: - '$t(sharedSearch:content.header.prefix)$t(sharedSearch:content.sections.accounts)', - hashtag: - '$t(sharedSearch:content.header.prefix)$t(sharedSearch:content.sections.hashtags)', - statusLink: - '$t(sharedSearch:content.header.prefix)指定$t(sharedSearch:content.sections.statuses)', - accountLink: - '$t(sharedSearch:content.header.prefix)$t(sharedSearch:content.sections.accounts)' - } - } - }, - sections: { - accounts: '用户', - hashtags: '话题标签', - statuses: '嘟文' - }, - notFound: '找不到 {{searchTerm}} 相关的 {{type}}' - } -} diff --git a/src/i18n/zh-Hans/screens/sharedToot.json b/src/i18n/zh-Hans/screens/sharedToot.json new file mode 100644 index 00000000..098cf270 --- /dev/null +++ b/src/i18n/zh-Hans/screens/sharedToot.json @@ -0,0 +1,3 @@ +{ + "heading": "对话" +} \ No newline at end of file diff --git a/src/i18n/zh-Hans/screens/sharedToot.ts b/src/i18n/zh-Hans/screens/sharedToot.ts deleted file mode 100644 index cff21ce5..00000000 --- a/src/i18n/zh-Hans/screens/sharedToot.ts +++ /dev/null @@ -1,3 +0,0 @@ -export default { - heading: '对话' -} diff --git a/src/i18n/zh-Hans/screens/sharedUsers.json b/src/i18n/zh-Hans/screens/sharedUsers.json new file mode 100644 index 00000000..5e17a9ee --- /dev/null +++ b/src/i18n/zh-Hans/screens/sharedUsers.json @@ -0,0 +1,12 @@ +{ + "heading": { + "accounts": { + "following": "关注 {{count}} 人", + "followers": "被 {{count}} 人关注" + }, + "statuses": { + "reblogged_by": "{{count}} 人转嘟", + "favourited_by": "{{count}} 人喜欢" + } + } +} \ No newline at end of file diff --git a/src/i18n/zh-Hans/screens/sharedUsers.ts b/src/i18n/zh-Hans/screens/sharedUsers.ts deleted file mode 100644 index 6222f837..00000000 --- a/src/i18n/zh-Hans/screens/sharedUsers.ts +++ /dev/null @@ -1,12 +0,0 @@ -export default { - heading: { - accounts: { - following: '关注 {{count}} 人', - followers: '被 {{count}} 人关注' - }, - statuses: { - reblogged_by: '{{count}} 人转嘟', - favourited_by: '{{count}} 人喜欢' - } - } -}