diff --git a/.github/ISSUE_TEMPLATE/i18n.yml b/.github/ISSUE_TEMPLATE/i18n.yml new file mode 100644 index 000000000..c2e5541b0 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/i18n.yml @@ -0,0 +1,54 @@ +name: 🌐 Internationalization (i18n) +description: Contribute to or report issues with translations +title: "[i18n]: " +labels: ["i18n", "triage"] +body: + - type: markdown + attributes: + value: | + Thanks for taking the time to contribute to our internationalization efforts! + + Before proceeding, please check our [i18n Contribution Guidelines](https://github.com/RSSNext/Follow/blob/dev/wiki/contribute-i18n.md) for detailed instructions. + - type: dropdown + id: type + attributes: + label: Type of i18n contribution + options: + - New language support + - Update existing translations + - Report incorrect translation + - Other i18n-related issue + validations: + required: true + - type: input + id: language + attributes: + label: Language + description: What language are you contributing to or reporting about? + placeholder: e.g., Spanish, French, Japanese + validations: + required: true + - type: textarea + id: description + attributes: + label: Description + description: Please provide details about your contribution or the issue you're reporting. + placeholder: | + For new languages: List any specific challenges or considerations. + For updates: Describe what you're changing and why. + For issues: Provide the incorrect translation and suggest a correction. + validations: + required: true + - type: textarea + id: additional-context + attributes: + label: Additional context + description: Add any other context, screenshots, or file references here. + - type: checkboxes + id: terms + attributes: + label: Code of Conduct + description: By submitting this issue, you agree to follow our [Code of Conduct](https://example.com/code-of-conduct) + options: + - label: I agree to follow this project's Code of Conduct + required: true diff --git a/.vscode/settings.json b/.vscode/settings.json index 5fd2a1225..946204557 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -61,13 +61,7 @@ "typescript.tsdk": "node_modules/typescript/lib", "i18n-ally.enabledFrameworks": ["i18next"], "i18n-ally.displayLanguage": "en", - "i18n-ally.localesPaths": [ - // "locales/app", - // "locales/lang", - // "locales/common", - "locales/**/*" - ] - // "i18n-ally.namespace": true, - // "i18n-ally.pathMatcher": "{namespace}/{locale}.json", - // "i18n-ally.defaultNamespace": "app", + "i18n-ally.localesPaths": ["locales"], + "i18n-ally.namespace": true, + "i18n-ally.pathMatcher": "{namespaces}/{locale}.json" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 8607d2170..c0284615d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # CHANGELOG -## [0.0.1-alpha.11](https://github.com/RSSNext/follow/compare/v0.0.1-alpha.3...v0.0.1-alpha.11) (2024-09-13) +## [0.0.1-alpha.12](https://github.com/RSSNext/follow/compare/v0.0.1-alpha.3...v0.0.1-alpha.12) (2024-09-16) ### Bug Fixes @@ -13,6 +13,7 @@ * accent color ([918d85a](https://github.com/RSSNext/follow/commit/918d85a591cdfc8c6c12261004a6a463516eaf5c)) * accept import opml ([39ecc82](https://github.com/RSSNext/follow/commit/39ecc82a8ceecd77139ffccb31a33904082a3d1b)) * add app version on posthog ([9933463](https://github.com/RSSNext/follow/commit/99334639e28b2a2a17b9c3fdd64f0d6d37bdd181)) +* add bg when context menu trigger, fix [#389](https://github.com/RSSNext/follow/issues/389) ([53f3185](https://github.com/RSSNext/follow/commit/53f3185e7955d1a72912905d8565c5efb0a0bda0)) * add copy image in electron, fix [#317](https://github.com/RSSNext/follow/issues/317) ([466e0b7](https://github.com/RSSNext/follow/commit/466e0b78ccc5df66ab11a1e71a800e70c9b34312)) * add db index ([a888a78](https://github.com/RSSNext/follow/commit/a888a789e10ecd8b3fab713e859bfe9f56bfe0ad)) * add download app fab ([0f8309b](https://github.com/RSSNext/follow/commit/0f8309b2031d53a17eb74ed36f2a0f504c54c431)) @@ -20,6 +21,7 @@ * add feed should validate feed id first ([767710d](https://github.com/RSSNext/follow/commit/767710deda41af1842179ef03f9b6b1b79208f9e)) * add feed temp store use nonce ([6e36232](https://github.com/RSSNext/follow/commit/6e36232b41f1b6d877caf74e1ad7be50da716381)) * add feed when site url not match ([1a2190c](https://github.com/RSSNext/follow/commit/1a2190c1aa834a33932788e65269a1128fd3a7e2)) +* add language selector loading lock map ([2d14c1e](https://github.com/RSSNext/follow/commit/2d14c1e5b5ad086b3556dd9a8862a6ce00368c4d)) * add link ([d9168c0](https://github.com/RSSNext/follow/commit/d9168c01b3f2a16fbfeadb722173e819dd3feb80)) * add nonce id for temp feed ([8f81d99](https://github.com/RSSNext/follow/commit/8f81d99f1dd48e60f9861d69c840c77fa70bde93)) * add page error boundary ([86d366d](https://github.com/RSSNext/follow/commit/86d366db76add0ad07eb921290b9444b211e2c4f)) @@ -49,9 +51,11 @@ * ci env `NODE_OPTIONS` max-old-space-size ([b4f9b1b](https://github.com/RSSNext/follow/commit/b4f9b1b8ea326b1613ca291ed5bbcd932c5e837a)) * **ci:** fetch all depth ([a504a12](https://github.com/RSSNext/follow/commit/a504a127bca93a6675b3ff02bcea0b1eca6e9707)) * clean local async data ([ae26dd7](https://github.com/RSSNext/follow/commit/ae26dd7763fe32990086e76fa896ec09dec170cd)) +* config `__dirname` resolve ([f3f3cac](https://github.com/RSSNext/follow/commit/f3f3cac2b4ff0865f863b848397f0e27caa435b3)) * context menu sub menu ([9352dd1](https://github.com/RSSNext/follow/commit/9352dd1a2a2d4d30c04cb41a22b95a0dda3eeb40)) * copywrite ([8967d20](https://github.com/RSSNext/follow/commit/8967d20102bc1ad6f2f94b38909c7abfca6168d1)) * corner player tooltip bg color ([16b91f9](https://github.com/RSSNext/follow/commit/16b91f9a7d3267f34f525c2e820efff6e1cbc049)) +* correct follower word ([#438](https://github.com/RSSNext/follow/issues/438)) ([e31e343](https://github.com/RSSNext/follow/commit/e31e3433dfdafcab2276f2794065af81ca1f75fe)) * custom modal ([8d03308](https://github.com/RSSNext/follow/commit/8d03308091a57745489bb48617b7e11134bb89c3)) * daily report animation ([ff16272](https://github.com/RSSNext/follow/commit/ff162722a927d3708f3d857626e6412ae35d3880)) * daily report link title ([0a58159](https://github.com/RSSNext/follow/commit/0a58159acd4fbc12e970f745f27e6488904a99d9)) @@ -82,10 +86,13 @@ * entry column padding top and filter unread/read in tweet view ([d181771](https://github.com/RSSNext/follow/commit/d181771a7bf314cdb30f2fdd76294c5cded524ab)) * entry item overlay flash ([687e039](https://github.com/RSSNext/follow/commit/687e039ca2ad43eed2b4b48a29df96595dcdbc0f)) * entry preview modal content ([8492c2a](https://github.com/RSSNext/follow/commit/8492c2afb3af79726b9448359a63b432b04a3518)) +* entry read history more not showing on desktop ([0c6494b](https://github.com/RSSNext/follow/commit/0c6494b5682078fa1da1ea2e6f5d81aa436a5155)) * entry view tracker params ([0c05a8b](https://github.com/RSSNext/follow/commit/0c05a8b88c1c385b7809f1ea9e3355f0d11e69dd)) * exit full screen before hiding window ([#341](https://github.com/RSSNext/follow/issues/341)) ([bd5b08f](https://github.com/RSSNext/follow/commit/bd5b08f314ddaddb9b079b3d10b6928d28962df5)) +* **exteral:** edit or follow in web app when login ([0ccadf7](https://github.com/RSSNext/follow/commit/0ccadf762bf5c761115a485ab4e68be938c527e6)) * **external-page:** feed list overlay style ([1dcffc6](https://github.com/RSSNext/follow/commit/1dcffc60d26596065bc024653d69a109a1941578)) * extract constants ([f48b589](https://github.com/RSSNext/follow/commit/f48b58941344a4a5e547a402e02f56bb5f9f5abf)) +* fallback image overflow, fixed [#375](https://github.com/RSSNext/follow/issues/375) ([ae3d52c](https://github.com/RSSNext/follow/commit/ae3d52cb7c8756e6524ad6fa7f758bbc6cfb1578)) * feed claim action ([4a814ee](https://github.com/RSSNext/follow/commit/4a814ee917ea47ab214dba33b879e24ff4bb3e97)) * feed column animation direction ([0767b6b](https://github.com/RSSNext/follow/commit/0767b6b4db3a69f54d1fc2de11a883d9deec4445)) * feed column height ([0d4c70d](https://github.com/RSSNext/follow/commit/0d4c70d06eda97316b360740b9aa8ef08e9539c3)) @@ -98,28 +105,34 @@ * feed list can switch view, fix [#278](https://github.com/RSSNext/follow/issues/278) ([76a33b6](https://github.com/RSSNext/follow/commit/76a33b6f905bac61f6390b01b13c6a43b94f535f)) * feed list overflow ([4941cf7](https://github.com/RSSNext/follow/commit/4941cf7b93a751f585ab5032974fe6eb191f7968)) * **feed-icon:** re-render loop ([b6f78bb](https://github.com/RSSNext/follow/commit/b6f78bbbf89b804fc4a0ad89b524f0a24673c19a)) +* fill relative url in entry title link, fix [#372](https://github.com/RSSNext/follow/issues/372) ([7c3aab6](https://github.com/RSSNext/follow/commit/7c3aab6f042a710aaa99d8fb7a774fce89af2b08)) * fix the fixed misalignment when image is empty and name is also empty ([#179](https://github.com/RSSNext/follow/issues/179)) ([f6b62c8](https://github.com/RSSNext/follow/commit/f6b62c8ce0908772c394d653857197c9302e332b)) * flat ([6bada5e](https://github.com/RSSNext/follow/commit/6bada5e986ff77ef5de42d18734ea92f872ca818)) * font name duplicated if installed default font ([1efdd40](https://github.com/RSSNext/follow/commit/1efdd40f99cb1ad52f048bd53648f32b4cfbbae8)) +* format time locale fallback ([6b1009e](https://github.com/RSSNext/follow/commit/6b1009ecfde47d68859a202a2be8a1cde901f2fc)) * gird item text and icon align center ([eabd59c](https://github.com/RSSNext/follow/commit/eabd59cf1feb774759279832005fcd0e26aa7bb6)) * gird mode skeleton ([0a7f648](https://github.com/RSSNext/follow/commit/0a7f6488c176ee059f7c87f3c51e0234c85c1d4c)) * group header extra action button for wider mode ([213b4a5](https://github.com/RSSNext/follow/commit/213b4a5864c78716648b2319f5d6f0dfcb531e3a)) * grouped list data item render ([da486bc](https://github.com/RSSNext/follow/commit/da486bce3eeafc84aeb3e560ff368c41771688cf)) * handle empty title in entry translation ([#362](https://github.com/RSSNext/follow/issues/362)) ([a2457a7](https://github.com/RSSNext/follow/commit/a2457a7789aff5928714cbe55e3e7863bb51719b)) * handle render error in code block ([8511a79](https://github.com/RSSNext/follow/commit/8511a7909237dd22ccd9f373a0f77a0355ff45ac)) +* header icon size ([aff559a](https://github.com/RSSNext/follow/commit/aff559a9ddd2a3a5c9235c8e5b0ab521a73d5db0)) * header layout action button initial flash ([6758793](https://github.com/RSSNext/follow/commit/6758793a3ed1b5ac2ca74d17ef9828f9cd6b8817)) * hide entry read history, fixed [#278](https://github.com/RSSNext/follow/issues/278) ([a73b4ab](https://github.com/RSSNext/follow/commit/a73b4abe2212b5ba969770358d8db7306b6ad4e6)) * hide peek modal toc ([9c66b33](https://github.com/RSSNext/follow/commit/9c66b33887126287d9f6f5a39f85f76818e28f1f)) * hide tip when feed owned by me ([dfb3c6d](https://github.com/RSSNext/follow/commit/dfb3c6d377041f524c9da80c03639e6fea304202)) * i18n dispatcher ([c038c79](https://github.com/RSSNext/follow/commit/c038c791af14418ee641af08e689a619b99a1735)) +* **i18n:** dup key ([d90964e](https://github.com/RSSNext/follow/commit/d90964ea9e32d5d7b162d6d7525df213ac732e12)) * icon button transition ([596538b](https://github.com/RSSNext/follow/commit/596538ba10b6b70d12ccc4efdd9f206d9ba11817)) * icon fallback line height ([02cd98d](https://github.com/RSSNext/follow/commit/02cd98d9cc9c09006a91277a5b976d753054738d)) * image url replacement ([8e75a8c](https://github.com/RSSNext/follow/commit/8e75a8cc6931b354e3206ea22917842c991d4c45)) * improve code block parser ([e72cb2d](https://github.com/RSSNext/follow/commit/e72cb2df3f1f5cd314feeb4a9bcc20e30204bca5)) +* incorrect tooltip in read history ([#385](https://github.com/RSSNext/follow/issues/385)) ([cabe210](https://github.com/RSSNext/follow/commit/cabe210aaf8f4a1133fa653532874fa86d02c252)) * inline table style ([5837bd4](https://github.com/RSSNext/follow/commit/5837bd4089b59855d0b583aed5d0e97fce04e094)) * intelligence ([8b889d1](https://github.com/RSSNext/follow/commit/8b889d1307186d07c4672879d77f77e1d8fead7b)) * invitation code wrap ([4b48202](https://github.com/RSSNext/follow/commit/4b48202ea70ed80b858312d35cf04d1d66515865)) * invitation page error display area ([5915357](https://github.com/RSSNext/follow/commit/59153573d8a5d368adfe41b0f5cebc4d6d44a9f3)) +* **item:** center content if no desc ([18e26a4](https://github.com/RSSNext/follow/commit/18e26a41c3cf80316bc97c44a1239e6ec45c5db9)) * kbd cls and set home scope in shortcuts guideline ([d9999a3](https://github.com/RSSNext/follow/commit/d9999a3fc6cfeae0f3b45b6390cf79d9135566b7)) * link underline style when selected ([781b120](https://github.com/RSSNext/follow/commit/781b1200f8eae3f61b39dc53151c5a688fa36d1b)) * lint ([ef0d80d](https://github.com/RSSNext/follow/commit/ef0d80d8546c804b1b52c58fca7640d2f541188a)) @@ -154,10 +167,12 @@ * preview image and video size ([e4e4700](https://github.com/RSSNext/follow/commit/e4e47006ee55aa59db5fdb76f565a5ec929f3d95)) * preview image fallback ([7410ca2](https://github.com/RSSNext/follow/commit/7410ca229afdb6fafb01f5ebe370d01dc33a4500)) * preview image size ([af474c1](https://github.com/RSSNext/follow/commit/af474c1592b5cf92c114936ccb3e6686ea737e37)) +* previous feed should not be preserved when switching feeds ([f1a2ecb](https://github.com/RSSNext/follow/commit/f1a2ecb7d2e517d45ca75dd6371f3570787f5c5f)) * profile fields are not updated after modifying the profile ([#291](https://github.com/RSSNext/follow/issues/291)) ([b765349](https://github.com/RSSNext/follow/commit/b7653494b7fd6c69572d94aeeb2ee5bf15145658)) * profile header transform when scroll up/down ([c0683ee](https://github.com/RSSNext/follow/commit/c0683eee6def2b835e79dab9eea37cb4567f02b7)) * prose max widht ([2bd5b45](https://github.com/RSSNext/follow/commit/2bd5b45e6bb4cc127dd07aa073d3b83c0a8bee82)) * provide a default ctx value for modal ([38ab5bf](https://github.com/RSSNext/follow/commit/38ab5bffafad32f97ac11a743a35be0a6012403d)) +* read history always show ([#413](https://github.com/RSSNext/follow/issues/413)) ([c3675b2](https://github.com/RSSNext/follow/commit/c3675b25886ddd33f232f0c146208cb8f42c0b36)) * read history delay to polling ([f6f8ec8](https://github.com/RSSNext/follow/commit/f6f8ec84dbb0e86b2d5a109088a1759b62c17dec)) * read history style in wide mode ([07ca5ea](https://github.com/RSSNext/follow/commit/07ca5ea22ea6675d08c5df72389733361c4789bb)) * reduce Electron framework size ([#217](https://github.com/RSSNext/follow/issues/217)) ([34d5dd2](https://github.com/RSSNext/follow/commit/34d5dd228e6986ff8a15310dd9d5f8ed51933de6)) @@ -180,20 +195,26 @@ * set selector width as a fixed value ([eb2a845](https://github.com/RSSNext/follow/commit/eb2a84520df503ca4f36955b9d1b312d086fe75a)) * setting align ([b0e86b0](https://github.com/RSSNext/follow/commit/b0e86b08d51deb3d62a96ce93c78bc5b7683e259)) * setting item support props ([0d60da6](https://github.com/RSSNext/follow/commit/0d60da61cbd3bcec0544a4f328fc45dd065a004d)) +* setting sidebar icon size ([dd7042e](https://github.com/RSSNext/follow/commit/dd7042e462f68184566ddf7cc561072066705379)) * setting wallet style update ([a4f155a](https://github.com/RSSNext/follow/commit/a4f155a7174b802e310baaeb2e8ed14d2f5735b2)) * shadow dom font and colors variants ([0355d4f](https://github.com/RSSNext/follow/commit/0355d4fb6bf5e57a1b22bb25d51f7e2c0fbe483a)) +* shadow dom font default ([dcb62a5](https://github.com/RSSNext/follow/commit/dcb62a56cbfa47fc6dd58711f019de8511fa7e6c)) * shadow dom style injected in prod build ([3f1c588](https://github.com/RSSNext/follow/commit/3f1c5881287ce11217766d876cded7635e1bb2b6)) * shadow dom style injection in prod ([#270](https://github.com/RSSNext/follow/issues/270)) ([c05d95d](https://github.com/RSSNext/follow/commit/c05d95d495393f1957de609c1ba4de5e707b5a81)) * shiki block style ([75908d4](https://github.com/RSSNext/follow/commit/75908d4a6f43847539accd4bad876983902bd5d8)) +* shortcut modal overlay and id ([c210dc9](https://github.com/RSSNext/follow/commit/c210dc900eda2b30e05a9a5434f06810c1a6cd14)) +* shortcuts kbd shake ([#433](https://github.com/RSSNext/follow/issues/433)) ([7e8f462](https://github.com/RSSNext/follow/commit/7e8f462424e6b2b98b316c9814610034db93f8c9)) * should dismiss when outside (quick new panel) ([675ac84](https://github.com/RSSNext/follow/commit/675ac845d4b9d7c6a71b7891440d2860ca34f0a4)) * show add feed error message ([7763129](https://github.com/RSSNext/follow/commit/77631299438b4fe6b575a9de5881cebfea6e4ba4)) * show episode cover for podcast ([#315](https://github.com/RSSNext/follow/issues/315)) ([4ef7f8c](https://github.com/RSSNext/follow/commit/4ef7f8cbd38dd0a148c053e5ee0468e282efe5fb)) +* show filtered button only if no next page ([6fb46e7](https://github.com/RSSNext/follow/commit/6fb46e7887409f735df99f7aa08cd0ef61976981)) * show owned feed icon ([f29e09c](https://github.com/RSSNext/follow/commit/f29e09c15ab16e9b48d412d628caf196d686eaa2)) * sidebar layout browser wrong calculation ([e2df38f](https://github.com/RSSNext/follow/commit/e2df38f57e101fea85ce3377a8937b336ef46656)) * slot icon in action button group ([79b26a0](https://github.com/RSSNext/follow/commit/79b26a0748f9e4f2eeac1726c7602b0a894ced24)) * social media feed icon style ([841f445](https://github.com/RSSNext/follow/commit/841f445403aef7acc01e30345be963257eea5e14)) * social media typesetting ([664b70d](https://github.com/RSSNext/follow/commit/664b70d00871ed7f3a3f327bff8aca24c7b4a9a5)) * social media typography ([5d27d29](https://github.com/RSSNext/follow/commit/5d27d29e4bd2791248d6a907a889a4907f0e0d20)) +* sort by preferred title, fix [#390](https://github.com/RSSNext/follow/issues/390) ([cc25c67](https://github.com/RSSNext/follow/commit/cc25c6785e98f7a200904bdac2b36ff03cf358dd)) * sort shortcut ([1f8e4a3](https://github.com/RSSNext/follow/commit/1f8e4a3b966891787f05d9b6d0ec0fe327260e49)) * stable mark all feed list, fixed [#245](https://github.com/RSSNext/follow/issues/245) ([c9d098f](https://github.com/RSSNext/follow/commit/c9d098f4e9bc5d3e3ca5bd026f1947adf6dbcca7)) * stable shadow dom key ([06cafb5](https://github.com/RSSNext/follow/commit/06cafb50d8490a29856c27d9344b76090e9f81af)) @@ -228,11 +249,13 @@ * type error ([c7f11f9](https://github.com/RSSNext/follow/commit/c7f11f99f28bf918aaf8c03b74145b2f9b126a72)) * type error ([5cd41ad](https://github.com/RSSNext/follow/commit/5cd41ad10ccbd241083d6f951509eb0bafe6e25f)) * type error ([60f8347](https://github.com/RSSNext/follow/commit/60f8347eec118176681a9ad7fcab7f45e383fc1b)) +* types ([a116dd4](https://github.com/RSSNext/follow/commit/a116dd4018f90886239f7583cbc82b511ff2a902)) * types ([3c5b224](https://github.com/RSSNext/follow/commit/3c5b224904e8db1c8ba6b78cfb87d09cd81de98c)) * types ([7f5bb1e](https://github.com/RSSNext/follow/commit/7f5bb1e9343243f5259f9fde8ee3ac44bf993913)) * types ([4287b5d](https://github.com/RSSNext/follow/commit/4287b5d986e74fbb2f96c2f322f09f921f773d7a)) * types ([d9458a1](https://github.com/RSSNext/follow/commit/d9458a1850b3e83e9bbb9374d4fc3b6884a24837)) * typing ([a386fd6](https://github.com/RSSNext/follow/commit/a386fd6e97fb98c42b3eedf156c5b167ff67bd34)) +* typo ([deb96c5](https://github.com/RSSNext/follow/commit/deb96c538258c939c60762c723d58955899031cf)) * undo kbd color in dark mode ([2a106ae](https://github.com/RSSNext/follow/commit/2a106ae632e0641d58d0d45b88f61a1c5c6eafa5)) * unfollow ([613fdf8](https://github.com/RSSNext/follow/commit/613fdf85b7dc7148f4ade612805f9f3bd98f2268)) * unify date item mark read styles ([9f5cbab](https://github.com/RSSNext/follow/commit/9f5cbabfafc905046258ceb5fe2c0bdd6993b830)) @@ -249,9 +272,11 @@ * user button color in dark mode ([04e3c38](https://github.com/RSSNext/follow/commit/04e3c386c5699e6b0907de2a98701668fc7f278b)) * user modal list padding ([992ea15](https://github.com/RSSNext/follow/commit/992ea1594af02e3815adae2fe99de4f205543239)) * user profile can not scroll by scrollbar ([eac1965](https://github.com/RSSNext/follow/commit/eac1965cfc3d2bc86e11f256237322f15892b897)) +* userActions in feed store ([8da4fb7](https://github.com/RSSNext/follow/commit/8da4fb71d9cc14832bc985cf8c1bd6f04dbe4e4c)) * video preview ([e38820c](https://github.com/RSSNext/follow/commit/e38820c1aa2294f45e05d331bf4bce0e4d8efb44)) * view icon color in dark mode ([991bff7](https://github.com/RSSNext/follow/commit/991bff7660e93b872f1398c89c0fe4316f4327d9)) * virtuosoitem height zero issue ([3c5c7ba](https://github.com/RSSNext/follow/commit/3c5c7babc9b3f83ef89ef1007f25d7b3ccb8f6a1)) +* wait language load then switch to target language ([bbe4ea6](https://github.com/RSSNext/follow/commit/bbe4ea66e75a8911e9ef39764d02d22251ba743e)) * wallet table latyout ([6c60dd2](https://github.com/RSSNext/follow/commit/6c60dd265245d08d622c59d035d2124285ff68f1)) * **wallet:** add missing space between words in wallet ([#279](https://github.com/RSSNext/follow/issues/279)) ([6873d21](https://github.com/RSSNext/follow/commit/6873d21e267fda102b13bc2a4e52de9bd7eea206)) * window titlebar position, fixed [#197](https://github.com/RSSNext/follow/issues/197) ([b6158ec](https://github.com/RSSNext/follow/commit/b6158ec0bd1e18aed29d028f2ff86008489c8a64)) @@ -260,6 +285,8 @@ * windows maximize will lost frame and background material ([2bd0e78](https://github.com/RSSNext/follow/commit/2bd0e78e4f859d9c98f53f748c9871a41348db1c)) * windows multi-display ([7490cd1](https://github.com/RSSNext/follow/commit/7490cd12d0e42a7f41931acd9d77bf64be39a26d)) * wrong text wrap ([#316](https://github.com/RSSNext/follow/issues/316)) ([0cee7ef](https://github.com/RSSNext/follow/commit/0cee7eff25ed1058b108f1c7a9c643ea17b479c0)) +* wtf, cursor deleted my code ([1852d1e](https://github.com/RSSNext/follow/commit/1852d1ee812567c473ff26d316b93d1ccf8e8a88)) +* zero tipUsers ([7f994d7](https://github.com/RSSNext/follow/commit/7f994d7a21080468cb07908b4b8fc694ebfeba37)) ### Features @@ -275,18 +302,23 @@ * add guess code lang option ([cbd8a72](https://github.com/RSSNext/follow/commit/cbd8a722b2940c4ad9092bfe4e08f850b8bc7c5d)) * add i18n detector ([7eb8a32](https://github.com/RSSNext/follow/commit/7eb8a322c78c7e075ed842036971e9aa5f094341)) * add link parser for audio timestamp navigate ([1478fa5](https://github.com/RSSNext/follow/commit/1478fa5a9343384f45a57431d029480a96b8441c)) +* add manual setting lang lock keyu ([b9c6a8b](https://github.com/RSSNext/follow/commit/b9c6a8b58099c86a178494ffe4c875f7c31760a3)) * add og image, fixed [#242](https://github.com/RSSNext/follow/issues/242) ([5d4e958](https://github.com/RSSNext/follow/commit/5d4e9586569e4afe212138d2001ed9007ce9950b)) * add player download src ([fc50751](https://github.com/RSSNext/follow/commit/fc5075139f2f82a66c703349a719927c35b11b09)) * add preview image bottom indicator ([bbc1591](https://github.com/RSSNext/follow/commit/bbc15913e8a1afd148c4c70a8056c64d46587791)) +* add readability action rules ([5e8fb17](https://github.com/RSSNext/follow/commit/5e8fb17f4a849abd755d92d32d3e5e1a76a2d2ab)) * add reason debug for response error toast ([7d4260a](https://github.com/RSSNext/follow/commit/7d4260a614e678ae40c04630840e870db1298830)) * add setting user profile avatar preview ([2412d59](https://github.com/RSSNext/follow/commit/2412d59e3e91b327af102cc9f006e1022fa3b69e)) +* add show all when filtered media mode ([38c21da](https://github.com/RSSNext/follow/commit/38c21dae11b84d1cb493078f999c7dac9b72d348)) * add theme in user dropmemu ([f254e14](https://github.com/RSSNext/follow/commit/f254e144ed6172f11250f3fd9bcbca3fbfc02add)) * add tts ([#215](https://github.com/RSSNext/follow/issues/215)) ([b9fecc4](https://github.com/RSSNext/follow/commit/b9fecc46bf523a0ad07a9a9dc26adf40287f7653)) +* add view feed url on exteral feed url ([0a61fa3](https://github.com/RSSNext/follow/commit/0a61fa37c3df29b686c937f802202534ba79d602)) * ai daily in article content column ([a625d04](https://github.com/RSSNext/follow/commit/a625d04328ea209ead68ce0391a7108cbb2c4e6a)) * ai daily modal ([67d9559](https://github.com/RSSNext/follow/commit/67d9559229baca34aa3328ba711d0e29def5bb8e)) * apm ([602f50a](https://github.com/RSSNext/follow/commit/602f50aa1a2b1ad9559ae22c92c599907df0b8cc)) * auto claim daily `POWER`, and update table style ([ca381ce](https://github.com/RSSNext/follow/commit/ca381cebf81cc745e56fe35811004d89b55609ba)) * auto enable readability if no content ([27ecfc4](https://github.com/RSSNext/follow/commit/27ecfc4a86f3e35f245c1bca2d1dba57ff7364f2)) +* cache i18n resource to speed up loading time ([b3748cc](https://github.com/RSSNext/follow/commit/b3748ccfe07964c0b7c45f6e29a8225883d1dfa4)) * cache tips for feed claim ([b307553](https://github.com/RSSNext/follow/commit/b3075535d67438cd78ffbe8209da216d8a57f433)) * cancel hover read when mouse leave quickly ([c5d5fc2](https://github.com/RSSNext/follow/commit/c5d5fc23193ad5faa30903113f1df1056c508fc4)) * clear autocompletion ([1118870](https://github.com/RSSNext/follow/commit/1118870c9e288d868b7a98fb085da1915043101d)) @@ -297,11 +329,17 @@ * custom feed title ([#300](https://github.com/RSSNext/follow/issues/300)) ([501e2f4](https://github.com/RSSNext/follow/commit/501e2f44c1d3eb9a1a316549faedb2e1288f7fbe)) * date item in entry column ([#199](https://github.com/RSSNext/follow/issues/199)) ([9d5a811](https://github.com/RSSNext/follow/commit/9d5a81112e873f5b422356fa0b3fcf526abb84e5)) * dayjs locale ([6ed0a3b](https://github.com/RSSNext/follow/commit/6ed0a3bf3a937a95985c98bb24c4bc23f6b776de)) +* display a tip button and tip users at the bottom of the entry content. ([971f81d](https://github.com/RSSNext/follow/commit/971f81d25d5745748884dcc96a1a072aee3d3dbb)) +* display claimed feed list in settings ([d9ae277](https://github.com/RSSNext/follow/commit/d9ae277cfa861c4e558542820896bde821341dc4)) +* display feed certification in discover result ([425b8c3](https://github.com/RSSNext/follow/commit/425b8c3003b552215350d534640e18512e9d819b)) * display power purchase and tx ([dbe7aee](https://github.com/RSSNext/follow/commit/dbe7aee9151ee04147edbce7d34e1275edfc1254)) * double click to video fullscreen ([c066820](https://github.com/RSSNext/follow/commit/c066820ce8baeed808b788e9c780f75c53ba8909)) * dynamic update relative time ([744422f](https://github.com/RSSNext/follow/commit/744422fc12050e09d3cb147c2affe5e95af2056b)) * electron about redirect to app setting about, and add some other action ([159a11d](https://github.com/RSSNext/follow/commit/159a11da67affde5dcd220ed4ea192d34d0c0884)) * entry preview modal ([3981995](https://github.com/RSSNext/follow/commit/3981995a248680844cdd5a1f7663135863f4ef5f)) +* expand entry read history ([#377](https://github.com/RSSNext/follow/issues/377)) ([e7f923a](https://github.com/RSSNext/follow/commit/e7f923a0a08e5a4c7e13ff8dd76820f1b4265f25)) +* external page i18n ([8d8aa09](https://github.com/RSSNext/follow/commit/8d8aa09230eb5ddd55dffe074b20c9ed81e84a99)) +* extract i18n text ([8454691](https://github.com/RSSNext/follow/commit/8454691e221d2f8544b2b741dbaeaf95303abc51)) * fade in when image loaded ([8ba0498](https://github.com/RSSNext/follow/commit/8ba0498b5ca408e713db8e9fb186276537581f45)) * feed action add mark all as read ([7b72ef2](https://github.com/RSSNext/follow/commit/7b72ef211b962fc112647a34b10b815cf1b611ae)) * feed claim indicator ([85d8e22](https://github.com/RSSNext/follow/commit/85d8e226fbc7abe56d135cbf3afb2beffe076f13)) @@ -310,16 +348,28 @@ * follow feed by feed id ([30d1851](https://github.com/RSSNext/follow/commit/30d1851e3aefcc2da06981537627ccd415bb082c)) * guess code language ([03ba85a](https://github.com/RSSNext/follow/commit/03ba85a37302d41f3403d629849b1b4d3db915ba)) * hoverable translation design, fixes [#268](https://github.com/RSSNext/follow/issues/268) ([3ff11dc](https://github.com/RSSNext/follow/commit/3ff11dce35061de2b784621519eee79f87a93993)) +* i18n for user profile ([d81c2b5](https://github.com/RSSNext/follow/commit/d81c2b5791fcf1284809b68dd68b4067581cdb44)) +* i18n generator ([d20ef05](https://github.com/RSSNext/follow/commit/d20ef05794dd6872cf553c11948172655275818a)) +* **i18n:** add French language support ([#409](https://github.com/RSSNext/follow/issues/409)) ([4197824](https://github.com/RSSNext/follow/commit/4197824a25f6b77a5d1f22489b6d9c76587eb392)) +* **i18n:** add Japanese language support ([#404](https://github.com/RSSNext/follow/issues/404)) ([6a8b243](https://github.com/RSSNext/follow/commit/6a8b243c3338a7c866383afb9e4ff845d7d2389a)) +* **i18n:** add Portuguese language support ([#406](https://github.com/RSSNext/follow/issues/406)) ([d624c43](https://github.com/RSSNext/follow/commit/d624c43d1b9efabd927db4ff9af79afe009cf9a0)) +* **i18n:** add zh-CN i18n for external page ([#399](https://github.com/RSSNext/follow/issues/399)) ([49a5c50](https://github.com/RSSNext/follow/commit/49a5c50236d51c3c728bb51cd19f34915291e59a)) +* **i18n:** fill out and optimized partial Chinese translations ([#431](https://github.com/RSSNext/follow/issues/431)) ([5f87190](https://github.com/RSSNext/follow/commit/5f87190f018fea7f34c3ccbfad081fd8b855f5b8)) +* **i18n:** improve zh-CN ([#410](https://github.com/RSSNext/follow/issues/410)) ([0b0304e](https://github.com/RSSNext/follow/commit/0b0304eaa1dfa8396e78612a9a6a50653ce9669e)) +* **i18n:** Simplified Chinese (partial) ([#353](https://github.com/RSSNext/follow/issues/353)) ([140d01a](https://github.com/RSSNext/follow/commit/140d01a521a472b56f420585f57b577727dee996)) * ignore feed errors within 9 hours ([b71926e](https://github.com/RSSNext/follow/commit/b71926ec286b77dd1b9fc25df459176063b194da)) * impl cmd+b ([ea8a832](https://github.com/RSSNext/follow/commit/ea8a83271e9be37c277540eb605651d7166d2ea4)) * impl masonry in view mark read and scroll to mark read ([4263658](https://github.com/RSSNext/follow/commit/4263658e3240850ca74fcaa666bf8145553f8874)) +* improve shiki code block renderer and show language ([590d9cb](https://github.com/RSSNext/follow/commit/590d9cbb94a63f843d00bf54848bba40157d2452)) * integration settings page ([f9f1938](https://github.com/RSSNext/follow/commit/f9f19386b28e853eb03b3ca5bae629d4f6542cb3)) +* invitation limitation message ([fa37a0c](https://github.com/RSSNext/follow/commit/fa37a0ca2c8235fb5fd47f96c26de7fdcd762ad8)) * invitations page ([0fc1110](https://github.com/RSSNext/follow/commit/0fc1110e3b1e067a02a65ba7afe5b1456bb76815)) * invitations page tips ([18de381](https://github.com/RSSNext/follow/commit/18de381343d58f19a36fa6e681711fe06c07b1c1)) * invitations tips and confirm modal ([c919e59](https://github.com/RSSNext/follow/commit/c919e5907bae4303b667d6cff39c19ebbf6a4dc6)) * kbd and shoutcuts modal ([4fcacbf](https://github.com/RSSNext/follow/commit/4fcacbfd66affbe0bbd9c0fbf02dfe135adf2994)) * kbd interactive when user keydown ([b0bf5a1](https://github.com/RSSNext/follow/commit/b0bf5a1438fbf1feb67c655b41b5bdf26a7b0537)) * **kbd:** simulate key press ([db2cd99](https://github.com/RSSNext/follow/commit/db2cd99f7135cef3d43483cd6e6aa91d7faa7280)) +* language indicator ([bf7da04](https://github.com/RSSNext/follow/commit/bf7da0431fdffc45cf0136b9e5709bb1952f1036)) * larger text for date item ([c1ea43f](https://github.com/RSSNext/follow/commit/c1ea43fee280bf539d61b1f3c439a7031cf4ed3e)) * lighter unread number ([e7dba4f](https://github.com/RSSNext/follow/commit/e7dba4f18e8a078889e7923d1760cb08c29873fc)) * load archived entries ([d7f4bb6](https://github.com/RSSNext/follow/commit/d7f4bb6b9f388849565a7d8fc21d2eafc0610d08)) @@ -332,6 +382,7 @@ * mark read for cateogry in ctx menu ([da79f1c](https://github.com/RSSNext/follow/commit/da79f1c2783fa65f164aaf4942ebfa2156b4bf26)) * markdown heading render ([f3ac1ac](https://github.com/RSSNext/follow/commit/f3ac1ac3c6e2c36203288921f0ea8c3635eec539)) * modal resize and draggable to absolute position ([aad5eba](https://github.com/RSSNext/follow/commit/aad5eba2edb66039d123e9e60e484b55d9a037df)) +* more i18n text ([6f8acce](https://github.com/RSSNext/follow/commit/6f8acced7bc51d2bb22325506e1c9bc97ee963f7)) * navigator bar ([56750fd](https://github.com/RSSNext/follow/commit/56750fd1722eaca7416e5c8617fb501fcf055cac)) * new design for mark read in date item ([e5b0583](https://github.com/RSSNext/follow/commit/e5b0583d38e41d81663bec1ee16e0c24cb385d7a)) * new platform icons ([7513130](https://github.com/RSSNext/follow/commit/7513130c17c501f3e2d7c29fc13e2315edb4dc8c)) @@ -339,6 +390,7 @@ * no media available tip in picture item ([1d4fca4](https://github.com/RSSNext/follow/commit/1d4fca4e7d0e7c6f02f1ac775f36079ef5ce1129)) * no media available tip in picture item ([58d9b3b](https://github.com/RSSNext/follow/commit/58d9b3b1b09f52def911521c08d9835f31221401)) * only closing window can trigger query invalidation ([a8e48f4](https://github.com/RSSNext/follow/commit/a8e48f493127104035e9537e0461c4a40e2dc339)) +* only show has media entry item in picture view ([f7dedf2](https://github.com/RSSNext/follow/commit/f7dedf2b27f2597a49e9381af5581b6d0550421b)) * optimize 404 page ([f51b1e2](https://github.com/RSSNext/follow/commit/f51b1e2de9e8d8c3bdea9db79476c17cd7247a4b)) * optimize daily report and report modal for social media ([252962c](https://github.com/RSSNext/follow/commit/252962c188e29293f4b6baca2e99568a064f79f4)) * optimize the style of the profile to maximize the presentation of the content ([96769fb](https://github.com/RSSNext/follow/commit/96769fbe49eb68ea09f1307ac27d0c0d904d0abf)) @@ -346,6 +398,7 @@ * path parser v8 ([5be2e9a](https://github.com/RSSNext/follow/commit/5be2e9aad4309ba5d63451460d674e233981f6e3)) * pictures masonry ([#212](https://github.com/RSSNext/follow/issues/212)) ([3f9533a](https://github.com/RSSNext/follow/commit/3f9533aa3a4470b6d705eda15ed988dc0686858a)) * preview social media ai daily ([0252bc0](https://github.com/RSSNext/follow/commit/0252bc022306123973ffd27b1cb211aadffae052)) +* prompt the full categories when editing the feed ([#392](https://github.com/RSSNext/follow/issues/392)) ([d5ce474](https://github.com/RSSNext/follow/commit/d5ce4744fe28c5d4d05844af6fe344fdf7849424)) * read clipboard ([e115b6d](https://github.com/RSSNext/follow/commit/e115b6de66df93422465044bc2d2930aa7a073fc)) * readability support ([#178](https://github.com/RSSNext/follow/issues/178)) ([6c052b8](https://github.com/RSSNext/follow/commit/6c052b881b77e75763a9c4117cd562d21a58044d)) * redesign image preview swiper style ([23971b5](https://github.com/RSSNext/follow/commit/23971b53f383dc1d6793c3b0dd4ca58a71c5b71e)) @@ -362,8 +415,10 @@ * setting sidebar titles i18n ([39f84cd](https://github.com/RSSNext/follow/commit/39f84cdaffdafb241d391c0dfe709651104fe10d)) * setting sync ([#273](https://github.com/RSSNext/follow/issues/273)) ([f1a3481](https://github.com/RSSNext/follow/commit/f1a34812fbb7ef0a503fc4e1c8ebdc46e376e391)) * shortcut h to show shortcuts modal ([#361](https://github.com/RSSNext/follow/issues/361)) ([e9dc7b2](https://github.com/RSSNext/follow/commit/e9dc7b2f4c2cb26d55f2b24ebfa12d1cf3db568d)) +* show edit when self ([#412](https://github.com/RSSNext/follow/issues/412)) ([22b94a5](https://github.com/RSSNext/follow/commit/22b94a5d13e82468da1c9a14d6cfc9d272f22841)) * smaller and fixed unread dot ([72aa3a8](https://github.com/RSSNext/follow/commit/72aa3a8cae968893b7ca3b0f8abf11c50c739c74)) * some optimize ([5f61579](https://github.com/RSSNext/follow/commit/5f6157972c7ce2bf45b6e7b4026d9e727795c9a3)) +* sort the query results by the number of followers in asc order ([#379](https://github.com/RSSNext/follow/issues/379)) ([304cb7f](https://github.com/RSSNext/follow/commit/304cb7f59f8622cb076e5bf2b240b1a3f6c2614c)) * sortable feed list ([5dc93af](https://github.com/RSSNext/follow/commit/5dc93af2a77d6a81222c70f5d7b588e087d72af4)) * sortable feed list ([fdd2623](https://github.com/RSSNext/follow/commit/fdd26235548e0a5e24bd1e1eee679a14cd0bb527)) * subscribe to other user ([b531a21](https://github.com/RSSNext/follow/commit/b531a21ddeea111ab28d2a83b07181d5ca3bc852)) @@ -373,6 +428,7 @@ * support i18n ([#345](https://github.com/RSSNext/follow/issues/345)) ([53c1c66](https://github.com/RSSNext/follow/commit/53c1c6639f3e7383ec77f6aace672ba34cd8bbba)) * support pageup/pagedown to scroll up/down ([6e0c3bc](https://github.com/RSSNext/follow/commit/6e0c3bc5e3e2437a51fa991940b4e4496ed2bb75)) * support toc parser ([fb4ca52](https://github.com/RSSNext/follow/commit/fb4ca522440aced4d2aa18fda2a9d5c43e32d0d1)) +* sync indicator when disable ([945ddda](https://github.com/RSSNext/follow/commit/945dddae2534f07e5289e307c36de1f8334636bc)) * tip to entries ([de22411](https://github.com/RSSNext/follow/commit/de22411dab3a5a0ddac886de93cd3da4f31e5494)) * toast when upgrade ([2a71bfc](https://github.com/RSSNext/follow/commit/2a71bfc0756011c0226c16ef53a755a47cf44acb)) * toc hoverable ([3be6f2b](https://github.com/RSSNext/follow/commit/3be6f2ba019cb914e8ff452065d252e01e7ae496)) @@ -386,12 +442,14 @@ * use check api for dailytask; claim toast ([feec0b0](https://github.com/RSSNext/follow/commit/feec0b0f0fb717725bf34208715d89c73968e885)) * use claim check api ([03764da](https://github.com/RSSNext/follow/commit/03764dac0ec500068376372ce4d85b1bc412bcd4)) * video player ([#225](https://github.com/RSSNext/follow/issues/225)) ([bb7d312](https://github.com/RSSNext/follow/commit/bb7d3127a9fe4543af12edfc49ce745e6ee7099e)) +* video player i18n ([a498228](https://github.com/RSSNext/follow/commit/a4982289f8b4a7967e9ebea837109bd5e342b663)) * warn when go to external untrusted link ([06be9b5](https://github.com/RSSNext/follow/commit/06be9b58f7c054ef166ea7d5759944280de9a201)) ### Performance Improvements * memo entry column to reduce resize panel re-render ([6bca4b4](https://github.com/RSSNext/follow/commit/6bca4b4a033d27b0953a8e6c3e625e3cd9b71277)) +* merge all namespace of i18n resource in prod ([92bfce0](https://github.com/RSSNext/follow/commit/92bfce0f7e5faa6eef8d19d813f682271dc1bbf0)) * prefetch for entry list ([5c7a27d](https://github.com/RSSNext/follow/commit/5c7a27de7dedfaf1812f26823207331543dfcead)) * reduce re-render when ctx menu open ([96ff9f6](https://github.com/RSSNext/follow/commit/96ff9f660c0a469daafbb5f5cad47370bcd3a8f0)) * shadow dom css cache ([c1e3a02](https://github.com/RSSNext/follow/commit/c1e3a025f7ef8ff570399a44a95797c2c8261e42)) diff --git a/README.md b/README.md index 03df839b0..c7a919d35 100644 --- a/README.md +++ b/README.md @@ -85,6 +85,7 @@ You can get an invitation code in the following ways: If you have access, you are welcome to use the following methods to download and install it: +- Visit our online webapp at [app.follow.is](https://app.follow.is) - You can get the installation packages for each platform from the [Releases page](https://github.com/RSSNext/Follow/releases). - If you are using Arch linux, you can install package [follow-appimage](https://aur.archlinux.org/packages/follow-appimage) that maintained by [timochan](https://github.com/ttimochan). diff --git a/configs/i18n-completeness.ts b/configs/i18n-completeness.ts new file mode 100644 index 000000000..3de328b31 --- /dev/null +++ b/configs/i18n-completeness.ts @@ -0,0 +1,60 @@ +import fs from "node:fs" +import path from "node:path" + +type LanguageCompletion = Record + +function getLanguageFiles(dir: string): string[] { + return fs.readdirSync(dir).filter((file) => file.endsWith(".json")) +} + +function getNamespaces(localesDir: string): string[] { + return fs + .readdirSync(localesDir) + .filter((file) => fs.statSync(path.join(localesDir, file)).isDirectory()) +} + +function countKeys(obj: any): number { + let count = 0 + for (const key in obj) { + if (typeof obj[key] === "object") { + count += countKeys(obj[key]) + } else { + count++ + } + } + return count +} + +function calculateCompleteness(localesDir: string): LanguageCompletion { + const namespaces = getNamespaces(localesDir) + const languages = new Set() + const keyCount: Record = {} + + namespaces.forEach((namespace) => { + const namespaceDir = path.join(localesDir, namespace) + const files = getLanguageFiles(namespaceDir) + + files.forEach((file) => { + const lang = path.basename(file, ".json") + languages.add(lang) + + const content = JSON.parse(fs.readFileSync(path.join(namespaceDir, file), "utf-8")) + keyCount[lang] = (keyCount[lang] || 0) + countKeys(content) + }) + }) + + const enCount = keyCount["en"] || 0 + const completeness: LanguageCompletion = {} + + languages.forEach((lang) => { + if (lang !== "en") { + const percent = Math.round((keyCount[lang] / enCount) * 100) + completeness[lang] = percent + } + }) + + return completeness +} + +const i18n = calculateCompleteness(path.resolve(__dirname, "../locales")) +export default i18n diff --git a/configs/vite.render.config.ts b/configs/vite.render.config.ts index 7173d08e2..fd53f3af4 100644 --- a/configs/vite.render.config.ts +++ b/configs/vite.render.config.ts @@ -1,5 +1,5 @@ -import { readFileSync } from "node:fs" -import { resolve } from "node:path" +import fs, { readFileSync } from "node:fs" +import path, { resolve } from "node:path" import * as babel from "@babel/core" import generate from "@babel/generator" @@ -11,9 +11,76 @@ import { prerelease } from "semver" import type { Plugin, UserConfig } from "vite" import { getGitHash } from "../scripts/lib" +import i18nCompleteness from "./i18n-completeness" const pkg = JSON.parse(readFileSync("package.json", "utf8")) const isCI = process.env.CI === "true" || process.env.CI === "1" +function localesPlugin(): Plugin { + return { + name: "locales-merge", + enforce: "post", + generateBundle(options, bundle) { + const localesDir = path.resolve(__dirname, "../locales") + const namespaces = fs.readdirSync(localesDir) + const languageResources = {} + + namespaces.forEach((namespace) => { + const namespacePath = path.join(localesDir, namespace) + const files = fs.readdirSync(namespacePath).filter((file) => file.endsWith(".json")) + + files.forEach((file) => { + const lang = path.basename(file, ".json") + const filePath = path.join(namespacePath, file) + const content = JSON.parse(fs.readFileSync(filePath, "utf-8")) + + if (!languageResources[lang]) { + languageResources[lang] = {} + } + languageResources[lang][namespace] = content + }) + }) + + Object.entries(languageResources).forEach(([lang, resources]) => { + const fileName = `locales/${lang}.js` + const content = `export default ${JSON.stringify(resources)};` + + this.emitFile({ + type: "asset", + fileName, + source: content, + }) + }) + + // Remove original JSON chunks + Object.keys(bundle).forEach((key) => { + if (key.startsWith("locales/") && key.endsWith(".json")) { + delete bundle[key] + } + }) + }, + } +} + +function customI18nHmrPlugin(): Plugin { + return { + name: "custom-i18n-hmr", + handleHotUpdate({ file, server }) { + if (file.endsWith(".json") && file.includes("locales")) { + server.ws.send({ + type: "custom", + event: "i18n-update", + data: { + file, + content: readFileSync(file, "utf-8"), + }, + }) + + // return empty array to prevent the default HMR + return [] + } + }, + } +} export const viteRenderBaseConfig = { resolve: { @@ -52,26 +119,9 @@ export const viteRenderBaseConfig = { }, }), + localesPlugin(), viteTwToRawString(), - - { - name: "custom-i18n-hmr", - handleHotUpdate({ file, server }) { - if (file.endsWith(".json") && file.includes("locales")) { - server.ws.send({ - type: "custom", - event: "i18n-update", - data: { - file, - content: readFileSync(file, "utf-8"), - }, - }) - - // return empty array to prevent the default HMR - return [] - } - }, - }, + customI18nHmrPlugin(), ], define: { APP_VERSION: JSON.stringify(pkg.version), @@ -83,6 +133,8 @@ export const viteRenderBaseConfig = { RELEASE_CHANNEL: JSON.stringify((prerelease(pkg.version)?.[0] as string) || "stable"), DEBUG: process.env.DEBUG === "true", + + I18N_COMPLETENESS_MAP: JSON.stringify({ ...i18nCompleteness, en: 100 }), }, } satisfies UserConfig diff --git a/eslint.config.mjs b/eslint.config.mjs index be55c956d..8f4c53767 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -32,4 +32,22 @@ export default defineConfig( ], }, }, + { + files: ["**/*.tsx"], + rules: { + "@stylistic/jsx-self-closing-comp": "error", + }, + }, + { + files: ["locales/**/*.json"], + rules: { + "jsonc/sort-keys": [ + "error", + { + pathPattern: ".*", + order: { type: "asc" }, + }, + ], + }, + }, ) diff --git a/icons/mgc/photo_album_cute_fi.svg b/icons/mgc/photo_album_cute_fi.svg new file mode 100644 index 000000000..a96ad87de --- /dev/null +++ b/icons/mgc/photo_album_cute_fi.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/mgc/photo_album_cute_re.svg b/icons/mgc/photo_album_cute_re.svg new file mode 100644 index 000000000..a385cea64 --- /dev/null +++ b/icons/mgc/photo_album_cute_re.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/locales/app/en.json b/locales/app/en.json index 9cf3d46f7..e788f0950 100644 --- a/locales/app/en.json +++ b/locales/app/en.json @@ -1,108 +1,210 @@ { - "words": { - "search": "Search", - "import": "Import", - "discover": "Discover", - "language": "Language" - }, - "signin": { - "continue_with_github": "Continue with GitHub", - "continue_with_google": "Continue with Google", - "sign_in_to": "Sign in to" - }, - "settings": { - "titles": { - "general": "General", - "appearance": "Appearance", - "actions": "Actions", - "integration": "Integration", - "about": "About", - "profile": "Profile", - "shortcuts": "Shortcuts", - "power": "Power", - "invitations": "Invitations" - }, - "general": { - "app": "App", - "launch_at_login": "Launch at login", - "timeline": "Timeline", - "show_unread_on_launch": { - "description": "Show unread content on launch", - "label": "Show unread content on launch" - }, - "rebuild_database": { - "warning": { - "line1": "Rebuilding the database will clear all your local data.", - "line2": "Are you sure you want to continue?" - }, - "label": "Rebuild Database", - "description": "If you are experiencing rendering issues, rebuilding the database may solve them.", - "button": "Rebuild", - "title": "Rebuild Database" - }, - "group_by_date": { - "label": "Group by date", - "description": "Group entries by date." - }, - "mark_as_read": { - "scroll": { - "label": "Mark as read when scrolling", - "description": "Automatically mark entries as read when scrolled out of the view." - }, - "hover": { - "label": "Mark as read when hovering", - "description": "Automatically mark entries as read when hovered." - }, - "render": { - "label": "Mark as read when in the view", - "description": "Automatically mark single-level entries (e.g. social media posts, pictures, video views) as read when they enter the view." - } - }, - "privacy_data": "Privacy & Data", - "data_persist": { - "label": "Persist data for offline usage", - "description": "Persist data locally to enable offline access and local search." - }, - "send_anonymous_data": { - "label": "Send anonymous data", - "description": "By opting to send anonymized telemetry data, you contribute to improving the overall user experience of Follow." - }, - "voices": "Voices" - }, - "integration": { - "title": "Integration", - "eagle": { - "title": "Eagle", - "enable": { - "label": "Enable", - "description": "Display 'Save media to Eagle' button when available." - } - }, - "readwise": { - "title": "Readwise", - "enable": { - "label": "Enable", - "description": "Display 'Save to Readwise' button when available." - }, - "token": { - "label": "Readwise Access Token", - "description": "You can get it here: readwise.io/access_token." - } - }, - "instapaper": { - "title": "Instapaper", - "enable": { - "label": "Enable", - "description": "Display 'Save to Instapaper' button when available." - }, - "username": { - "label": "Instapaper Username" - }, - "password": { - "label": "Instapaper Password" - } - }, - "tip": "Tip: Your sensitive data is stored locally and is not uploaded to the server." - } - } + "ai_daily.title": "Top News - {{title}}", + "ai_daily.tooltip.content": "Here is news selected by AI from your timeline ( - ) that may be important to you.", + "ai_daily.tooltip.update_schedule": "Update daily at 8 AM and 8 PM.", + "app.copy_logo_svg": "Copy Logo SVG", + "app.toggle_sidebar": "Toggle Sidebar", + "discover.any_url_or_keyword": "Any URL or Keyword", + "discover.default_option": " (default)", + "discover.feed_description": "The description of this feed is as follows, and you can fill out the parameter form with the relevant information.", + "discover.feed_maintainers": "This feed is provided by RSSHub, with credit to ", + "discover.import.click_to_upload": "Click to upload OPML file", + "discover.popular": "Popular", + "discover.preview": "Preview", + "discover.rss_hub_route": "RSSHub Route", + "discover.rss_url": "RSS URL", + "discover.select_placeholder": "Select", + "early_access": "Early Access", + "entry_actions.copy_link": "Copy link", + "entry_actions.failed_to_save_to_eagle": "Failed to save to Eagle.", + "entry_actions.failed_to_save_to_instapaper": "Failed to save to Instapaper.", + "entry_actions.failed_to_save_to_readwise": "Failed to save to Readwise.", + "entry_actions.link_copied": "Link copied to clipboard.", + "entry_actions.mark_as_read": "Mark as read", + "entry_actions.mark_as_unread": "Mark as unread", + "entry_actions.open_in_browser": "Open in browser", + "entry_actions.save_media_to_eagle": "Save media to Eagle", + "entry_actions.save_to_instapaper": "Save to Instapaper", + "entry_actions.save_to_readwise": "Save to Readwise", + "entry_actions.saved_to_eagle": "Saved to Eagle.", + "entry_actions.saved_to_instapaper": "Saved to Instapaper.", + "entry_actions.saved_to_readwise": "Saved to Readwise.", + "entry_actions.share": "Share", + "entry_actions.star": "Star", + "entry_actions.starred": "Starred.", + "entry_actions.tip": "Tip", + "entry_actions.unstar": "Unstar", + "entry_actions.unstarred": "Unstarred.", + "entry_column.filtered_content_tip": "You have filtered content hidden.", + "entry_column.filtered_content_tip_2": "In addition to the entries shown above, there is also filtered content.", + "entry_column.refreshing": "Refreshing new entries...", + "entry_content.ai_summary": "AI summary", + "entry_content.fetching_content": "Fetching original content and processing...", + "entry_content.header.play_tts": "Play TTS", + "entry_content.header.readability": "Readability", + "entry_content.no_content": "No media available", + "entry_content.readability_notice": "This content is provided by Readability. If you find typographical anomalies, please go to the source site to view the original content.", + "entry_content.render_error": "Render error:", + "entry_content.report_issue": "Report issue", + "entry_content.support_amount": "{{amount}} people supported this feed's creator.", + "entry_content.support_creator": "Support Creator", + "entry_content.web_app_notice": "Maybe web app doesn't support this content type. But you can download the desktop app.", + "entry_list.zero_unread": "Zero Unread", + "entry_list_header.daily_report": "Daily Report", + "entry_list_header.hide_no_image_items": "Hide no images's entry items", + "entry_list_header.items": "items", + "entry_list_header.new_entries_available": "New entries available", + "entry_list_header.refetch": "Refetch", + "entry_list_header.refresh": "Refresh", + "entry_list_header.show_all": "Show all", + "entry_list_header.show_all_items": "Show all entry items", + "entry_list_header.show_unread_only": "Show unread Only", + "entry_list_header.switch_to_grid": "Switch to Grid", + "entry_list_header.switch_to_masonry": "Switch to Masonry", + "entry_list_header.unread": "unread", + "feed_claim_modal.choose_verification_method": "There are three ways to choose from, you can choose one of them to verify.", + "feed_claim_modal.claim_button": "Claim", + "feed_claim_modal.content_instructions": "Copy the content below and post it to your latest RSS feed.", + "feed_claim_modal.description_current": "Current description:", + "feed_claim_modal.description_instructions": "Copy the following content and paste it into the field of your RSS feed.", + "feed_claim_modal.failed_to_load": "Failed to load claim message", + "feed_claim_modal.rss_format_choice": "RSS generators generally have two formats to choose from. Please copy the XML and JSON formats below as needed.", + "feed_claim_modal.rss_instructions": "Copy the code below and paste it into your RSS generator.", + "feed_claim_modal.rss_json_format": "JSON Format", + "feed_claim_modal.rss_xml_format": "XML Format", + "feed_claim_modal.rsshub_notice": "This feed is provided by RSSHub with a 1 hour cache time. Please allow up to 1 hour for changes to appear after publishing content.", + "feed_claim_modal.tab_content": "Content", + "feed_claim_modal.tab_description": "Description", + "feed_claim_modal.tab_rss": "RSS Tag", + "feed_claim_modal.verify_ownership": "To claim this feed as your own, you need to verify ownership.", + "feed_form.add_follow": "Add follow", + "feed_form.category": "Category", + "feed_form.category_description": "By default, your follows will be grouped by website.", + "feed_form.error_fetching_feed": "Error in fetching feed.", + "feed_form.feed_not_found": "Feed not found.", + "feed_form.feedback": "Feedback", + "feed_form.follow": "Follow", + "feed_form.followed": "🎉 Followed.", + "feed_form.private_follow": "Private Follow", + "feed_form.private_follow_description": "Whether this follow is publicly visible on your profile page.", + "feed_form.retry": "Retry", + "feed_form.title": "Title", + "feed_form.title_description": "Custom title for this Feed. Leave empty to use the default.", + "feed_form.unfollow": "Unfollow", + "feed_form.update": "Update", + "feed_form.update_follow": "Update follow", + "feed_form.updated": "🎉 Updated.", + "feed_form.view": "View", + "feed_item.claimed_by_owner": "This feed is claimed by", + "feed_item.claimed_by_unknown": "its owner.", + "feed_item.claimed_by_you": "Claimed by you", + "feed_item.claimed_feed": "Claimed Feed", + "feed_item.error_since": "Error since", + "feed_item.not_publicly_visible": "Not publicly visible on your profile page", + "feed_view_type.articles": "Articles", + "feed_view_type.audios": "Audios", + "feed_view_type.notifications": "Notifications", + "feed_view_type.pictures": "Pictures", + "feed_view_type.social_media": "Social Media", + "feed_view_type.videos": "Videos", + "mark_all_read_button.auto_confirm_info": "Will be confirmed automatically after 3s.", + "mark_all_read_button.confirm": "Confirm", + "mark_all_read_button.confirm_mark_all": "Mark {{which}} as read?", + "mark_all_read_button.confirm_mark_all_info": "Confirm mark all as read?", + "mark_all_read_button.mark_all_as_read": "Mark all as read", + "mark_all_read_button.mark_as_read": "Mark {{which}} as read", + "mark_all_read_button.undo": "Undo", + "player.back_10s": "Back 10s", + "player.close": "Close", + "player.download": "Download", + "player.exit_full_screen": "Exit Full Screen", + "player.forward_10s": "Forward 10s", + "player.full_screen": "Full Screen", + "player.mute": "Mute", + "player.open_entry": "Open Entry", + "player.pause": "Pause", + "player.play": "Play", + "player.playback_rate": "Playback Rate", + "player.unmute": "Unmute", + "player.volume": "Volume", + "search.empty.no_results": "No results found.", + "search.group.entries": "Entries", + "search.group.feeds": "Feeds", + "search.options.all": "All", + "search.options.entries": "Entries", + "search.options.feeds": "Feeds", + "search.options.search_type": "Search Type", + "search.placeholder": "Search...", + "search.result_count_local_mode": "(Local mode)", + "search.tooltip.local_search": "This search covers locally available data. Try a Refetch to include the latest data.", + "shortcuts.guide.title": "Shortcuts Guideline", + "sidebar.category_remove_dialog.cancel": "Cancel", + "sidebar.category_remove_dialog.continue": "Continue", + "sidebar.category_remove_dialog.description": "This operation will delete your category, but the feeds it contains will be retained and grouped by website.", + "sidebar.category_remove_dialog.title": "Remove Category", + "sidebar.feed_actions.claim": "Claim", + "sidebar.feed_actions.claim_feed": "Claim Feed", + "sidebar.feed_actions.copy_feed_id": "Copy feed ID", + "sidebar.feed_actions.copy_feed_url": "Copy feed URL", + "sidebar.feed_actions.edit": "Edit", + "sidebar.feed_actions.edit_feed": "Edit feed", + "sidebar.feed_actions.feed_owned_by_you": "This feed is owned by you", + "sidebar.feed_actions.mark_all_as_read": "Mark all as read", + "sidebar.feed_actions.navigate_to_feed": "Navigate to feed", + "sidebar.feed_actions.open_feed_in_browser": "Open feed in browser", + "sidebar.feed_actions.open_site_in_browser": "Open site in browser", + "sidebar.feed_actions.unfollow": "Unfollow", + "sidebar.feed_actions.unfollow_feed": "Unfollow feed", + "sidebar.feed_column.context_menu.change_to_other_view": "Change to other view", + "sidebar.feed_column.context_menu.delete_category": "Delete category", + "sidebar.feed_column.context_menu.delete_category_confirmation": "Delete category {{folderName}}?", + "sidebar.feed_column.context_menu.mark_as_read": "Mark as read", + "sidebar.feed_column.context_menu.rename_category": "Rename category", + "sidebar.select_sort_method": "Select a sort method", + "signin.continue_with_github": "Continue with GitHub", + "signin.continue_with_google": "Continue with Google", + "signin.sign_in_to": "Sign in to", + "sync_indicator.disabled": "Due to security reasons, sync is disabled.", + "sync_indicator.offline": "Offline", + "sync_indicator.synced": "Synced with server", + "tip_modal.amount": "Amount", + "tip_modal.claim_feed": "Claim this feed", + "tip_modal.create_wallet": "Create For Free", + "tip_modal.feed_owner": "Feed Owner", + "tip_modal.low_balance": "Your balance is not enough to cover this tip. Please adjust the amount.", + "tip_modal.no_wallet": "You don't have a wallet yet. Please create a wallet to tip.", + "tip_modal.tip_amount_sent": "has been sent to the author.", + "tip_modal.tip_now": "Tip Now", + "tip_modal.tip_sent": "Tip sent successfully! Thank you for your support.", + "tip_modal.tip_support": "⭐ Tip to show your support!", + "tip_modal.unclaimed_feed": "No one has claimed this feed yet. The received Power will be securely held in the blockchain contract until it is claimed.", + "user_button.account": "Account", + "user_button.download_desktop_app": "Download Desktop app", + "user_button.log_out": "Log out", + "user_button.power": "Power", + "user_button.preferences": "Preferences", + "user_button.profile": "Profile", + "user_profile.close": "Close", + "user_profile.edit": "Edit", + "user_profile.loading": "Loading", + "user_profile.share": "Share", + "user_profile.toggle_item_style": "Toggle Item Style", + "words.add": "Add", + "words.confirm": "Confirm", + "words.discover": "Discover", + "words.email": "Email", + "words.import": "Import", + "words.items": "Items", + "words.language": "Language", + "words.load_archived_entries": "Load archived entries", + "words.login": "Login", + "words.rss": "RSS", + "words.rss3": "RSS3", + "words.rsshub": "RSSHub", + "words.search": "Search", + "words.starred": "Starred", + "words.unread": "Unread", + "words.user": "User", + "words.which.all": "all", + "words.zero_items": "Zero items" } diff --git a/locales/app/fr.json b/locales/app/fr.json new file mode 100644 index 000000000..dc14f478e --- /dev/null +++ b/locales/app/fr.json @@ -0,0 +1,207 @@ +{ + "ai_daily.title": "ActualitĂ©s Principales - {{title}}", + "ai_daily.tooltip.content": "Voici des nouvelles sĂ©lectionnĂ©es par l'IA Ă  partir de votre chronologie ( - ) qui peuvent ĂȘtre importantes pour vous.", + "ai_daily.tooltip.update_schedule": "Mise Ă  jour quotidienne Ă  8h00 et 20h00.", + "app.app_name": "NOM_APP", + "app.copy_logo_svg": "Copier le logo SVG", + "app.toggle_sidebar": "Afficher/Masquer la barre latĂ©rale", + "discover.any_url_or_keyword": "Toute URL ou mot-clĂ©", + "discover.default_option": " (par dĂ©faut)", + "discover.feed_description": "La description de ce flux est la suivante, et vous pouvez remplir le formulaire des paramĂštres avec les informations pertinentes.", + "discover.feed_maintainers": "Ce flux est fourni par RSSHub, avec crĂ©dit Ă  ", + "discover.import.click_to_upload": "Cliquez pour tĂ©lĂ©charger un fichier OPML", + "discover.popular": "Populaire", + "discover.preview": "Aperçu", + "discover.rss_hub_route": "ItinĂ©raire RSSHub", + "discover.rss_url": "URL du RSS", + "discover.select_placeholder": "SĂ©lectionner", + "early_access": "AccĂšs AnticipĂ©", + "entry_actions.copy_link": "Copier le lien", + "entry_actions.failed_to_save_to_eagle": "Échec de l'enregistrement sur Eagle.", + "entry_actions.failed_to_save_to_instapaper": "Échec de l'enregistrement sur Instapaper.", + "entry_actions.failed_to_save_to_readwise": "Échec de l'enregistrement sur Readwise.", + "entry_actions.link_copied": "Lien copiĂ© dans le presse-papiers.", + "entry_actions.mark_as_read": "Marquer comme lu", + "entry_actions.mark_as_unread": "Marquer comme non lu", + "entry_actions.open_in_browser": "Ouvrir dans le navigateur", + "entry_actions.save_media_to_eagle": "Enregistrer le mĂ©dia sur Eagle", + "entry_actions.save_to_instapaper": "Enregistrer sur Instapaper", + "entry_actions.save_to_readwise": "Enregistrer sur Readwise", + "entry_actions.saved_to_eagle": "EnregistrĂ© sur Eagle.", + "entry_actions.saved_to_instapaper": "EnregistrĂ© sur Instapaper.", + "entry_actions.saved_to_readwise": "EnregistrĂ© sur Readwise.", + "entry_actions.share": "Partager", + "entry_actions.star": "Mettre en favori", + "entry_actions.starred": "Favori.", + "entry_actions.tip": "Pourboire", + "entry_actions.unstar": "Retirer des favoris", + "entry_actions.unstarred": "RetirĂ© des favoris.", + "entry_column.refreshing": "Actualisation des nouvelles entrĂ©es...", + "entry_content.ai_summary": "RĂ©sumĂ© AI", + "entry_content.fetching_content": "RĂ©cupĂ©ration du contenu original et traitement...", + "entry_content.header.play_tts": "Lire TTS", + "entry_content.header.readability": "LisibilitĂ©", + "entry_content.no_content": "Aucun contenu", + "entry_content.readability_notice": "Ce contenu est fourni par Readability. Si vous remarquez des anomalies typographiques, veuillez visiter le site source pour voir le contenu original.", + "entry_content.render_error": "Erreur de rendu :", + "entry_content.report_issue": "Signaler un problĂšme", + "entry_content.web_app_notice": "Peut-ĂȘtre que l'application web ne prend pas en charge ce type de contenu. Mais vous pouvez tĂ©lĂ©charger l'application de bureau.", + "entry_list.zero_unread": "ZĂ©ro non lu", + "entry_list_header.daily_report": "Rapport Quotidien", + "entry_list_header.hide_no_image_items": "Masquer les Ă©lĂ©ments sans images", + "entry_list_header.items": "Ă©lĂ©ments", + "entry_list_header.new_entries_available": "Nouvelles entrĂ©es disponibles", + "entry_list_header.refetch": "RĂ©cupĂ©rer de nouveau", + "entry_list_header.refresh": "Actualiser", + "entry_list_header.show_all": "Tout afficher", + "entry_list_header.show_all_items": "Afficher tous les Ă©lĂ©ments", + "entry_list_header.show_unread_only": "Afficher uniquement les non lus", + "entry_list_header.switch_to_grid": "Passer en grille", + "entry_list_header.switch_to_masonry": "Passer en maçonnerie", + "entry_list_header.unread": "non lu", + "feed_claim_modal.choose_verification_method": "Il existe trois mĂ©thodes au choix, vous pouvez en choisir une pour vĂ©rifier.", + "feed_claim_modal.claim_button": "RĂ©clamer", + "feed_claim_modal.content_instructions": "Copiez le contenu ci-dessous et publiez-le dans votre dernier flux RSS.", + "feed_claim_modal.description_current": "Description actuelle :", + "feed_claim_modal.description_instructions": "Copiez le contenu suivant et collez-le dans le champ de votre flux RSS.", + "feed_claim_modal.failed_to_load": "Échec du chargement du message de rĂ©clamation", + "feed_claim_modal.rss_format_choice": "Les gĂ©nĂ©rateurs RSS offrent gĂ©nĂ©ralement deux formats au choix. Veuillez copier les formats XML et JSON ci-dessous selon vos besoins.", + "feed_claim_modal.rss_instructions": "Copiez le code ci-dessous et collez-le dans votre gĂ©nĂ©rateur RSS.", + "feed_claim_modal.rss_json_format": "Format JSON", + "feed_claim_modal.rss_xml_format": "Format XML", + "feed_claim_modal.rsshub_notice": "Ce flux est fourni par RSSHub avec un cache d'une heure. Veuillez prĂ©voir jusqu'Ă  1 heure pour que les modifications apparaissent aprĂšs la publication du contenu.", + "feed_claim_modal.tab_content": "Contenu", + "feed_claim_modal.tab_description": "Description", + "feed_claim_modal.tab_rss": "Balise RSS", + "feed_claim_modal.verify_ownership": "Pour rĂ©clamer ce flux comme le vĂŽtre, vous devez vĂ©rifier la propriĂ©tĂ©.", + "feed_form.add_follow": "Ajouter un abonnement", + "feed_form.category": "CatĂ©gorie", + "feed_form.category_description": "Par dĂ©faut, vos abonnements seront regroupĂ©s par site web.", + "feed_form.error_fetching_feed": "Erreur lors de la rĂ©cupĂ©ration du flux.", + "feed_form.feed_not_found": "Flux non trouvĂ©.", + "feed_form.feedback": "Retour d'information", + "feed_form.follow": "Suivre", + "feed_form.followed": "🎉 Suivi.", + "feed_form.private_follow": "Suivi privĂ©", + "feed_form.private_follow_description": "Ce suivi est-il visible publiquement sur votre page de profil ?", + "feed_form.retry": "RĂ©essayer", + "feed_form.title": "Titre", + "feed_form.title_description": "Titre personnalisĂ© pour ce flux. Laisser vide pour utiliser le titre par dĂ©faut.", + "feed_form.unfollow": "Se dĂ©sabonner", + "feed_form.update": "Mettre Ă  jour", + "feed_form.update_follow": "Mettre Ă  jour l'abonnement", + "feed_form.updated": "🎉 Mis Ă  jour.", + "feed_form.view": "Voir", + "feed_item.claimed_by_owner": "Ce flux est rĂ©clamĂ© par", + "feed_item.claimed_by_unknown": "son propriĂ©taire.", + "feed_item.claimed_by_you": "RĂ©clamĂ© par vous", + "feed_item.claimed_feed": "Flux RĂ©clamĂ©", + "feed_item.error_since": "Erreur depuis", + "feed_item.not_publicly_visible": "Non visible publiquement sur votre page de profil", + "feed_view_type.articles": "Articles", + "feed_view_type.audios": "Audios", + "feed_view_type.notifications": "Notifications", + "feed_view_type.pictures": "Images", + "feed_view_type.social_media": "RĂ©seaux sociaux", + "feed_view_type.videos": "VidĂ©os", + "mark_all_read_button.auto_confirm_info": "Sera confirmĂ© automatiquement aprĂšs 3s.", + "mark_all_read_button.confirm": "Confirmer", + "mark_all_read_button.confirm_mark_all": "Marquer {{which}} comme lu ?", + "mark_all_read_button.confirm_mark_all_info": "Confirmez que vous voulez tout marquer comme lu ?", + "mark_all_read_button.mark_all_as_read": "Tout marquer comme lu", + "mark_all_read_button.mark_as_read": "Marquer {{which}} comme lu", + "mark_all_read_button.undo": "Annuler", + "player.back_10s": "Retour de 10s", + "player.close": "Fermer", + "player.download": "TĂ©lĂ©charger", + "player.exit_full_screen": "Quitter le mode plein Ă©cran", + "player.forward_10s": "Avancer de 10s", + "player.full_screen": "Plein Ă©cran", + "player.mute": "Muet", + "player.open_entry": "Ouvrir l'entrĂ©e", + "player.pause": "Pause", + "player.play": "Lecture", + "player.playback_rate": "Vitesse de lecture", + "player.unmute": "RĂ©activer le son", + "player.volume": "Volume", + "search.empty.no_results": "Aucun rĂ©sultat trouvĂ©.", + "search.group.entries": "EntrĂ©es", + "search.group.feeds": "Flux", + "search.options.all": "Tous", + "search.options.entries": "EntrĂ©es", + "search.options.feeds": "Flux", + "search.options.search_type": "Type de recherche", + "search.placeholder": "Rechercher...", + "search.result_count_local_mode": "(Mode local)", + "search.tooltip.local_search": "Cette recherche couvre les donnĂ©es disponibles localement. Essayez de rĂ©cupĂ©rer de nouveau pour inclure les derniĂšres donnĂ©es.", + "shortcuts.guide.title": "Guide des raccourcis", + "sidebar.category_remove_dialog.cancel": "Annuler", + "sidebar.category_remove_dialog.continue": "Continuer", + "sidebar.category_remove_dialog.description": "Cette opĂ©ration supprimera votre catĂ©gorie, mais les flux qu'elle contient seront conservĂ©s et regroupĂ©s par site Web.", + "sidebar.category_remove_dialog.title": "Supprimer la catĂ©gorie", + "sidebar.feed_actions.claim": "RĂ©clamer", + "sidebar.feed_actions.claim_feed": "RĂ©clamer le flux", + "sidebar.feed_actions.copy_feed_id": "Copier l'ID du flux", + "sidebar.feed_actions.copy_feed_url": "Copier l'URL du flux", + "sidebar.feed_actions.edit": "Éditer", + "sidebar.feed_actions.edit_feed": "Éditer le flux", + "sidebar.feed_actions.feed_owned_by_you": "Ce flux vous appartient", + "sidebar.feed_actions.mark_all_as_read": "Tout marquer comme lu", + "sidebar.feed_actions.navigate_to_feed": "Naviguer vers le flux", + "sidebar.feed_actions.open_feed_in_browser": "Ouvrir le flux dans le navigateur", + "sidebar.feed_actions.open_site_in_browser": "Ouvrir le site dans le navigateur", + "sidebar.feed_actions.unfollow": "Se dĂ©sabonner", + "sidebar.feed_actions.unfollow_feed": "Se dĂ©sabonner du flux", + "sidebar.feed_column.context_menu.change_to_other_view": "Changer pour une autre vue", + "sidebar.feed_column.context_menu.delete_category": "Supprimer la catĂ©gorie", + "sidebar.feed_column.context_menu.delete_category_confirmation": "Supprimer la catĂ©gorie {{folderName}} ?", + "sidebar.feed_column.context_menu.mark_as_read": "Marquer comme lu", + "sidebar.feed_column.context_menu.rename_category": "Renommer la catĂ©gorie", + "sidebar.select_sort_method": "SĂ©lectionnez une mĂ©thode de tri", + "signin.continue_with_github": "Continuer avec GitHub", + "signin.continue_with_google": "Continuer avec Google", + "signin.sign_in_to": "Se connecter Ă ", + "sync_indicator.disabled": "Pour des raisons de sĂ©curitĂ©, la synchronisation est dĂ©sactivĂ©e.", + "sync_indicator.offline": "Hors ligne", + "sync_indicator.synced": "SynchronisĂ© avec le serveur", + "tip_modal.amount": "Montant", + "tip_modal.claim_feed": "RĂ©clamer ce flux", + "tip_modal.create_wallet": "CrĂ©er gratuitement", + "tip_modal.feed_owner": "PropriĂ©taire du flux", + "tip_modal.low_balance": "Votre solde n'est pas suffisant pour couvrir ce pourboire. Veuillez ajuster le montant.", + "tip_modal.no_wallet": "Vous n'avez pas encore de portefeuille. Veuillez crĂ©er un portefeuille pour donner un pourboire.", + "tip_modal.tip_amount_sent": "a Ă©tĂ© envoyĂ© Ă  l'auteur.", + "tip_modal.tip_now": "Donner un pourboire maintenant", + "tip_modal.tip_sent": "Pourboire envoyĂ© avec succĂšs ! Merci pour votre soutien.", + "tip_modal.tip_support": "⭐ Donnez un pourboire pour montrer votre soutien !", + "tip_modal.unclaimed_feed": "Personne n'a encore rĂ©clamĂ© ce flux. Le Power reçu sera conservĂ© en toute sĂ©curitĂ© dans le contrat blockchain jusqu'Ă  ce qu'il soit rĂ©clamĂ©.", + "user_button.account": "Compte", + "user_button.download_desktop_app": "TĂ©lĂ©charger l'application de bureau", + "user_button.log_out": "Se dĂ©connecter", + "user_button.power": "Power", + "user_button.preferences": "PrĂ©fĂ©rences", + "user_button.profile": "Profil", + "user_profile.close": "Fermer", + "user_profile.edit": "Modifier", + "user_profile.loading": "Chargement", + "user_profile.share": "Partager", + "user_profile.toggle_item_style": "Changer le style de l'Ă©lĂ©ment", + "words.add": "Ajouter", + "words.confirm": "Confirmer", + "words.discover": "DĂ©couvrir", + "words.email": "Email", + "words.import": "Importer", + "words.items": "ÉlĂ©ments", + "words.language": "Langue", + "words.load_archived_entries": "Charger les entrĂ©es archivĂ©es", + "words.login": "Connexion", + "words.rss": "RSS", + "words.rss3": "RSS3", + "words.rsshub": "RSSHub", + "words.search": "Rechercher", + "words.starred": "Favoris", + "words.unread": "Non lu", + "words.user": "Utilisateur", + "words.which.all": "tous", + "words.zero_items": "ZĂ©ro Ă©lĂ©ment" +} diff --git a/locales/app/ja.json b/locales/app/ja.json new file mode 100644 index 000000000..0ee5411c2 --- /dev/null +++ b/locales/app/ja.json @@ -0,0 +1,206 @@ +{ + "ai_daily.title": "ăƒˆăƒƒăƒ—ăƒ‹ăƒ„ăƒŒă‚č - {{title}}", + "ai_daily.tooltip.content": "こちらは、AIがあăȘăŸăźă‚żă‚€ăƒ ăƒ©ă‚€ăƒłă‹ă‚‰éžă‚“ă ăƒ‹ăƒ„ăƒŒă‚čă§ă™ïŒˆ - ïŒ‰ă€‚ă‚ăȘăŸă«ăšăŁăŠé‡èŠăȘăƒ‹ăƒ„ăƒŒă‚čă‹ă‚‚ă—ă‚ŒăŸă›ă‚“ă€‚", + "ai_daily.tooltip.update_schedule": "æŻŽæ—„ćˆć‰8æ™‚ăšćˆćŸŒ8æ™‚ă«æ›Žæ–°ă•ă‚ŒăŸă™ă€‚", + "app.copy_logo_svg": "ロギSVGă‚’ă‚łăƒ”ăƒŒ", + "app.toggle_sidebar": "ă‚”ă‚€ăƒ‰ăƒăƒŒă‚’ćˆ‡ă‚Šæ›żăˆ", + "discover.any_url_or_keyword": "ä»»æ„ăźURLăŸăŸăŻă‚­ăƒŒăƒŻăƒŒăƒ‰", + "discover.default_option": " ïŒˆăƒ‡ăƒ•ă‚©ăƒ«ăƒˆïŒ‰", + "discover.feed_description": "ă“ăźăƒ•ă‚ŁăƒŒăƒ‰ăźèȘŹæ˜ŽăŻä»„äž‹ăźé€šă‚Šă§ă™ă€‚ćż…èŠăȘæƒ…ć ±ă‚’ăƒ‘ăƒ©ăƒĄăƒŒă‚żăƒ•ă‚©ăƒŒăƒ ă«ć…„ćŠ›ă—ăŠăă ă•ă„ă€‚", + "discover.feed_maintainers": "ă“ăźăƒ•ă‚ŁăƒŒăƒ‰ăŻRSSHubăŒæäŸ›ă—ăŠă„ăŸă™ă€‚ă«æ„ŸèŹă—ăŸă™ă€‚", + "discover.import.click_to_upload": "OPMLăƒ•ă‚Ąă‚€ăƒ«ă‚’ă‚ąăƒƒăƒ—ăƒ­ăƒŒăƒ‰ă™ă‚‹ă«ăŻă‚ŻăƒȘック", + "discover.popular": "äșș気", + "discover.preview": "ăƒ—ăƒŹăƒ“ăƒ„ăƒŒ", + "discover.rss_hub_route": "RSSHubăƒ«ăƒŒăƒˆ", + "discover.rss_url": "RSS URL", + "discover.select_placeholder": "遞択", + "early_access": "ă‚ąăƒŒăƒȘăƒŒă‚ąă‚Żă‚»ă‚č", + "entry_actions.copy_link": "ăƒȘăƒłă‚Żă‚’ă‚łăƒ”ăƒŒ", + "entry_actions.failed_to_save_to_eagle": "Eagleăžăźäżć­˜ă«ć€±æ•—ă—ăŸă—ăŸă€‚", + "entry_actions.failed_to_save_to_instapaper": "Instapaperăžăźäżć­˜ă«ć€±æ•—ă—ăŸă—ăŸă€‚", + "entry_actions.failed_to_save_to_readwise": "Readwiseăžăźäżć­˜ă«ć€±æ•—ă—ăŸă—ăŸă€‚", + "entry_actions.link_copied": "ăƒȘンクがクăƒȘăƒƒăƒ—ăƒœăƒŒăƒ‰ă«ă‚łăƒ”ăƒŒă•ă‚ŒăŸă—ăŸă€‚", + "entry_actions.mark_as_read": "æ—ąèȘ­ă«ă™ă‚‹", + "entry_actions.mark_as_unread": "æœȘèȘ­ă«ă™ă‚‹", + "entry_actions.open_in_browser": "ăƒ–ăƒ©ă‚Šă‚¶ă§é–‹ă", + "entry_actions.save_media_to_eagle": "メディケをEagleă«äżć­˜", + "entry_actions.save_to_instapaper": "Instapaperă«äżć­˜", + "entry_actions.save_to_readwise": "Readwiseă«äżć­˜", + "entry_actions.saved_to_eagle": "Eagleă«äżć­˜ă•ă‚ŒăŸă—ăŸă€‚", + "entry_actions.saved_to_instapaper": "Instapaperă«äżć­˜ă•ă‚ŒăŸă—ăŸă€‚", + "entry_actions.saved_to_readwise": "Readwiseă«äżć­˜ă•ă‚ŒăŸă—ăŸă€‚", + "entry_actions.share": "ć…±æœ‰", + "entry_actions.star": "ă‚čă‚żăƒŒ", + "entry_actions.starred": "ă‚čă‚żăƒŒă«ç™»éŒČă•ă‚ŒăŸă—ăŸă€‚", + "entry_actions.tip": "チップ", + "entry_actions.unstar": "ă‚čă‚żăƒŒă‚’è§Łé™€", + "entry_actions.unstarred": "ă‚čă‚żăƒŒăŒè§Łé™€ă•ă‚ŒăŸă—ăŸă€‚", + "entry_column.refreshing": "æ–°ă—ă„ă‚šăƒłăƒˆăƒȘă‚’æ›Žæ–°äž­...", + "entry_content.ai_summary": "AIă«ă‚ˆă‚‹èŠçŽ„", + "entry_content.fetching_content": "ć…ƒăźă‚łăƒłăƒ†ăƒłăƒ„ă‚’ć–ćŸ—ă—ă€ć‡Šç†äž­ă§ă™...", + "entry_content.header.play_tts": "TTSを憍生", + "entry_content.header.readability": "èȘ­ăżă‚„すさ", + "entry_content.no_content": "ă‚łăƒłăƒ†ăƒłăƒ„ăŒă‚ă‚ŠăŸă›ă‚“", + "entry_content.readability_notice": "こぼコンテンツはReadabilityă«ă‚ˆă‚ŠæäŸ›ă•ă‚ŒăŠă„ăŸă™ă€‚èȘ€ć­—ăȘどをç™șèŠ‹ă—ăŸć ŽćˆăŻă€ć…ƒăźă‚”ă‚€ăƒˆă§ă‚ȘăƒȘă‚žăƒŠăƒ«ăźă‚łăƒłăƒ†ăƒłăƒ„ă‚’ă”èŠ§ăă ă•ă„ă€‚", + "entry_content.render_error": "レンダăƒȘăƒłă‚°ă‚šăƒ©ăƒŒ:", + "entry_content.report_issue": "ć•éĄŒă‚’ć ±ć‘Š", + "entry_content.web_app_notice": "ă“ăźă‚łăƒłăƒ†ăƒłăƒ„ă‚żă‚€ăƒ—ăŻă‚Šă‚§ăƒ–ă‚ąăƒ—ăƒȘă§ăŻă‚”ăƒăƒŒăƒˆă•ă‚ŒăŠă„ăȘă„ă‹ă‚‚ă—ă‚ŒăŸă›ă‚“ă€‚ăƒ‡ă‚čクトップケプăƒȘă‚’ăƒ€ă‚Šăƒłăƒ­ăƒŒăƒ‰ă—ăŠăă ă•ă„ă€‚", + "entry_list.zero_unread": "æœȘèȘ­ă‚Œăƒ­", + "entry_list_header.daily_report": "æ—„ć ±", + "entry_list_header.hide_no_image_items": "ç”»ćƒăŒăȘいスントăƒȘă‚’éžèĄšç€ș", + "entry_list_header.items": "項盼", + "entry_list_header.new_entries_available": "æ–°ă—ă„ă‚šăƒłăƒˆăƒȘăŒćˆ©ç”šćŻèƒœă§ă™", + "entry_list_header.refetch": "ć†ć–ćŸ—", + "entry_list_header.refresh": "曎新", + "entry_list_header.show_all": "すăčăŠèĄšç€ș", + "entry_list_header.show_all_items": "すăčどぼスントăƒȘă‚’èĄšç€ș", + "entry_list_header.show_unread_only": "æœȘèȘ­ăźăżèĄšç€ș", + "entry_list_header.switch_to_grid": "グăƒȘăƒƒăƒ‰ă«ćˆ‡ă‚Šæ›żăˆ", + "entry_list_header.switch_to_masonry": "ăƒĄă‚€ă‚œăƒłăƒȘăƒŒăƒŹă‚€ă‚ąă‚Šăƒˆă«ćˆ‡ă‚Šæ›żăˆ", + "entry_list_header.unread": "æœȘèȘ­", + "feed_claim_modal.choose_verification_method": "éžæŠžè‚ąăŻ3ă€ă‚ă‚ŠăŸă™ă€‚ăăźă†ăĄ1぀を遞んでçąșèȘă—ăŠăă ă•ă„ă€‚", + "feed_claim_modal.claim_button": "ă‚ŻăƒŹăƒŒăƒ ", + "feed_claim_modal.content_instructions": "仄䞋た憅ćźčă‚’ă‚łăƒ”ăƒŒă—ăŠă€æœ€æ–°ăźRSSăƒ•ă‚ŁăƒŒăƒ‰ă«æŠ•çšżă—ăŠăă ă•ă„ă€‚", + "feed_claim_modal.description_current": "çŸćœšăźèȘŹæ˜Ž:", + "feed_claim_modal.description_instructions": "æŹĄăźć†…ćźčă‚’ă‚łăƒ”ăƒŒă—ă€RSSăƒ•ă‚ŁăƒŒăƒ‰ăźăƒ•ă‚ŁăƒŒăƒ«ăƒ‰ă«èČŒă‚Šä»˜ă‘ăŠăă ă•ă„ă€‚", + "feed_claim_modal.failed_to_load": "ă‚ŻăƒŹăƒŒăƒ ăƒĄăƒƒă‚»ăƒŒă‚žăźèȘ­ăżèŸŒăżă«ć€±æ•—ă—ăŸă—ăŸ", + "feed_claim_modal.rss_format_choice": "RSSă‚žă‚§ăƒăƒŹăƒŒă‚żă«ăŻé€šćžž2ă€ăźăƒ•ă‚©ăƒŒăƒžăƒƒăƒˆăŒă‚ă‚ŠăŸă™ă€‚ćż…èŠă«ćżœă˜ăŠä»„äž‹ăźXMLおよびJSONăƒ•ă‚©ăƒŒăƒžăƒƒăƒˆă‚’ă‚łăƒ”ăƒŒă—ăŠăă ă•ă„ă€‚", + "feed_claim_modal.rss_instructions": "ä»„äž‹ăźă‚łăƒŒăƒ‰ă‚’ă‚łăƒ”ăƒŒă—ă€RSSă‚žă‚§ăƒăƒŹăƒŒă‚żă«èČŒă‚Šä»˜ă‘ăŠăă ă•ă„ă€‚", + "feed_claim_modal.rss_json_format": "JSONăƒ•ă‚©ăƒŒăƒžăƒƒăƒˆ", + "feed_claim_modal.rss_xml_format": "XMLăƒ•ă‚©ăƒŒăƒžăƒƒăƒˆ", + "feed_claim_modal.rsshub_notice": "ă“ăźăƒ•ă‚ŁăƒŒăƒ‰ăŻRSSHubă«ă‚ˆăŁăŠæäŸ›ă•ă‚ŒăŠăŠă‚Šă€ă‚­ăƒŁăƒƒă‚·ăƒ„æ™‚é–“ăŻ1æ™‚é–“ă§ă™ă€‚ă‚łăƒłăƒ†ăƒłăƒ„ăźć€‰æ›ŽăŒćæ˜ ă•ă‚Œă‚‹ăŸă§æœ€ć€§1æ™‚é–“ă‹ă‹ă‚‹ć ŽćˆăŒă‚ă‚ŠăŸă™ă€‚", + "feed_claim_modal.tab_content": "コンテンツ", + "feed_claim_modal.tab_description": "èȘŹæ˜Ž", + "feed_claim_modal.tab_rss": "RSSタグ", + "feed_claim_modal.verify_ownership": "ă“ăźăƒ•ă‚ŁăƒŒăƒ‰ă‚’è‡Șćˆ†ăźă‚‚ăźăšă—ăŠă‚ŻăƒŹăƒŒăƒ ă™ă‚‹ă«ăŻă€æ‰€æœ‰æš©ă‚’çąșèȘă™ă‚‹ćż…èŠăŒă‚ă‚ŠăŸă™ă€‚", + "feed_form.add_follow": "ăƒ•ă‚©ăƒ­ăƒŒă‚’èżœćŠ ", + "feed_form.category": "ă‚«ăƒ†ă‚ŽăƒȘăƒŒ", + "feed_form.category_description": "ăƒ‡ăƒ•ă‚©ăƒ«ăƒˆă§ăŻă€ăƒ•ă‚©ăƒ­ăƒŒăŻă‚Šă‚§ăƒ–ă‚”ă‚€ăƒˆă”ăšă«ă‚°ăƒ«ăƒŒăƒ—ćŒ–ă•ă‚ŒăŸă™ă€‚", + "feed_form.error_fetching_feed": "ăƒ•ă‚ŁăƒŒăƒ‰ăźć–ćŸ—ă«ć€±æ•—ă—ăŸă—ăŸă€‚", + "feed_form.feed_not_found": "ăƒ•ă‚ŁăƒŒăƒ‰ăŒèŠ‹ă€ă‹ă‚ŠăŸă›ă‚“ă€‚", + "feed_form.feedback": "ăƒ•ă‚ŁăƒŒăƒ‰ăƒăƒƒă‚Ż", + "feed_form.follow": "ăƒ•ă‚©ăƒ­ăƒŒ", + "feed_form.followed": "🎉 ăƒ•ă‚©ăƒ­ăƒŒă—ăŸă—ăŸă€‚", + "feed_form.private_follow": "ăƒ—ăƒ©ă‚€ăƒ™ăƒŒăƒˆăƒ•ă‚©ăƒ­ăƒŒ", + "feed_form.private_follow_description": "ă“ăźăƒ•ă‚©ăƒ­ăƒŒăŒă‚ăȘăŸăźăƒ—ăƒ­ăƒ•ă‚ŁăƒŒăƒ«ăƒšăƒŒă‚žă«ć…Źé–‹ă•ă‚Œă‚‹ă‹ă©ă†ă‹ă€‚", + "feed_form.retry": "ć†è©ŠèĄŒ", + "feed_form.title": "ă‚żă‚€ăƒˆăƒ«", + "feed_form.title_description": "ă“ăźăƒ•ă‚ŁăƒŒăƒ‰ăźă‚«ă‚čă‚żăƒ ă‚żă‚€ăƒˆăƒ«ă€‚ăƒ‡ăƒ•ă‚©ăƒ«ăƒˆă‚’äœżç”šă™ă‚‹ă«ăŻç©șç™œăźăŸăŸă«ă—ăŠăă ă•ă„ă€‚", + "feed_form.unfollow": "ăƒ•ă‚©ăƒ­ăƒŒè§Łé™€", + "feed_form.update": "曎新", + "feed_form.update_follow": "ăƒ•ă‚©ăƒ­ăƒŒă‚’æ›Žæ–°", + "feed_form.updated": "🎉 æ›Žæ–°ă•ă‚ŒăŸă—ăŸă€‚", + "feed_form.view": "èĄšç€ș", + "feed_item.claimed_by_owner": "ă“ăźăƒ•ă‚ŁăƒŒăƒ‰ăŻ", + "feed_item.claimed_by_unknown": "ăăźæ‰€æœ‰è€…ă«ă‚ˆăŁăŠă‚ŻăƒŹăƒŒăƒ ă•ă‚ŒăŠă„ăŸă™ă€‚", + "feed_item.claimed_by_you": "あăȘăŸă«ă‚ˆăŁăŠă‚ŻăƒŹăƒŒăƒ ă•ă‚ŒăŠă„ăŸă™", + "feed_item.claimed_feed": "ă‚ŻăƒŹăƒŒăƒ ă•ă‚ŒăŸăƒ•ă‚ŁăƒŒăƒ‰", + "feed_item.error_since": "ă‚šăƒ©ăƒŒç™șç”Ÿæ™‚ćˆ»", + "feed_item.not_publicly_visible": "ăƒ—ăƒ­ăƒ•ă‚ŁăƒŒăƒ«ăƒšăƒŒă‚žă«ć…Źé–‹ă•ă‚ŒăŠă„ăŸă›ă‚“", + "feed_view_type.articles": "蚘äș‹", + "feed_view_type.audios": "ă‚ȘăƒŒăƒ‡ă‚Łă‚Ș", + "feed_view_type.notifications": "通矄", + "feed_view_type.pictures": "ç”»ćƒ", + "feed_view_type.social_media": "ă‚œăƒŒă‚·ăƒŁăƒ«ăƒĄăƒ‡ă‚Łă‚ą", + "feed_view_type.videos": "ć‹•ç”»", + "mark_all_read_button.auto_confirm_info": "3ç§’ćŸŒă«è‡Ș拕的にçąșèȘă•ă‚ŒăŸă™ă€‚", + "mark_all_read_button.confirm": "çąșèȘ", + "mark_all_read_button.confirm_mark_all": "{{which}}ă‚’æ—ąèȘ­ă«ă—ăŸă™ă‹ïŒŸ", + "mark_all_read_button.confirm_mark_all_info": "すăčăŠă‚’æ—ąèȘ­ă«ă—ăŸă™ă‹ïŒŸ", + "mark_all_read_button.mark_all_as_read": "すăčăŠă‚’æ—ąèȘ­ă«ă™ă‚‹", + "mark_all_read_button.mark_as_read": "{{which}}ă‚’æ—ąèȘ­ă«ă™ă‚‹", + "mark_all_read_button.undo": "ć…ƒă«æˆ»ă™", + "player.back_10s": "10ç§’æˆ»ă‚‹", + "player.close": "閉じる", + "player.download": "ăƒ€ă‚Šăƒłăƒ­ăƒŒăƒ‰", + "player.exit_full_screen": "ăƒ•ăƒ«ă‚čクăƒȘăƒŒăƒłă‚’ç”‚äș†", + "player.forward_10s": "10秒é€Čむ", + "player.full_screen": "ăƒ•ăƒ«ă‚čクăƒȘăƒŒăƒł", + "player.mute": "ăƒŸăƒ„ăƒŒăƒˆ", + "player.open_entry": "スントăƒȘを開く", + "player.pause": "äž€æ™‚ćœæ­ą", + "player.play": "憍生", + "player.playback_rate": "憍生速ćșŠ", + "player.unmute": "ăƒŸăƒ„ăƒŒăƒˆè§Łé™€", + "player.volume": "音量", + "search.empty.no_results": "ç”æžœăŒèŠ‹ă€ă‹ă‚ŠăŸă›ă‚“ă§ă—ăŸă€‚", + "search.group.entries": "スントăƒȘ", + "search.group.feeds": "ăƒ•ă‚ŁăƒŒăƒ‰", + "search.options.all": "すăčお", + "search.options.entries": "スントăƒȘ", + "search.options.feeds": "ăƒ•ă‚ŁăƒŒăƒ‰", + "search.options.search_type": "æ€œçŽąă‚żă‚€ăƒ—", + "search.placeholder": "æ€œçŽą...", + "search.result_count_local_mode": "ïŒˆăƒ­ăƒŒă‚«ăƒ«ăƒąăƒŒăƒ‰ïŒ‰", + "search.tooltip.local_search": "ă“ăźæ€œçŽąăŻă€ăƒ­ăƒŒă‚«ăƒ«ă§ćˆ©ç”šćŻèƒœăȘăƒ‡ăƒŒă‚żă‚’ćŻŸè±Ąăšă—ăŠă„ăŸă™ă€‚æœ€æ–°ăƒ‡ăƒŒă‚żă‚’ć«ă‚ă‚‹ăŸă‚ă«ć†ć–ćŸ—ă‚’è©Šă—ăŠăă ă•ă„ă€‚", + "shortcuts.guide.title": "ă‚·ăƒ§ăƒŒăƒˆă‚«ăƒƒăƒˆă‚Źă‚€ăƒ‰ăƒ©ă‚€ăƒł", + "sidebar.category_remove_dialog.cancel": "ă‚­ăƒŁăƒłă‚»ăƒ«", + "sidebar.category_remove_dialog.continue": "ç¶šèĄŒ", + "sidebar.category_remove_dialog.description": "ă“ăźæ“äœœă«ă‚ˆă‚Šă‚«ăƒ†ă‚ŽăƒȘăƒŒăŒć‰Šé™€ă•ă‚ŒăŸă™ăŒă€ć«ăŸă‚ŒăŠă„ă‚‹ăƒ•ă‚ŁăƒŒăƒ‰ăŻäżæŒă•ă‚Œă€ă‚Šă‚§ăƒ–ă‚”ă‚€ăƒˆă”ăšă«ă‚°ăƒ«ăƒŒăƒ—ćŒ–ă•ă‚ŒăŸă™ă€‚", + "sidebar.category_remove_dialog.title": "ă‚«ăƒ†ă‚ŽăƒȘăƒŒă‚’ć‰Šé™€", + "sidebar.feed_actions.claim": "ă‚ŻăƒŹăƒŒăƒ ", + "sidebar.feed_actions.claim_feed": "ăƒ•ă‚ŁăƒŒăƒ‰ă‚’ă‚ŻăƒŹăƒŒăƒ ", + "sidebar.feed_actions.copy_feed_id": "ăƒ•ă‚ŁăƒŒăƒ‰IDă‚’ă‚łăƒ”ăƒŒ", + "sidebar.feed_actions.copy_feed_url": "ăƒ•ă‚ŁăƒŒăƒ‰URLă‚’ă‚łăƒ”ăƒŒ", + "sidebar.feed_actions.edit": "線集", + "sidebar.feed_actions.edit_feed": "ăƒ•ă‚ŁăƒŒăƒ‰ă‚’ç·šé›†", + "sidebar.feed_actions.feed_owned_by_you": "ă“ăźăƒ•ă‚ŁăƒŒăƒ‰ăŻă‚ăȘăŸăŒæ‰€æœ‰ă—ăŠă„ăŸă™", + "sidebar.feed_actions.mark_all_as_read": "すăčăŠă‚’æ—ąèȘ­ă«ă™ă‚‹", + "sidebar.feed_actions.navigate_to_feed": "ăƒ•ă‚ŁăƒŒăƒ‰ă«ç§»ć‹•", + "sidebar.feed_actions.open_feed_in_browser": "ăƒ–ăƒ©ă‚Šă‚¶ă§ăƒ•ă‚ŁăƒŒăƒ‰ă‚’é–‹ă", + "sidebar.feed_actions.open_site_in_browser": "ăƒ–ăƒ©ă‚Šă‚¶ă§ă‚”ă‚€ăƒˆă‚’é–‹ă", + "sidebar.feed_actions.unfollow": "ăƒ•ă‚©ăƒ­ăƒŒè§Łé™€", + "sidebar.feed_actions.unfollow_feed": "ăƒ•ă‚ŁăƒŒăƒ‰ăźăƒ•ă‚©ăƒ­ăƒŒă‚’è§Łé™€", + "sidebar.feed_column.context_menu.change_to_other_view": "ä»–ăźăƒ“ăƒ„ăƒŒă«ćˆ‡ă‚Šæ›żăˆ", + "sidebar.feed_column.context_menu.delete_category": "ă‚«ăƒ†ă‚ŽăƒȘăƒŒă‚’ć‰Šé™€", + "sidebar.feed_column.context_menu.delete_category_confirmation": "ă‚«ăƒ†ă‚ŽăƒȘăƒŒ{{folderName}}ă‚’ć‰Šé™€ă—ăŸă™ă‹ïŒŸ", + "sidebar.feed_column.context_menu.mark_as_read": "æ—ąèȘ­ă«ă™ă‚‹", + "sidebar.feed_column.context_menu.rename_category": "ă‚«ăƒ†ă‚ŽăƒȘăƒŒăźćć‰ă‚’ć€‰æ›Ž", + "sidebar.select_sort_method": "䞊ăčæ›żăˆæ–čæł•ă‚’éžæŠž", + "signin.continue_with_github": "GitHubで続ける", + "signin.continue_with_google": "Googleで続ける", + "signin.sign_in_to": "ă‚”ă‚€ăƒłă‚€ăƒł", + "sync_indicator.disabled": "ă‚»ă‚­ăƒ„ăƒȘăƒ†ă‚ŁäžŠăźç†ç”±ă«ă‚ˆă‚Šă€ćŒæœŸăŻç„ĄćŠčにăȘăŁăŠă„ăŸă™ă€‚", + "sync_indicator.offline": "ă‚Șăƒ•ăƒ©ă‚€ăƒł", + "sync_indicator.synced": "ă‚”ăƒŒăƒăƒŒăšćŒæœŸæžˆăż", + "tip_modal.amount": "金額", + "tip_modal.claim_feed": "ă“ăźăƒ•ă‚ŁăƒŒăƒ‰ă‚’ă‚ŻăƒŹăƒŒăƒ ", + "tip_modal.create_wallet": "ç„Ąæ–™ă§äœœæˆ", + "tip_modal.feed_owner": "ăƒ•ă‚ŁăƒŒăƒ‰ăźæ‰€æœ‰è€…", + "tip_modal.low_balance": "ă“ăźăƒăƒƒăƒ—ă‚’ă‚«ăƒăƒŒă™ă‚‹ă«ăŻæź‹é«˜ăŒäžè¶łă—ăŠă„ăŸă™ă€‚é‡‘éĄă‚’èȘżæ•Žă—ăŠăă ă•ă„ă€‚", + "tip_modal.no_wallet": "ăŸă ă‚Šă‚©ăƒŹăƒƒăƒˆăŒă‚ă‚ŠăŸă›ă‚“ă€‚ă‚Šă‚©ăƒŹăƒƒăƒˆă‚’äœœæˆă—ăŠăƒăƒƒăƒ—ă‚’é€äżĄă—ăŠăă ă•ă„ă€‚", + "tip_modal.tip_amount_sent": "ăŒäœœè€…ă«é€äżĄă•ă‚ŒăŸă—ăŸă€‚", + "tip_modal.tip_now": "ä»Šă™ăăƒăƒƒăƒ—", + "tip_modal.tip_sent": "ăƒăƒƒăƒ—ăŒæ­Łćžžă«é€äżĄă•ă‚ŒăŸă—ăŸïŒă”æ”ŻæŽă‚ă‚ŠăŒăšă†ă”ă–ă„ăŸă™ă€‚", + "tip_modal.tip_support": "⭐ ă‚”ăƒăƒŒăƒˆă‚’ç€șă™ăŸă‚ă«ăƒăƒƒăƒ—ă‚’é€ă‚‹ïŒ", + "tip_modal.unclaimed_feed": "ă“ăźăƒ•ă‚ŁăƒŒăƒ‰ăŻăŸă èȘ°ă«ă‚‚ă‚ŻăƒŹăƒŒăƒ ă•ă‚ŒăŠă„ăŸă›ă‚“ă€‚ć—ă‘ć–ăŁăŸPowerăŻă€ăƒ•ă‚ŁăƒŒăƒ‰ăŒă‚ŻăƒŹăƒŒăƒ ă•ă‚Œă‚‹ăŸă§ăƒ–ăƒ­ăƒƒă‚Żăƒă‚§ăƒŒăƒłć„‘çŽ„ă§ćź‰ć…šă«äżæŒă•ă‚ŒăŸă™ă€‚", + "user_button.account": "ă‚ąă‚«ă‚Šăƒłăƒˆ", + "user_button.download_desktop_app": "デă‚čクトップケプăƒȘă‚’ăƒ€ă‚Šăƒłăƒ­ăƒŒăƒ‰", + "user_button.log_out": "ログケォト", + "user_button.power": "Power", + "user_button.preferences": "èš­ćźš", + "user_button.profile": "ăƒ—ăƒ­ăƒ•ă‚ŁăƒŒăƒ«", + "user_profile.close": "閉じる", + "user_profile.edit": "線集", + "user_profile.loading": "èȘ­ăżèŸŒăżäž­", + "user_profile.share": "ć…±æœ‰", + "user_profile.toggle_item_style": "ă‚ąă‚€ăƒ†ăƒ ă‚čă‚żă‚€ăƒ«ă‚’ćˆ‡ă‚Šæ›żăˆ", + "words.add": "èżœćŠ ", + "words.confirm": "çąșèȘ", + "words.discover": "ç™ș芋", + "words.email": "ăƒĄăƒŒăƒ«", + "words.import": "ă‚€ăƒłăƒăƒŒăƒˆ", + "words.items": "ă‚ąă‚€ăƒ†ăƒ ", + "words.language": "蚀èȘž", + "words.load_archived_entries": "ă‚ąăƒŒă‚«ă‚€ăƒ–ă•ă‚ŒăŸă‚šăƒłăƒˆăƒȘをèȘ­ăżèŸŒă‚€", + "words.login": "ăƒ­ă‚°ă‚€ăƒł", + "words.rss": "RSS", + "words.rss3": "RSS3", + "words.rsshub": "RSSHub", + "words.search": "æ€œçŽą", + "words.starred": "ă‚čă‚żăƒŒä»˜ă", + "words.unread": "æœȘèȘ­", + "words.user": "ăƒŠăƒŒă‚¶ăƒŒ", + "words.which.all": "すăčお", + "words.zero_items": "ă‚ąă‚€ăƒ†ăƒ ăŒă‚ă‚ŠăŸă›ă‚“" +} diff --git a/locales/app/pt.json b/locales/app/pt.json new file mode 100644 index 000000000..191a45783 --- /dev/null +++ b/locales/app/pt.json @@ -0,0 +1,206 @@ +{ + "ai_daily.title": "ăƒˆăƒƒăƒ—ăƒ‹ăƒ„ăƒŒă‚č - {{title}}", + "ai_daily.tooltip.content": "こちらは、AI があăȘăŸăźă‚żă‚€ăƒ ăƒ©ă‚€ăƒłă‹ă‚‰éžă‚“ă ăƒ‹ăƒ„ăƒŒă‚čă§ă™ïŒˆ - ïŒ‰ă€‚ă‚ăȘăŸă«ăšăŁăŠé‡èŠăȘăƒ‹ăƒ„ăƒŒă‚čă‹ă‚‚ă—ă‚ŒăŸă›ă‚“ă€‚", + "ai_daily.tooltip.update_schedule": "æŻŽæ—„ćˆć‰ 8 æ™‚ăšćˆćŸŒ 8 æ™‚ă«æ›Žæ–°ă•ă‚ŒăŸă™ă€‚", + "app.copy_logo_svg": "ロギ SVG ă‚’ă‚łăƒ”ăƒŒ", + "app.toggle_sidebar": "ă‚”ă‚€ăƒ‰ăƒăƒŒă‚’ćˆ‡ă‚Šæ›żăˆ", + "discover.any_url_or_keyword": "ä»»æ„ăź URL ăŸăŸăŻă‚­ăƒŒăƒŻăƒŒăƒ‰", + "discover.default_option": " ïŒˆăƒ‡ăƒ•ă‚©ăƒ«ăƒˆïŒ‰", + "discover.feed_description": "ă“ăźăƒ•ă‚ŁăƒŒăƒ‰ăźèȘŹæ˜ŽăŻä»„äž‹ăźé€šă‚Šă§ă™ă€‚ćż…èŠăȘæƒ…ć ±ă‚’ăƒ‘ăƒ©ăƒĄăƒŒă‚żăƒ•ă‚©ăƒŒăƒ ă«ć…„ćŠ›ă—ăŠăă ă•ă„ă€‚", + "discover.feed_maintainers": "ă“ăźăƒ•ă‚ŁăƒŒăƒ‰ăŻ RSSHub ăŒæäŸ›ă—ăŠă„ăŸă™ă€‚ă«æ„ŸèŹă—ăŸă™ă€‚", + "discover.import.click_to_upload": "OPML ăƒ•ă‚Ąă‚€ăƒ«ă‚’ă‚ąăƒƒăƒ—ăƒ­ăƒŒăƒ‰ă™ă‚‹ă«ăŻă‚ŻăƒȘック", + "discover.popular": "äșș気", + "discover.preview": "ăƒ—ăƒŹăƒ“ăƒ„ăƒŒ", + "discover.rss_hub_route": "RSSHub ăƒ«ăƒŒăƒˆ", + "discover.rss_url": "RSS URL", + "discover.select_placeholder": "遞択", + "early_access": "ă‚ąăƒŒăƒȘăƒŒă‚ąă‚Żă‚»ă‚č", + "entry_actions.copy_link": "ăƒȘăƒłă‚Żă‚’ă‚łăƒ”ăƒŒ", + "entry_actions.failed_to_save_to_eagle": "Eagle ăžăźäżć­˜ă«ć€±æ•—ă—ăŸă—ăŸă€‚", + "entry_actions.failed_to_save_to_instapaper": "Instapaper ăžăźäżć­˜ă«ć€±æ•—ă—ăŸă—ăŸă€‚", + "entry_actions.failed_to_save_to_readwise": "Readwise ăžăźäżć­˜ă«ć€±æ•—ă—ăŸă—ăŸă€‚", + "entry_actions.link_copied": "ăƒȘンクがクăƒȘăƒƒăƒ—ăƒœăƒŒăƒ‰ă«ă‚łăƒ”ăƒŒă•ă‚ŒăŸă—ăŸă€‚", + "entry_actions.mark_as_read": "æ—ąèȘ­ă«ă™ă‚‹", + "entry_actions.mark_as_unread": "æœȘèȘ­ă«ă™ă‚‹", + "entry_actions.open_in_browser": "ăƒ–ăƒ©ă‚Šă‚¶ă§é–‹ă", + "entry_actions.save_media_to_eagle": "メディケを Eagle ă«äżć­˜", + "entry_actions.save_to_instapaper": "Instapaper ă«äżć­˜", + "entry_actions.save_to_readwise": "Readwise ă«äżć­˜", + "entry_actions.saved_to_eagle": "Eagle ă«äżć­˜ă•ă‚ŒăŸă—ăŸă€‚", + "entry_actions.saved_to_instapaper": "Instapaper ă«äżć­˜ă•ă‚ŒăŸă—ăŸă€‚", + "entry_actions.saved_to_readwise": "Readwise ă«äżć­˜ă•ă‚ŒăŸă—ăŸă€‚", + "entry_actions.share": "ć…±æœ‰", + "entry_actions.star": "ă‚čă‚żăƒŒ", + "entry_actions.starred": "ă‚čă‚żăƒŒă«ç™»éŒČă•ă‚ŒăŸă—ăŸă€‚", + "entry_actions.tip": "チップ", + "entry_actions.unstar": "ă‚čă‚żăƒŒă‚’è§Łé™€", + "entry_actions.unstarred": "ă‚čă‚żăƒŒăŒè§Łé™€ă•ă‚ŒăŸă—ăŸă€‚", + "entry_column.refreshing": "æ–°ă—ă„ă‚šăƒłăƒˆăƒȘă‚’æ›Žæ–°äž­...", + "entry_content.ai_summary": "AI ă«ă‚ˆă‚‹èŠçŽ„", + "entry_content.fetching_content": "ć…ƒăźă‚łăƒłăƒ†ăƒłăƒ„ă‚’ć–ćŸ—ă—ă€ć‡Šç†äž­ă§ă™...", + "entry_content.header.play_tts": "TTS を憍生", + "entry_content.header.readability": "èȘ­ăżă‚„すさ", + "entry_content.no_content": "ă‚łăƒłăƒ†ăƒłăƒ„ăŒă‚ă‚ŠăŸă›ă‚“", + "entry_content.readability_notice": "こぼコンテンツは Readability ă«ă‚ˆă‚ŠæäŸ›ă•ă‚ŒăŠă„ăŸă™ă€‚èȘ€ć­—ăȘどをç™șèŠ‹ă—ăŸć ŽćˆăŻă€ć…ƒăźă‚”ă‚€ăƒˆă§ă‚ȘăƒȘă‚žăƒŠăƒ«ăźă‚łăƒłăƒ†ăƒłăƒ„ă‚’ă”èŠ§ăă ă•ă„ă€‚", + "entry_content.render_error": "レンダăƒȘăƒłă‚°ă‚šăƒ©ăƒŒ:", + "entry_content.report_issue": "ć•éĄŒă‚’ć ±ć‘Š", + "entry_content.web_app_notice": "ă“ăźă‚łăƒłăƒ†ăƒłăƒ„ă‚żă‚€ăƒ—ăŻă‚Šă‚§ăƒ–ă‚ąăƒ—ăƒȘă§ăŻă‚”ăƒăƒŒăƒˆă•ă‚ŒăŠă„ăȘă„ă‹ă‚‚ă—ă‚ŒăŸă›ă‚“ă€‚ăƒ‡ă‚čクトップケプăƒȘă‚’ăƒ€ă‚Šăƒłăƒ­ăƒŒăƒ‰ă—ăŠăă ă•ă„ă€‚", + "entry_list.zero_unread": "æœȘèȘ­ă‚Œăƒ­", + "entry_list_header.daily_report": "æ—„ć ±", + "entry_list_header.hide_no_image_items": "ç”»ćƒăŒăȘいスントăƒȘă‚’éžèĄšç€ș", + "entry_list_header.items": "項盼", + "entry_list_header.new_entries_available": "æ–°ă—ă„ă‚šăƒłăƒˆăƒȘăŒćˆ©ç”šćŻèƒœă§ă™", + "entry_list_header.refetch": "ć†ć–ćŸ—", + "entry_list_header.refresh": "曎新", + "entry_list_header.show_all": "すăčăŠèĄšç€ș", + "entry_list_header.show_all_items": "すăčどぼスントăƒȘă‚’èĄšç€ș", + "entry_list_header.show_unread_only": "æœȘèȘ­ăźăżèĄšç€ș", + "entry_list_header.switch_to_grid": "グăƒȘăƒƒăƒ‰ă«ćˆ‡ă‚Šæ›żăˆ", + "entry_list_header.switch_to_masonry": "ăƒĄă‚€ă‚œăƒłăƒȘăƒŒăƒŹă‚€ă‚ąă‚Šăƒˆă«ćˆ‡ă‚Šæ›żăˆ", + "entry_list_header.unread": "æœȘèȘ­", + "feed_claim_modal.choose_verification_method": "éžæŠžè‚ąăŻ 3 ă€ă‚ă‚ŠăŸă™ă€‚ăăźă†ăĄ 1 ぀を遞んでçąșèȘă—ăŠăă ă•ă„ă€‚", + "feed_claim_modal.claim_button": "ă‚ŻăƒŹăƒŒăƒ ", + "feed_claim_modal.content_instructions": "仄䞋た憅ćźčă‚’ă‚łăƒ”ăƒŒă—ăŠă€æœ€æ–°ăź RSS ăƒ•ă‚ŁăƒŒăƒ‰ă«æŠ•çšżă—ăŠăă ă•ă„ă€‚", + "feed_claim_modal.description_current": "çŸćœšăźèȘŹæ˜ŽïŒš", + "feed_claim_modal.description_instructions": "æŹĄăźć†…ćźčă‚’ă‚łăƒ”ăƒŒă—ă€RSS ăƒ•ă‚ŁăƒŒăƒ‰ăźăƒ•ă‚ŁăƒŒăƒ«ăƒ‰ă«èČŒă‚Šä»˜ă‘ăŠăă ă•ă„ă€‚", + "feed_claim_modal.failed_to_load": "ă‚ŻăƒŹăƒŒăƒ ăƒĄăƒƒă‚»ăƒŒă‚žăźèȘ­ăżèŸŒăżă«ć€±æ•—ă—ăŸă—ăŸ", + "feed_claim_modal.rss_format_choice": "RSS ă‚žă‚§ăƒăƒŹăƒŒă‚żă«ăŻé€šćžž 2 ă€ăźăƒ•ă‚©ăƒŒăƒžăƒƒăƒˆăŒă‚ă‚ŠăŸă™ă€‚ćż…èŠă«ćżœă˜ăŠä»„äž‹ăź XML および JSON ăƒ•ă‚©ăƒŒăƒžăƒƒăƒˆă‚’ă‚łăƒ”ăƒŒă—ăŠăă ă•ă„ă€‚", + "feed_claim_modal.rss_instructions": "ä»„äž‹ăźă‚łăƒŒăƒ‰ă‚’ă‚łăƒ”ăƒŒă—ă€RSS ă‚žă‚§ăƒăƒŹăƒŒă‚żă«èČŒă‚Šä»˜ă‘ăŠăă ă•ă„ă€‚", + "feed_claim_modal.rss_json_format": "JSON ăƒ•ă‚©ăƒŒăƒžăƒƒăƒˆ", + "feed_claim_modal.rss_xml_format": "XML ăƒ•ă‚©ăƒŒăƒžăƒƒăƒˆ", + "feed_claim_modal.rsshub_notice": "ă“ăźăƒ•ă‚ŁăƒŒăƒ‰ăŻ RSSHub ă«ă‚ˆăŁăŠæäŸ›ă•ă‚ŒăŠăŠă‚Šă€ă‚­ăƒŁăƒƒă‚·ăƒ„æ™‚é–“ăŻ 1 æ™‚é–“ă§ă™ă€‚ă‚łăƒłăƒ†ăƒłăƒ„ăźć€‰æ›ŽăŒćæ˜ ă•ă‚Œă‚‹ăŸă§æœ€ć€§ 1 æ™‚é–“ă‹ă‹ă‚‹ć ŽćˆăŒă‚ă‚ŠăŸă™ă€‚", + "feed_claim_modal.tab_content": "コンテンツ", + "feed_claim_modal.tab_description": "èȘŹæ˜Ž", + "feed_claim_modal.tab_rss": "RSS タグ", + "feed_claim_modal.verify_ownership": "ă“ăźăƒ•ă‚ŁăƒŒăƒ‰ă‚’è‡Șćˆ†ăźă‚‚ăźăšă—ăŠă‚ŻăƒŹăƒŒăƒ ă™ă‚‹ă«ăŻă€æ‰€æœ‰æš©ă‚’çąșèȘă™ă‚‹ćż…èŠăŒă‚ă‚ŠăŸă™ă€‚", + "feed_form.add_follow": "ăƒ•ă‚©ăƒ­ăƒŒă‚’èżœćŠ ", + "feed_form.category": "ă‚«ăƒ†ă‚ŽăƒȘăƒŒ", + "feed_form.category_description": "ăƒ‡ăƒ•ă‚©ăƒ«ăƒˆă§ăŻă€ăƒ•ă‚©ăƒ­ăƒŒăŻă‚Šă‚§ăƒ–ă‚”ă‚€ăƒˆă”ăšă«ă‚°ăƒ«ăƒŒăƒ—ćŒ–ă•ă‚ŒăŸă™ă€‚", + "feed_form.error_fetching_feed": "ăƒ•ă‚ŁăƒŒăƒ‰ăźć–ćŸ—ă«ć€±æ•—ă—ăŸă—ăŸă€‚", + "feed_form.feed_not_found": "ăƒ•ă‚ŁăƒŒăƒ‰ăŒèŠ‹ă€ă‹ă‚ŠăŸă›ă‚“ă€‚", + "feed_form.feedback": "ăƒ•ă‚ŁăƒŒăƒ‰ăƒăƒƒă‚Ż", + "feed_form.follow": "ăƒ•ă‚©ăƒ­ăƒŒ", + "feed_form.followed": "🎉 ăƒ•ă‚©ăƒ­ăƒŒă—ăŸă—ăŸă€‚", + "feed_form.private_follow": "ăƒ—ăƒ©ă‚€ăƒ™ăƒŒăƒˆăƒ•ă‚©ăƒ­ăƒŒ", + "feed_form.private_follow_description": "ă“ăźăƒ•ă‚©ăƒ­ăƒŒăŒă‚ăȘăŸăźăƒ—ăƒ­ăƒ•ă‚ŁăƒŒăƒ«ăƒšăƒŒă‚žă«ć…Źé–‹ă•ă‚Œă‚‹ă‹ă©ă†ă‹ă€‚", + "feed_form.retry": "ć†è©ŠèĄŒ", + "feed_form.title": "ă‚żă‚€ăƒˆăƒ«", + "feed_form.title_description": "ă“ăźăƒ•ă‚ŁăƒŒăƒ‰ăźă‚«ă‚čă‚żăƒ ă‚żă‚€ăƒˆăƒ«ă€‚ăƒ‡ăƒ•ă‚©ăƒ«ăƒˆă‚’äœżç”šă™ă‚‹ă«ăŻç©șç™œăźăŸăŸă«ă—ăŠăă ă•ă„ă€‚", + "feed_form.unfollow": "ăƒ•ă‚©ăƒ­ăƒŒè§Łé™€", + "feed_form.update": "曎新", + "feed_form.update_follow": "ăƒ•ă‚©ăƒ­ăƒŒă‚’æ›Žæ–°", + "feed_form.updated": "🎉 æ›Žæ–°ă•ă‚ŒăŸă—ăŸă€‚", + "feed_form.view": "èĄšç€ș", + "feed_item.claimed_by_owner": "ă“ăźăƒ•ă‚ŁăƒŒăƒ‰ăŻ", + "feed_item.claimed_by_unknown": "ăăźæ‰€æœ‰è€…ă«ă‚ˆăŁăŠă‚ŻăƒŹăƒŒăƒ ă•ă‚ŒăŠă„ăŸă™ă€‚", + "feed_item.claimed_by_you": "あăȘăŸă«ă‚ˆăŁăŠă‚ŻăƒŹăƒŒăƒ ă•ă‚ŒăŠă„ăŸă™", + "feed_item.claimed_feed": "ă‚ŻăƒŹăƒŒăƒ ă•ă‚ŒăŸăƒ•ă‚ŁăƒŒăƒ‰", + "feed_item.error_since": "ă‚šăƒ©ăƒŒç™șç”Ÿæ™‚ćˆ»", + "feed_item.not_publicly_visible": "ăƒ—ăƒ­ăƒ•ă‚ŁăƒŒăƒ«ăƒšăƒŒă‚žă«ć…Źé–‹ă•ă‚ŒăŠă„ăŸă›ă‚“", + "feed_view_type.articles": "蚘äș‹", + "feed_view_type.audios": "ă‚ȘăƒŒăƒ‡ă‚Łă‚Ș", + "feed_view_type.notifications": "通矄", + "feed_view_type.pictures": "ç”»ćƒ", + "feed_view_type.social_media": "ă‚œăƒŒă‚·ăƒŁăƒ«ăƒĄăƒ‡ă‚Łă‚ą", + "feed_view_type.videos": "ć‹•ç”»", + "mark_all_read_button.auto_confirm_info": "3 ç§’ćŸŒă«è‡Ș拕的にçąșèȘă•ă‚ŒăŸă™ă€‚", + "mark_all_read_button.confirm": "çąșèȘ", + "mark_all_read_button.confirm_mark_all": "{{which}}ă‚’æ—ąèȘ­ă«ă—ăŸă™ă‹ïŒŸ", + "mark_all_read_button.confirm_mark_all_info": "すăčăŠă‚’æ—ąèȘ­ă«ă—ăŸă™ă‹ïŒŸ", + "mark_all_read_button.mark_all_as_read": "すăčăŠă‚’æ—ąèȘ­ă«ă™ă‚‹", + "mark_all_read_button.mark_as_read": "{{which}}ă‚’æ—ąèȘ­ă«ă™ă‚‹", + "mark_all_read_button.undo": "ć…ƒă«æˆ»ă™", + "player.back_10s": "10 ç§’æˆ»ă‚‹", + "player.close": "閉じる", + "player.download": "ăƒ€ă‚Šăƒłăƒ­ăƒŒăƒ‰", + "player.exit_full_screen": "ăƒ•ăƒ«ă‚čクăƒȘăƒŒăƒłă‚’ç”‚äș†", + "player.forward_10s": "10 秒é€Čむ", + "player.full_screen": "ăƒ•ăƒ«ă‚čクăƒȘăƒŒăƒł", + "player.mute": "ăƒŸăƒ„ăƒŒăƒˆ", + "player.open_entry": "スントăƒȘを開く", + "player.pause": "äž€æ™‚ćœæ­ą", + "player.play": "憍生", + "player.playback_rate": "憍生速ćșŠ", + "player.unmute": "ăƒŸăƒ„ăƒŒăƒˆè§Łé™€", + "player.volume": "音量", + "search.empty.no_results": "ç”æžœăŒèŠ‹ă€ă‹ă‚ŠăŸă›ă‚“ă§ă—ăŸă€‚", + "search.group.entries": "スントăƒȘ", + "search.group.feeds": "ăƒ•ă‚ŁăƒŒăƒ‰", + "search.options.all": "すăčお", + "search.options.entries": "スントăƒȘ", + "search.options.feeds": "ăƒ•ă‚ŁăƒŒăƒ‰", + "search.options.search_type": "æ€œçŽąă‚żă‚€ăƒ—", + "search.placeholder": "æ€œçŽą...", + "search.result_count_local_mode": "ïŒˆăƒ­ăƒŒă‚«ăƒ«ăƒąăƒŒăƒ‰ïŒ‰", + "search.tooltip.local_search": "ă“ăźæ€œçŽąăŻă€ăƒ­ăƒŒă‚«ăƒ«ă§ćˆ©ç”šćŻèƒœăȘăƒ‡ăƒŒă‚żă‚’ćŻŸè±Ąăšă—ăŠă„ăŸă™ă€‚æœ€æ–°ăƒ‡ăƒŒă‚żă‚’ć«ă‚ă‚‹ăŸă‚ă«ć†ć–ćŸ—ă‚’è©Šă—ăŠăă ă•ă„ă€‚", + "shortcuts.guide.title": "ă‚·ăƒ§ăƒŒăƒˆă‚«ăƒƒăƒˆă‚Źă‚€ăƒ‰ăƒ©ă‚€ăƒł", + "sidebar.category_remove_dialog.cancel": "ă‚­ăƒŁăƒłă‚»ăƒ«", + "sidebar.category_remove_dialog.continue": "ç¶šèĄŒ", + "sidebar.category_remove_dialog.description": "ă“ăźæ“äœœă«ă‚ˆă‚Šă‚«ăƒ†ă‚ŽăƒȘăƒŒăŒć‰Šé™€ă•ă‚ŒăŸă™ăŒă€ć«ăŸă‚ŒăŠă„ă‚‹ăƒ•ă‚ŁăƒŒăƒ‰ăŻäżæŒă•ă‚Œă€ă‚Šă‚§ăƒ–ă‚”ă‚€ăƒˆă”ăšă«ă‚°ăƒ«ăƒŒăƒ—ćŒ–ă•ă‚ŒăŸă™ă€‚", + "sidebar.category_remove_dialog.title": "ă‚«ăƒ†ă‚ŽăƒȘăƒŒă‚’ć‰Šé™€", + "sidebar.feed_actions.claim": "ă‚ŻăƒŹăƒŒăƒ ", + "sidebar.feed_actions.claim_feed": "ăƒ•ă‚ŁăƒŒăƒ‰ă‚’ă‚ŻăƒŹăƒŒăƒ ", + "sidebar.feed_actions.copy_feed_id": "ăƒ•ă‚ŁăƒŒăƒ‰ ID ă‚’ă‚łăƒ”ăƒŒ", + "sidebar.feed_actions.copy_feed_url": "ăƒ•ă‚ŁăƒŒăƒ‰ URL ă‚’ă‚łăƒ”ăƒŒ", + "sidebar.feed_actions.edit": "線集", + "sidebar.feed_actions.edit_feed": "ăƒ•ă‚ŁăƒŒăƒ‰ă‚’ç·šé›†", + "sidebar.feed_actions.feed_owned_by_you": "ă“ăźăƒ•ă‚ŁăƒŒăƒ‰ăŻă‚ăȘăŸăŒæ‰€æœ‰ă—ăŠă„ăŸă™", + "sidebar.feed_actions.mark_all_as_read": "すăčăŠă‚’æ—ąèȘ­ă«ă™ă‚‹", + "sidebar.feed_actions.navigate_to_feed": "ăƒ•ă‚ŁăƒŒăƒ‰ă«ç§»ć‹•", + "sidebar.feed_actions.open_feed_in_browser": "ăƒ–ăƒ©ă‚Šă‚¶ă§ăƒ•ă‚ŁăƒŒăƒ‰ă‚’é–‹ă", + "sidebar.feed_actions.open_site_in_browser": "ăƒ–ăƒ©ă‚Šă‚¶ă§ă‚”ă‚€ăƒˆă‚’é–‹ă", + "sidebar.feed_actions.unfollow": "ăƒ•ă‚©ăƒ­ăƒŒè§Łé™€", + "sidebar.feed_actions.unfollow_feed": "ăƒ•ă‚ŁăƒŒăƒ‰ăźăƒ•ă‚©ăƒ­ăƒŒă‚’è§Łé™€", + "sidebar.feed_column.context_menu.change_to_other_view": "ä»–ăźăƒ“ăƒ„ăƒŒă«ćˆ‡ă‚Šæ›żăˆ", + "sidebar.feed_column.context_menu.delete_category": "ă‚«ăƒ†ă‚ŽăƒȘăƒŒă‚’ć‰Šé™€", + "sidebar.feed_column.context_menu.delete_category_confirmation": "ă‚«ăƒ†ă‚ŽăƒȘăƒŒ{{folderName}}ă‚’ć‰Šé™€ă—ăŸă™ă‹ïŒŸ", + "sidebar.feed_column.context_menu.mark_as_read": "æ—ąèȘ­ă«ă™ă‚‹", + "sidebar.feed_column.context_menu.rename_category": "ă‚«ăƒ†ă‚ŽăƒȘăƒŒăźćć‰ă‚’ć€‰æ›Ž", + "sidebar.select_sort_method": "䞊ăčæ›żăˆæ–čæł•ă‚’éžæŠž", + "signin.continue_with_github": "GitHub で続ける", + "signin.continue_with_google": "Google で続ける", + "signin.sign_in_to": "ă‚”ă‚€ăƒłă‚€ăƒł", + "sync_indicator.disabled": "ă‚»ă‚­ăƒ„ăƒȘăƒ†ă‚ŁäžŠăźç†ç”±ă«ă‚ˆă‚Šă€ćŒæœŸăŻç„ĄćŠčにăȘăŁăŠă„ăŸă™ă€‚", + "sync_indicator.offline": "ă‚Șăƒ•ăƒ©ă‚€ăƒł", + "sync_indicator.synced": "ă‚”ăƒŒăƒăƒŒăšćŒæœŸæžˆăż", + "tip_modal.amount": "金額", + "tip_modal.claim_feed": "ă“ăźăƒ•ă‚ŁăƒŒăƒ‰ă‚’ă‚ŻăƒŹăƒŒăƒ ", + "tip_modal.create_wallet": "ç„Ąæ–™ă§äœœæˆ", + "tip_modal.feed_owner": "ăƒ•ă‚ŁăƒŒăƒ‰ăźæ‰€æœ‰è€…", + "tip_modal.low_balance": "ă“ăźăƒăƒƒăƒ—ă‚’ă‚«ăƒăƒŒă™ă‚‹ă«ăŻæź‹é«˜ăŒäžè¶łă—ăŠă„ăŸă™ă€‚é‡‘éĄă‚’èȘżæ•Žă—ăŠăă ă•ă„ă€‚", + "tip_modal.no_wallet": "ăŸă ă‚Šă‚©ăƒŹăƒƒăƒˆăŒă‚ă‚ŠăŸă›ă‚“ă€‚ă‚Šă‚©ăƒŹăƒƒăƒˆă‚’äœœæˆă—ăŠăƒăƒƒăƒ—ă‚’é€äżĄă—ăŠăă ă•ă„ă€‚", + "tip_modal.tip_amount_sent": "ăŒäœœè€…ă«é€äżĄă•ă‚ŒăŸă—ăŸă€‚", + "tip_modal.tip_now": "ä»Šă™ăăƒăƒƒăƒ—", + "tip_modal.tip_sent": "ăƒăƒƒăƒ—ăŒæ­Łćžžă«é€äżĄă•ă‚ŒăŸă—ăŸïŒă”æ”ŻæŽă‚ă‚ŠăŒăšă†ă”ă–ă„ăŸă™ă€‚", + "tip_modal.tip_support": "⭐ ă‚”ăƒăƒŒăƒˆă‚’ç€șă™ăŸă‚ă«ăƒăƒƒăƒ—ă‚’é€ă‚‹ïŒ", + "tip_modal.unclaimed_feed": "ă“ăźăƒ•ă‚ŁăƒŒăƒ‰ăŻăŸă èȘ°ă«ă‚‚ă‚ŻăƒŹăƒŒăƒ ă•ă‚ŒăŠă„ăŸă›ă‚“ă€‚ć—ă‘ć–ăŁăŸ Power ăŻă€ăƒ•ă‚ŁăƒŒăƒ‰ăŒă‚ŻăƒŹăƒŒăƒ ă•ă‚Œă‚‹ăŸă§ăƒ–ăƒ­ăƒƒă‚Żăƒă‚§ăƒŒăƒłć„‘çŽ„ă§ćź‰ć…šă«äżæŒă•ă‚ŒăŸă™ă€‚", + "user_button.account": "ă‚ąă‚«ă‚Šăƒłăƒˆ", + "user_button.download_desktop_app": "デă‚čクトップケプăƒȘă‚’ăƒ€ă‚Šăƒłăƒ­ăƒŒăƒ‰", + "user_button.log_out": "ログケォト", + "user_button.power": "Power", + "user_button.preferences": "èš­ćźš", + "user_button.profile": "ăƒ—ăƒ­ăƒ•ă‚ŁăƒŒăƒ«", + "user_profile.close": "閉じる", + "user_profile.edit": "線集", + "user_profile.loading": "èȘ­ăżèŸŒăżäž­", + "user_profile.share": "ć…±æœ‰", + "user_profile.toggle_item_style": "ă‚ąă‚€ăƒ†ăƒ ă‚čă‚żă‚€ăƒ«ă‚’ćˆ‡ă‚Šæ›żăˆ", + "words.add": "èżœćŠ ", + "words.confirm": "çąșèȘ", + "words.discover": "ç™ș芋", + "words.email": "ăƒĄăƒŒăƒ«", + "words.import": "ă‚€ăƒłăƒăƒŒăƒˆ", + "words.items": "ă‚ąă‚€ăƒ†ăƒ ", + "words.language": "蚀èȘž", + "words.load_archived_entries": "ă‚ąăƒŒă‚«ă‚€ăƒ–ă•ă‚ŒăŸă‚šăƒłăƒˆăƒȘをèȘ­ăżèŸŒă‚€", + "words.login": "ăƒ­ă‚°ă‚€ăƒł", + "words.rss": "RSS", + "words.rss3": "RSS3", + "words.rsshub": "RSSHub", + "words.search": "æ€œçŽą", + "words.starred": "ă‚čă‚żăƒŒä»˜ă", + "words.unread": "æœȘèȘ­", + "words.user": "ăƒŠăƒŒă‚¶ăƒŒ", + "words.which.all": "すăčお", + "words.zero_items": "ă‚ąă‚€ăƒ†ăƒ ăŒă‚ă‚ŠăŸă›ă‚“" +} diff --git a/locales/app/zh-CN.json b/locales/app/zh-CN.json new file mode 100644 index 000000000..05f46e4a1 --- /dev/null +++ b/locales/app/zh-CN.json @@ -0,0 +1,208 @@ +{ + "ai_daily.title": "热ç‚č - {{title}}", + "ai_daily.tooltip.content": "AI æ čæźæ—¶é—ŽçșżïŒˆ - ïŒ‰æć–çš„é‡ç‚čäżĄæŻ", + "ai_daily.tooltip.update_schedule": "æŻć€© 8:00 撌 20:00 ćźšæ—¶æ›Žæ–°", + "app.copy_logo_svg": "ć€ćˆ¶ Logo SVG", + "app.toggle_sidebar": "ćˆ‡æąäŸ§èŸč栏", + "discover.any_url_or_keyword": "ä»»æ„é“ŸæŽ„æˆ–ć…łé”źèŻ", + "discover.default_option": " (é»˜èź€)", + "discover.feed_description": "æ čæźæèż°ćźŒć–„ç›źæ ‡èźąé˜…æșçš„ç›žć…łäżĄæŻ", + "discover.feed_maintainers": "由 RSSHub æäŸ›ïŒŒæ„Ÿè°ąèŽĄçŒźè€… ", + "discover.import.click_to_upload": "ćŻŒć…„ OPML 文件", + "discover.popular": "热闹", + "discover.preview": "éą„è§ˆ", + "discover.rss_hub_route": "RSSHub è·Żç”±", + "discover.rss_url": "RSS URL", + "discover.select_placeholder": "选择", + "early_access": "éą„è§ˆç‰ˆæœŹ", + "entry_actions.copy_link": "ć€ćˆ¶é“ŸæŽ„", + "entry_actions.failed_to_save_to_eagle": "保歘戰 Eagle ć€±èŽ„", + "entry_actions.failed_to_save_to_instapaper": "保歘戰 Instapaper ć€±èŽ„", + "entry_actions.failed_to_save_to_readwise": "保歘戰 Readwise ć€±èŽ„", + "entry_actions.link_copied": "铟掄ć·Čć€ćˆ¶ćˆ°ć‰ȘèŽŽæż", + "entry_actions.mark_as_read": "æ ‡èź°äžșć·ČèŻ»", + "entry_actions.mark_as_unread": "æ ‡èź°äžșæœȘèŻ»", + "entry_actions.open_in_browser": "ćœšæ”è§ˆć™šæ‰“ćŒ€", + "entry_actions.save_media_to_eagle": "保歘戰 Eagle", + "entry_actions.save_to_instapaper": "保歘戰 Instapaper", + "entry_actions.save_to_readwise": "保歘戰 Readwise", + "entry_actions.saved_to_eagle": "保歘戰 Eagle", + "entry_actions.saved_to_instapaper": "保歘戰 Instapaper.", + "entry_actions.saved_to_readwise": "保歘戰 Readwise.", + "entry_actions.share": "戆äș«", + "entry_actions.star": "收藏", + "entry_actions.starred": "ć·Č收藏", + "entry_actions.tip": "打蔏", + "entry_actions.unstar": "ć–æ¶ˆæ”¶è—", + "entry_actions.unstarred": "ć–æ¶ˆæ”¶è—", + "entry_column.filtered_content_tip": "郹戆憅ćźčć·Čèą«èż‡æ»€éšè—", + "entry_column.filtered_content_tip_2": "陀äș†äžŠéąæ˜Ÿç€ș的憅ćźčć€–ïŒŒèż˜æœ‰äž€äș›èą«èż‡æ»€çš„憅ćźč", + "entry_column.refreshing": "æ­Łćœšćˆ·æ–°", + "entry_content.ai_summary": "AI 总结", + "entry_content.fetching_content": "æ­ŁćœšćŠ èœœ...", + "entry_content.header.play_tts": "æ’­æ”Ÿæ–‡æœŹèœŹèŻ­éŸł", + "entry_content.header.readability": "é˜…èŻ»æšĄćŒ", + "entry_content.no_content": "æČĄæœ‰ć†…ćźč", + "entry_content.readability_notice": "由 Readability 提䟛\nè‹„ć†…ćźčæˆ–æŽ’ç‰ˆćŒ‚ćžžïŒŒèŻ·ć‰ćŸ€ćŽŸć§‹ç«™ç‚č柄看", + "entry_content.render_error": "æžČæŸ“é”™èŻŻïŒš", + "entry_content.report_issue": "揍驈闼鱘", + "entry_content.web_app_notice": "çœ‘éĄ”ç‰ˆäžæ”ŻæŒć±•ç€șèŻ„ç±»ćž‹ïŒŒèŻ·äž‹èœœćźąæˆ·ç«ŻæŸ„çœ‹", + "entry_list.zero_unread": "慹郹ć·ČèŻ»", + "entry_list_header.daily_report": "æŻæ—„æ€»ç»“", + "entry_list_header.hide_no_image_items": "隐藏æČĄæœ‰ć›Ÿç‰‡çš„æĄç›ź", + "entry_list_header.items": "憅ćźč", + "entry_list_header.new_entries_available": "æœ‰æ–°ć†…ćźč", + "entry_list_header.refetch": "ćˆ·æ–°", + "entry_list_header.refresh": "ćˆ·æ–°", + "entry_list_header.show_all": "星ç€ș慹郹", + "entry_list_header.show_all_items": "星ç€șć…šéƒšæĄç›ź", + "entry_list_header.show_unread_only": "仅星ç€șæœȘèŻ»", + "entry_list_header.switch_to_grid": "ćˆ‡æąćˆ°çœ‘æ Œ", + "entry_list_header.switch_to_masonry": "ćˆ‡æąćˆ°ç€‘ćžƒæ”", + "entry_list_header.unread": "æœȘèŻ»", + "feed_claim_modal.choose_verification_method": "æäŸ›äž‰ç§èź€èŻæ–čćŒïŒŒé€‰æ‹©ć…¶äž­äž€ç§ç»§ç»­ïŒš", + "feed_claim_modal.claim_button": "èź€èŻ", + "feed_claim_modal.content_instructions": "ć€ćˆ¶ä»„äž‹ć†…ćźčïŒŒć‘ćžƒćˆ°éœ€èŠèź€èŻçš„èźąé˜…æș", + "feed_claim_modal.description_current": "ćœ“ć‰æèż°:", + "feed_claim_modal.description_instructions": "ć€ćˆ¶ä»„äž‹ć†…ćźčïŒŒæ·»ćŠ ćˆ°éœ€èŠèź€èŻçš„èźąé˜…æșçš„ ć­—æź”ć†…", + "feed_claim_modal.failed_to_load": "ćŠ èœœèź€èŻæ•°æźć€±èŽ„", + "feed_claim_modal.rss_format_choice": "RSSç”Ÿæˆć™šé€šćžžæœ‰äž€ç§æ ŒćŒćŻäŸ›é€‰æ‹©ïŒŒæ čæźéœ€èŠć€ćˆ¶äž‹éąć†…ćźč", + "feed_claim_modal.rss_instructions": "ć€ćˆ¶ä»„äž‹ć†…ćźčćč¶çČ˜èŽŽćˆ°ćŻčćș”çš„ RSS ç”Ÿæˆć·„ć…·", + "feed_claim_modal.rss_json_format": "JSON æ ŒćŒ", + "feed_claim_modal.rss_xml_format": "XML æ ŒćŒ", + "feed_claim_modal.rsshub_notice": "èźąé˜…æșç”± RSSHub æäŸ›ïŒŒçŒ“ć­˜æ—¶é—Žäžș 1 ć°æ—¶ïŒŒäżĄæŻćŻèƒœäŒšæœ‰æœ€ć€š 1 ć°æ—¶çš„ć»¶èżŸ", + "feed_claim_modal.tab_content": "憅ćźč", + "feed_claim_modal.tab_description": "æèż°", + "feed_claim_modal.tab_rss": "RSS 标筟", + "feed_claim_modal.verify_ownership": "ćźŒæˆèźąé˜…æșæ‰€æœ‰æƒéȘŒèŻïŒŒèŻæ˜Žæșç”±äœ æäŸ›", + "feed_form.add_follow": "æ–°ćąžèźąé˜…", + "feed_form.category": "ćˆ†ç±»", + "feed_form.category_description": "é»˜èź€æŒ‰ç…§çœ‘ç«™ćˆ†ç±»", + "feed_form.error_fetching_feed": "èŽ·ć–èźąé˜…æșć‡ș错", + "feed_form.feed_not_found": "æœȘæ‰Ÿćˆ°èźąé˜…æș", + "feed_form.feedback": "揍驈", + "feed_form.follow": "èźąé˜…", + "feed_form.followed": "🎉 èźąé˜…æˆćŠŸ", + "feed_form.private_follow": "ç§ćŻ†èźąé˜…", + "feed_form.private_follow_description": "ćŒ€ćŻćŽïŒŒèŻ„èźąé˜…äžć†æ˜Ÿç€ș朹äžȘäșș䞻饔", + "feed_form.retry": "é‡èŻ•", + "feed_form.title": "æ ‡éą˜", + "feed_form.title_description": "è‡Ș漚ä艿 ‡éą˜ïŒŒç•™ç©șćˆ™äœżç”šé»˜èź€æ ‡éą˜", + "feed_form.unfollow": "ć–æ¶ˆèźąé˜…", + "feed_form.update": "曎新", + "feed_form.update_follow": "æ›Žæ–°èźąé˜…", + "feed_form.updated": "🎉 èźąé˜…æ›Žæ–°æˆćŠŸ", + "feed_form.view": "è§†ć›Ÿ", + "feed_item.claimed_by_owner": "èźąé˜…æșæ‰€æœ‰è€…", + "feed_item.claimed_by_unknown": "æœȘ矄所有者", + "feed_item.claimed_by_you": "èźąé˜…æșç”±äœ æäŸ›", + "feed_item.claimed_feed": "ć·Čèź€èŻæș", + "feed_item.error_since": "æșć€±æ•ˆïŒš", + "feed_item.not_publicly_visible": "朹äžȘäșșè”„æ–™éĄ”éąäžŠéšè—", + "feed_view_type.articles": "文章", + "feed_view_type.audios": "音鱑", + "feed_view_type.notifications": "通矄", + "feed_view_type.pictures": "ć›Ÿç‰‡", + "feed_view_type.social_media": "瀟äș€ćȘ’䜓", + "feed_view_type.videos": "è§†éą‘", + "mark_all_read_button.auto_confirm_info": "3 秒搎è‡ȘćŠšçĄźèź€", + "mark_all_read_button.confirm": "çĄźèź€", + "mark_all_read_button.confirm_mark_all": "氆 {{which}} æ ‡èź°äžșć·ČèŻ»ïŒŸ", + "mark_all_read_button.confirm_mark_all_info": "çĄźèź€ć°†ć…šéƒšæ ‡èź°äžșć·ČèŻ»ïŒŸ", + "mark_all_read_button.mark_all_as_read": "ć…šéƒšæ ‡èź°äžșć·ČèŻ»", + "mark_all_read_button.mark_as_read": "æ ‡èź° {{which}} äžșć·ČèŻ»", + "mark_all_read_button.undo": "撀销", + "player.back_10s": "搎退 10s", + "player.close": "慳闭", + "player.download": "䞋蜜", + "player.exit_full_screen": "退ć‡șć…šć±", + "player.forward_10s": "ćż«èż› 10s", + "player.full_screen": "èż›ć…„ć…šć±", + "player.mute": "静音", + "player.open_entry": "è·łèœŹćˆ°æĄç›ź", + "player.pause": "æš‚ćœ", + "player.play": "播攟", + "player.playback_rate": "播攟速ćșŠ", + "player.unmute": "ć–æ¶ˆé™éŸł", + "player.volume": "音量", + "search.empty.no_results": "æœçŽąç»“æžœäžșç©ș", + "search.group.entries": "æĄç›ź", + "search.group.feeds": "èźąé˜…æș", + "search.options.all": "慹郹", + "search.options.entries": "æĄç›ź", + "search.options.feeds": "èźąé˜…æș", + "search.options.search_type": "æœçŽąç±»ćž‹", + "search.placeholder": "æœçŽą...", + "search.result_count_local_mode": "ïŒˆæœŹćœ°æšĄćŒïŒ‰", + "search.tooltip.local_search": "ćœ“ć‰æœçŽąä»…ćŒ…ć«æœŹćœ°ćŻç”šæ•°æźïŒŒć°èŻ•é‡æ–°æœçŽąćŸ—ćˆ°æ›Žć€šç»“æžœ", + "shortcuts.guide.title": "ćż«æ·é”źæŒ‡ć—", + "sidebar.category_remove_dialog.cancel": "ć–æ¶ˆ", + "sidebar.category_remove_dialog.continue": "ç»§ç»­", + "sidebar.category_remove_dialog.description": "æ­Łćœšćˆ é™€ćˆ†ç±»ïŒŒæ“äœœćŽä»äżç•™èźąé˜…æșćč¶æŒ‰çœ‘ç«™ćˆ†ç»„", + "sidebar.category_remove_dialog.title": "ćˆ é™€ćˆ†ç±»", + "sidebar.feed_actions.claim": "èź€èŻ", + "sidebar.feed_actions.claim_feed": "èź€èŻèźąé˜…", + "sidebar.feed_actions.copy_feed_id": "ć€ćˆ¶ ID", + "sidebar.feed_actions.copy_feed_url": "ć€ćˆ¶é“ŸæŽ„", + "sidebar.feed_actions.edit": "猖蟑", + "sidebar.feed_actions.edit_feed": "çŒ–èŸ‘èźąé˜…", + "sidebar.feed_actions.feed_owned_by_you": "èŻ„èźąé˜…æșćœ’䜠所有", + "sidebar.feed_actions.mark_all_as_read": "ć…šéƒšæ ‡èź°äžșć·ČèŻ»", + "sidebar.feed_actions.navigate_to_feed": "è·łèœŹè‡ł", + "sidebar.feed_actions.open_feed_in_browser": "ćœšæ”è§ˆć™šæ‰“ćŒ€èźąé˜…æș", + "sidebar.feed_actions.open_site_in_browser": "ćœšæ”è§ˆć™šæ‰“ćŒ€çœ‘ç«™", + "sidebar.feed_actions.unfollow": "ć–æ¶ˆèźąé˜…", + "sidebar.feed_actions.unfollow_feed": "ć–æ¶ˆèźąé˜…", + "sidebar.feed_column.context_menu.change_to_other_view": "曎æ”čäžșć…¶ä»–è§†ć›Ÿ", + "sidebar.feed_column.context_menu.delete_category": "ćˆ é™€ćˆ†ç±»", + "sidebar.feed_column.context_menu.delete_category_confirmation": "ćˆ é™€ćˆ†ç±» {{folderName}}", + "sidebar.feed_column.context_menu.mark_as_read": "æ ‡èź°äžșć·ČèŻ»", + "sidebar.feed_column.context_menu.rename_category": "é‡ć‘œććˆ†ç±»", + "sidebar.select_sort_method": "选择排ćșæ–čæł•", + "signin.continue_with_github": "äœżç”š GitHub ç™»ćœ•", + "signin.continue_with_google": "äœżç”š Google ç™»ćœ•", + "signin.sign_in_to": "ç™»ćœ•ćˆ°", + "sync_indicator.disabled": "由äșŽäżĄæŻćź‰ć…šćˆè§„é—źéą˜ïŒŒè‡ȘćŠšćŒæ­„ć·Č穁甹", + "sync_indicator.offline": "犻çșż", + "sync_indicator.synced": "ć·ČćŒæ­„è‡łäș‘端", + "tip_modal.amount": "数量", + "tip_modal.claim_feed": "èź€èŻèŻ„èźąé˜…æș", + "tip_modal.create_wallet": "慍èŽč戛ć»ș", + "tip_modal.feed_owner": "èźąé˜…æșæ‰€æœ‰è€…", + "tip_modal.low_balance": "é’±ćŒ…é‡ŒæČĄæœ‰è¶łć€Ÿçš„æ•°é‡ćꌿˆæ‰“è”ïŒŒèŻ·è°ƒæ•Žæ‰“è”æ•°é‡", + "tip_modal.no_wallet": "ćœ“ć‰æČĄæœ‰é’±ćŒ…ïŒŒćˆ›ć»șé’±ćŒ…ç»§ç»­ćźŒæˆæ‰“è”", + "tip_modal.tip_amount_sent": "ć‘é€ç»™äœœè€…", + "tip_modal.tip_now": "ç«‹ćłæ‰“è”", + "tip_modal.tip_sent": "æˆćŠŸæ‰“è”ïŒæ„Ÿè°ąæ”ŻæŒ", + "tip_modal.tip_support": "⭐ æ‰“è”èĄšç€șæ”ŻæŒ!", + "tip_modal.unclaimed_feed": "èż™äžȘèźąé˜…æșèż˜æČĄæœ‰èą«èź€èŻïŒŒæ”¶ćˆ°çš„ Power ć°†ć­˜æ”ŸćœšćŒșć—é“Ÿç›Žćˆ°æșæ‰€æœ‰è€…ćꌿˆèź€è݁", + "user_button.account": "èŽŠć·", + "user_button.download_desktop_app": "äž‹èœœćźąæˆ·ç«Ż", + "user_button.log_out": "登ć‡ș", + "user_button.power": "Power", + "user_button.preferences": "èźŸçœź", + "user_button.profile": "äžȘäșș蔄料", + "user_profile.close": "慳闭", + "user_profile.edit": "猖蟑", + "user_profile.loading": "ćŠ èœœäž­", + "user_profile.share": "戆äș«", + "user_profile.toggle_item_style": "ćˆ‡æąćˆ—èĄšæ ·ćŒ", + "words.add": "æ·»ćŠ ", + "words.confirm": "çĄźèź€", + "words.discover": "揑现", + "words.email": "邟矱", + "words.import": "ćŻŒć…„", + "words.items": "憅ćźč", + "words.language": "èŻ­èš€", + "words.load_archived_entries": "ćŠ èœœć·Čćœ’æĄŁæĄç›ź", + "words.login": "ç™»ćœ•", + "words.rss": "RSS", + "words.rss3": "RSS3", + "words.rsshub": "RSSHub", + "words.search": "æœçŽą", + "words.starred": "收藏", + "words.unread": "æœȘèŻ»", + "words.user": "甚户", + "words.which.all": "慹郹", + "words.zero_items": "æČĄæœ‰ć†…ćźč" +} diff --git a/locales/app/zh-TW.json b/locales/app/zh-TW.json new file mode 100644 index 000000000..17dcd7111 --- /dev/null +++ b/locales/app/zh-TW.json @@ -0,0 +1,207 @@ +{ + "ai_daily.title": "é ­æąæ–°èž - {{title}}", + "ai_daily.tooltip.content": "ä»„äž‹æ˜Ż AI ćŸžæ‚šçš„æ™‚é–“è»žäž­éžæ“‡çš„æ–°èžïŒˆ - ïŒ‰ïŒŒćŻèƒœć°æ‚šćŸˆé‡èŠă€‚", + "ai_daily.tooltip.update_schedule": "æŻć€©æ—©äžŠ 8 é»žć’Œæ™šäžŠ 8 é»žæ›Žæ–°ă€‚", + "app.app_name": "APP_NAME", + "app.copy_logo_svg": "è€‡èŁœ Logo SVG", + "app.toggle_sidebar": "ćˆ‡æ›ćŽé‚ŠæŹ„", + "discover.any_url_or_keyword": "任䜕 URL æˆ–é—œé”ć­—", + "discover.default_option": "預蚭", + "discover.feed_description": "æ­€ Feed 的èȘȘæ˜ŽćŠ‚äž‹ïŒŒæ‚šćŻä»„ćĄ«ćŻ«ćƒæ•žèĄšć–źäž­çš„ç›žé—œèł‡èšŠ", + "discover.feed_maintainers": "æ­€ Feed 由 RSSHub æäŸ›ïŒŒæ„ŸèŹ ", + "discover.import.click_to_upload": "é»žæ“ŠäžŠć‚ł OPML file 仄氎慄", + "discover.popular": "熱門", + "discover.preview": "預芜", + "discover.rss_hub_route": "RSSHub è·Żç”±", + "discover.rss_url": "RSS URL", + "discover.select_placeholder": "遞擇", + "early_access": "æ¶ć…ˆé«”é©—", + "entry_actions.copy_link": "è€‡èŁœé€Łç”", + "entry_actions.failed_to_save_to_eagle": "ç„Ąæł•ć„Č歘戰 Eagle。", + "entry_actions.failed_to_save_to_instapaper": "ç„Ąæł•ć„Č歘戰 Instapaper。", + "entry_actions.failed_to_save_to_readwise": "ç„Ąæł•ć„Č歘戰 Readwise。", + "entry_actions.link_copied": "連甐ć·Čè€‡èŁœćˆ°ć‰ȘèČŒç°żă€‚", + "entry_actions.mark_as_read": "暙蚘ç‚șć·Čèź€", + "entry_actions.mark_as_unread": "暙蚘ç‚șæœȘèź€", + "entry_actions.open_in_browser": "ćœšç€èŠœć™šäž­æ‰“é–‹", + "entry_actions.save_media_to_eagle": "ć„Č歘ćȘ’é«”è‡ł Eagle", + "entry_actions.save_to_instapaper": "ć„Č歘戰 Instapaper", + "entry_actions.save_to_readwise": "ć„Č歘戰 Readwise", + "entry_actions.saved_to_eagle": "ć·Čć„Čć­˜è‡ł Eagle。", + "entry_actions.saved_to_instapaper": "ć·Čć„Čć­˜è‡ł Instapaper。", + "entry_actions.saved_to_readwise": "ć·Čć„Čć­˜è‡ł Readwise。", + "entry_actions.share": "戆äș«", + "entry_actions.star": "收藏", + "entry_actions.starred": "ć·Č收藏", + "entry_actions.tip": "èŽŠćŠ©", + "entry_actions.unstar": "ć–æ¶ˆæ”¶è—", + "entry_actions.unstarred": "ć·Čć–æ¶ˆæ”¶è—", + "entry_column.refreshing": "æ­Łćœšæ›Žæ–°", + "entry_content.ai_summary": "AI 摘芁", + "entry_content.fetching_content": "æ­ŁćœšçČ揖掟構慧ćźč䞊處理  ", + "entry_content.header.play_tts": "播攟 TTS", + "entry_content.header.readability": "ćŻèź€", + "entry_content.no_content": "無慧ćźč", + "entry_content.readability_notice": "æ­€ć…§ćźč由 Readability æäŸ›ă€‚ćŠ‚æžœæ‚šç™ŒçŸæŽ’ç‰ˆç•°ćžžïŒŒè«‹èšȘć•äŸ†æșç¶Čç«™æŸ„çœ‹ćŽŸć§‹ć…§ćźč。", + "entry_content.render_error": "æžČæŸ“éŒŻèȘ€ïŒš", + "entry_content.report_issue": "ć ±ć‘Šć•éĄŒ", + "entry_content.web_app_notice": "Web æ‡‰ç”šçš‹ćŒäžæ”ŻæŽæ­€éĄžćž‹ć…§ćźčă€‚æ‚šćŻä»„äž‹èŒ‰æĄŒéąæ‡‰ç”šçš‹ćŒă€‚", + "entry_list.zero_unread": "零æœȘèź€", + "entry_list_header.daily_report": "æŻæ—„ć ±ć‘Š", + "entry_list_header.hide_no_image_items": "éš±è—ç„Ąćœ–æąç›ź", + "entry_list_header.items": "項盼", + "entry_list_header.new_entries_available": "æœ‰æ–°é …ç›źćŻç”š", + "entry_list_header.refetch": "重新çČ揖", + "entry_list_header.refresh": "重新敎理", + "entry_list_header.show_all": "饯ç€ș慹郹", + "entry_list_header.show_all_items": "饯ç€șæ‰€æœ‰æąç›ź", + "entry_list_header.show_unread_only": "情顯ç€șæœȘèź€", + "entry_list_header.switch_to_grid": "ćˆ‡æ›ćˆ°ç¶Čæ Œ", + "entry_list_header.switch_to_masonry": "ćˆ‡æ›ćˆ° Masonry", + "entry_list_header.unread": "æœȘèź€", + "feed_claim_modal.choose_verification_method": "æœ‰äž‰çšźé©—è­‰æ–čćŒïŒŒæ‚šćŻä»„éžæ“‡ć…¶äž­äž€çšźé€ČèĄŒé©—è­‰ă€‚", + "feed_claim_modal.claim_button": "èȘé ˜", + "feed_claim_modal.content_instructions": "è€‡èŁœä»„äž‹ć…§ćźčäžŠć°‡ć…¶ç™Œäœˆćˆ°æ‚šçš„æœ€æ–° RSS æ‘˜èŠäž­ă€‚", + "feed_claim_modal.description_current": "ç•¶ć‰æèż°ïŒš", + "feed_claim_modal.description_instructions": "è€‡èŁœä»„äž‹ć…§ćźč䞊氇慶èČŒć…„æ‚šçš„ RSS 摘芁䞭的 æŹ„äœă€‚", + "feed_claim_modal.failed_to_load": "ç„Ąæł•èŒ‰ć…„èȘé ˜èšŠæŻ", + "feed_claim_modal.rss_format_choice": "RSS ç”Ÿæˆć™šé€šćžžæœ‰ć…©çšźæ ŒćŒćŻäŸ›éžæ“‡ă€‚è«‹æ čæ“šéœ€èŠè€‡èŁœä»„äž‹ XML 撌 JSON æ ŒćŒă€‚", + "feed_claim_modal.rss_instructions": "è€‡èŁœä»„äž‹çš‹ćŒçąŒäžŠć°‡ć…¶é»èČŒćˆ°æ‚šçš„ RSS ç”Ÿæˆć™šäž­ă€‚", + "feed_claim_modal.rss_json_format": "JSON æ ŒćŒ", + "feed_claim_modal.rss_xml_format": "XML æ ŒćŒ", + "feed_claim_modal.rsshub_notice": "歀摘芁由 RSSHub æäŸ›ïŒŒćż«ć–æ™‚é–“ç‚ș 1 ć°æ™‚ă€‚ç™Œäœˆć…§ćźčćŸŒïŒŒè«‹æœ€ć€šç­‰ćŸ… 1 ć°æ™‚ä»„éĄŻç€șèźŠæ›Žă€‚", + "feed_claim_modal.tab_content": "慧ćźč", + "feed_claim_modal.tab_description": "æèż°", + "feed_claim_modal.tab_rss": "RSS 暙籀", + "feed_claim_modal.verify_ownership": "芁èȘé ˜æ­€æ‘˜èЁç‚șæ‚šçš„ć…§ćźčïŒŒæ‚šéœ€èŠé©—è­‰æ‰€æœ‰æŹŠă€‚", + "feed_form.add_follow": "é—œæłš", + "feed_form.category": "éĄžćˆ„", + "feed_form.category_description": "é èš­æƒ…æłäž‹ïŒŒæ‚šçš„é—œæłšć°‡æŒ‰ç¶Čç«™ćˆ†ç”„ă€‚", + "feed_form.error_fetching_feed": "çČć–æ‘˜èŠæ™‚ć‡ș錯。", + "feed_form.feed_not_found": "æœȘæ‰Ÿćˆ°æ‘˜èŠă€‚", + "feed_form.feedback": "曞鄋", + "feed_form.follow": "é—œæłš", + "feed_form.followed": "🎉 ć·Čé—œæłšă€‚", + "feed_form.private_follow": "私äșșé—œæłš", + "feed_form.private_follow_description": "æ­€é—œæłšæ˜ŻćŠćœšæ‚šçš„ć€‹äșșèł‡æ–™é éąäžŠć…Źé–‹éĄŻç€ș。", + "feed_form.retry": "重詊", + "feed_form.title": "æš™éĄŒ", + "feed_form.title_description": "ç‚ș歀摘芁è‡Șèš‚æš™éĄŒă€‚ç•™ç©șä»„äœżç”šé èš­æš™éĄŒă€‚", + "feed_form.unfollow": "ć–æ¶ˆé—œæłš", + "feed_form.update": "曎新", + "feed_form.update_follow": "æ›Žæ–°é—œæłš", + "feed_form.updated": "🎉 ć·Čæ›Žæ–°ă€‚", + "feed_form.view": "æȘąèŠ–", + "feed_item.claimed_by_owner": "歀摘芁", + "feed_item.claimed_by_unknown": "ć…¶æ“æœ‰è€…ă€‚", + "feed_item.claimed_by_you": "悚ć·ČèȘé ˜", + "feed_item.claimed_feed": "ć·ČèȘé ˜æ‘˜èЁ", + "feed_item.error_since": "錯èȘ€ç™Œç”Ÿæ™‚é–“", + "feed_item.not_publicly_visible": "ćœšæ‚šçš„ć€‹äșșèł‡æ–™é éąäžŠäžć…Źé–‹éĄŻç€ș", + "feed_view_type.articles": "文章", + "feed_view_type.audios": "éŸłèšŠ", + "feed_view_type.notifications": "通矄", + "feed_view_type.pictures": "朖片", + "feed_view_type.social_media": "瀟äș€ćȘ’é«”", + "feed_view_type.videos": "ćœ±ç‰‡", + "mark_all_read_button.auto_confirm_info": "氇朹 3 ç§’ćŸŒè‡Ș拕çąșèȘă€‚", + "mark_all_read_button.confirm": "çąșèȘ", + "mark_all_read_button.confirm_mark_all": "氇 {{which}} 暙蚘ç‚șć·Čèź€ïŒŸ", + "mark_all_read_button.confirm_mark_all_info": "çąșèȘć°‡ć…šéƒšæš™èš˜ç‚șć·Čèź€ïŒŸ", + "mark_all_read_button.mark_all_as_read": "ć…šéƒšæš™èš˜ç‚șć·Čèź€", + "mark_all_read_button.mark_as_read": "氇 {{which}} 暙蚘ç‚șć·Čèź€", + "mark_all_read_button.undo": "ćŸ©ćŽŸ", + "player.back_10s": "ćŸŒé€€ 10 秒", + "player.close": "關閉", + "player.download": "䞋茉", + "player.exit_full_screen": "退ć‡șć…šèžąćč•", + "player.forward_10s": "才é€Č 10 秒", + "player.full_screen": "ć…šèžąćč•", + "player.mute": "靜音", + "player.open_entry": "æ‰“é–‹é …ç›ź", + "player.pause": "æš«ćœ", + "player.play": "播攟", + "player.playback_rate": "播攟速率", + "player.unmute": "ć–æ¶ˆéœéŸł", + "player.volume": "音量", + "search.empty.no_results": "æœȘæ‰Ÿćˆ°ç”æžœă€‚", + "search.group.entries": "æąç›ź", + "search.group.feeds": "摘芁", + "search.options.all": "慹郹", + "search.options.entries": "項盼", + "search.options.feeds": "摘芁", + "search.options.search_type": "æœć°‹éĄžćž‹", + "search.placeholder": "æœć°‹â€Šâ€Š", + "search.result_count_local_mode": "ïŒˆæœŹćœ°æšĄćŒïŒ‰", + "search.tooltip.local_search": "æ­€æœć°‹æ¶”è“‹æœŹćœ°ćŻç”šèł‡æ–™ă€‚ć˜—è©Šé‡æ–°çČć–ä»„ćŒ…ć«æœ€æ–°èł‡æ–™ă€‚", + "shortcuts.guide.title": "ćż«æ·é”æŒ‡ć—", + "sidebar.category_remove_dialog.cancel": "ć–æ¶ˆ", + "sidebar.category_remove_dialog.continue": "çčŒçșŒ", + "sidebar.category_remove_dialog.description": "æ­€æ“äœœć°‡ćˆȘé™€æ‚šçš„éĄžćˆ„ïŒŒäœ†ćźƒćŒ…ć«çš„æ‘˜èŠć°‡èą«äżç•™äžŠæŒ‰ç¶Čç«™ćˆ†ç”„ă€‚", + "sidebar.category_remove_dialog.title": "ç§»é™€éĄžćˆ„", + "sidebar.feed_actions.claim": "èȘé ˜", + "sidebar.feed_actions.claim_feed": "èȘé ˜æ‘˜èЁ", + "sidebar.feed_actions.copy_feed_id": "è€‡èŁœæ‘˜èŠ ID", + "sidebar.feed_actions.copy_feed_url": "è€‡èŁœæ‘˜èŠ URL", + "sidebar.feed_actions.edit": "ç·šèŒŻ", + "sidebar.feed_actions.edit_feed": "ç·šèŒŻæ‘˜èŠ", + "sidebar.feed_actions.feed_owned_by_you": "歀摘芁由䜠所擁有", + "sidebar.feed_actions.mark_all_as_read": "ć…šéƒšæš™èš˜ç‚șć·Čèź€", + "sidebar.feed_actions.navigate_to_feed": "氎èˆȘćˆ°æ‘˜èŠ", + "sidebar.feed_actions.open_feed_in_browser": "äœżç”šç€èŠœć™šæ‰“é–‹é€™ć€‹æ‘˜èŠ", + "sidebar.feed_actions.open_site_in_browser": "äœżç”šç€èŠœć™šæ‰“é–‹é€™ć€‹ç¶Č站", + "sidebar.feed_actions.unfollow": "ć–æ¶ˆé—œæłš", + "sidebar.feed_actions.unfollow_feed": "ć–æ¶ˆé—œæłšæ‘˜èŠ", + "sidebar.feed_column.context_menu.change_to_other_view": "ćˆ‡æ›ćˆ°ć…¶ä»–èŠ–ćœ–", + "sidebar.feed_column.context_menu.delete_category": "ćˆȘé™€éĄžćˆ„", + "sidebar.feed_column.context_menu.delete_category_confirmation": "ćˆȘé™€éĄžćˆ„ {{folderName}}", + "sidebar.feed_column.context_menu.mark_as_read": "暙蚘ç‚șć·Čèź€", + "sidebar.feed_column.context_menu.rename_category": "é‡ć‘œćéĄžćˆ„", + "sidebar.select_sort_method": "遞擇排ćșæ–čćŒ", + "signin.continue_with_github": "çčŒçșŒäœżç”š GitHub", + "signin.continue_with_google": "çčŒçșŒäœżç”š Google", + "signin.sign_in_to": "登慄", + "sync_indicator.disabled": "ç”±æ–Œćź‰ć…šćŽŸć› ïŒŒćŒæ­„ćŠŸèƒœć·Č恜甹。", + "sync_indicator.offline": "雹線", + "sync_indicator.synced": "ć·Č與äŒșæœć™šćŒæ­„", + "tip_modal.amount": "金額", + "tip_modal.claim_feed": "èȘé ˜æ­€æ‘˜èЁ", + "tip_modal.create_wallet": "慍èČ»ć»ș立", + "tip_modal.feed_owner": "摘芁擁有者", + "tip_modal.low_balance": "æ‚šçš„é€˜éĄäžè¶łä»„æ”Żä»˜æ­€ć°èČ»ă€‚è«‹èȘżæ•Žé‡‘éĄă€‚", + "tip_modal.no_wallet": "æ‚šć°šæœȘæ“æœ‰éŒąćŒ…ă€‚è«‹ć‰”ć»șéŒąćŒ…ä»„é€ČèĄŒèŽŠćŠ©ă€‚", + "tip_modal.tip_amount_sent": "ć·Čç¶“ç™Œé€ç”Šäœœè€…ă€‚", + "tip_modal.tip_now": "ç«‹ćˆ»èŽŠćŠ©", + "tip_modal.tip_sent": "èŽŠćŠ©æˆćŠŸ! èŹèŹæ‚šçš„æ”ŻæŒ", + "tip_modal.tip_support": "⭐ èŽŠćŠ©ä»„èĄšç€șäœ çš„æ”ŻæŒïŒ", + "tip_modal.unclaimed_feed": "盼才氚無äșșèȘé ˜æ­€æ‘˜èŠă€‚æ”¶ćˆ°çš„ Power ć°‡ćź‰ć…šćœ°äżć­˜ćœšć€ćĄŠéˆćˆçŽ„äž­ïŒŒç›Žćˆ°èą«èȘé ˜ç‚șæ­ąă€‚", + "user_button.account": "ćžłæˆ¶", + "user_button.download_desktop_app": "äž‹èŒ‰æĄŒéąæ‡‰ç”šçš‹ćŒ", + "user_button.log_out": "登ć‡ș", + "user_button.power": "Power", + "user_button.preferences": "ćć„œèš­ćźš", + "user_button.profile": "怋äșșæȘ”æĄˆ", + "user_profile.close": "關閉", + "user_profile.edit": "ç·šèŒŻ", + "user_profile.loading": "èŒ‰ć…„äž­", + "user_profile.share": "戆äș«", + "user_profile.toggle_item_style": "ćˆ‡æ›é …ç›źæšŁćŒ", + "words.add": "æ–°ćąž", + "words.confirm": "çąșèȘ", + "words.discover": "癌珟", + "words.email": "Email", + "words.import": "ćŒŻć…„", + "words.items": "慧ćźč", + "words.language": "èȘžèš€", + "words.load_archived_entries": "èŒ‰ć…„ć·Č氁歘項盼", + "words.login": "登慄", + "words.rss": "RSS", + "words.rss3": "RSS3", + "words.rsshub": "RSSHub", + "words.search": "æœć°‹", + "words.starred": "收藏", + "words.unread": "æœȘèź€", + "words.user": "äœżç”šè€…", + "words.which.all": "慹郹", + "words.zero_items": "æČ’æœ‰ć…§ćźč" +} diff --git a/locales/app/zh_CN.json b/locales/app/zh_CN.json deleted file mode 100644 index 46cd0b576..000000000 --- a/locales/app/zh_CN.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "words": { - "search": "æœçŽą", - "import": "ćŻŒć…„", - "discover": "揑现", - "language": "èŻ­èš€" - }, - "signin": { - "continue_with_github": "äœżç”š GitHub ç™»ćœ•", - "continue_with_google": "äœżç”š Google ç™»ćœ•", - "sign_in_to": "ç™»ćœ•ćˆ°" - }, - "settings": { - "titles": { - "general": "ćžžè§„", - "appearance": "ć€–è§‚", - "actions": "操䜜", - "integration": "集成", - "about": "慳äșŽ", - "profile": "äžȘäșș蔄料", - "shortcuts": "热锼", - "power": "Power", - "invitations": "é‚€èŻ·" - }, - "general": { - "app": "ćș”甚皋ćș", - "data_persist": { - "description": "ćœšæœŹćœ°äżç•™æ•°æźä»„ćŻç”šçŠ»çșżèźżé—źć’ŒæœŹćœ°æœçŽąă€‚", - "label": "äżç•™æ•°æźä»„äŸ›çŠ»çșżäœżç”š" - }, - "group_by_date": { - "description": "按旄期ćŻčæĄç›źèż›èĄŒćˆ†ç»„ă€‚", - "label": "æŒ‰æ—„æœŸćˆ†ç»„" - }, - "launch_at_login": "ç™»ćœ•æ—¶ćŻćŠš", - "mark_as_read": { - "hover": { - "description": "æ‚Źćœæ—¶è‡ȘćŠšć°†æĄç›źæ ‡èź°äžșć·ČèŻ»ă€‚", - "label": "æ‚Źćœæ—¶æ ‡èź°äžșć·ČèŻ»" - }, - "render": { - "description": "ćœ“ć•çș§æĄç›źïŒˆäŸ‹ćŠ‚ç€Ÿäș€ćȘ’äœ“ćž–ć­ă€ć›Ÿç‰‡ă€è§†éą‘è§†ć›ŸïŒ‰èż›ć…„è§†ć›Ÿæ—¶è‡ȘćŠšć°†ć…¶æ ‡èź°äžșć·ČèŻ»ă€‚", - "label": "ćœšè§†ć›Ÿäž­æ ‡èź°äžșć·ČèŻ»" - }, - "scroll": { - "description": "ćœ“æ»šćŠšć‡șè§†ć›Ÿæ—¶è‡ȘćŠšć°†æĄç›źæ ‡èź°äžșć·ČèŻ»ă€‚", - "label": "æ»šćŠšæ—¶æ ‡èź°äžșć·ČèŻ»" - } - }, - "privacy_data": "隐私", - "rebuild_database": { - "button": "重ć»ș", - "description": "ćŠ‚æžœæ‚šé‡ćˆ°æžČæŸ“é—źéą˜ïŒŒé‡ć»șæ•°æźćș“ćŻèƒœäŒšè§Łć†łèż™äș›é—źéą˜ă€‚", - "label": "重ć»șæ•°æźćș“", - "title": "重ć»șæ•°æźćș“", - "warning[0]": "重ć»șæ•°æźćș“ć°†æž…é™€æ‰€æœ‰æœŹćœ°æ•°æźă€‚", - "warning[1]": "æ‚šçĄźćźšèŠç»§ç»­ć—ïŒŸ", - "warning": { - "line1": "重ć»șæ•°æźćș“ć°†æž…é™€æ‰€æœ‰æœŹćœ°æ•°æźă€‚", - "line2": "æ‚šçĄźćźšèŠç»§ç»­ć—ïŒŸ" - } - }, - "send_anonymous_data": { - "description": "é€šèż‡é€‰æ‹©ć‘é€ćŒżćé„æ”‹æ•°æźïŒŒæ‚šćŻä»„äžșæ”čć–„â€œć…łæłšâ€çš„æ•Žäœ“ç”šæˆ·äœ“éȘŒćšć‡șèŽĄçŒźă€‚", - "label": "ć‘é€ćŒżćæ•°æź" - }, - "show_unread_on_launch": { - "description": "ćŻćŠšæ—¶æ˜Ÿç€șæœȘèŻ»ć†…ćźč", - "label": "ćŻćŠšæ—¶æ˜Ÿç€șæœȘèŻ»ć†…ćźč" - }, - "timeline": "时闎蜎", - "voices": "棰音" - } - } -} diff --git a/locales/common/en.json b/locales/common/en.json index 434f2f1c1..70164b71b 100644 --- a/locales/common/en.json +++ b/locales/common/en.json @@ -1,8 +1,28 @@ { + "app.copied_to_clipboard": "Copied to clipboard", + "cancel": "Cancel", "confirm": "Confirm", "ok": "OK", - "cancel": "Cancel", - "tips": { - "load-lng-error": "Failed to load language pack" - } + "quantifier.piece": "", + "time.last_night": "Last Night", + "time.the_night_before_last": "The Night Before Last", + "time.today": "Today", + "time.yesterday": "Yesterday", + "tips.load-lng-error": "Failed to load language pack", + "words.back": "Back", + "words.copy": "Copy", + "words.edit": "Edit", + "words.entry": "Entry", + "words.id": "ID", + "words.items_one": "Item", + "words.items_other": "Items", + "words.local": "local", + "words.record": "record", + "words.record_one": "record", + "words.record_other": "records", + "words.result": "result", + "words.result_one": "result", + "words.result_other": "results", + "words.space": " ", + "words.which.all": "All" } diff --git a/locales/common/fr.json b/locales/common/fr.json new file mode 100644 index 000000000..72a324294 --- /dev/null +++ b/locales/common/fr.json @@ -0,0 +1,28 @@ +{ + "app.copied_to_clipboard": "CopiĂ© dans le presse-papier", + "cancel": "Annuler", + "confirm": "Confirmer", + "ok": "OK", + "quantifier.piece": "", + "time.last_night": "La nuit derniĂšre", + "time.the_night_before_last": "L'avant-derniĂšre nuit", + "time.today": "Aujourd'hui", + "time.yesterday": "Hier", + "tips.load-lng-error": "Échec du chargement du pack de langue", + "words.back": "Retour", + "words.copy": "Copier", + "words.edit": "Éditer", + "words.entry": "EntrĂ©e", + "words.id": "ID", + "words.items_one": "ÉlĂ©ment", + "words.items_other": "ÉlĂ©ments", + "words.local": "local", + "words.record": "enregistrement", + "words.record_one": "enregistrement", + "words.record_other": "enregistrements", + "words.result": "rĂ©sultat", + "words.result_one": "rĂ©sultat", + "words.result_other": "rĂ©sultats", + "words.space": " ", + "words.which.all": "Tous" +} diff --git a/locales/common/ja.json b/locales/common/ja.json new file mode 100644 index 000000000..14fb7935e --- /dev/null +++ b/locales/common/ja.json @@ -0,0 +1,28 @@ +{ + "app.copied_to_clipboard": "クăƒȘăƒƒăƒ—ăƒœăƒŒăƒ‰ă«ă‚łăƒ”ăƒŒă—ăŸă—ăŸ", + "cancel": "ă‚­ăƒŁăƒłă‚»ăƒ«", + "confirm": "çąșèȘ", + "ok": "OK", + "quantifier.piece": "怋", + "time.last_night": "æ˜šć€œ", + "time.the_night_before_last": "äž€æ˜šć€œ", + "time.today": "今旄", + "time.yesterday": "昚旄", + "tips.load-lng-error": "蚀èȘžăƒ‘ăƒƒă‚ŻăźèȘ­ăżèŸŒăżă«ć€±æ•—ă—ăŸă—ăŸ", + "words.back": "æˆ»ă‚‹", + "words.copy": "ă‚łăƒ”ăƒŒ", + "words.edit": "線集", + "words.entry": "スントăƒȘăƒŒ", + "words.id": "ID", + "words.items_one": "ă‚ąă‚€ăƒ†ăƒ ", + "words.items_other": "ă‚ąă‚€ăƒ†ăƒ ", + "words.local": "ăƒ­ăƒŒă‚«ăƒ«", + "words.record": "蚘éŒČ", + "words.record_one": "蚘éŒČ", + "words.record_other": "蚘éŒČ", + "words.result": "甐果", + "words.result_one": "甐果", + "words.result_other": "甐果", + "words.space": "", + "words.which.all": "すăčお" +} diff --git a/locales/common/pt.json b/locales/common/pt.json new file mode 100644 index 000000000..ae59627f5 --- /dev/null +++ b/locales/common/pt.json @@ -0,0 +1,28 @@ +{ + "app.copied_to_clipboard": "Copiado para a ĂĄrea de transferĂȘncia", + "cancel": "Cancelar", + "confirm": "Confirmar", + "ok": "OK", + "quantifier.piece": "", + "time.last_night": "Ontem Ă  noite", + "time.the_night_before_last": "Anteontem Ă  noite", + "time.today": "Hoje", + "time.yesterday": "Ontem", + "tips.load-lng-error": "Falha ao carregar o pacote de idioma", + "words.back": "Voltar", + "words.copy": "Copiar", + "words.edit": "Editar", + "words.entry": "Entrada", + "words.id": "ID", + "words.items_one": "Item", + "words.items_other": "Itens", + "words.local": "local", + "words.record": "registo", + "words.record_one": "registo", + "words.record_other": "registos", + "words.result": "resultado", + "words.result_one": "resultado", + "words.result_other": "resultados", + "words.space": " ", + "words.which.all": "Todos" +} diff --git a/locales/common/zh-CN.json b/locales/common/zh-CN.json new file mode 100644 index 000000000..0bfd58645 --- /dev/null +++ b/locales/common/zh-CN.json @@ -0,0 +1,29 @@ +{ + "app.copied_to_clipboard": "ć·Čć€ćˆ¶ćˆ°ć‰ȘèŽŽæż", + "cancel": "ć–æ¶ˆ", + "confirm": "çĄźèź€", + "ok": "ć„œ", + "quantifier.piece": "æĄ", + "time.last_night": "昚晚", + "time.the_night_before_last": "ć‰ć€©æ™šäžŠ", + "time.today": "今〩", + "time.yesterday": "æ˜šć€©", + "tips.load-lng-error": "ćŠ èœœèŻ­èš€ćŒ…ć€±èŽ„", + "words.back": "èż”ć›ž", + "words.copy": "ć€ćˆ¶", + "words.edit": "猖蟑", + "words.entry": "æĄç›ź", + "words.id": "ID", + "words.items": "憅ćźč", + "words.items_one": "憅ćźč", + "words.items_other": "憅ćźč", + "words.local": "æœŹćœ°", + "words.record": "èź°ćœ•", + "words.record_one": "èź°ćœ•", + "words.record_other": "èź°ćœ•", + "words.result": "结果", + "words.result_one": "结果", + "words.result_other": "结果", + "words.space": "", + "words.which.all": "慹郹" +} diff --git a/locales/common/zh-TW.json b/locales/common/zh-TW.json new file mode 100644 index 000000000..f9e531088 --- /dev/null +++ b/locales/common/zh-TW.json @@ -0,0 +1,28 @@ +{ + "app.copied_to_clipboard": "ć·Čè€‡èŁœćˆ°ć‰ȘèČŒç°ż", + "cancel": "ć–æ¶ˆ", + "confirm": "çąșèȘ", + "ok": "çąș漚", + "quantifier.piece": "", + "time.last_night": "昚晚", + "time.the_night_before_last": "ć‰æ™š", + "time.today": "今〩", + "time.yesterday": "æ˜šć€©", + "tips.load-lng-error": "èȘžèš€ćŒ…èŒ‰ć…„ć€±æ•—", + "words.back": "èż”ć›ž", + "words.copy": "è€‡èŁœ", + "words.edit": "ç·šèŒŻ", + "words.entry": "æąç›ź", + "words.id": "è­˜ćˆ„çąŒ", + "words.items_one": "項盼", + "words.items_other": "怚怋項盟", + "words.local": "æœŹćœ°", + "words.record": "蚘錄", + "words.record_one": "蚘錄", + "words.record_other": "ć€šç­†èš˜éŒ„", + "words.result": "甐果", + "words.result_one": "甐果", + "words.result_other": "ć€šç­†ç”æžœ", + "words.space": " ", + "words.which.all": "慹郹" +} diff --git a/locales/common/zh_CN.json b/locales/common/zh_CN.json deleted file mode 100644 index b07eacdbf..000000000 --- a/locales/common/zh_CN.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "confirm": "çĄźèź€", - "ok": "ć„œ", - "cancel": "ć–æ¶ˆ", - "tips": { - "load-lng-error": "ćŠ èœœèŻ­èš€ćŒ…ć€±èŽ„" - } -} diff --git a/locales/external/en.json b/locales/external/en.json index 0b8063199..30fa264e2 100644 --- a/locales/external/en.json +++ b/locales/external/en.json @@ -1,8 +1,43 @@ { + "copied_link": "Copied link to clipboard", + "feed": { + "follower_one": "follower", + "follower_other": "followers", + "followsAndReads": "{{subscriptionCount}} {{subscriptionNoun}} with {{readCount}} {{readNoun}} on {{appName}}", + "read_one": "read", + "read_other": "reads" + }, + "header": { + "app": "App", + "download": "Download" + }, + "invitation": { + "activate": "Activate", + "codeOptions": { + "1": "Looking for any alpha test user to invite you.", + "2": "Join our Discord server for occasional giveaways.", + "3": "Follow our X account for occasional giveaways." + }, + "earlyAccess": "Follow is currently in early access and requires an invitation code to use.", + "earlyAccessMessage": "😰 Sorry, Follow is currently in early access and requires an invitation code to use.", + "generateButton": "Generate new code", + "generateCost": "You can spend {{INVITATION_PRICE}} Power to generate an invitation code for your friends.", + "getCodeMessage": "You can get an invitation code in the following ways:", + "title": "Invitation Code" + }, + "login": { + "backToWebApp": "Back To Web App", + "continueWithGitHub": "Continue with GitHub", + "continueWithGoogle": "Continue with Google", + "logInTo": "Log in to ", + "openApp": "Open App", + "redirecting": "Redirecting", + "welcomeTo": "Welcome to " + }, "redirect": { - "successMessage": "You have successfully connected to {{APP_NAME}} Account.", - "instruction": "Now is the time to open {{APP_NAME}} and safely close this page.", "continueInBrowser": "Continue in Browser", - "openApp": "Open {{APP_NAME}}" + "instruction": "Now is the time to open {{APP_NAME}} and safely close this page.", + "openApp": "Open {{APP_NAME}}", + "successMessage": "You have successfully connected to {{APP_NAME}} Account." } } diff --git a/locales/external/fr.json b/locales/external/fr.json new file mode 100644 index 000000000..b8ea48ffa --- /dev/null +++ b/locales/external/fr.json @@ -0,0 +1,42 @@ +{ + "feed": { + "follower_one": "suivi", + "follower_other": "suivis", + "followsAndReads": "{{subscriptionCount}} {{subscriptionNoun}} avec {{readCount}} {{readNoun}} sur {{appName}}", + "read_one": "lecture", + "read_other": "lectures" + }, + "header": { + "app": "Application", + "download": "TĂ©lĂ©charger" + }, + "invitation": { + "activate": "Activer", + "codeOptions": { + "1": "Cherchez un utilisateur de test alpha pour vous inviter.", + "2": "Rejoignez notre serveur Discord pour des cadeaux occasionnels.", + "3": "Suivez notre compte X pour des cadeaux occasionnels." + }, + "earlyAccess": "Follow est actuellement en accĂšs anticipĂ© et nĂ©cessite un code d'invitation pour ĂȘtre utilisĂ©.", + "earlyAccessMessage": "😰 DĂ©solĂ©, Follow est actuellement en accĂšs anticipĂ© et nĂ©cessite un code d'invitation pour ĂȘtre utilisĂ©.", + "generateButton": "GĂ©nĂ©rer un nouveau code", + "generateCost": "Vous pouvez dĂ©penser {{INVITATION_PRICE}} Power pour gĂ©nĂ©rer un code d'invitation pour vos amis.", + "getCodeMessage": "Vous pouvez obtenir un code d'invitation de la maniĂšre suivante :", + "title": "Code d'invitation" + }, + "login": { + "backToWebApp": "Retour Ă  l'application web", + "continueWithGitHub": "Continuer avec GitHub", + "continueWithGoogle": "Continuer avec Google", + "logInTo": "Se connecter Ă ", + "openApp": "Ouvrir l'application", + "redirecting": "Redirection", + "welcomeTo": "Bienvenue sur" + }, + "redirect": { + "continueInBrowser": "Continuer dans le navigateur", + "instruction": "Il est maintenant temps d'ouvrir {{APP_NAME}} et de fermer cette page en toute sĂ©curitĂ©.", + "openApp": "Ouvrir {{APP_NAME}}", + "successMessage": "Vous vous ĂȘtes connectĂ© avec succĂšs Ă  votre compte {{APP_NAME}}." + } +} diff --git a/locales/external/ja.json b/locales/external/ja.json new file mode 100644 index 000000000..c18a56a64 --- /dev/null +++ b/locales/external/ja.json @@ -0,0 +1,42 @@ +{ + "feed": { + "follower_one": "ăƒ•ă‚©ăƒ­ăƒŒ", + "follower_other": "ăƒ•ă‚©ăƒ­ăƒŒ", + "followsAndReads": "{{appName}} で {{subscriptionCount}} {{subscriptionNoun}} ず {{readCount}} {{readNoun}}", + "read_one": "èȘ­ă‚“だ", + "read_other": "æ—ąèȘ­" + }, + "header": { + "app": "ケプăƒȘ", + "download": "ăƒ€ă‚Šăƒłăƒ­ăƒŒăƒ‰" + }, + "invitation": { + "activate": "有ćŠč挖", + "codeOptions": { + "1": "æ‹›ćŸ…ă—ăŠăă‚Œă‚‹ă‚ąăƒ«ăƒ•ă‚Ąăƒ†ă‚čăƒˆăƒŠăƒŒă‚¶ăƒŒă‚’æŽąă—ăŸă—ă‚‡ă†ă€‚", + "2": "æ™‚æŠ˜èĄŒă‚ă‚Œă‚‹ăƒ—ăƒŹă‚ŒăƒłăƒˆäŒç”»ăźăŸă‚ă«ă€ç§ăŸăĄăźDiscordă‚”ăƒŒăƒăƒŒă«ć‚ćŠ ă—ăŸă—ă‚‡ă†ă€‚", + "3": "æ™‚æŠ˜èĄŒă‚ă‚Œă‚‹ăƒ—ăƒŹă‚ŒăƒłăƒˆäŒç”»ăźăŸă‚ă«ă€ç§ăŸăĄăźXă‚ąă‚«ă‚Šăƒłăƒˆă‚’ăƒ•ă‚©ăƒ­ăƒŒă—ăŸă—ă‚‡ă†ă€‚" + }, + "earlyAccess": "çŸćœšă€FollowăŻă‚ąăƒŒăƒȘăƒŒă‚ąă‚Żă‚»ă‚čäž­ă§ă€ćˆ©ç”šă«ăŻæ‹›ćŸ…ă‚łăƒŒăƒ‰ăŒćż…èŠă§ă™ă€‚", + "earlyAccessMessage": "😰 ç”łă—èšłă‚ă‚ŠăŸă›ă‚“ăŒă€FollowăŻçŸćœšă‚ąăƒŒăƒȘăƒŒă‚ąă‚Żă‚»ă‚čäž­ă§ă€æ‹›ćŸ…ă‚łăƒŒăƒ‰ăŒćż…èŠă§ă™ă€‚", + "generateButton": "æ–°ă—ă„ă‚łăƒŒăƒ‰ă‚’ç”Ÿæˆ", + "generateCost": "ć‹é”ăźăŸă‚ă«æ‹›ćŸ…ă‚łăƒŒăƒ‰ă‚’ç”Ÿæˆă™ă‚‹ă«ăŻă€{{INVITATION_PRICE}} Power ă‚’æ¶ˆèČ»ă§ăăŸă™ă€‚", + "getCodeMessage": "仄䞋たæ–čæł•ă§æ‹›ćŸ…ă‚łăƒŒăƒ‰ă‚’ć…„æ‰‹ă§ăăŸă™ïŒš", + "title": "æ‹›ćŸ…ă‚łăƒŒăƒ‰" + }, + "login": { + "backToWebApp": "ォェブケプăƒȘă«æˆ»ă‚‹", + "continueWithGitHub": "GitHubă§ç¶šèĄŒ", + "continueWithGoogle": "Googleă§ç¶šèĄŒ", + "logInTo": "ăƒ­ă‚°ă‚€ăƒł ", + "openApp": "ケプăƒȘを開く", + "redirecting": "ăƒȘăƒ€ă‚€ăƒŹă‚Żăƒˆäž­", + "welcomeTo": "ようこそ " + }, + "redirect": { + "continueInBrowser": "ăƒ–ăƒ©ă‚Šă‚¶ă§ç¶šèĄŒ", + "instruction": "ä»ŠăŒ{{APP_NAME}}ă‚’é–‹ăă€ă“ăźăƒšăƒŒă‚žă‚’ćź‰ć…šă«é–‰ă˜ă‚‹æ™‚ă§ă™ă€‚", + "openApp": "{{APP_NAME}}を開く", + "successMessage": "{{APP_NAME}}ă‚ąă‚«ă‚Šăƒłăƒˆă«æ­Łćžžă«æŽ„ç¶šă•ă‚ŒăŸă—ăŸă€‚" + } +} diff --git a/locales/external/pt.json b/locales/external/pt.json new file mode 100644 index 000000000..4613d598a --- /dev/null +++ b/locales/external/pt.json @@ -0,0 +1,42 @@ +{ + "feed": { + "follower_one": "seguir", + "follower_other": "seguimentos", + "followsAndReads": "{{subscriptionCount}} {{subscriptionNoun}} com {{readCount}} {{readNoun}} no {{appName}}", + "read_one": "leitura", + "read_other": "leituras" + }, + "header": { + "app": "App", + "download": "Descarregar" + }, + "invitation": { + "activate": "Ativar", + "codeOptions": { + "1": "Procure um utilizador de teste alpha que o convide.", + "2": "Junte-se ao nosso servidor Discord para receber ofertas ocasionais.", + "3": "Siga a nossa conta no X para receber ofertas ocasionais." + }, + "earlyAccess": "O Follow estĂĄ atualmente em acesso antecipado e requer um cĂłdigo de convite para ser utilizado.", + "earlyAccessMessage": "😰 Lamentamos, o Follow estĂĄ atualmente em acesso antecipado e requer um cĂłdigo de convite.", + "generateButton": "Gerar novo cĂłdigo", + "generateCost": "Pode gastar {{INVITATION_PRICE}} Power para gerar um cĂłdigo de convite para os seus amigos.", + "getCodeMessage": "Pode obter um cĂłdigo de convite das seguintes maneiras:", + "title": "CĂłdigo de Convite" + }, + "login": { + "backToWebApp": "Voltar Ă  App Web", + "continueWithGitHub": "Continuar com GitHub", + "continueWithGoogle": "Continuar com Google", + "logInTo": "Iniciar sessĂŁo em ", + "openApp": "Abrir Aplicação", + "redirecting": "A redirecionar", + "welcomeTo": "Bem-vindo ao " + }, + "redirect": { + "continueInBrowser": "Continuar no Navegador", + "instruction": "Agora Ă© o momento de abrir {{APP_NAME}} e fechar esta pĂĄgina com segurança.", + "openApp": "Abrir {{APP_NAME}}", + "successMessage": "Conectou-se com sucesso Ă  conta {{APP_NAME}}." + } +} diff --git a/locales/external/zh-CN.json b/locales/external/zh-CN.json new file mode 100644 index 000000000..913e8c2f3 --- /dev/null +++ b/locales/external/zh-CN.json @@ -0,0 +1,42 @@ +{ + "feed": { + "follower_one": "ć…łæłšè€…", + "follower_other": "ć…łæłšè€…", + "followsAndReads": "朹 {{appName}} 䞊有 {{subscriptionCount}} äžȘ{{subscriptionNoun}}{{readCount}} 篇{{readNoun}}", + "read_one": "文章", + "read_other": "文章" + }, + "header": { + "app": "ćș”甚", + "download": "䞋蜜" + }, + "invitation": { + "activate": "æż€æŽ»", + "codeOptions": { + "1": "ćŻ»æ‰Ÿä»»äœ•ć†…æ”‹ç”šæˆ·ćžźäœ ç”Ÿæˆé‚€èŻ·ç ", + "2": "ćŠ ć…„ćź˜æ–č Discord éą‘é“ïŒŒäžćźšæœŸć‘æ”Ÿé‚€èŻ·ç ", + "3": "ć…łæłšćź˜æ–č X èŽŠć·ćŠšæ€ïŒŒäžćźšæœŸć‘æ”Ÿé‚€èŻ·ç " + }, + "earlyAccess": "Follow ç›źć‰ć€„äșŽæ—©æœŸäœ“éȘŒé˜¶æź”ïŒŒéœ€èŠé‚€èŻ·ç æ‰èƒœäœżç”š", + "earlyAccessMessage": "😰 抱歉Follow ç›źć‰ć€„äșŽæ—©æœŸäœ“éȘŒé˜¶æź”ïŒŒéœ€èŠé‚€èŻ·ç æ‰èƒœäœżç”š", + "generateButton": "ç”Ÿæˆé‚€èŻ·ç ", + "generateCost": "花èŽč {{INVITATION_PRICE}} Power 生成䞀äžȘé‚€èŻ·ç ç»™äœ çš„æœ‹ć‹ă€‚", + "getCodeMessage": "é€šèż‡ä»„äž‹æ–čćŒèŽ·ć–ïŒš", + "title": "é‚€èŻ·ç " + }, + "login": { + "backToWebApp": "èż”ć›žçœ‘éĄ”ç‰ˆ", + "continueWithGitHub": "äœżç”š GitHub ç»§ç»­", + "continueWithGoogle": "äœżç”š Google ç»§ç»­", + "logInTo": "ç™»ćœ•ćˆ° ", + "openApp": "æ‰“ćŒ€ćș”甚", + "redirecting": "重漚搑侭", + "welcomeTo": "æŹąèżŽæ„ćˆ° " + }, + "redirect": { + "continueInBrowser": "ćœšæ”è§ˆć™šäž­ç»§ç»­", + "instruction": "çŽ°ćœšćŻä»„æ‰“ćŒ€ {{APP_NAME}} ćč¶ć…łé—­æ­€éĄ”靱", + "openApp": "æ‰“ćŒ€ {{APP_NAME}}", + "successMessage": "ć·ČæˆćŠŸèżžæŽ„ćˆ° {{APP_NAME}} èŽŠæˆ·ă€‚" + } +} diff --git a/locales/external/zh-TW.json b/locales/external/zh-TW.json new file mode 100644 index 000000000..0f49ca6c0 --- /dev/null +++ b/locales/external/zh-TW.json @@ -0,0 +1,42 @@ +{ + "feed": { + "follower_one": "èżœéššè€…", + "follower_other": "èżœéššè€…", + "followsAndReads": "{{subscriptionCount}} 怋 {{subscriptionNoun}} 撌 {{readCount}} 怋 {{readNoun}} 朹 {{appName}}", + "read_one": "é–±èź€", + "read_other": "é–±èź€æ•ž" + }, + "header": { + "app": "æ‡‰ç”šçš‹ćŒ", + "download": "䞋茉" + }, + "invitation": { + "activate": "敟甹", + "codeOptions": { + "1": "ć°‹æ‰Ÿä»»äœ•ć…§æžŹç”šæˆ¶é‚€è«‹æ‚šă€‚", + "2": "ćŠ ć…„æˆ‘ć€‘çš„ Discord äŒșæœć™šïŒŒäžćźšæœŸèŽˆé€é‚€è«‹çąŒă€‚", + "3": "é—œæłšæˆ‘ć€‘çš„ X ćžłè™ŸïŒŒäžćźšæœŸèŽˆé€é‚€è«‹çąŒă€‚" + }, + "earlyAccess": "Follow ç›źć‰è™•æ–Œæ¶ć…ˆé«”é©—éšŽæź”ïŒŒéœ€èŠé‚€è«‹çąŒæ‰èƒœäœżç”šă€‚", + "earlyAccessMessage": "😰 抱歉Follow ç›źć‰è™•æ–Œæ¶ć…ˆé«”é©—éšŽæź”ïŒŒéœ€èŠé‚€è«‹çąŒæ‰èƒœäœżç”šă€‚", + "generateButton": "ç”Ÿæˆæ–°é‚€è«‹çąŒ", + "generateCost": "æ‚šćŻä»„èŠ±èČ» {{INVITATION_PRICE}} 點 Power ç‚șæ‚šçš„æœ‹ć‹ç”Ÿæˆé‚€è«‹çąŒă€‚", + "getCodeMessage": "æ‚šćŻä»„é€šéŽä»„äž‹æ–čćŒçČć–é‚€è«‹çąŒïŒš", + "title": "é‚€è«‹çąŒ" + }, + "login": { + "backToWebApp": "èż”ć›žç¶Čé æ‡‰ç”šçš‹ćŒ", + "continueWithGitHub": "çčŒçșŒäœżç”š GitHub", + "continueWithGoogle": "çčŒçșŒäœżç”š Google", + "logInTo": "ç™»ć…„è‡ł ", + "openApp": "é–‹ć•Ÿæ‡‰ç”šçš‹ćŒ", + "redirecting": "æ­Łćœšé‡ćźšć‘", + "welcomeTo": "æ­ĄèżŽäŸ†ćˆ° " + }, + "redirect": { + "continueInBrowser": "ćœšç€èŠœć™šäž­çčŒçșŒ", + "instruction": "çŸćœšæ˜Żæ™‚ć€™æ‰“é–‹ {{APP_NAME}} äžŠćź‰ć…šćœ°é—œé–‰æ­€é éąă€‚", + "openApp": "開敟 {{APP_NAME}}", + "successMessage": "悚ć·ČæˆćŠŸé€ŁæŽ„è‡ł {{APP_NAME}} ćžłæˆ¶ă€‚" + } +} diff --git a/locales/lang/en.json b/locales/lang/en.json index 85a3d0847..0e085ed5a 100644 --- a/locales/lang/en.json +++ b/locales/lang/en.json @@ -1,7 +1,9 @@ { - "name": "English", - "langs": { - "en": "English", - "zh_CN": "çź€äœ“äž­æ–‡ïŒˆéƒšćˆ†ćźŒæˆïŒ‰" - } + "langs.en": "English", + "langs.fr": "Français", + "langs.ja": "æ—„æœŹèȘž", + "langs.pt": "PortuguĂȘs", + "langs.zh-CN": "çź€äœ“äž­æ–‡", + "langs.zh-TW": "çčé«”äž­æ–‡", + "name": "English" } diff --git a/locales/lang/fr.json b/locales/lang/fr.json new file mode 100644 index 000000000..51acafabd --- /dev/null +++ b/locales/lang/fr.json @@ -0,0 +1,7 @@ +{ + "langs.en": "Anglais", + "langs.fr": "Français", + "langs.ja": "Japonais", + "langs.zh-CN": "Chinois simplifiĂ©", + "name": "Français" +} diff --git a/locales/lang/ja.json b/locales/lang/ja.json new file mode 100644 index 000000000..f8beccbee --- /dev/null +++ b/locales/lang/ja.json @@ -0,0 +1,9 @@ +{ + "langs.en": "English", + "langs.fr": "Français", + "langs.ja": "æ—„æœŹèȘž", + "langs.pt": "PortuguĂȘs", + "langs.zh-CN": "çź€äœ“äž­æ–‡", + "langs.zh-TW": "çčé«”äž­æ–‡", + "name": "æ—„æœŹèȘž" +} diff --git a/locales/lang/pt.json b/locales/lang/pt.json new file mode 100644 index 000000000..fcb92f119 --- /dev/null +++ b/locales/lang/pt.json @@ -0,0 +1,7 @@ +{ + "langs.en": "English", + "langs.ja": "æ—„æœŹèȘž", + "langs.pt": "PortuguĂȘs", + "langs.zh-CN": "çź€äœ“äž­æ–‡", + "name": "PortuguĂȘs" +} diff --git a/locales/lang/zh-CN.json b/locales/lang/zh-CN.json new file mode 100644 index 000000000..69d8fe02c --- /dev/null +++ b/locales/lang/zh-CN.json @@ -0,0 +1,8 @@ +{ + "langs.en": "English", + "langs.fr": "Français", + "langs.ja": "æ—„æœŹèȘž", + "langs.pt": "PortuguĂȘs", + "langs.zh-CN": "çź€äœ“äž­æ–‡", + "name": "çź€äœ“äž­æ–‡" +} diff --git a/locales/lang/zh-TW.json b/locales/lang/zh-TW.json new file mode 100644 index 000000000..909996a47 --- /dev/null +++ b/locales/lang/zh-TW.json @@ -0,0 +1,7 @@ +{ + "langs.en": "English", + "langs.ja": "æ—„æœŹèȘž", + "langs.zh-CN": "ç°Ąé«”äž­æ–‡", + "langs.zh-TW": "çčé«”äž­æ–‡", + "name": "çčé«”äž­æ–‡" +} diff --git a/locales/lang/zh_CN.json b/locales/lang/zh_CN.json deleted file mode 100644 index 6c2d1e6a6..000000000 --- a/locales/lang/zh_CN.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "name": "English" -} diff --git a/locales/settings/en.json b/locales/settings/en.json new file mode 100644 index 000000000..5333abf93 --- /dev/null +++ b/locales/settings/en.json @@ -0,0 +1,203 @@ +{ + "about.changelog": "Changelog", + "about.feedbackInfo": "{{appName}} ({{commitSha}}) is in the early stages of development. If you have any feedback or suggestions, please feel free to open an issue on our GitHub.", + "about.iconLibrary": "The icon library used is copyrighted by and cannot be redistributed.", + "about.licenseInfo": "{{appName}} is and will always be a free and open-source project. It is licensed under {{license}}.", + "about.sidebar_title": "About", + "about.socialMedia": "Social Media", + "actions.actionName": "Action {{number}}", + "actions.action_card.add": "Add", + "actions.action_card.all": "All", + "actions.action_card.block_rules": "Block Rules", + "actions.action_card.custom_filters": "Custom filters", + "actions.action_card.enable_readability": "Enable readability", + "actions.action_card.entry_options.all": "All", + "actions.action_card.entry_options.author": "Author", + "actions.action_card.entry_options.content": "Content", + "actions.action_card.entry_options.order": "Order", + "actions.action_card.entry_options.title": "Title", + "actions.action_card.entry_options.url": "Url", + "actions.action_card.feed_options.category": "Category", + "actions.action_card.feed_options.feed_url": "Feed URL", + "actions.action_card.feed_options.site_url": "Site URL", + "actions.action_card.feed_options.title": "Title", + "actions.action_card.feed_options.view": "View", + "actions.action_card.field": "Field", + "actions.action_card.from": "From", + "actions.action_card.generate_summary": "Generate summary using AI", + "actions.action_card.name": "Name", + "actions.action_card.operation_options.contains": "contains", + "actions.action_card.operation_options.does_not_contain": "does not contain", + "actions.action_card.operation_options.is_equal_to": "is equal to", + "actions.action_card.operation_options.is_greater_than": "is greater than", + "actions.action_card.operation_options.is_less_than": "is less than", + "actions.action_card.operation_options.is_not_equal_to": "is not equal to", + "actions.action_card.operation_options.matches_regex": "matches regex", + "actions.action_card.operator": "Operator", + "actions.action_card.rewrite_rules": "Rewrite Rules", + "actions.action_card.then_do": "Then do
", + "actions.action_card.to": "To", + "actions.action_card.translate_into": "Translate into", + "actions.action_card.value": "Value", + "actions.action_card.when_feeds_match": "When feeds match
", + "actions.newRule": "New Rule", + "actions.save": "Save", + "actions.saveSuccess": "🎉 Actions saved.", + "actions.sidebar_title": "Actions", + "actions.title": "Actions", + "appearance.code_highlight_theme": "Code highlight theme", + "appearance.content": "Content", + "appearance.content_font": "Content Font", + "appearance.custom_font": "Custom Font", + "appearance.fonts": "Fonts", + "appearance.general": "General", + "appearance.guess_code_language.description": "Major programming languages that use models to infer unlabeled code blocks", + "appearance.guess_code_language.label": "Guess code language", + "appearance.misc": "Misc", + "appearance.modal_overlay.description": "Show modal overlay", + "appearance.modal_overlay.label": "Show modal overlay", + "appearance.opaque_sidebars.label": "Opaque sidebars", + "appearance.reader_render_inline_style.description": "Allows rendering of the inline style of the original HTML.", + "appearance.reader_render_inline_style.label": "Render inline style", + "appearance.reduce_motion.description": "Reducing the motion of elements to improve performance and reduce energy consumption", + "appearance.reduce_motion.label": "Reduce motion", + "appearance.save": "Save", + "appearance.show_dock_badge.label": "Show as Dock badge", + "appearance.sidebar_show_unread_count.label": "Show in sidebar", + "appearance.sidebar_title": "Appearance", + "appearance.text_size": "Text size", + "appearance.theme.dark": "Dark", + "appearance.theme.label": "Theme", + "appearance.theme.light": "Light", + "appearance.theme.system": "System", + "appearance.title": "Appearance", + "appearance.ui_font": "UI Font", + "appearance.unread_count": "Unread count", + "feeds.claimTips": "To claim your feeds and receive tips, right-click on the feed in your subscription list and select Claim.", + "feeds.noFeeds": "No claimed feeds", + "feeds.tableHeaders.entryCount": "Entries", + "feeds.tableHeaders.name": "Name", + "feeds.tableHeaders.subscriptionCount": "Subscriptions", + "feeds.tableHeaders.tipAmount": "Received tips", + "general.app": "App", + "general.data_persist.description": "Persist data locally to enable offline access and local search.", + "general.data_persist.label": "Persist data for offline usage", + "general.group_by_date.description": "Group entries by date.", + "general.group_by_date.label": "Group by date", + "general.language": "Language", + "general.launch_at_login": "Launch at login", + "general.mark_as_read.hover.description": "Automatically mark entries as read when hovered.", + "general.mark_as_read.hover.label": "Mark as read when hovering", + "general.mark_as_read.render.description": "Automatically mark single-level entries (e.g. social media posts, pictures, video views) as read when they enter the view.", + "general.mark_as_read.render.label": "Mark as read when in the view", + "general.mark_as_read.scroll.description": "Automatically mark entries as read when scrolled out of the view.", + "general.mark_as_read.scroll.label": "Mark as read when scrolling", + "general.privacy_data": "Privacy & Data", + "general.rebuild_database.button": "Rebuild", + "general.rebuild_database.description": "If you are experiencing rendering issues, rebuilding the database may solve them.", + "general.rebuild_database.label": "Rebuild Database", + "general.rebuild_database.title": "Rebuild Database", + "general.rebuild_database.warning.line1": "Rebuilding the database will clear all your local data.", + "general.rebuild_database.warning.line2": "Are you sure you want to continue?", + "general.send_anonymous_data.description": "By opting to send anonymized telemetry data, you contribute to improving the overall user experience of Follow.", + "general.send_anonymous_data.label": "Send anonymous data", + "general.show_unread_on_launch.description": "Show unread content on launch", + "general.show_unread_on_launch.label": "Show unread content on launch", + "general.sidebar_title": "General", + "general.timeline": "Timeline", + "general.unread": "Unread", + "general.voices": "Voices", + "integration.eagle.enable.description": "Display 'Save media to Eagle' button when available.", + "integration.eagle.enable.label": "Enable", + "integration.eagle.title": "Eagle", + "integration.instapaper.enable.description": "Display 'Save to Instapaper' button when available.", + "integration.instapaper.enable.label": "Enable", + "integration.instapaper.password.label": "Instapaper Password", + "integration.instapaper.title": "Instapaper", + "integration.instapaper.username.label": "Instapaper Username", + "integration.readwise.enable.description": "Display 'Save to Readwise' button when available.", + "integration.readwise.enable.label": "Enable", + "integration.readwise.title": "Readwise", + "integration.readwise.token.description": "You can get it here: readwise.io/access_token.", + "integration.readwise.token.label": "Readwise Access Token", + "integration.sidebar_title": "Integration", + "integration.tip": "Tip: Your sensitive data is stored locally and is not uploaded to the server.", + "integration.title": "Integration", + "invitation.activate": "Activate", + "invitation.codeOptions.betaUser": "1. Find a beta user who invites you.", + "invitation.codeOptions.discord": "2. Join our Discord server and occasionally get gifts.", + "invitation.codeOptions.xAccount": "3. Follow our X account, and get gifts from time to time.", + "invitation.confirmModal.cancel": "Cancel", + "invitation.confirmModal.confirm": "Do you want to continue?", + "invitation.confirmModal.continue": "Continue", + "invitation.confirmModal.message": "Generating an invitation code will cost you {{INVITATION_PRICE}} Power.", + "invitation.confirmModal.title": "Confirm", + "invitation.earlyAccess": "Follow is currently in early access and requires an invitation code to use.", + "invitation.earlyAccessMessage": "😰 Sorry, Follow is currently in early access and requires an invitation code to use.", + "invitation.generateButton": "Generate new code", + "invitation.generateCost": "You can spend {{INVITATION_PRICE}} Power to generate an invitation code for your friends.", + "invitation.getCodeMessage": "You can get an invitation code through the following methods:", + "invitation.limitationMessage": "Based on your usage time, you can generate up to {{limitation}} invitation codes.", + "invitation.newInvitationSuccess": "🎉 New invitation generated, invite code is copied", + "invitation.noInvitations": "No invitations", + "invitation.notUsed": "Not used", + "invitation.sidebar_title": "Invitations", + "invitation.tableHeaders.code": "Code", + "invitation.tableHeaders.creationTime": "Creation Time", + "invitation.tableHeaders.usedBy": "Used by", + "invitation.title": "Invitation Code", + "profile.avatar.label": "Avatar", + "profile.handle.description": "Your unique identifier.", + "profile.handle.label": "Handle", + "profile.name.description": "Your public display name.", + "profile.name.label": "Display Name", + "profile.sidebar_title": "Profile", + "profile.submit": "Submit", + "profile.title": "Profile Settings", + "profile.updateSuccess": "Profile updated.", + "titles.about": "About", + "titles.actions": "Actions", + "titles.appearance": "Appearance", + "titles.feeds": "Feeds", + "titles.general": "General", + "titles.integration": "Integration", + "titles.invitations": "Invitations", + "titles.power": "Power", + "titles.profile": "Profile", + "titles.shortcuts": "Shortcuts", + "wallet.address.title": "Your Address", + "wallet.balance.title": "Your Balance", + "wallet.balance.withdrawable": "Withdrawable", + "wallet.balance.withdrawableTooltip": "Withdrawable Power includes both the tips you've received and the Power you've recharged.", + "wallet.claim.button.claim": "Claim Daily Power", + "wallet.claim.button.claimed": "Claimed today", + "wallet.claim.tooltip.alreadyClaimed": "You have already claimed today.", + "wallet.claim.tooltip.canClaim": "Claim your {{amount}} Daily Power now!", + "wallet.create.button": "Create Wallet", + "wallet.create.description": "Create a free wallet to receive Power, which can be used to reward creators and also get rewarded for your content contributions.", + "wallet.power.dailyClaim": "You can claim {{amount}} free Power daily, which can be used to tip RSS entries on Follow.", + "wallet.power.description": "Power is an ERC-20 token on the {{blockchainName}} blockchain.", + "wallet.sidebar_title": "Power", + "wallet.transactions.amount": "Amount", + "wallet.transactions.date": "Date", + "wallet.transactions.from": "From", + "wallet.transactions.noTransactions": "No transactions", + "wallet.transactions.title": "Transactions", + "wallet.transactions.to": "To", + "wallet.transactions.tx": "Tx", + "wallet.transactions.type": "Type", + "wallet.transactions.types.burn": "burn", + "wallet.transactions.types.mint": "mint", + "wallet.transactions.types.purchase": "purchase", + "wallet.transactions.types.tip": "tip", + "wallet.transactions.types.withdraw": "withdraw", + "wallet.transactions.you": "You", + "wallet.withdraw.addressLabel": "Your Ethereum Address", + "wallet.withdraw.amountLabel": "Amount", + "wallet.withdraw.availableBalance": "You have withdrawable Power in your wallet.", + "wallet.withdraw.button": "Withdraw", + "wallet.withdraw.error": "Withdrawal failed: {{error}}", + "wallet.withdraw.modalTitle": "Withdraw Power", + "wallet.withdraw.submitButton": "Submit", + "wallet.withdraw.success": "Withdrawal successful!" +} diff --git a/locales/settings/fr.json b/locales/settings/fr.json new file mode 100644 index 000000000..dba17387e --- /dev/null +++ b/locales/settings/fr.json @@ -0,0 +1,195 @@ +{ + "about.changelog": "Journal des modifications", + "about.feedbackInfo": "{{appName}} ({{commitSha}}) est en phase de dĂ©veloppement prĂ©coce. Si vous avez des retours ou des suggestions, n'hĂ©sitez pas Ă  ouvrir une issue sur notre GitHub.", + "about.iconLibrary": "La bibliothĂšque d'icĂŽnes utilisĂ©e est protĂ©gĂ©e par les droits d'auteur de et ne peut ĂȘtre redistribuĂ©e.", + "about.licenseInfo": "{{appName}} est et sera toujours un projet libre et open-source. Il est sous licence {{license}}.", + "about.sidebar_title": "À propos", + "about.socialMedia": "RĂ©seaux sociaux", + "actions.actionName": "Action {{number}}", + "actions.action_card.add": "Ajouter", + "actions.action_card.all": "Tous", + "actions.action_card.block_rules": "RĂšgles de blocage", + "actions.action_card.custom_filters": "Filtres personnalisĂ©s", + "actions.action_card.enable_readability": "Activer la lisibilitĂ©", + "actions.action_card.entry_options.all": "Tous", + "actions.action_card.entry_options.author": "Auteur", + "actions.action_card.entry_options.content": "Contenu", + "actions.action_card.entry_options.order": "Ordre", + "actions.action_card.entry_options.title": "Titre", + "actions.action_card.entry_options.url": "Url", + "actions.action_card.feed_options.category": "CatĂ©gorie", + "actions.action_card.feed_options.feed_url": "URL du flux", + "actions.action_card.feed_options.site_url": "URL du site", + "actions.action_card.feed_options.title": "Titre", + "actions.action_card.feed_options.view": "Vue", + "actions.action_card.field": "Champ", + "actions.action_card.from": "De", + "actions.action_card.generate_summary": "GĂ©nĂ©rer un rĂ©sumĂ© avec l'IA", + "actions.action_card.name": "Nom", + "actions.action_card.operation_options.contains": "contient", + "actions.action_card.operation_options.does_not_contain": "ne contient pas", + "actions.action_card.operation_options.is_equal_to": "est Ă©gal Ă ", + "actions.action_card.operation_options.is_greater_than": "est supĂ©rieur Ă ", + "actions.action_card.operation_options.is_less_than": "est infĂ©rieur Ă ", + "actions.action_card.operation_options.is_not_equal_to": "n'est pas Ă©gal Ă ", + "actions.action_card.operation_options.matches_regex": "correspond Ă  l'expression rĂ©guliĂšre", + "actions.action_card.operator": "OpĂ©rateur", + "actions.action_card.rewrite_rules": "Réécrire les rĂšgles", + "actions.action_card.then_do": "Puis faire
", + "actions.action_card.to": "À", + "actions.action_card.translate_into": "Traduire en", + "actions.action_card.value": "Valeur", + "actions.action_card.when_feeds_match": "Quand les flux correspondent
", + "actions.newRule": "Nouvelle rĂšgle", + "actions.save": "Enregistrer", + "actions.saveSuccess": "🎉 Actions enregistrĂ©es.", + "actions.sidebar_title": "Actions", + "actions.title": "Actions", + "appearance.code_highlight_theme": "ThĂšme de mise en Ă©vidence du code", + "appearance.content": "Contenu", + "appearance.content_font": "Police de contenu", + "appearance.custom_font": "Police personnalisĂ©e", + "appearance.fonts": "Polices", + "appearance.general": "GĂ©nĂ©ral", + "appearance.guess_code_language.description": "Langages de programmation principaux utilisĂ©s pour dĂ©duire les blocs de code non Ă©tiquetĂ©s", + "appearance.guess_code_language.label": "DĂ©duire la langue du code", + "appearance.misc": "Divers", + "appearance.modal_overlay.description": "Afficher l'overlay modal", + "appearance.modal_overlay.label": "Afficher l'overlay", + "appearance.opaque_sidebars.label": "Barres latĂ©rales opaques", + "appearance.reader_render_inline_style.description": "Autorise le rendu du style inline du HTML original.", + "appearance.reader_render_inline_style.label": "Afficher le style inline", + "appearance.reduce_motion.description": "RĂ©duire le mouvement des Ă©lĂ©ments pour amĂ©liorer les performances et rĂ©duire la consommation d'Ă©nergie", + "appearance.reduce_motion.label": "RĂ©duire les mouvements", + "appearance.save": "Enregistrer", + "appearance.show_dock_badge.label": "Afficher comme badge Dock", + "appearance.sidebar_show_unread_count.label": "Afficher dans la barre latĂ©rale", + "appearance.sidebar_title": "Apparence", + "appearance.text_size": "Taille du texte", + "appearance.theme.dark": "Sombre", + "appearance.theme.label": "ThĂšme", + "appearance.theme.light": "Clair", + "appearance.theme.system": "SystĂšme", + "appearance.title": "Apparence", + "appearance.ui_font": "Police de l'interface utilisateur", + "appearance.unread_count": "Nombre de non lus", + "general.app": "Application", + "general.data_persist.description": "Conserver les donnĂ©es localement pour permettre un accĂšs hors ligne et une recherche locale.", + "general.data_persist.label": "Conserver les donnĂ©es pour une utilisation hors ligne", + "general.group_by_date.description": "Grouper les entrĂ©es par date.", + "general.group_by_date.label": "Grouper par date", + "general.language": "Langue", + "general.launch_at_login": "Lancer Ă  la connexion", + "general.mark_as_read.hover.description": "Marquer automatiquement les entrĂ©es comme lues lorsqu'elles sont survolĂ©es.", + "general.mark_as_read.hover.label": "Marquer comme lu au survol", + "general.mark_as_read.render.description": "Marquer automatiquement les entrĂ©es de niveau unique (par ex. les publications sur les rĂ©seaux sociaux, les images, les vidĂ©os) comme lues lorsqu'elles apparaissent dans la vue.", + "general.mark_as_read.render.label": "Marquer comme lu lors de l'affichage", + "general.mark_as_read.scroll.description": "Marquer automatiquement les entrĂ©es comme lues lorsqu'elles sortent de la vue.", + "general.mark_as_read.scroll.label": "Marquer comme lu lors du dĂ©filement", + "general.privacy_data": "ConfidentialitĂ© & DonnĂ©es", + "general.rebuild_database.button": "Reconstruire", + "general.rebuild_database.description": "Si vous rencontrez des problĂšmes d'affichage, la reconstruction de la base de donnĂ©es peut les rĂ©soudre.", + "general.rebuild_database.label": "Reconstruire la base de donnĂ©es", + "general.rebuild_database.title": "Reconstruire la base de donnĂ©es", + "general.rebuild_database.warning.line1": "La reconstruction de la base de donnĂ©es effacera toutes vos donnĂ©es locales.", + "general.rebuild_database.warning.line2": "Êtes-vous sĂ»r de vouloir continuer ?", + "general.send_anonymous_data.description": "En choisissant d'envoyer des donnĂ©es anonymisĂ©es, vous contribuez Ă  amĂ©liorer l'expĂ©rience utilisateur globale de Follow.", + "general.send_anonymous_data.label": "Envoyer des donnĂ©es anonymes", + "general.show_unread_on_launch.description": "Afficher le contenu non lu au lancement", + "general.show_unread_on_launch.label": "Afficher le contenu non lu au lancement", + "general.sidebar_title": "GĂ©nĂ©ral", + "general.timeline": "Chronologie", + "general.unread": "Non lu", + "general.voices": "Voix", + "integration.eagle.enable.description": "Afficher le bouton 'Enregistrer le mĂ©dia sur Eagle' lorsqu'il est disponible.", + "integration.eagle.enable.label": "Activer", + "integration.eagle.title": "Eagle", + "integration.instapaper.enable.description": "Afficher le bouton 'Enregistrer sur Instapaper' lorsqu'il est disponible.", + "integration.instapaper.enable.label": "Activer", + "integration.instapaper.password.label": "Mot de passe Instapaper", + "integration.instapaper.title": "Instapaper", + "integration.instapaper.username.label": "Nom d'utilisateur Instapaper", + "integration.readwise.enable.description": "Afficher le bouton 'Enregistrer sur Readwise' lorsqu'il est disponible.", + "integration.readwise.enable.label": "Activer", + "integration.readwise.title": "Readwise", + "integration.readwise.token.description": "Vous pouvez l'obtenir ici : readwise.io/access_token.", + "integration.readwise.token.label": "Jeton d'accĂšs Readwise", + "integration.sidebar_title": "IntĂ©gration", + "integration.tip": "Astuce : Vos donnĂ©es sensibles sont stockĂ©es localement et ne sont pas envoyĂ©es au serveur.", + "integration.title": "IntĂ©gration", + "invitation.activate": "Activer", + "invitation.codeOptions.betaUser": "1. Trouvez un utilisateur bĂȘta pour vous inviter.", + "invitation.codeOptions.discord": "2. Rejoignez notre serveur Discord et obtenez occasionnellement des cadeaux.", + "invitation.codeOptions.xAccount": "3. Suivez notre compte X pour obtenir occasionnellement des cadeaux.", + "invitation.confirmModal.cancel": "Annuler", + "invitation.confirmModal.confirm": "Voulez-vous continuer ?", + "invitation.confirmModal.continue": "Continuer", + "invitation.confirmModal.message": "GĂ©nĂ©rer un code d'invitation vous coĂ»tera {{INVITATION_PRICE}} Power.", + "invitation.confirmModal.title": "Confirmer", + "invitation.earlyAccess": "Follow est actuellement en accĂšs anticipĂ© et nĂ©cessite un code d'invitation pour l'utiliser.", + "invitation.earlyAccessMessage": "😰 DĂ©solĂ©, Follow est actuellement en accĂšs anticipĂ© et nĂ©cessite un code d'invitation pour l'utiliser.", + "invitation.generateButton": "GĂ©nĂ©rer un nouveau code", + "invitation.generateCost": "Vous pouvez dĂ©penser {{INVITATION_PRICE}} Power pour gĂ©nĂ©rer un code d'invitation pour vos amis.", + "invitation.getCodeMessage": "Vous pouvez obtenir un code d'invitation par les moyens suivants :", + "invitation.newInvitationSuccess": "🎉 Nouvelle invitation gĂ©nĂ©rĂ©e, le code d'invitation a Ă©tĂ© copiĂ©", + "invitation.noInvitations": "Aucune invitation", + "invitation.notUsed": "Non utilisĂ©", + "invitation.sidebar_title": "Invitations", + "invitation.tableHeaders.code": "Code", + "invitation.tableHeaders.creationTime": "Date de crĂ©ation", + "invitation.tableHeaders.usedBy": "UtilisĂ© par", + "invitation.title": "Code d'invitation", + "profile.avatar.label": "Avatar", + "profile.handle.description": "Votre identifiant unique.", + "profile.handle.label": "Pseudo", + "profile.name.description": "Votre nom d'affichage public.", + "profile.name.label": "Nom d'affichage", + "profile.sidebar_title": "Profil", + "profile.submit": "Envoyer", + "profile.title": "ParamĂštres du profil", + "profile.updateSuccess": "Profil mis Ă  jour.", + "titles.about": "À propos", + "titles.actions": "Actions", + "titles.appearance": "Apparence", + "titles.general": "GĂ©nĂ©ral", + "titles.integration": "IntĂ©gration", + "titles.invitations": "Invitations", + "titles.power": "Power", + "titles.profile": "Profil", + "titles.shortcuts": "Raccourcis", + "wallet.address.title": "Votre adresse", + "wallet.balance.title": "Votre solde", + "wallet.balance.withdrawable": "Retirable", + "wallet.balance.withdrawableTooltip": "Le solde retirable inclut Ă  la fois les pourboires que vous avez reçus et le Power que vous avez rechargĂ©.", + "wallet.claim.button.claim": "RĂ©clamer le Power quotidien", + "wallet.claim.button.claimed": "RĂ©clamĂ© aujourd'hui", + "wallet.claim.tooltip.alreadyClaimed": "Vous avez dĂ©jĂ  rĂ©clamĂ© aujourd'hui.", + "wallet.claim.tooltip.canClaim": "RĂ©clamez votre {{amount}} Power quotidien maintenant !", + "wallet.create.button": "CrĂ©er un portefeuille", + "wallet.create.description": "CrĂ©ez un portefeuille gratuit pour recevoir Power, qui peut ĂȘtre utilisĂ© pour rĂ©compenser les crĂ©ateurs et aussi pour recevoir des rĂ©compenses pour vos contributions au contenu.", + "wallet.power.dailyClaim": "Vous pouvez rĂ©clamer {{amount}} Power gratuit quotidiennement, qui peut ĂȘtre utilisĂ© pour donner des pourboires aux entrĂ©es RSS sur Follow.", + "wallet.power.description": "Power est un jeton ERC-20 sur la blockchain {{blockchainName}}.", + "wallet.sidebar_title": "Power", + "wallet.transactions.amount": "Montant", + "wallet.transactions.date": "Date", + "wallet.transactions.from": "De", + "wallet.transactions.noTransactions": "Aucune transaction", + "wallet.transactions.title": "Transactions", + "wallet.transactions.to": "À", + "wallet.transactions.tx": "Tx", + "wallet.transactions.type": "Type", + "wallet.transactions.types.burn": "brĂ»ler", + "wallet.transactions.types.mint": "frapper", + "wallet.transactions.types.purchase": "acheter", + "wallet.transactions.types.tip": "pourboire", + "wallet.transactions.types.withdraw": "retirer", + "wallet.transactions.you": "Vous", + "wallet.withdraw.addressLabel": "Votre adresse Ethereum", + "wallet.withdraw.amountLabel": "Montant", + "wallet.withdraw.availableBalance": "Vous avez Power retirable dans votre portefeuille.", + "wallet.withdraw.button": "Retirer", + "wallet.withdraw.error": "Le retrait a Ă©chouĂ© : {{error}}", + "wallet.withdraw.modalTitle": "Retirer Power", + "wallet.withdraw.submitButton": "Soumettre", + "wallet.withdraw.success": "Retrait rĂ©ussi !" +} diff --git a/locales/settings/ja.json b/locales/settings/ja.json new file mode 100644 index 000000000..7ce8dcf9c --- /dev/null +++ b/locales/settings/ja.json @@ -0,0 +1,195 @@ +{ + "about.changelog": "ć€‰æ›Žć±„æ­Ž", + "about.feedbackInfo": "{{appName}} ({{commitSha}}) は開ç™șăźćˆæœŸæź”éšŽă«ă‚ă‚ŠăŸă™ă€‚ăƒ•ă‚ŁăƒŒăƒ‰ăƒăƒƒă‚Żă‚„ææĄˆăŒă‚ă‚Œă°ă€æ°—è»œă« GitHubでèȘČéĄŒă‚’ć ±ć‘Šă—ăŠăă ă•ă„ 。", + "about.iconLibrary": "äœżç”šă•ă‚ŒăŠă„ă‚‹ă‚ąă‚€ă‚łăƒłăƒ©ă‚€ăƒ–ăƒ©ăƒȘは ă«ă‚ˆăŁăŠè‘—äœœæš©ăŒäżè­·ă•ă‚ŒăŠăŠă‚Šă€ć†é…ćžƒă§ăăŸă›ă‚“ă€‚", + "about.licenseInfo": "{{appName}} ăŻă€ćžžă«ç„Ąæ–™ă§ă‚ȘăƒŒăƒ—ăƒłă‚œăƒŒă‚čぼプロゾェクトです。{{license}}ăźäž‹ă§ăƒ©ă‚€ă‚»ăƒłă‚čă•ă‚ŒăŠă„ăŸă™ă€‚", + "about.sidebar_title": "ケバォト", + "about.socialMedia": "ă‚œăƒŒă‚·ăƒŁăƒ«ăƒĄăƒ‡ă‚Łă‚ą", + "actions.actionName": "ă‚ąă‚Żă‚·ăƒ§ăƒł {{number}}", + "actions.action_card.add": "èżœćŠ ", + "actions.action_card.all": "すăčお", + "actions.action_card.block_rules": "ăƒ–ăƒ­ăƒƒă‚Żăƒ«ăƒŒăƒ«", + "actions.action_card.custom_filters": "ă‚«ă‚čă‚żăƒ ăƒ•ă‚Łăƒ«ă‚żăƒŒ", + "actions.action_card.enable_readability": "èȘ­ăżă‚„ă™ă•ă‚’æœ‰ćŠč挖", + "actions.action_card.entry_options.all": "すăčお", + "actions.action_card.entry_options.author": "著者", + "actions.action_card.entry_options.content": "憅ćźč", + "actions.action_card.entry_options.order": "順ç•Ș", + "actions.action_card.entry_options.title": "ă‚żă‚€ăƒˆăƒ«", + "actions.action_card.entry_options.url": "URL", + "actions.action_card.feed_options.category": "ă‚«ăƒ†ă‚ŽăƒȘ", + "actions.action_card.feed_options.feed_url": "ăƒ•ă‚ŁăƒŒăƒ‰URL", + "actions.action_card.feed_options.site_url": "ă‚”ă‚€ăƒˆURL", + "actions.action_card.feed_options.title": "ă‚żă‚€ăƒˆăƒ«", + "actions.action_card.feed_options.view": "èĄšç€ș", + "actions.action_card.field": "ăƒ•ă‚ŁăƒŒăƒ«ăƒ‰", + "actions.action_card.from": "から", + "actions.action_card.generate_summary": "AIă‚’äœżăŁăŠèŠçŽ„ă‚’ç”Ÿæˆ", + "actions.action_card.name": "損才", + "actions.action_card.operation_options.contains": "搫む", + "actions.action_card.operation_options.does_not_contain": "ć«ăŸăȘい", + "actions.action_card.operation_options.is_equal_to": "等しい", + "actions.action_card.operation_options.is_greater_than": "ă‚ˆă‚Šć€§ăă„", + "actions.action_card.operation_options.is_less_than": "より氏さい", + "actions.action_card.operation_options.is_not_equal_to": "等しくăȘい", + "actions.action_card.operation_options.matches_regex": "æ­ŁèŠèĄšçŸă«äž€è‡Žă™ă‚‹", + "actions.action_card.operator": "ă‚ȘăƒšăƒŹăƒŒă‚żăƒŒ", + "actions.action_card.rewrite_rules": "æ›žăæ›ăˆăƒ«ăƒŒăƒ«", + "actions.action_card.then_do": "æŹĄă«èĄŒă†â€Š", + "actions.action_card.to": "ぞ", + "actions.action_card.translate_into": "çż»èšłă™ă‚‹", + "actions.action_card.value": "怀", + "actions.action_card.when_feeds_match": "ăƒ•ă‚ŁăƒŒăƒ‰ăŒäž€è‡Žă—ăŸć Žćˆâ€Š", + "actions.newRule": "æ–°ă—ă„ăƒ«ăƒŒăƒ«", + "actions.save": "保歘", + "actions.saveSuccess": "🎉 ă‚ąă‚Żă‚·ăƒ§ăƒłăŒäżć­˜ă•ă‚ŒăŸă—ăŸă€‚", + "actions.sidebar_title": "ă‚ąă‚Żă‚·ăƒ§ăƒł", + "actions.title": "ă‚ąă‚Żă‚·ăƒ§ăƒł", + "appearance.code_highlight_theme": "ă‚łăƒŒăƒ‰ăƒă‚€ăƒ©ă‚€ăƒˆăƒ†ăƒŒăƒž", + "appearance.content": "コンテンツ", + "appearance.content_font": "ă‚łăƒłăƒ†ăƒłăƒ„ăƒ•ă‚©ăƒłăƒˆ", + "appearance.custom_font": "ă‚«ă‚čă‚żăƒ ăƒ•ă‚©ăƒłăƒˆ", + "appearance.fonts": "ăƒ•ă‚©ăƒłăƒˆ", + "appearance.general": "äž€èˆŹ", + "appearance.guess_code_language.description": "ăƒ©ăƒ™ăƒ«ăŒăȘă„ă‚łăƒŒăƒ‰ăƒ–ăƒ­ăƒƒă‚Żăźèš€èȘžă‚’æŽšæžŹă™ă‚‹ăŸă‚ă«ăƒąăƒ‡ăƒ«ă‚’äœżç”šă™ă‚‹äž»èЁăȘăƒ—ăƒ­ă‚°ăƒ©ăƒŸăƒłă‚°èš€èȘž", + "appearance.guess_code_language.label": "ă‚łăƒŒăƒ‰èš€èȘžă‚’æŽšæžŹ", + "appearance.misc": "ăăźä»–", + "appearance.modal_overlay.description": "ăƒąăƒŒăƒ€ăƒ«ă‚ȘăƒŒăƒăƒŒăƒŹă‚€ă‚’èĄšç€ș", + "appearance.modal_overlay.label": "ăƒąăƒŒăƒ€ăƒ«ă‚ȘăƒŒăƒăƒŒăƒŹă‚€ă‚’èĄšç€ș", + "appearance.opaque_sidebars.label": "䞍透明ăȘă‚”ă‚€ăƒ‰ăƒăƒŒ", + "appearance.reader_render_inline_style.description": "ă‚ȘăƒȘă‚žăƒŠăƒ«HTMLăźă‚€ăƒłăƒ©ă‚€ăƒłă‚čă‚żă‚€ăƒ«ă‚’ăƒŹăƒłăƒ€ăƒȘăƒłă‚°ă—ăŸă™ă€‚", + "appearance.reader_render_inline_style.label": "ă‚€ăƒłăƒ©ă‚€ăƒłă‚čă‚żă‚€ăƒ«ă‚’ăƒŹăƒłăƒ€ăƒȘング", + "appearance.reduce_motion.description": "èŠçŽ ăźć‹•ăă‚’æž›ă‚‰ă—ăŠă€ăƒ‘ăƒ•ă‚©ăƒŒăƒžăƒłă‚čă‚’ć‘äžŠă•ă›ă€ă‚šăƒăƒ«ă‚źăƒŒæ¶ˆèČ»ă‚’æŠ‘ăˆăŸă™", + "appearance.reduce_motion.label": "ć‹•ăă‚’æž›ă‚‰ă™", + "appearance.save": "保歘", + "appearance.show_dock_badge.label": "Dockăƒăƒƒă‚žăšă—ăŠèĄšç€ș", + "appearance.sidebar_show_unread_count.label": "ă‚”ă‚€ăƒ‰ăƒăƒŒă«èĄšç€ș", + "appearance.sidebar_title": "ć€–èŠł", + "appearance.text_size": "テキă‚čăƒˆă‚”ă‚€ă‚ș", + "appearance.theme.dark": "ăƒ€ăƒŒă‚Ż", + "appearance.theme.label": "ăƒ†ăƒŒăƒž", + "appearance.theme.light": "ăƒ©ă‚€ăƒˆ", + "appearance.theme.system": "ă‚·ă‚čテム", + "appearance.title": "ć€–èŠł", + "appearance.ui_font": "UIăƒ•ă‚©ăƒłăƒˆ", + "appearance.unread_count": "æœȘèȘ­æ•°", + "general.app": "ケプăƒȘ", + "general.data_persist.description": "ăƒ­ăƒŒă‚«ăƒ«ăƒ‡ăƒŒă‚żă‚’äżæŒă—ăŠă‚Șăƒ•ăƒ©ă‚€ăƒłă‚ąă‚Żă‚»ă‚čăšăƒ­ăƒŒă‚«ăƒ«æ€œçŽąă‚’ćŻèƒœă«ă—ăŸă™ă€‚", + "general.data_persist.label": "ă‚Șăƒ•ăƒ©ă‚€ăƒłäœżç”šăźăŸă‚ă«ăƒ‡ăƒŒă‚żă‚’äżæŒ", + "general.group_by_date.description": "スントăƒȘă‚’æ—„ä»˜ă”ăšă«ă‚°ăƒ«ăƒŒăƒ—ćŒ–ă—ăŸă™ă€‚", + "general.group_by_date.label": "æ—„ä»˜ă”ăšă«ă‚°ăƒ«ăƒŒăƒ—ćŒ–", + "general.language": "蚀èȘž", + "general.launch_at_login": "ăƒ­ă‚°ă‚€ăƒłæ™‚ă«è”·ć‹•", + "general.mark_as_read.hover.description": "ăƒ›ăƒăƒŒæ™‚ă«ă‚šăƒłăƒˆăƒȘをè‡Șć‹•çš„ă«æ—ąèȘ­ă«ă—ăŸă™ă€‚", + "general.mark_as_read.hover.label": "ăƒ›ăƒăƒŒæ™‚ă«æ—ąèȘ­ă«ă™ă‚‹", + "general.mark_as_read.render.description": "èĄšç€șă•ă‚Œă‚‹ăšă€ć˜äž€ăƒŹăƒ™ăƒ«ăźă‚šăƒłăƒˆăƒȘïŒˆäŸ‹ïŒšă‚œăƒŒă‚·ăƒŁăƒ«ăƒĄăƒ‡ă‚Łă‚ąăźæŠ•çšżă€ç”»ćƒă€ć‹•ç”»ïŒ‰ăŒè‡Șć‹•çš„ă«æ—ąèȘ­ă«ăȘă‚ŠăŸă™ă€‚", + "general.mark_as_read.render.label": "èĄšç€șäž­ă«æ—ąèȘ­ă«ă™ă‚‹", + "general.mark_as_read.scroll.description": "èĄšç€șからă‚čă‚Żăƒ­ăƒŒăƒ«ă‚ąă‚Šăƒˆă—ăŸăšăă«ă‚šăƒłăƒˆăƒȘをè‡Șć‹•çš„ă«æ—ąèȘ­ă«ă—ăŸă™ă€‚", + "general.mark_as_read.scroll.label": "ă‚čă‚Żăƒ­ăƒŒăƒ«æ™‚ă«æ—ąèȘ­ă«ă™ă‚‹", + "general.privacy_data": "ăƒ—ăƒ©ă‚€ăƒă‚·ăƒŒăšăƒ‡ăƒŒă‚ż", + "general.rebuild_database.button": "ć†æ§‹çŻ‰", + "general.rebuild_database.description": "レンダăƒȘăƒłă‚°ă«ć•éĄŒăŒă‚ă‚‹ć Žćˆă€ăƒ‡ăƒŒă‚żăƒ™ăƒŒă‚čăźć†æ§‹çŻ‰ăŒè§Łæ±șă™ă‚‹ă‹ă‚‚ă—ă‚ŒăŸă›ă‚“ă€‚", + "general.rebuild_database.label": "ăƒ‡ăƒŒă‚żăƒ™ăƒŒă‚čă‚’ć†æ§‹çŻ‰", + "general.rebuild_database.title": "ăƒ‡ăƒŒă‚żăƒ™ăƒŒă‚čă‚’ć†æ§‹çŻ‰", + "general.rebuild_database.warning.line1": "ăƒ‡ăƒŒă‚żăƒ™ăƒŒă‚čăźć†æ§‹çŻ‰ă«ă‚ˆă‚Šă€ă™ăčăŠăźăƒ­ăƒŒă‚«ăƒ«ăƒ‡ăƒŒă‚żăŒæ¶ˆćŽ»ă•ă‚ŒăŸă™ă€‚", + "general.rebuild_database.warning.line2": "æœŹćœ“ă«ç¶šèĄŒă—ăŸă™ă‹ïŒŸ", + "general.send_anonymous_data.description": "挿損挖されたテレメトăƒȘăƒŒăƒ‡ăƒŒă‚żă‚’é€äżĄă™ă‚‹ă“ăšă«ă‚ˆă‚Šă€Followăźć…šäœ“çš„ăȘăƒŠăƒŒă‚¶ăƒŒă‚šă‚Żă‚čペăƒȘスンă‚čた搑䞊にèČąçŒźă—ăŸă™ă€‚", + "general.send_anonymous_data.label": "ćŒżćăƒ‡ăƒŒă‚żă‚’é€äżĄ", + "general.show_unread_on_launch.description": "è”·ć‹•æ™‚ă«æœȘèȘ­ă‚łăƒłăƒ†ăƒłăƒ„ă‚’èĄšç€ș", + "general.show_unread_on_launch.label": "è”·ć‹•æ™‚ă«æœȘèȘ­ă‚łăƒłăƒ†ăƒłăƒ„ă‚’èĄšç€ș", + "general.sidebar_title": "äž€èˆŹ", + "general.timeline": "ă‚żă‚€ăƒ ăƒ©ă‚€ăƒł", + "general.unread": "æœȘèȘ­", + "general.voices": "音棰", + "integration.eagle.enable.description": "ćˆ©ç”šćŻèƒœăȘ栮搈、'Eagleă«ăƒĄăƒ‡ă‚Łă‚ąă‚’äżć­˜' ăƒœă‚żăƒłă‚’èĄšç€șă—ăŸă™ă€‚", + "integration.eagle.enable.label": "有ćŠč挖", + "integration.eagle.title": "Eagle", + "integration.instapaper.enable.description": "ćˆ©ç”šćŻèƒœăȘ栮搈、'Instapaperă«äżć­˜' ăƒœă‚żăƒłă‚’èĄšç€șă—ăŸă™ă€‚", + "integration.instapaper.enable.label": "有ćŠč挖", + "integration.instapaper.password.label": "Instapaperパă‚čăƒŻăƒŒăƒ‰", + "integration.instapaper.title": "Instapaper", + "integration.instapaper.username.label": "InstapaperăƒŠăƒŒă‚¶ăƒŒć", + "integration.readwise.enable.description": "ćˆ©ç”šćŻèƒœăȘ栮搈、'Readwiseă«äżć­˜' ăƒœă‚żăƒłă‚’èĄšç€șă—ăŸă™ă€‚", + "integration.readwise.enable.label": "有ćŠč挖", + "integration.readwise.title": "Readwise", + "integration.readwise.token.description": "ă“ăĄă‚‰ă§ć–ćŸ—ă§ăăŸă™: readwise.io/access_token.", + "integration.readwise.token.label": "Readwiseスクセă‚č ăƒˆăƒŒă‚Żăƒł", + "integration.sidebar_title": "由搈", + "integration.tip": "ヒント: あăȘăŸăźæ©ŸćŻ†ăƒ‡ăƒŒă‚żăŻăƒ­ăƒŒă‚«ăƒ«ă«äżć­˜ă•ă‚Œă€ă‚”ăƒŒăƒăƒŒă«ă‚ąăƒƒăƒ—ăƒ­ăƒŒăƒ‰ă•ă‚ŒăŸă›ă‚“ă€‚", + "integration.title": "由搈", + "invitation.activate": "ă‚ąă‚Żăƒ†ă‚Łăƒ™ăƒŒăƒˆ", + "invitation.codeOptions.betaUser": "1. ăƒ™ăƒŒă‚żăƒŠăƒŒă‚¶ăƒŒă‹ă‚‰æ‹›ćŸ…ă‚’ć—ă‘ă‚‹ă€‚", + "invitation.codeOptions.discord": "2. Discordă‚”ăƒŒăƒăƒŒă«ć‚ćŠ ă—ăŠă€æ™‚ă€…ăƒ—ăƒŹă‚Œăƒłăƒˆă‚’ă‚‚ă‚‰ă„ăŸă—ă‚‡ă†ă€‚", + "invitation.codeOptions.xAccount": "3. Xă‚ąă‚«ă‚Šăƒłăƒˆă‚’ăƒ•ă‚©ăƒ­ăƒŒă—ăŠă€æ™‚ă€…ăƒ—ăƒŹă‚Œăƒłăƒˆă‚’ă‚‚ă‚‰ă„ăŸă—ă‚‡ă†ă€‚", + "invitation.confirmModal.cancel": "ă‚­ăƒŁăƒłă‚»ăƒ«", + "invitation.confirmModal.confirm": "ç¶šă‘ăŸă™ă‹ïŒŸ", + "invitation.confirmModal.continue": "ç¶šèĄŒ", + "invitation.confirmModal.message": "æ‹›ćŸ…ă‚łăƒŒăƒ‰ă‚’ç”Ÿæˆă™ă‚‹ă«ăŻă€{{INVITATION_PRICE}} PowerăŒćż…èŠă§ă™ă€‚", + "invitation.confirmModal.title": "çąșèȘ", + "invitation.earlyAccess": "çŸćœšă€FollowăŻă‚ąăƒŒăƒȘăƒŒă‚ąă‚Żă‚»ă‚čäž­ă§ă€æ‹›ćŸ…ă‚łăƒŒăƒ‰ăŒćż…èŠă§ă™ă€‚", + "invitation.earlyAccessMessage": "😰 ç”łă—èšłă‚ă‚ŠăŸă›ă‚“ă€‚FollowăŻçŸćœšă‚ąăƒŒăƒȘăƒŒă‚ąă‚Żă‚»ă‚čäž­ă§ă€æ‹›ćŸ…ă‚łăƒŒăƒ‰ăŒćż…èŠă§ă™ă€‚", + "invitation.generateButton": "æ–°ă—ă„ă‚łăƒŒăƒ‰ă‚’ç”Ÿæˆ", + "invitation.generateCost": "{{INVITATION_PRICE}} Poweră‚’æ¶ˆèČ»ă—ăŠă€ć‹é”ăźăŸă‚ă«æ‹›ćŸ…ă‚łăƒŒăƒ‰ă‚’ç”Ÿæˆă§ăăŸă™ă€‚", + "invitation.getCodeMessage": "仄䞋たæ–čæł•ă§æ‹›ćŸ…ă‚łăƒŒăƒ‰ă‚’ć–ćŸ—ă§ăăŸă™ïŒš", + "invitation.newInvitationSuccess": "🎉 æ–°ă—ă„æ‹›ćŸ…ă‚łăƒŒăƒ‰ăŒç”Ÿæˆă•ă‚Œă€ă‚ŻăƒȘăƒƒăƒ—ăƒœăƒŒăƒ‰ă«ă‚łăƒ”ăƒŒă•ă‚ŒăŸă—ăŸ", + "invitation.noInvitations": "æ‹›ćŸ…ăŻă‚ă‚ŠăŸă›ă‚“", + "invitation.notUsed": "æœȘäœżç”š", + "invitation.sidebar_title": "æ‹›ćŸ…", + "invitation.tableHeaders.code": "ă‚łăƒŒăƒ‰", + "invitation.tableHeaders.creationTime": "䜜成時間", + "invitation.tableHeaders.usedBy": "äœżç”šè€…", + "invitation.title": "æ‹›ćŸ…ă‚łăƒŒăƒ‰", + "profile.avatar.label": "ă‚ąăƒă‚żăƒŒ", + "profile.handle.description": "あăȘăŸăźäž€æ„ăźè­˜ćˆ„ć­ă€‚", + "profile.handle.label": "ăƒăƒłăƒ‰ăƒ«", + "profile.name.description": "ć…Źé–‹èĄšç€ș損。", + "profile.name.label": "èĄšç€ș損", + "profile.sidebar_title": "ăƒ—ăƒ­ăƒ•ă‚ŁăƒŒăƒ«", + "profile.submit": "送信", + "profile.title": "ăƒ—ăƒ­ăƒ•ă‚ŁăƒŒăƒ«èš­ćźš", + "profile.updateSuccess": "ăƒ—ăƒ­ăƒ•ă‚ŁăƒŒăƒ«ăŒæ›Žæ–°ă•ă‚ŒăŸă—ăŸă€‚", + "titles.about": "ケバォト", + "titles.actions": "ă‚ąă‚Żă‚·ăƒ§ăƒł", + "titles.appearance": "ć€–èŠł", + "titles.general": "äž€èˆŹ", + "titles.integration": "由搈", + "titles.invitations": "æ‹›ćŸ…", + "titles.power": "Power", + "titles.profile": "ăƒ—ăƒ­ăƒ•ă‚ŁăƒŒăƒ«", + "titles.shortcuts": "ă‚·ăƒ§ăƒŒăƒˆă‚«ăƒƒăƒˆ", + "wallet.address.title": "あăȘたぼケドレă‚č", + "wallet.balance.title": "æź‹é«˜", + "wallet.balance.withdrawable": "ćŒ•ăć‡șă—ćŻèƒœ", + "wallet.balance.withdrawableTooltip": "ćŒ•ăć‡șă—ćŻèƒœăȘPoweră«ăŻă€ć—ă‘ć–ăŁăŸăƒăƒƒăƒ—ăšă€ć†ăƒăƒŁăƒŒă‚žă—ăŸPowerた䞥æ–čăŒć«ăŸă‚ŒăŸă™ă€‚", + "wallet.claim.button.claim": "ăƒ‡ă‚€ăƒȘăƒŒăƒ‘ăƒŻăƒŒă‚’ć–ćŸ—", + "wallet.claim.button.claimed": "ä»Šæ—„ć–ćŸ—æžˆăż", + "wallet.claim.tooltip.alreadyClaimed": "ä»Šæ—„ăŻă™ă§ă«ć–ćŸ—æžˆăżă§ă™ă€‚", + "wallet.claim.tooltip.canClaim": "{{amount}}ăźăƒ‡ă‚€ăƒȘăƒŒăƒ‘ăƒŻăƒŒă‚’ä»Šă™ăć–ćŸ—ă—ăŸă—ă‚‡ă†ïŒ", + "wallet.create.button": "ă‚Šă‚©ăƒŹăƒƒăƒˆă‚’äœœæˆ", + "wallet.create.description": " Poweră‚’ć—ă‘ć–ă‚‹ăŸă‚ăźç„Ąæ–™ă‚Šă‚©ăƒŹăƒƒăƒˆă‚’äœœæˆă—ă€ă‚ŻăƒȘă‚šă‚€ă‚żăƒŒă‚’ć ±é…Źă—ăŸă‚Šă€ă‚łăƒłăƒ†ăƒłăƒ„èČąçŒźă§ć ±é…Źă‚’ćŸ—ă‚‹ă“ăšăŒă§ăăŸă™ă€‚", + "wallet.power.dailyClaim": "æŻŽæ—„{{amount}}ăźç„Ąæ–™Poweră‚’ć–ćŸ—ă§ăă€ăă‚Œă‚’äœżăŁăŠFollowたRSSスントăƒȘă«ăƒăƒƒăƒ—ă‚’é€ă‚‹ă“ăšăŒă§ăăŸă™ă€‚", + "wallet.power.description": "Powerは、{{blockchainName}}ăƒ–ăƒ­ăƒƒă‚Żăƒă‚§ăƒŒăƒłäžŠăźERC-20ăƒˆăƒŒă‚Żăƒłă§ă™ă€‚", + "wallet.sidebar_title": "Power", + "wallet.transactions.amount": "金額", + "wallet.transactions.date": "旄付", + "wallet.transactions.from": "送信慃", + "wallet.transactions.noTransactions": "ăƒˆăƒ©ăƒłă‚¶ă‚Żă‚·ăƒ§ăƒłăȘし", + "wallet.transactions.title": "ăƒˆăƒ©ăƒłă‚¶ă‚Żă‚·ăƒ§ăƒł", + "wallet.transactions.to": "送信慈", + "wallet.transactions.tx": "ć–ćŒ•ID", + "wallet.transactions.type": "ă‚żă‚€ăƒ—", + "wallet.transactions.types.burn": "ăƒăƒŒăƒł", + "wallet.transactions.types.mint": "ミント", + "wallet.transactions.types.purchase": "èłŒć…„", + "wallet.transactions.types.tip": "チップ", + "wallet.transactions.types.withdraw": "ćŒ•ăć‡șし", + "wallet.transactions.you": "あăȘた", + "wallet.withdraw.addressLabel": "あăȘたぼEthereumケドレă‚č", + "wallet.withdraw.amountLabel": "金額", + "wallet.withdraw.availableBalance": "ćŒ•ăć‡șă—ćŻèƒœăȘPowerはです。", + "wallet.withdraw.button": "ćŒ•ăć‡șし", + "wallet.withdraw.error": "ćŒ•ăć‡șă—ă«ć€±æ•—ă—ăŸă—ăŸ: {{error}}", + "wallet.withdraw.modalTitle": "Poweră‚’ćŒ•ăć‡șす", + "wallet.withdraw.submitButton": "送信", + "wallet.withdraw.success": "ćŒ•ăć‡șă—ăŒæˆćŠŸă—ăŸă—ăŸïŒ" +} diff --git a/locales/settings/pt.json b/locales/settings/pt.json new file mode 100644 index 000000000..8f3514d3b --- /dev/null +++ b/locales/settings/pt.json @@ -0,0 +1,195 @@ +{ + "about.changelog": "HistĂłrico de AlteraçÔes", + "about.feedbackInfo": "{{appName}} ({{commitSha}}) estĂĄ nas fases iniciais de desenvolvimento. Se tiver algum feedback ou sugestĂŁo, fique Ă  vontade para abrir uma issue no nosso GitHub.", + "about.iconLibrary": "A biblioteca de Ă­cones utilizada Ă© protegida por direitos de autor por e nĂŁo pode ser redistribuĂ­da.", + "about.licenseInfo": "{{appName}} Ă© e sempre serĂĄ um projeto gratuito e de cĂłdigo aberto. EstĂĄ licenciado sob {{license}}.", + "about.sidebar_title": "Sobre", + "about.socialMedia": "Redes Sociais", + "actions.actionName": "Ação {{number}}", + "actions.action_card.add": "Adicionar", + "actions.action_card.all": "Tudo", + "actions.action_card.block_rules": "Regras de Bloqueio", + "actions.action_card.custom_filters": "Filtros Personalizados", + "actions.action_card.enable_readability": "Ativar legibilidade", + "actions.action_card.entry_options.all": "Tudo", + "actions.action_card.entry_options.author": "Autor", + "actions.action_card.entry_options.content": "ConteĂșdo", + "actions.action_card.entry_options.order": "Ordem", + "actions.action_card.entry_options.title": "TĂ­tulo", + "actions.action_card.entry_options.url": "Url", + "actions.action_card.feed_options.category": "Categoria", + "actions.action_card.feed_options.feed_url": "URL do Feed", + "actions.action_card.feed_options.site_url": "URL do Site", + "actions.action_card.feed_options.title": "TĂ­tulo", + "actions.action_card.feed_options.view": "Visualizar", + "actions.action_card.field": "Campo", + "actions.action_card.from": "De", + "actions.action_card.generate_summary": "Gerar resumo com IA", + "actions.action_card.name": "Nome", + "actions.action_card.operation_options.contains": "contĂ©m", + "actions.action_card.operation_options.does_not_contain": "nĂŁo contĂ©m", + "actions.action_card.operation_options.is_equal_to": "Ă© igual a", + "actions.action_card.operation_options.is_greater_than": "Ă© maior que", + "actions.action_card.operation_options.is_less_than": "Ă© menor que", + "actions.action_card.operation_options.is_not_equal_to": "nĂŁo Ă© igual a", + "actions.action_card.operation_options.matches_regex": "corresponde ao regex", + "actions.action_card.operator": "Operador", + "actions.action_card.rewrite_rules": "Reescrever Regras", + "actions.action_card.then_do": "EntĂŁo faz
", + "actions.action_card.to": "Para", + "actions.action_card.translate_into": "Traduzir para", + "actions.action_card.value": "Valor", + "actions.action_card.when_feeds_match": "Quando os feeds corresponderem
", + "actions.newRule": "Nova Regra", + "actions.save": "Guardar", + "actions.saveSuccess": "🎉 AçÔes guardadas.", + "actions.sidebar_title": "AçÔes", + "actions.title": "AçÔes", + "appearance.code_highlight_theme": "Tema de destaque de cĂłdigo", + "appearance.content": "ConteĂșdo", + "appearance.content_font": "Fonte do conteĂșdo", + "appearance.custom_font": "Fonte personalizada", + "appearance.fonts": "Fontes", + "appearance.general": "Geral", + "appearance.guess_code_language.description": "Principais linguagens de programação que utilizam modelos para inferir blocos de cĂłdigo nĂŁo rotulados", + "appearance.guess_code_language.label": "Adivinhar linguagem de cĂłdigo", + "appearance.misc": "VĂĄrios", + "appearance.modal_overlay.description": "Mostrar sobreposição modal", + "appearance.modal_overlay.label": "Mostrar sobreposição modal", + "appearance.opaque_sidebars.label": "Barras laterais opacas", + "appearance.reader_render_inline_style.description": "Permite renderizar o estilo inline do HTML original.", + "appearance.reader_render_inline_style.label": "Renderizar estilo inline", + "appearance.reduce_motion.description": "Reduzir o movimento dos elementos para melhorar o desempenho e reduzir o consumo de energia", + "appearance.reduce_motion.label": "Reduzir movimento", + "appearance.save": "Guardar", + "appearance.show_dock_badge.label": "Mostrar como badge no Dock", + "appearance.sidebar_show_unread_count.label": "Mostrar na barra lateral", + "appearance.sidebar_title": "AparĂȘncia", + "appearance.text_size": "Tamanho do texto", + "appearance.theme.dark": "Escuro", + "appearance.theme.label": "Tema", + "appearance.theme.light": "Claro", + "appearance.theme.system": "Sistema", + "appearance.title": "AparĂȘncia", + "appearance.ui_font": "Fonte da interface", + "appearance.unread_count": "Contagem de nĂŁo lidos", + "general.app": "App", + "general.data_persist.description": "Guardar os dados localmente para permitir o acesso offline e pesquisa local.", + "general.data_persist.label": "Guardar dados para uso offline", + "general.group_by_date.description": "Agrupar entradas por data.", + "general.group_by_date.label": "Agrupar por data", + "general.language": "Idioma", + "general.launch_at_login": "Lançar ao iniciar sessĂŁo", + "general.mark_as_read.hover.description": "Marcar automaticamente as entradas como lidas quando passar o rato sobre elas.", + "general.mark_as_read.hover.label": "Marcar como lido ao passar o rato", + "general.mark_as_read.render.description": "Marcar automaticamente as entradas de nĂ­vel Ășnico (por exemplo, posts em redes sociais, imagens, vĂ­deos visualizados) como lidas quando aparecerem.", + "general.mark_as_read.render.label": "Marcar como lido ao visualizar", + "general.mark_as_read.scroll.description": "Marcar automaticamente as entradas como lidas quando saem do campo de visĂŁo.", + "general.mark_as_read.scroll.label": "Marcar como lido ao rolar a pĂĄgina", + "general.privacy_data": "Privacidade & Dados", + "general.rebuild_database.button": "Reconstruir", + "general.rebuild_database.description": "Se estiver a ter problemas de renderização, reconstruir a base de dados pode resolver.", + "general.rebuild_database.label": "Reconstruir Base de Dados", + "general.rebuild_database.title": "Reconstruir Base de Dados", + "general.rebuild_database.warning.line1": "Reconstruir a base de dados vai apagar todos os seus dados locais.", + "general.rebuild_database.warning.line2": "Tem a certeza de que quer continuar?", + "general.send_anonymous_data.description": "Ao optar por enviar dados anĂłnimos de telemetria, estĂĄ a contribuir para a melhoria da experiĂȘncia do utilizador no Follow.", + "general.send_anonymous_data.label": "Enviar dados anĂłnimos", + "general.show_unread_on_launch.description": "Mostrar conteĂșdo nĂŁo lido ao iniciar", + "general.show_unread_on_launch.label": "Mostrar conteĂșdo nĂŁo lido ao iniciar", + "general.sidebar_title": "Geral", + "general.timeline": "Linha do tempo", + "general.unread": "NĂŁo lidos", + "general.voices": "Vozes", + "integration.eagle.enable.description": "Exibir o botĂŁo 'Guardar mĂ­dia no Eagle' quando disponĂ­vel.", + "integration.eagle.enable.label": "Ativar", + "integration.eagle.title": "Eagle", + "integration.instapaper.enable.description": "Exibir o botĂŁo 'Guardar no Instapaper' quando disponĂ­vel.", + "integration.instapaper.enable.label": "Ativar", + "integration.instapaper.password.label": "Palavra-passe do Instapaper", + "integration.instapaper.title": "Instapaper", + "integration.instapaper.username.label": "Nome de utilizador do Instapaper", + "integration.readwise.enable.description": "Exibir o botĂŁo 'Guardar no Readwise' quando disponĂ­vel.", + "integration.readwise.enable.label": "Ativar", + "integration.readwise.title": "Readwise", + "integration.readwise.token.description": "Pode obtĂȘ-lo aqui: readwise.io/access_token.", + "integration.readwise.token.label": "Token de Acesso do Readwise", + "integration.sidebar_title": "Integração", + "integration.tip": "Dica: Os seus dados sensĂ­veis sĂŁo armazenados localmente e nĂŁo sĂŁo carregados para o servidor.", + "integration.title": "Integração", + "invitation.activate": "Ativar", + "invitation.codeOptions.betaUser": "1. Encontre um utilizador beta que o convide.", + "invitation.codeOptions.discord": "2. Junte-se ao nosso servidor Discord e receba presentes ocasionais.", + "invitation.codeOptions.xAccount": "3. Siga a nossa conta no X para receber presentes ocasionalmente.", + "invitation.confirmModal.cancel": "Cancelar", + "invitation.confirmModal.confirm": "Deseja continuar?", + "invitation.confirmModal.continue": "Continuar", + "invitation.confirmModal.message": "Gerar um cĂłdigo de convite vai custar-lhe {{INVITATION_PRICE}} Power.", + "invitation.confirmModal.title": "Confirmar", + "invitation.earlyAccess": "O Follow estĂĄ atualmente em acesso antecipado e requer um cĂłdigo de convite para ser utilizado.", + "invitation.earlyAccessMessage": "😰 Desculpe, o Follow estĂĄ atualmente em acesso antecipado e requer um cĂłdigo de convite para ser utilizado.", + "invitation.generateButton": "Gerar novo cĂłdigo", + "invitation.generateCost": "Pode gastar {{INVITATION_PRICE}} Power para gerar um cĂłdigo de convite para os seus amigos.", + "invitation.getCodeMessage": "Pode obter um cĂłdigo de convite atravĂ©s dos seguintes mĂ©todos:", + "invitation.newInvitationSuccess": "🎉 Novo convite gerado, o cĂłdigo de convite foi copiado", + "invitation.noInvitations": "Sem convites", + "invitation.notUsed": "NĂŁo utilizado", + "invitation.sidebar_title": "Convites", + "invitation.tableHeaders.code": "CĂłdigo", + "invitation.tableHeaders.creationTime": "Hora de Criação", + "invitation.tableHeaders.usedBy": "Utilizado por", + "invitation.title": "CĂłdigo de Convite", + "profile.avatar.label": "Avatar", + "profile.handle.description": "O seu identificador Ășnico.", + "profile.handle.label": "Identificador", + "profile.name.description": "O seu nome pĂșblico visĂ­vel.", + "profile.name.label": "Nome de Exibição", + "profile.sidebar_title": "Perfil", + "profile.submit": "Submeter", + "profile.title": "ConfiguraçÔes de Perfil", + "profile.updateSuccess": "Perfil atualizado.", + "titles.about": "Sobre", + "titles.actions": "AçÔes", + "titles.appearance": "AparĂȘncia", + "titles.general": "Geral", + "titles.integration": "Integração", + "titles.invitations": "Convites", + "titles.power": "Power", + "titles.profile": "Perfil", + "titles.shortcuts": "Atalhos", + "wallet.address.title": "O Seu Endereço", + "wallet.balance.title": "O Seu Saldo", + "wallet.balance.withdrawable": "LevantĂĄvel", + "wallet.balance.withdrawableTooltip": "O Power levantĂĄvel inclui tanto as dicas que recebeu quanto o Power que recarregou.", + "wallet.claim.button.claim": "Reivindicar Power DiĂĄrio", + "wallet.claim.button.claimed": "Reivindicado hoje", + "wallet.claim.tooltip.alreadyClaimed": "JĂĄ reivindicou o seu Power hoje.", + "wallet.claim.tooltip.canClaim": "Reivindique agora o seu {{amount}} Power DiĂĄrio!", + "wallet.create.button": "Criar Carteira", + "wallet.create.description": "Crie uma carteira gratuita para receber Power, que pode ser utilizado para recompensar criadores e tambĂ©m para ser recompensado pelas suas contribuiçÔes de conteĂșdo.", + "wallet.power.dailyClaim": "Pode reivindicar {{amount}} de Power gratuito diariamente, que pode ser usado para dar dicas em entradas de RSS no Follow.", + "wallet.power.description": "O Power Ă© um token ERC-20 na blockchain {{blockchainName}}.", + "wallet.sidebar_title": "Power", + "wallet.transactions.amount": "Quantia", + "wallet.transactions.date": "Data", + "wallet.transactions.from": "De", + "wallet.transactions.noTransactions": "Sem transaçÔes", + "wallet.transactions.title": "TransaçÔes", + "wallet.transactions.to": "Para", + "wallet.transactions.tx": "Tx", + "wallet.transactions.type": "Tipo", + "wallet.transactions.types.burn": "queima", + "wallet.transactions.types.mint": "cunhagem", + "wallet.transactions.types.purchase": "compra", + "wallet.transactions.types.tip": "dica", + "wallet.transactions.types.withdraw": "levantamento", + "wallet.transactions.you": "VocĂȘ", + "wallet.withdraw.addressLabel": "O seu endereço Ethereum", + "wallet.withdraw.amountLabel": "Quantia", + "wallet.withdraw.availableBalance": "Tem de Power levantĂĄvel na sua carteira.", + "wallet.withdraw.button": "Levantar", + "wallet.withdraw.error": "O levantamento falhou: {{error}}", + "wallet.withdraw.modalTitle": "Levantar Power", + "wallet.withdraw.submitButton": "Submeter", + "wallet.withdraw.success": "Levantamento bem-sucedido!" +} diff --git a/locales/settings/zh-CN.json b/locales/settings/zh-CN.json new file mode 100644 index 000000000..be9372bb5 --- /dev/null +++ b/locales/settings/zh-CN.json @@ -0,0 +1,203 @@ +{ + "about.changelog": "æ›Žæ–°æ—„ćż—", + "about.feedbackInfo": "{{appName}} ({{commitSha}}) æ­Łć€„äșŽćŒ€ć‘çš„æ—©æœŸé˜¶æź”。\nèŻ·éšæ—¶ćœšæˆ‘ä»Źçš„ GitHub 䞊提ć‡șä»»äœ•ćéŠˆæˆ–ć»șèźź 。", + "about.iconLibrary": "äœżç”šçš„ć›Ÿæ ‡ćș“ç‰ˆæƒćœ’ æ‰€æœ‰ïŒŒäžèƒœé‡æ–°ćˆ†ć‘ă€‚", + "about.licenseInfo": "{{appName}} çŽ°ćœšć’Œć°†æ„éƒœæ˜Żäž€äžȘ慍èŽčäž”ćŒ€æșçš„éĄčç›źïŒŒćŒ€æșćèźźäžș {{license}} 。", + "about.sidebar_title": "慳äșŽ", + "about.socialMedia": "瀟äș€ćȘ’䜓", + "actions.actionName": "è§„ćˆ™ {{number}}", + "actions.action_card.add": "æ·»ćŠ ", + "actions.action_card.all": "慹郹", + "actions.action_card.block_rules": "é˜»æ­ąè§„ćˆ™", + "actions.action_card.custom_filters": "æŒ‡ćźšæĄä»¶", + "actions.action_card.enable_readability": "ćŻç”šé˜…èŻ»æšĄćŒ", + "actions.action_card.entry_options.all": "慹郹", + "actions.action_card.entry_options.author": "䜜者", + "actions.action_card.entry_options.content": "憅ćźč", + "actions.action_card.entry_options.order": "éĄșćș", + "actions.action_card.entry_options.title": "æ ‡éą˜", + "actions.action_card.entry_options.url": "铟掄", + "actions.action_card.feed_options.category": "ćˆ†ç±»", + "actions.action_card.feed_options.feed_url": "èźąé˜…æșćœ°ć€", + "actions.action_card.feed_options.site_url": "眑站铟掄", + "actions.action_card.feed_options.title": "æ ‡éą˜", + "actions.action_card.feed_options.view": "è§†ć›Ÿ", + "actions.action_card.field": "ć­—æź”", + "actions.action_card.from": "从", + "actions.action_card.generate_summary": "äœżç”š AI 生成摘芁", + "actions.action_card.name": "損称", + "actions.action_card.operation_options.contains": "ćŒ…ć«", + "actions.action_card.operation_options.does_not_contain": "äžćŒ…ć«", + "actions.action_card.operation_options.is_equal_to": "等äșŽ", + "actions.action_card.operation_options.is_greater_than": "性äșŽ", + "actions.action_card.operation_options.is_less_than": "氏äșŽ", + "actions.action_card.operation_options.is_not_equal_to": "侍等äșŽ", + "actions.action_card.operation_options.matches_regex": "ćŒčé…æ­Łćˆ™èĄšèŸŸćŒ", + "actions.action_card.operator": "èżçź—çŹŠ", + "actions.action_card.rewrite_rules": "é‡ć†™è§„ćˆ™", + "actions.action_card.then_do": "æ‰§èĄŒćŠšäœœ", + "actions.action_card.to": "戰", + "actions.action_card.translate_into": "çż»èŻ‘æˆ", + "actions.action_card.value": "ć€Œ", + "actions.action_card.when_feeds_match": "ćœ“èźąé˜…æșæ»Ąè¶łïŒš", + "actions.newRule": "æ–°è§„ćˆ™", + "actions.save": "保歘", + "actions.saveSuccess": "🎉 è§„ćˆ™ć·Č保歘", + "actions.sidebar_title": "è‡Ș抹挖", + "actions.title": "è‡Ș抹挖", + "appearance.code_highlight_theme": "代码高äșźäž»éą˜", + "appearance.content": "憅ćźč", + "appearance.content_font": "æ­Łæ–‡ć­—äœ“", + "appearance.custom_font": "è‡Ș漚äč‰ć­—䜓", + "appearance.fonts": "ć­—äœ“", + "appearance.general": "äž€èˆŹ", + "appearance.guess_code_language.description": "äœżç”šæšĄćž‹æŽšæ–­æœȘæ ‡èź°ä»Łç ć—çš„çŒ–çš‹èŻ­èš€", + "appearance.guess_code_language.label": "ä»Łç èŻ­èš€æŁ€æ”‹", + "appearance.misc": "杂éĄč", + "appearance.modal_overlay.description": "星ç€șéźçœ©ïŒŒèŽ·ćŸ—æ›Žć„œçš„äœżç”šäœ“éȘŒïŒŒæŽšèćŒ€ćŻ", + "appearance.modal_overlay.label": "星ç€șéźçœ©", + "appearance.opaque_sidebars.label": "䞍透明䟧èŸč栏", + "appearance.reader_render_inline_style.description": "ć…èźžæžČæŸ“ćŽŸć§‹ HTML çš„ć†…è”æ ·ćŒ", + "appearance.reader_render_inline_style.label": "æžČæŸ“ć†…è”æ ·ćŒ", + "appearance.reduce_motion.description": "ć‡ć°‘ç•ŒéąćŠšæ•ˆïŒŒæé«˜æ•Žäœ“æ€§èƒœćč¶ć‡ć°‘ç””量消耗", + "appearance.reduce_motion.label": "ć‡ć°‘ćŠšæ•ˆ", + "appearance.save": "保歘", + "appearance.show_dock_badge.label": "星ç€ș Dock ćŸœç« ", + "appearance.sidebar_show_unread_count.label": "ćœšäŸ§èŸč栏星ç€ș", + "appearance.sidebar_title": "ć€–è§‚", + "appearance.text_size": "ć­—äœ“ć€§ć°", + "appearance.theme.dark": "æ·±è‰Č", + "appearance.theme.label": "䞻鹘", + "appearance.theme.light": "äșźè‰Č", + "appearance.theme.system": "è·Ÿéšçł»ç»Ÿ", + "appearance.title": "ć€–è§‚", + "appearance.ui_font": "ç•Œéąć­—äœ“", + "appearance.unread_count": "æœȘèŻ»æ•°", + "feeds.claimTips": "èŠèź€èŻæ‚šçš„èźąé˜…æșćč¶æŽ„æ”¶æ‰“è”ïŒŒèŻ·ćœšèźąé˜…ćˆ—èĄšäž­ćłé”źç‚čć‡»èźąé˜…æșćč¶é€‰æ‹©â€œèź€èŻâ€", + "feeds.noFeeds": "æČĄæœ‰ć·Čèź€èŻçš„èźąé˜…æș", + "feeds.tableHeaders.entryCount": "æĄç›źæ•°", + "feeds.tableHeaders.name": "損称", + "feeds.tableHeaders.subscriptionCount": "èźąé˜…æ•°", + "feeds.tableHeaders.tipAmount": "æ”¶ćˆ°çš„æ‰“è”", + "general.app": "ćș”甚皋ćș", + "general.data_persist.description": "ćœšæœŹćœ°äżç•™æ•°æźä»„ćŻç”šçŠ»çșżèźżé—źć’ŒæœŹćœ°æœçŽą", + "general.data_persist.label": "äżç•™æ•°æźä»„äŸ›çŠ»çșżäœżç”š", + "general.group_by_date.description": "按旄期ćŻčæĄç›źèż›èĄŒćˆ†ç»„", + "general.group_by_date.label": "æŒ‰æ—„æœŸćˆ†ç»„", + "general.language": "èŻ­èš€", + "general.launch_at_login": "ćŒ€æœșè‡Ș搯抹", + "general.mark_as_read.hover.description": "éŒ æ ‡æ‚ŹćœćœšæĄç›źæ—¶ć°†è‡ȘćŠšæ ‡èź°äžșć·ČèŻ»", + "general.mark_as_read.hover.label": "æ‚Źćœæ—¶æ ‡èź°äžșć·ČèŻ»", + "general.mark_as_read.render.description": "æĄç›źèż›ć…„ćŻè§†ćŒșćŸŸæ—¶è‡ȘćŠšæ ‡èź°äžșć·ČèŻ»", + "general.mark_as_read.render.label": "朹çȘ—ćŁäž­æ—¶æ ‡èź°äžșć·ČèŻ»", + "general.mark_as_read.scroll.description": "ćœ“æĄç›źæ»šćŠšć‡șçȘ—ćŁæ—¶è‡ȘćŠšæ ‡èź°äžșć·ČèŻ»", + "general.mark_as_read.scroll.label": "æ»šćŠšæ—¶æ ‡èź°äžșć·ČèŻ»", + "general.privacy_data": "éšç§äžŽæ•°æź", + "general.rebuild_database.button": "重ć»ș", + "general.rebuild_database.description": "ć°èŻ•é‡ć»șæ•°æźćș“ćŻä»„è§Łć†łéƒšćˆ†æžČæŸ“æˆ–ć…¶ä»–ç±»ćž‹é—źéą˜", + "general.rebuild_database.label": "重ć»șæ•°æźćș“", + "general.rebuild_database.title": "重ć»șæ•°æźćș“", + "general.rebuild_database.warning.line1": "重ć»șæ•°æźćș“ć°†æž…é™€æ‰€æœ‰æœŹćœ°æ•°æźäž”æ— æł•æąć€", + "general.rebuild_database.warning.line2": "çĄźćźšç»§ç»­ïŒŸ", + "general.rebuild_database.warning[0]": "重ć»șæ•°æźćș“ć°†æž…é™€æ‰€æœ‰æœŹćœ°æ•°æźäž”æ— æł•æąć€", + "general.rebuild_database.warning[1]": "çĄźćźšç»§ç»­ïŒŸ", + "general.send_anonymous_data.description": "ć‘é€ćŒżćç”šæˆ·æ•°æźïŒŒćžźćŠ©äș§ć“æ”čèż›ć’ŒćŠŸèƒœèż­ä»Ł", + "general.send_anonymous_data.label": "ć‘é€ćŒżćæ•°æź", + "general.show_unread_on_launch.description": "ćŻćŠšæ—¶æ˜Ÿç€șæœȘèŻ»ć†…ćźč", + "general.show_unread_on_launch.label": "ćŻćŠšæ—¶æ˜Ÿç€șæœȘèŻ»ć†…ćźč", + "general.sidebar_title": "通甹", + "general.timeline": "时闎蜎", + "general.unread": "æœȘèŻ»", + "general.voices": "棰音", + "integration.eagle.enable.description": "星ç€ș\"保歘戰 Eagle\"æŒ‰é’źïŒˆćŠ‚æžœćŻç”šïŒ‰", + "integration.eagle.enable.label": "搯甹", + "integration.eagle.title": "Eagle", + "integration.instapaper.enable.description": "星ç€ș\"保歘戰 Instapaper\"æŒ‰é’źïŒˆćŠ‚æžœćŻç”šïŒ‰", + "integration.instapaper.enable.label": "搯甹", + "integration.instapaper.password.label": "毆码", + "integration.instapaper.title": "Instapaper", + "integration.instapaper.username.label": "Instapaper ç”šæˆ·ć", + "integration.readwise.enable.description": "星ç€ș\"保歘戰 Readwise\"æŒ‰é’źïŒˆćŠ‚æžœćŻç”šïŒ‰", + "integration.readwise.enable.label": "搯甹", + "integration.readwise.title": "Readwise", + "integration.readwise.token.description": "ćœšèż™é‡ŒèŽ·ć–ä»€ç‰Œ", + "integration.readwise.token.label": "Readwise èźżé—źä»€ç‰Œ", + "integration.sidebar_title": "第侉æ–čæŽ„ć…„", + "integration.tip": "提ç€șïŒšæ•æ„Ÿæ•°æźä»…ćœšæœŹćœ°ć­˜ć‚šïŒŒäžäŒšèą«æ”¶é›†æˆ–äžŠäŒ ćˆ°äș‘端", + "integration.title": "第侉æ–čæŽ„ć…„", + "invitation.activate": "æż€æŽ»", + "invitation.codeOptions.betaUser": "1. ćŻ»æ‰Ÿćč¶é‚€èŻ·ć†…æ”‹ç”šæˆ·", + "invitation.codeOptions.discord": "2. ćŠ ć…„ćź˜æ–č Discord éą‘é“ïŒŒäžćźšæœŸæœ‰è” ć“ć‘æ”Ÿ", + "invitation.codeOptions.xAccount": "3. ć…łæłšćź˜æ–č X èŽŠć·ćŠšæ€ïŒŒäžćźšæœŸæœ‰è” ć“ć‘æ”Ÿ", + "invitation.confirmModal.cancel": "ć–æ¶ˆ", + "invitation.confirmModal.confirm": "çĄźèź€ç»§ç»­ïŒŸ", + "invitation.confirmModal.continue": "ç»§ç»­", + "invitation.confirmModal.message": "ç”Ÿæˆé‚€èŻ·ç ć°†èŠ±èŽč {{INVITATION_PRICE}} Power", + "invitation.confirmModal.title": "çĄźèź€", + "invitation.earlyAccess": "Follow ç›źć‰ć€„äșŽæ—©æœŸćŒ€ć‘çŠ¶æ€ïŒŒéœ€èŠé‚€èŻ·ç æ‰èƒœäœżç”š", + "invitation.earlyAccessMessage": "😰 æŠ±æ­‰ïŒŒć…łæłšç›źć‰ć€„äșŽæŠąć…ˆäœ“éȘŒé˜¶æź”ïŒŒéœ€èŠé‚€èŻ·ç æ‰èƒœäœżç”š", + "invitation.generateButton": "ç”Ÿæˆé‚€èŻ·ç ", + "invitation.generateCost": "花èŽč {{INVITATION_PRICE}} Power ç”Ÿæˆé‚€èŻ·ç ", + "invitation.getCodeMessage": "é€šèż‡ä»„äž‹æ–čćŒèŽ·ć–é‚€èŻ·ç ïŒš", + "invitation.newInvitationSuccess": "🎉 é‚€èŻ·ç ć·Č生成ć·Čć€ćˆ¶ćˆ°ć‰ȘèŽŽæż", + "invitation.noInvitations": "æČĄæœ‰é‚€èŻ·", + "invitation.notUsed": "æœȘäœżç”š", + "invitation.sidebar_title": "é‚€èŻ·", + "invitation.tableHeaders.code": "代码", + "invitation.tableHeaders.creationTime": "戛ć»șæ—¶é—Ž", + "invitation.tableHeaders.usedBy": "äœżç”šè€…", + "invitation.title": "é‚€èŻ·ç ", + "profile.avatar.label": "ć€Žćƒ", + "profile.handle.description": "ć”Żäž€æ ‡èŻ†", + "profile.handle.label": "ć”Żäž€æ ‡èŻ†", + "profile.name.description": "äžȘäșșäž»éĄ”ć…ŹćŒ€æ˜Ÿç€ș的損称", + "profile.name.label": "損称", + "profile.sidebar_title": "äžȘäșș蔄料", + "profile.submit": "提äș€", + "profile.title": "é…çœźæ–‡ä»¶èźŸçœź", + "profile.updateSuccess": "äžȘäșș蔄料ć·Č曎新", + "titles.about": "慳äșŽ", + "titles.actions": "è‡Ș抹挖", + "titles.appearance": "ć€–è§‚", + "titles.general": "通甹", + "titles.integration": "集成", + "titles.invitations": "é‚€èŻ·", + "titles.power": "Power", + "titles.profile": "äžȘäșș蔄料", + "titles.shortcuts": "ćż«æ·é”ź", + "wallet.address.title": "朰杀", + "wallet.balance.title": "äœ™éą", + "wallet.balance.withdrawable": "ćŻæć–", + "wallet.balance.withdrawableTooltip": "ćŻæć–çš„ Power ćŒ…æ‹Źæ”¶ćˆ°çš„æ‰“è”ć’Œć……ć€Œ", + "wallet.claim.button.claim": "éą†ć–æŻæ—„ Power", + "wallet.claim.button.claimed": "今旄ć·Č鱆揖", + "wallet.claim.tooltip.alreadyClaimed": "ć·Čç»éą†ć–ïŒŒæ˜Žæ—„ć†æ„", + "wallet.claim.tooltip.canClaim": "ç«‹ćłéą†ć–äœ çš„ {{amount}} æŻæ—„ Power", + "wallet.create.button": "戛ć»șé’±ćŒ…", + "wallet.create.description": "戛ć»ș侀äžȘ慍èŽčé’±ćŒ… Power。陀äș†ç»™ć…¶ä»–ćˆ›äœœè€…æ‰“è”ïŒŒäčŸćŻä»„é€šèż‡èŽĄçŒźć†…ćźčæ„èŽ·ćŸ—ć„–ćŠ±ă€‚", + "wallet.power.dailyClaim": "æŻć€©éą†ć– {{amount}} äžȘ慍èŽč PowerïŒŒćŻä»„ćœš Follow 䞊打蔏 RSS æĄç›ź", + "wallet.power.description": "Power æ˜Ż {{blockchainName}} ćŒșć—é“ŸäžŠçš„äž€ç§ ERC-20 代极", + "wallet.sidebar_title": "Power", + "wallet.transactions.amount": "数量", + "wallet.transactions.date": "旄期", + "wallet.transactions.from": "ć‘é€è‡ł", + "wallet.transactions.noTransactions": "无äș€æ˜“èź°ćœ•", + "wallet.transactions.title": "äș€æ˜“èź°ćœ•", + "wallet.transactions.to": "掄收è‡Ș", + "wallet.transactions.tx": "äș€æ˜“", + "wallet.transactions.type": "类枋", + "wallet.transactions.types.burn": "é”€æŻ", + "wallet.transactions.types.mint": "链造", + "wallet.transactions.types.purchase": "莭äč°", + "wallet.transactions.types.tip": "打蔏", + "wallet.transactions.types.withdraw": "提现", + "wallet.transactions.you": "䜠", + "wallet.withdraw.addressLabel": "仄ć€Ș杊朰杀", + "wallet.withdraw.amountLabel": "数量", + "wallet.withdraw.availableBalance": "é’±ćŒ…äž­æœ‰ äžȘćŻæçŽ°çš„ Power", + "wallet.withdraw.button": "提现", + "wallet.withdraw.error": "æçŽ°ć€±èŽ„ïŒš{{error}}", + "wallet.withdraw.modalTitle": "提现 Power", + "wallet.withdraw.submitButton": "提äș€", + "wallet.withdraw.success": "æçŽ°æˆćŠŸïŒ" +} diff --git a/locales/settings/zh-TW.json b/locales/settings/zh-TW.json new file mode 100644 index 000000000..80b7eda89 --- /dev/null +++ b/locales/settings/zh-TW.json @@ -0,0 +1,195 @@ +{ + "about.changelog": "曎新旄èȘŒ", + "about.feedbackInfo": "{{appName}} ({{commitSha}}) æ­Łè™•æ–Œé–‹ç™Œæ—©æœŸéšŽæź”ă€‚ćŠ‚æžœæ‚šæœ‰ä»»äœ•ćé„‹æˆ–ć»șè­°ïŒŒè«‹éššæ™‚ćœšæˆ‘ć€‘çš„ GitHub 侊 提äș€ć•éĄŒ 。", + "about.iconLibrary": "æ‰€äœżç”šçš„ćœ–æš™ćș«ç‰ˆæŹŠç”± æ‰€æœ‰ïŒŒäžćŸ—é‡æ–°ćˆ†ç™Œă€‚", + "about.licenseInfo": "{{appName}} æ˜Żäž”ć°‡æ°žé æ˜Żäž€ć€‹ć…èȻ䞔開æșçš„é …ç›źă€‚ćźƒé”ćŸȘ {{license}} æŽˆæŹŠă€‚", + "about.sidebar_title": "關斌", + "about.socialMedia": "瀟矀ćȘ’é«”", + "actions.actionName": "操䜜 {{number}}", + "actions.action_card.add": "æ–°ćąž", + "actions.action_card.all": "慹郹", + "actions.action_card.block_rules": "ć°éŽ–èŠć‰‡", + "actions.action_card.custom_filters": "è‡Șèš‚éŽæżŸæąä»¶", + "actions.action_card.enable_readability": "ć•Ÿç”šé–±èź€æšĄćŒ", + "actions.action_card.entry_options.all": "慹郹", + "actions.action_card.entry_options.author": "䜜者", + "actions.action_card.entry_options.content": "慧ćźč", + "actions.action_card.entry_options.order": "順ćș", + "actions.action_card.entry_options.title": "æš™éĄŒ", + "actions.action_card.entry_options.url": "ç¶Č杀", + "actions.action_card.feed_options.category": "éĄžćˆ„", + "actions.action_card.feed_options.feed_url": "摘芁 URL", + "actions.action_card.feed_options.site_url": "ç¶Č站 URL", + "actions.action_card.feed_options.title": "æš™éĄŒ", + "actions.action_card.feed_options.view": "View", + "actions.action_card.field": "æŹ„äœ", + "actions.action_card.from": "ćŸž", + "actions.action_card.generate_summary": "äœżç”š AI 生成摘芁", + "actions.action_card.name": "ćçš±", + "actions.action_card.operation_options.contains": "ćŒ…ć«", + "actions.action_card.operation_options.does_not_contain": "äžćŒ…ć«", + "actions.action_card.operation_options.is_equal_to": "等斌", + "actions.action_card.operation_options.is_greater_than": "ć€§æ–Œ", + "actions.action_card.operation_options.is_less_than": "ć°æ–Œ", + "actions.action_card.operation_options.is_not_equal_to": "䞍等斌", + "actions.action_card.operation_options.matches_regex": "ćŒčé…æ­Łć‰‡èĄšé”ćŒ", + "actions.action_card.operator": "運缗笩", + "actions.action_card.rewrite_rules": "é‡ćŻ«èŠć‰‡", + "actions.action_card.then_do": "ç„¶ćŸŒćŸ·èĄŒâ€Š", + "actions.action_card.to": "戰", + "actions.action_card.translate_into": "çż»è­Żæˆ", + "actions.action_card.value": "ć€Œ", + "actions.action_card.when_feeds_match": "當摘芁ćŒč配時 ", + "actions.newRule": "æ–°ćąžèŠć‰‡", + "actions.save": "ć„Č歘", + "actions.saveSuccess": "🎉 操䜜ć·Čć„Č歘。", + "actions.sidebar_title": "操䜜", + "actions.title": "操䜜", + "appearance.code_highlight_theme": "çš‹ćŒçąŒé«˜äșźäž»éĄŒ", + "appearance.content": "慧ćźč", + "appearance.content_font": "慧ćźčć­—é«”", + "appearance.custom_font": "è‡ȘćźšçŸ©ć­—é«”", + "appearance.fonts": "ć­—é«”", + "appearance.general": "äž€èˆŹ", + "appearance.guess_code_language.description": "äœżç”šæšĄćž‹äŸ†æŽšæ–·æœȘæš™èš˜çš‹ćŒçąŒć€ćĄŠçš„äž»èŠçš‹ćŒèȘžèš€", + "appearance.guess_code_language.label": "æŽšæžŹçš‹ćŒçąŒèȘžèš€", + "appearance.misc": "Misc", + "appearance.modal_overlay.description": "饯ç€șæšĄæ…‹èŠ†è“‹ć±€", + "appearance.modal_overlay.label": "饯ç€șæšĄæ…‹èŠ†è“‹ć±€", + "appearance.opaque_sidebars.label": "äžé€æ˜ŽćŽé‚ŠæŹ„", + "appearance.reader_render_inline_style.description": "ć…èš±æžČæŸ“ćŽŸć§‹ HTML çš„èĄŒć…§æšŁćŒă€‚", + "appearance.reader_render_inline_style.label": "æžČæŸ“èĄŒć…§æšŁćŒ", + "appearance.reduce_motion.description": "æž›ć°‘ć…ƒçŽ çš„ć‹•ç•«æ•ˆæžœä»„æć‡æ•ˆèƒœäžŠé™äœŽèƒœè€—ă€‚", + "appearance.reduce_motion.label": "æž›ć°‘ć‹•ç•«", + "appearance.save": "ć„Č歘", + "appearance.show_dock_badge.label": "饯ç€șç‚ș Dock ćŸœç« ", + "appearance.sidebar_show_unread_count.label": "ćœšćŽé‚ŠæŹ„äž­éĄŻç€ș", + "appearance.sidebar_title": "ć€–è§€", + "appearance.text_size": "æ–‡ć­—ć€§ć°", + "appearance.theme.dark": "æ·±è‰Č", + "appearance.theme.label": "äž»éĄŒ", + "appearance.theme.light": "æ·șè‰Č", + "appearance.theme.system": "系由", + "appearance.title": "ć€–è§€", + "appearance.ui_font": "ä»‹éąć­—é«”", + "appearance.unread_count": "æœȘèź€èšˆæ•ž", + "general.app": "App", + "general.data_persist.description": "æœŹćœ°äżć­˜æ•žæ“šä»„ć•Ÿç”šé›ąç·šèšȘć•ć’ŒæœŹćœ°æœć°‹ă€‚", + "general.data_persist.label": "é›ąç·šæ™‚äżæŒèł‡æ–™", + "general.group_by_date.description": "æŒ‰æ—„æœŸćˆ†ç”„é …ç›ź", + "general.group_by_date.label": "æŒ‰æ—„æœŸćˆ†ç”„", + "general.language": "èȘžèš€", + "general.launch_at_login": "ç™»ć…„æ™‚ć•Ÿć‹•", + "general.mark_as_read.hover.description": "æžžæš™æ‡žćœæ™‚è‡Șć‹•ć°‡æąç›źæš™èš˜ç‚șć·Čèź€ă€‚", + "general.mark_as_read.hover.label": "滑過時暙蚘ç‚șć·Čèź€", + "general.mark_as_read.render.description": "ç•¶ć–źć±€çŽšæąç›źïŒˆäŸ‹ćŠ‚ç€ŸçŸ€ćȘ’é«”èČŒæ–‡ă€ćœ–ç‰‡ă€ćœ±ç‰‡ç€èŠœïŒ‰é€Čć…„èŠ–ćœ–æ™‚è‡Șć‹•æš™èš˜ç‚șć·Čèź€ă€‚", + "general.mark_as_read.render.label": "饯ç€ș時暙蚘ç‚șć·Čèź€", + "general.mark_as_read.scroll.description": "ç•¶æąç›źæČć‹•é›ąé–‹èŠ–ćœ–æ™‚è‡Șć‹•æš™èš˜ç‚șć·Čèź€ă€‚", + "general.mark_as_read.scroll.label": "æČć‹•æ™‚æš™èš˜ç‚șć·Čèź€", + "general.privacy_data": "隱私與敞據", + "general.rebuild_database.button": "重ć»ș", + "general.rebuild_database.description": "ćŠ‚æžœæ‚šé‡ćˆ°æžČæŸ“ć•éĄŒïŒŒé‡ć»șèł‡æ–™ćș«ćŻèƒœćŻä»„è§Łæ±ș。", + "general.rebuild_database.label": "重ć»șèł‡æ–™ćș«", + "general.rebuild_database.title": "重ć»șèł‡æ–™ćș«", + "general.rebuild_database.warning.line1": "重ć»șèł‡æ–™ćș«ć°‡æœƒæž…é™€æ‚šæ‰€æœ‰çš„æœŹćœ°èł‡æ–™ă€‚", + "general.rebuild_database.warning.line2": "悚çąșćźšèŠçčŒçșŒć—ŽïŒŸ", + "general.send_anonymous_data.description": "éžæ“‡ć‚łé€ćŒżćé™æžŹæ•žæ“šïŒŒæ‚šć°‡ćč«ćŠ©æ”č斄 Follow çš„æ•Žé«”äœżç”šé«”é©—ă€‚", + "general.send_anonymous_data.label": "ć‚łé€ćŒżćèł‡æ–™", + "general.show_unread_on_launch.description": "ć•Ÿć‹•æ™‚éĄŻç€șæœȘèź€ć…§ćźč", + "general.show_unread_on_launch.label": "ć•Ÿć‹•æ™‚éĄŻç€șæœȘèź€ć…§ćźč", + "general.sidebar_title": "äž€èˆŹ", + "general.timeline": "時間軞", + "general.unread": "æœȘèź€", + "general.voices": "èČ音", + "integration.eagle.enable.description": "饯ç€ș\"氇ćȘ’é«”äżć­˜ćˆ° Eagle\"æŒ‰éˆ•ïŒˆćŠ‚æžœćŻç”šïŒ‰ă€‚", + "integration.eagle.enable.label": "敟甹", + "integration.eagle.title": "Eagle", + "integration.instapaper.enable.description": "饯ç€ș\"保歘戰 Instapaper\"æŒ‰é’źïŒˆćŠ‚æžœćŻç”šïŒ‰ă€‚", + "integration.instapaper.enable.label": "敟甹", + "integration.instapaper.password.label": "ćŻ†çąŒ", + "integration.instapaper.title": "Instapaper", + "integration.instapaper.username.label": "Instapaper äœżç”šè€…", + "integration.readwise.enable.description": "饯ç€ș\"保歘戰 Readwise\"æŒ‰é’źïŒˆćŠ‚æžœćŻç”šïŒ‰ă€‚", + "integration.readwise.enable.label": "敟甹", + "integration.readwise.title": "Readwise", + "integration.readwise.token.description": "æ‚šćŻä»„ćœšé€™èŁĄçČ揖漃", + "integration.readwise.token.label": "Readwise ć­˜ć–ä»€ç‰Œ", + "integration.sidebar_title": "æ•ŽćˆćŠŸèƒœ", + "integration.tip": "提ç€șïŒšæ‚šçš„æ•æ„Ÿèł‡æ–™ć„Čć­˜æ–ŒæœŹćœ°ïŒŒäžæœƒäžŠć‚łćˆ°äŒșæœć™šă€‚", + "integration.title": "æ•ŽćˆćŠŸèƒœ", + "invitation.activate": "敟甹", + "invitation.codeOptions.betaUser": "1. ć°‹æ‰Ÿé‚€è«‹æ‚šçš„æžŹè©Šç‰ˆç”šæˆ¶ă€‚", + "invitation.codeOptions.discord": "2. ćŠ ć…„æˆ‘ä»Źçš„ Discord äŒșæœć™šïŒŒć¶è€ŒçČćŸ—èŽˆć“ă€‚", + "invitation.codeOptions.xAccount": "3.é—œæłšæˆ‘ć€‘çš„ X ćžłè™ŸïŒŒäžćźšæœŸæœ‰èŽˆć“ă€‚", + "invitation.confirmModal.cancel": "ć–æ¶ˆ", + "invitation.confirmModal.confirm": "æ‚šæƒłçčŒçșŒć—ŽïŒŸ", + "invitation.confirmModal.continue": "çčŒçșŒ", + "invitation.confirmModal.message": "ç”ąç”Ÿé‚€è«‹çąŒć°‡æœƒèŠ±èČ»æ‚š {{INVITATION_PRICE}} Power。", + "invitation.confirmModal.title": "çąșèȘ", + "invitation.earlyAccess": "Follow ç›źć‰è™•æ–Œ æ—©æœŸé–‹ç™Œç‹€æ…‹ïŒŒéœ€èŠé‚€è«‹çąŒæ‰èƒœäœżç”šă€‚", + "invitation.earlyAccessMessage": "😰 æŠ±æ­‰ïŒŒé—œæłšç›źć‰è™•æ–Œæ¶ć…ˆé«”é©—éšŽæź”ïŒŒéœ€èŠé‚€è«‹çąŒæ‰èƒœäœżç”šă€‚", + "invitation.generateButton": "ç”ąç”Ÿé‚€è«‹çąŒ", + "invitation.generateCost": "æ‚šćŻä»„èŠ±èČ» {{INVITATION_PRICE}} Power ç‚șæ‚šçš„æœ‹ć‹ç”ąç”Ÿé‚€è«‹çąŒă€‚", + "invitation.getCodeMessage": "æ‚šćŻä»„é€šéŽä»„äž‹æ–čćŒçČć–é‚€è«‹çąŒïŒš", + "invitation.newInvitationSuccess": "🎉 é‚€è«‹çąŒć·Č由生, é‚€è«‹çąŒć·Čè€‡èŁœ", + "invitation.noInvitations": "æČ’有邀請", + "invitation.notUsed": "ç‚șäœżç”š", + "invitation.sidebar_title": "邀請", + "invitation.tableHeaders.code": "ä»ŁçąŒ", + "invitation.tableHeaders.creationTime": "ć»ș立時間", + "invitation.tableHeaders.usedBy": "äœżç”šè€…", + "invitation.title": "é‚€è«‹çąŒ", + "profile.avatar.label": "性頭èČŒ", + "profile.handle.description": "æ‚šçš„ć”Żäž€è­˜ćˆ„çąŒ", + "profile.handle.label": "Handle", + "profile.name.description": "æ‚šçš„ć…Źé–‹éĄŻç€șćçš±ă€‚", + "profile.name.label": "饯ç€șćçš±", + "profile.sidebar_title": "怋äșșèł‡æ–™", + "profile.submit": "送ć‡ș", + "profile.title": "é…çœźæ–‡ä»¶èš­ćźš", + "profile.updateSuccess": "怋äșșèł‡æ–™ć·Čæ›Žæ–°ă€‚", + "titles.about": "關斌", + "titles.actions": "指什", + "titles.appearance": "ć€–è§€", + "titles.general": "äž€èˆŹ", + "titles.integration": "æ•Žćˆ", + "titles.invitations": "邀請", + "titles.power": "Power", + "titles.profile": "怋äșșèł‡æ–™", + "titles.shortcuts": "ćż«æ·é”", + "wallet.address.title": "æ‚šçš„ćœ°ć€", + "wallet.balance.title": "æ‚šçš„é€˜éĄ", + "wallet.balance.withdrawable": "ćŻæć–", + "wallet.balance.withdrawableTooltip": "ćŻæć–çš„ Power ćŒ…æ‹Źäœ æ”¶ćˆ°çš„èŽŠćŠ©ć’Œć……ć€Œçš„ Power。", + "wallet.claim.button.claim": "é ˜ć–æŻæ—„ Power", + "wallet.claim.button.claimed": "今旄ć·Č領揖", + "wallet.claim.tooltip.alreadyClaimed": "æ‚šä»Šć€©ć·Čç¶“é ˜ć–éŽäș†ă€‚", + "wallet.claim.tooltip.canClaim": "ç«‹ćłé ˜ć–æ‚šçš„ {{amount}} æŻæ—„ Power", + "wallet.create.button": "ć»șç«‹éŒąćŒ…", + "wallet.create.description": "ć»șç«‹äž€ć€‹ć…èČ»éŒąćŒ…ä»„æŽ„æ”¶ PowerïŒŒćŻç”šæ–ŒçŽć‹”ć‰”äœœè€…ïŒŒäčŸćŻä»„ć› æ‚šçš„ć…§ćźčèČąç»è€ŒçČćŸ—çŽć‹”ă€‚", + "wallet.power.dailyClaim": "æ‚šæŻć€©ćŻä»„é ˜ć– {{amount}} 怋慍èČ» PowerïŒŒćŻç”šæ–Œćœš Follow äžŠèŽŠćŠ© RSS 項盼。", + "wallet.power.description": "Power æ˜Ż {{blockchainName}} 捀桊鏈侊的侀繼 ERC-20 代ćčŁă€‚", + "wallet.sidebar_title": "Power", + "wallet.transactions.amount": "敞量", + "wallet.transactions.date": "旄期", + "wallet.transactions.from": "ç™Œé€è‡ł", + "wallet.transactions.noTransactions": "無äș€æ˜“玀錄", + "wallet.transactions.title": "äș€æ˜“玀錄", + "wallet.transactions.to": "掄收è‡Ș", + "wallet.transactions.tx": "äș€æ˜“", + "wallet.transactions.type": "類枋", + "wallet.transactions.types.burn": "burn", + "wallet.transactions.types.mint": "mint", + "wallet.transactions.types.purchase": "purchase", + "wallet.transactions.types.tip": "tip", + "wallet.transactions.types.withdraw": "withdraw", + "wallet.transactions.you": "悚", + "wallet.withdraw.addressLabel": "悚的仄ć€Ș杊朰杀", + "wallet.withdraw.amountLabel": "敞量", + "wallet.withdraw.availableBalance": "æ‚šçš„éŒąćŒ…äž­æœ‰ ćŻæć– Power。", + "wallet.withdraw.button": "æć–", + "wallet.withdraw.error": "æć–ć€±èŽ„ïŒš{{error}}", + "wallet.withdraw.modalTitle": "æć– Power", + "wallet.withdraw.submitButton": "送ć‡ș", + "wallet.withdraw.success": "æć–æˆćŠŸïŒ" +} diff --git a/locales/shortcuts/en.json b/locales/shortcuts/en.json new file mode 100644 index 000000000..0a03f08e0 --- /dev/null +++ b/locales/shortcuts/en.json @@ -0,0 +1,24 @@ +{ + "keys.audio.playPause": "Play/Pause (When the audio player is open)", + "keys.entries.markAllAsRead": "Mark All as Read", + "keys.entries.next": "Next Entry", + "keys.entries.previous": "Previous Entry", + "keys.entries.refetch": "Refetch", + "keys.entries.toggleUnreadOnly": "Toggle Unread Only", + "keys.entry.copyLink": "Copy Link", + "keys.entry.openInBrowser": "Open in Browser", + "keys.entry.openInNewTab": "Open in New Tab", + "keys.entry.scrollDown": "Scroll Down", + "keys.entry.scrollUp": "Scroll Up", + "keys.entry.share": "Share", + "keys.entry.tip": "Tip Power", + "keys.entry.toggleRead": "Toggle Read", + "keys.entry.toggleStarred": "Toggle Starred", + "keys.entry.tts": "Play TTS", + "keys.feeds.add": "Add Subscription", + "keys.feeds.switchBetweenViews": "Switch Between Views", + "keys.feeds.switchToView": "Switch to View", + "keys.layout.showShortcuts": "Show/Hide Shortcuts", + "keys.layout.toggleSidebar": "Show/Hide Feed Sidebar", + "sidebar_title": "Shortcuts" +} diff --git a/locales/shortcuts/fr.json b/locales/shortcuts/fr.json new file mode 100644 index 000000000..aa30690d9 --- /dev/null +++ b/locales/shortcuts/fr.json @@ -0,0 +1,24 @@ +{ + "keys.audio.playPause": "Lecture/Pause (Lorsque le lecteur audio est ouvert)", + "keys.entries.markAllAsRead": "Marquer tout comme lu", + "keys.entries.next": "EntrĂ©e suivante", + "keys.entries.previous": "EntrĂ©e prĂ©cĂ©dente", + "keys.entries.refetch": "Recharger", + "keys.entries.toggleUnreadOnly": "Basculer sur Non lus uniquement", + "keys.entry.copyLink": "Copier le lien", + "keys.entry.openInBrowser": "Ouvrir dans le navigateur", + "keys.entry.openInNewTab": "Ouvrir dans un nouvel onglet", + "keys.entry.scrollDown": "Faire dĂ©filer vers le bas", + "keys.entry.scrollUp": "Faire dĂ©filer vers le haut", + "keys.entry.share": "Partager", + "keys.entry.tip": "Donner un pourboire Power", + "keys.entry.toggleRead": "Basculer comme lu/non lu", + "keys.entry.toggleStarred": "Basculer en favori", + "keys.entry.tts": "Lire le texte Ă  haute voix", + "keys.feeds.add": "Ajouter un abonnement", + "keys.feeds.switchBetweenViews": "Changer entre les vues", + "keys.feeds.switchToView": "Passer Ă  la vue", + "keys.layout.showShortcuts": "Afficher/Masquer les raccourcis", + "keys.layout.toggleSidebar": "Afficher/Masquer la barre latĂ©rale des flux", + "sidebar_title": "Raccourcis" +} diff --git a/locales/shortcuts/ja.json b/locales/shortcuts/ja.json new file mode 100644 index 000000000..da18f7139 --- /dev/null +++ b/locales/shortcuts/ja.json @@ -0,0 +1,24 @@ +{ + "keys.audio.playPause": "憍生/äž€æ™‚ćœæ­ąïŒˆă‚ȘăƒŒăƒ‡ă‚Łă‚Șăƒ—ăƒŹăƒŒăƒ€ăƒŒăŒé–‹ă„ăŠă„ă‚‹ăšăïŒ‰", + "keys.entries.markAllAsRead": "すăčăŠæ—ąèȘ­ă«ă™ă‚‹", + "keys.entries.next": "æŹĄăźă‚šăƒłăƒˆăƒȘ", + "keys.entries.previous": "才ぼスントăƒȘ", + "keys.entries.refetch": "ć†ć–ćŸ—", + "keys.entries.toggleUnreadOnly": "æœȘèȘ­ăźăżćˆ‡ă‚Šæ›żăˆ", + "keys.entry.copyLink": "ăƒȘăƒłă‚Żă‚’ă‚łăƒ”ăƒŒ", + "keys.entry.openInBrowser": "ăƒ–ăƒ©ă‚Šă‚¶ă§é–‹ă", + "keys.entry.openInNewTab": "æ–°ă—ă„ă‚żăƒ–ă§é–‹ă", + "keys.entry.scrollDown": "䞋にă‚čă‚Żăƒ­ăƒŒăƒ«", + "keys.entry.scrollUp": "䞊にă‚čă‚Żăƒ­ăƒŒăƒ«", + "keys.entry.share": "ć…±æœ‰", + "keys.entry.tip": "チップを送る", + "keys.entry.toggleRead": "æ—ąèȘ­/æœȘèȘ­ăźćˆ‡ă‚Šæ›żăˆ", + "keys.entry.toggleStarred": "ă‚čă‚żăƒŒăźćˆ‡ă‚Šæ›żăˆ", + "keys.entry.tts": "TTSを憍生", + "keys.feeds.add": "èłŒèȘ­ă‚’èżœćŠ ", + "keys.feeds.switchBetweenViews": "ăƒ“ăƒ„ăƒŒă‚’ćˆ‡ă‚Šæ›żăˆ", + "keys.feeds.switchToView": "ăƒ“ăƒ„ăƒŒă«ćˆ‡ă‚Šæ›żăˆ", + "keys.layout.showShortcuts": "ă‚·ăƒ§ăƒŒăƒˆă‚«ăƒƒăƒˆă‚’èĄšç€ș/éžèĄšç€ș", + "keys.layout.toggleSidebar": "ăƒ•ă‚ŁăƒŒăƒ‰ă‚”ă‚€ăƒ‰ăƒăƒŒăźèĄšç€ș/éžèĄšç€ș", + "sidebar_title": "ă‚·ăƒ§ăƒŒăƒˆă‚«ăƒƒăƒˆ" +} diff --git a/locales/shortcuts/pt.json b/locales/shortcuts/pt.json new file mode 100644 index 000000000..85d13c60a --- /dev/null +++ b/locales/shortcuts/pt.json @@ -0,0 +1,24 @@ +{ + "keys.audio.playPause": "Reproduzir/Pausar (Quando o reprodutor de ĂĄudio estiver aberto)", + "keys.entries.markAllAsRead": "Marcar Tudo como Lido", + "keys.entries.next": "PrĂłxima Entrada", + "keys.entries.previous": "Entrada Anterior", + "keys.entries.refetch": "Recarregar", + "keys.entries.toggleUnreadOnly": "Alternar Apenas NĂŁo Lidos", + "keys.entry.copyLink": "Copiar Link", + "keys.entry.openInBrowser": "Abrir no Navegador", + "keys.entry.openInNewTab": "Abrir numa Nova Aba", + "keys.entry.scrollDown": "Rolar para Baixo", + "keys.entry.scrollUp": "Rolar para Cima", + "keys.entry.share": "Partilhar", + "keys.entry.tip": "Dar Dica", + "keys.entry.toggleRead": "Alternar Leitura", + "keys.entry.toggleStarred": "Alternar Favorito", + "keys.entry.tts": "Reproduzir TTS", + "keys.feeds.add": "Adicionar Subscrição", + "keys.feeds.switchBetweenViews": "Alternar Entre VisualizaçÔes", + "keys.feeds.switchToView": "Mudar para Visualização", + "keys.layout.showShortcuts": "Mostrar/Ocultar Atalhos", + "keys.layout.toggleSidebar": "Mostrar/Ocultar Barra Lateral de Feed", + "sidebar_title": "Atalhos" +} diff --git a/locales/shortcuts/zh-CN.json b/locales/shortcuts/zh-CN.json new file mode 100644 index 000000000..ef02abeea --- /dev/null +++ b/locales/shortcuts/zh-CN.json @@ -0,0 +1,24 @@ +{ + "keys.audio.playPause": "播攟/æš‚ćœ", + "keys.entries.markAllAsRead": "ć…šéƒšæ ‡èź°äžșć·ČèŻ»", + "keys.entries.next": "例侀äžȘæĄç›ź", + "keys.entries.previous": "侊侀äžȘæĄç›ź", + "keys.entries.refetch": "ćˆ·æ–°", + "keys.entries.toggleUnreadOnly": "ćˆ‡æąä»…æœȘèŻ»", + "keys.entry.copyLink": "ć€ćˆ¶é“ŸæŽ„", + "keys.entry.openInBrowser": "ćœšæ”è§ˆć™šæ‰“ćŒ€", + "keys.entry.openInNewTab": "ćœšæ–°çš„æ ‡ç­ŸéĄ”æ‰“ćŒ€", + "keys.entry.scrollDown": "ć‘äž‹æ»šćŠš", + "keys.entry.scrollUp": "ć‘äžŠæ»šćŠš", + "keys.entry.share": "戆äș«", + "keys.entry.tip": "打蔏", + "keys.entry.toggleRead": "æ ‡èź°äžșć·ČèŻ»/æœȘèŻ»", + "keys.entry.toggleStarred": "ćŠ ć…„æ”¶è—/ć–æ¶ˆæ”¶è—", + "keys.entry.tts": "æ–‡æœŹèœŹèŻ­éŸł", + "keys.feeds.add": "æ·»ćŠ èźąé˜…æș", + "keys.feeds.switchBetweenViews": "ćœšç±»ćž‹äč‹é—Žćˆ‡æą", + "keys.feeds.switchToView": "ćˆ‡æąćˆ°æŒ‡ćźšç±»ćž‹", + "keys.layout.showShortcuts": "星ç€ș/éšè—ćż«æ·é”ź", + "keys.layout.toggleSidebar": "星ç€ș/隐藏䟧èŸč栏", + "sidebar_title": "ćż«æ·é”ź" +} diff --git a/locales/shortcuts/zh-TW.json b/locales/shortcuts/zh-TW.json new file mode 100644 index 000000000..98266553e --- /dev/null +++ b/locales/shortcuts/zh-TW.json @@ -0,0 +1,24 @@ +{ + "keys.audio.playPause": "æ’­æ”ŸïŒæš«ćœïŒˆç•¶éŸłé »æ’­æ”Ÿć™šé–‹ć•Ÿæ™‚ïŒ‰", + "keys.entries.markAllAsRead": "ć…šéƒšæš™èš˜ç‚șć·Čèź€", + "keys.entries.next": "äž‹äž€æąç›ź", + "keys.entries.previous": "äžŠäž€æąç›ź", + "keys.entries.refetch": "重新çČ揖", + "keys.entries.toggleUnreadOnly": "ćˆ‡æ›ćƒ…éĄŻç€șæœȘèź€", + "keys.entry.copyLink": "è€‡èŁœé€Łç”", + "keys.entry.openInBrowser": "ćœšç€èŠœć™šäž­æ‰“é–‹", + "keys.entry.openInNewTab": "ćœšæ–°ćˆ†é äž­æ‰“é–‹", + "keys.entry.scrollDown": "搑例æČ拕", + "keys.entry.scrollUp": "搑侊æČ拕", + "keys.entry.share": "戆äș«", + "keys.entry.tip": "æ‰“èłž Power", + "keys.entry.toggleRead": "ćˆ‡æ›ć·Čèź€ïŒæœȘèź€", + "keys.entry.toggleStarred": "ćˆ‡æ›æ”¶è—/ć–æ¶ˆæ”¶è—", + "keys.entry.tts": "播攟èȘžéŸłæœ—èź€", + "keys.feeds.add": "æ–°ćąžèš‚é–±", + "keys.feeds.switchBetweenViews": "ćˆ‡æ›èŠ–ćœ–", + "keys.feeds.switchToView": "ćˆ‡æ›ćˆ°èŠ–ćœ–", + "keys.layout.showShortcuts": "饯ç€șïŒéš±è—ćż«æ·é”", + "keys.layout.toggleSidebar": "饯ç€șïŒéš±è—æ‘˜èŠćŽé‚ŠæŹ„", + "sidebar_title": "ćż«æ·é”" +} diff --git a/package.json b/package.json index e2c407033..c4b77a871 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "Follow", "type": "module", - "version": "0.0.1-alpha.11", + "version": "0.0.1-alpha.12", "private": true, "packageManager": "pnpm@9.10.0+sha512.73a29afa36a0d092ece5271de5177ecbf8318d454ecd701343131b8ebc0c1a91c487da46ab77c8e596d6acf1461e3594ced4becedf8921b074fbd8653ed7051c", "description": "Next generation information browser", @@ -23,6 +23,7 @@ "dev:debug": "export DEBUG=true && vite --debug", "dev:web": "vite", "format": "prettier --write .", + "generator:i18n-template": "tsx scripts/generate-i18n-locale.ts", "lint": "eslint", "lint:fix": "eslint --fix", "polyfill-optimize": "pnpx nolyfill install", @@ -90,7 +91,7 @@ "electron-updater": "^6.3.4", "font-list": "1.5.1", "foxact": "0.2.38", - "framer-motion": "11.0.10", + "framer-motion": "11.5.4", "franc-min": "6.2.0", "fuse.js": "7.0.0", "hast-util-to-jsx-runtime": "2.3.0", @@ -147,6 +148,7 @@ }, "devDependencies": { "@babel/generator": "7.25.6", + "@clack/prompts": "0.7.0", "@egoist/tailwindcss-icons": "1.8.1", "@electron-forge/cli": "7.4.0", "@electron-forge/maker-dmg": "7.4.0", @@ -191,6 +193,7 @@ "simple-git-hooks": "2.11.1", "tailwindcss": "3.4.11", "tailwindcss-animate": "1.0.7", + "tsx": "4.19.1", "typescript": "^5.6.2", "vite": "^5.4.4", "vite-bundle-analyzer": "0.10.6", @@ -217,7 +220,7 @@ "lint-staged": { "*": "eslint --fix", "*.{js,jsx,ts,tsx,json}": [ - "prettier --ignore-path ./.gitignore --write " + "prettier --write " ] }, "bump": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 718f46e32..82021cb2e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -195,8 +195,8 @@ importers: specifier: 0.2.38 version: 0.2.38(react@18.3.1) framer-motion: - specifier: 11.0.10 - version: 11.0.10(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + specifier: 11.5.4 + version: 11.5.4(@emotion/is-prop-valid@0.8.8)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) franc-min: specifier: 6.2.0 version: 6.2.0 @@ -360,6 +360,9 @@ importers: '@babel/generator': specifier: 7.25.6 version: 7.25.6 + '@clack/prompts': + specifier: 0.7.0 + version: 0.7.0 '@egoist/tailwindcss-icons': specifier: 1.8.1 version: 1.8.1(tailwindcss@3.4.11) @@ -492,6 +495,9 @@ importers: tailwindcss-animate: specifier: 1.0.7 version: 1.0.7(tailwindcss@3.4.11) + tsx: + specifier: 4.19.1 + version: 4.19.1 typescript: specifier: ^5.6.2 version: 5.6.2 @@ -1157,6 +1163,14 @@ packages: '@cfcs/core@0.0.5': resolution: {integrity: sha512-TZ/RXKV7MUrqFpiX+16uaaptv5jgChWNsuE6w8Rn3eJbO1PFd4Wpn25zeJbii7ch46ck8/ZIIYCcW3pHiYtm4Q==} + '@clack/core@0.3.4': + resolution: {integrity: sha512-H4hxZDXgHtWTwV3RAVenqcC4VbJZNegbBjlPvzOzCouXtS2y3sDvlO3IsbrPNWuLWPPlYVYPghQdSF64683Ldw==} + + '@clack/prompts@0.7.0': + resolution: {integrity: sha512-0MhX9/B4iL6Re04jPrttDm+BsP8y6mS7byuv0BvXgdXhbV5PdlsHt55dvNsuBCPZ7xq1oTAOOuotR9NFbQyMSA==} + bundledDependencies: + - is-unicode-supported + '@conventional-changelog/git-client@1.0.1': resolution: {integrity: sha512-PJEqBwAleffCMETaVm/fUgHldzBE35JFk3/9LL6NUA5EXa3qednu+UT6M7E5iBu3zIQZCULYIiZ90fBYHt6xUw==} engines: {node: '>=18'} @@ -4999,12 +5013,15 @@ packages: react: optional: true - framer-motion@11.0.10: - resolution: {integrity: sha512-aaImib9FQlfno2yiZAdkvN6zLXLr8a9uGsGFlQO64hSm8NoCeiUng2//5ok7RHCW2ufzT74uuPsmWzUsrHPYDQ==} + framer-motion@11.5.4: + resolution: {integrity: sha512-E+tb3/G6SO69POkdJT+3EpdMuhmtCh9EWuK4I1DnIC23L7tFPrl8vxP+LSovwaw6uUr73rUbpb4FgK011wbRJQ==} peerDependencies: + '@emotion/is-prop-valid': '*' react: ^18.0.0 react-dom: ^18.0.0 peerDependenciesMeta: + '@emotion/is-prop-valid': + optional: true react: optional: true react-dom: @@ -7469,6 +7486,9 @@ packages: resolution: {integrity: sha512-tgqwPUMDcNDhuf1Xf6KTUsyeqGdgKMhzaH4PAZZuzguOgTl5uuyeYe/8mWgAr6IBxB5V06uqEf6Dy37gIWDtDg==} hasBin: true + sisteransi@1.0.5: + resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==} + slash@3.0.0: resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==} engines: {node: '>=8'} @@ -7840,8 +7860,8 @@ packages: tslib@2.7.0: resolution: {integrity: sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA==} - tsx@4.19.0: - resolution: {integrity: sha512-bV30kM7bsLZKZIOCHeMNVMJ32/LuJzLVajkQI/qf92J2Qr08ueLQvW00PUZGiuLPP760UINwupgUj8qrSCPUKg==} + tsx@4.19.1: + resolution: {integrity: sha512-0flMz1lh74BR4wOvBjuh9olbnwqCPc35OOlfyzHba0Dc+QNUeWX/Gq2YTbnwcWPO3BMd8fkzRVrHcsR+a7z7rA==} engines: {node: '>=18.0.0'} hasBin: true @@ -9156,6 +9176,17 @@ snapshots: dependencies: '@egjs/component': 3.0.5 + '@clack/core@0.3.4': + dependencies: + picocolors: 1.1.0 + sisteransi: 1.0.5 + + '@clack/prompts@0.7.0': + dependencies: + '@clack/core': 0.3.4 + picocolors: 1.1.0 + sisteransi: 1.0.5 + '@conventional-changelog/git-client@1.0.1(conventional-commits-filter@5.0.0)(conventional-commits-parser@6.0.0)': dependencies: '@types/semver': 7.5.8 @@ -13937,7 +13968,7 @@ snapshots: optionalDependencies: react: 18.3.1 - framer-motion@11.0.10(react-dom@18.3.1(react@18.3.1))(react@18.3.1): + framer-motion@11.5.4(@emotion/is-prop-valid@0.8.8)(react-dom@18.3.1(react@18.3.1))(react@18.3.1): dependencies: tslib: 2.7.0 optionalDependencies: @@ -14592,7 +14623,7 @@ snapshots: jiti: 2.0.0-beta.3 jiti-v1: jiti@1.21.6 pathe: 1.1.2 - tsx: 4.19.0 + tsx: 4.19.1 transitivePeerDependencies: - supports-color @@ -16873,6 +16904,8 @@ snapshots: simple-git-hooks@2.11.1: {} + sisteransi@1.0.5: {} + slash@3.0.0: {} slice-ansi@3.0.0: @@ -17260,7 +17293,7 @@ snapshots: tslib@2.7.0: {} - tsx@4.19.0: + tsx@4.19.1: dependencies: esbuild: 0.23.1 get-tsconfig: 4.8.0 diff --git a/scripts/generate-i18n-locale.ts b/scripts/generate-i18n-locale.ts new file mode 100644 index 000000000..12045bd21 --- /dev/null +++ b/scripts/generate-i18n-locale.ts @@ -0,0 +1,405 @@ +import { execSync } from "node:child_process" +import { readdirSync, readFileSync, writeFileSync } from "node:fs" +import path, { dirname } from "node:path" +import { fileURLToPath } from "node:url" + +import { intro, outro, select } from "@clack/prompts" +import color from "picocolors" +import * as ts from "typescript" + +const locales = [ + "af", + "am", + "ar-dz", + "ar-iq", + "ar-kw", + "ar-ly", + "ar-ma", + "ar-sa", + "ar-tn", + + "az", + "be", + "bg", + "bi", + "bm", + "bn-bd", + "bn", + "bo", + "br", + + "bs", + "ca", + "cs", + "cv", + "cy", + "da-at", + "da-ch", + "da", + "dv", + + "el", + "en-au", + "en-ca", + "en-gb", + "en-ie", + "en-il", + "en-in", + "en-nz", + "en-sg", + "en-tt", + + "eo", + "es-do", + "es-mx", + "es-pr", + "es-us", + "es", + "et", + "eu", + + "fa", + "fi", + "fo", + "fr-ca", + "fr-ch", + "fr", + "fy", + "ga", + + "gd", + "gl", + "gom-latn", + "gu", + "he", + "hi", + "hr", + "ht", + + "hu", + "hy-am", + "id", + "is", + "it-ch", + "it", + "ja", + "jv", + + "ka", + "kk", + "km", + "kn", + "ko", + "ku", + "ky", + "lb", + + "lo", + "lt", + "lv", + "me", + "mi", + "mk", + "ml", + "mn", + + "mr", + "ms-my", + "ms", + "mt", + "my", + "nb", + "ne", + "nl-be", + "nl", + + "oc-lnc", + "pa-in", + "pl", + "pt-br", + "pt", + "rn", + "ro", + "ru", + "sd", + "se", + "si", + "sk", + "sl", + "sq", + "sr-cyrl", + "sr", + "ss", + + "sv-fi", + "sv", + "sw", + "ta", + "te", + "tet", + "tg", + "th", + "tk", + "tl-ph", + "tlh", + "tr", + "tzl", + "tzm-latn", + "tzm", + "ug-cn", + "uk", + + "ur", + "uz-latn", + "uz", + "vi", + "x-pseudo", + "yo", + "zh-cn", + "zh-hk", + "zh-tw", + "zh", +] + +async function selectLocale(): Promise { + intro(color.blue("Locale Selection")) + + const selectedLocale = await select({ + message: "Select a locale:", + options: locales.map((locale) => ({ value: locale, label: locale })), + maxItems: 10, + }) + + if (typeof selectedLocale !== "string") { + throw new TypeError("No locale selected") + } + + return selectedLocale +} + +const __dirname = dirname(fileURLToPath(import.meta.url)) +const LOCALE_DIR = path.resolve(__dirname, "../locales") +const CONFIG_DIR = path.resolve(__dirname, "../src/renderer/src/@types") + +async function main() { + const selectedLocale = await selectLocale() + outro(`You selected: ${color.green(selectedLocale)}`) + + const readdirLocales = readdirSync(LOCALE_DIR) + for (const ns of readdirLocales) { + const isExistResource = readdirSync(path.resolve(LOCALE_DIR, ns)).includes( + `${selectedLocale}.json`, + ) + if (!isExistResource) { + // Create new resource file, write a empty json + writeFileSync(path.resolve(LOCALE_DIR, ns, `${selectedLocale}.json`), "{}") + } + } + + // Update config file + const defaultResourceFilePath = path.resolve(CONFIG_DIR, "default-resource.ts") + const defaultResourceFileContent = readFileSync(defaultResourceFilePath, "utf8") + + const sourceFile = ts.createSourceFile( + defaultResourceFilePath, + defaultResourceFileContent, + ts.ScriptTarget.Latest, + true, + ) + + const updatedContent = updateDefaultResourceFile(sourceFile, selectedLocale) + if (updatedContent !== defaultResourceFileContent) { + writeFileSync(defaultResourceFilePath, updatedContent) + console.info(`Updated ${defaultResourceFilePath} with new locale: ${selectedLocale}`) + } else { + console.info(`Locale ${selectedLocale} already exists in default-resource.ts`) + } + + // Update constants file + const constantsFilePath = path.resolve(CONFIG_DIR, "constants.ts") + const constantsFileContent = readFileSync(constantsFilePath, "utf8") + + const constantsSourceFile = ts.createSourceFile( + constantsFilePath, + constantsFileContent, + ts.ScriptTarget.Latest, + true, + ) + + const updatedConstantsContent = updateConstantsFile(constantsSourceFile, selectedLocale) + if (updatedConstantsContent !== constantsFileContent) { + writeFileSync(constantsFilePath, updatedConstantsContent) + console.info(`Updated ${constantsFilePath} with new locale: ${selectedLocale}`) + } else { + console.info(`Locale ${selectedLocale} already exists in constants.ts`) + } + + // format these files + execSync(`npx prettier --write ${defaultResourceFilePath} ${constantsFilePath}`) + + console.info("Done!") + console.info("Please open your editor and fill in the missing translations.") + console.info(`Resources: ${color.green("locales/")}${color.green(selectedLocale)}`) +} + +function updateDefaultResourceFile(sourceFile: ts.SourceFile, locale: string): string { + const printer = ts.createPrinter({ newLine: ts.NewLineKind.LineFeed }) + const result = ts.transform(sourceFile, [ + (context) => (rootNode) => { + let importsAdded = false + + function visit(node: ts.Node): ts.Node { + if (ts.isImportDeclaration(node) && !importsAdded) { + const newImports = [ + createImportDeclaration( + `lang_${locale.replace("-", "")}`, + `../../../../locales/lang/${locale}.json`, + ), + createImportDeclaration( + `common_${locale.replace("-", "")}`, + `../../../../locales/common/${locale}.json`, + ), + ] + importsAdded = true + return [node, ...newImports] as unknown as ts.Node + } + + if ( + ts.isVariableDeclaration(node) && + ts.isIdentifier(node.name) && + node.name.text === "defaultResources" && + node.initializer && + ts.isObjectLiteralExpression(node.initializer) + ) { + const existingLocale = node.initializer.properties.find( + (prop) => ts.isPropertyAssignment(prop) && prop.name.getText() === `"${locale}"`, + ) + + if (existingLocale) { + return node + } + + const newProperties = [ + ...node.initializer.properties, + ts.factory.createPropertyAssignment( + ts.factory.createStringLiteral(locale), + ts.factory.createObjectLiteralExpression([ + ts.factory.createPropertyAssignment( + "lang", + ts.factory.createIdentifier(`lang_${locale.replace("-", "")}`), + ), + ts.factory.createPropertyAssignment( + "common", + ts.factory.createIdentifier(`common_${locale.replace("-", "")}`), + ), + ]), + ), + ] + + return ts.factory.updateVariableDeclaration( + node, + node.name, + node.exclamationToken, + node.type, + ts.factory.createObjectLiteralExpression(newProperties, true), + ) + } + return ts.visitEachChild(node, visit, context) + } + + return ts.visitNode(rootNode, visit) as ts.SourceFile + }, + ]) + + return printer.printFile(result.transformed[0] as ts.SourceFile) +} + +function createImportDeclaration(identifier: string, path: string): ts.ImportDeclaration { + return ts.factory.createImportDeclaration( + undefined, + ts.factory.createImportClause(false, ts.factory.createIdentifier(identifier), void 0), + ts.factory.createStringLiteral(path), + ) +} + +function updateConstantsFile(sourceFile: ts.SourceFile, locale: string): string { + const printer = ts.createPrinter({ newLine: ts.NewLineKind.LineFeed }) + const result = ts.transform(sourceFile, [ + (context) => (rootNode) => { + function visit(node: ts.Node): ts.Node { + if (ts.isVariableDeclaration(node) && ts.isIdentifier(node.name)) { + if (node.name.text === "langs") { + return updateLangsArray(node, locale) + } + if (node.name.text === "dayjsLocaleImportMap") { + return updateDayjsLocaleImportMap(node, locale) + } + } + return ts.visitEachChild(node, visit, context) + } + return ts.visitNode(rootNode, visit) as ts.SourceFile + }, + ]) + + return printer.printFile(result.transformed[0] as ts.SourceFile) +} + +function updateLangsArray(node: ts.VariableDeclaration, locale: string): ts.VariableDeclaration { + if (node.initializer && ts.isArrayLiteralExpression(node.initializer)) { + const existingElements = node.initializer.elements + if (!existingElements.some((el) => ts.isStringLiteral(el) && el.text === locale)) { + const newElements = [...existingElements, ts.factory.createStringLiteral(locale)] + const newInitializer = ts.factory.createArrayLiteralExpression(newElements, true) + return ts.factory.updateVariableDeclaration( + node, + node.name, + node.exclamationToken, + node.type, + newInitializer, + ) + } + } + return node +} + +function updateDayjsLocaleImportMap( + node: ts.VariableDeclaration, + locale: string, +): ts.VariableDeclaration { + if (node.initializer && ts.isObjectLiteralExpression(node.initializer)) { + const existingProperties = node.initializer.properties + if ( + !existingProperties.some( + (prop) => ts.isPropertyAssignment(prop) && prop.name.getText() === `["${locale}"]`, + ) + ) { + const newProperty = ts.factory.createPropertyAssignment( + ts.factory.createComputedPropertyName(ts.factory.createStringLiteral(locale)), + ts.factory.createArrayLiteralExpression([ + ts.factory.createStringLiteral(locale.toLowerCase()), + ts.factory.createArrowFunction( + undefined, + undefined, + [], + undefined, + ts.factory.createToken(ts.SyntaxKind.EqualsGreaterThanToken), + ts.factory.createCallExpression(ts.factory.createIdentifier("import"), undefined, [ + ts.factory.createStringLiteral(`dayjs/locale/${locale.toLowerCase()}`), + ]), + ), + ]), + ) + const newProperties = [...existingProperties, newProperty] + return ts.factory.updateVariableDeclaration( + node, + node.name, + node.exclamationToken, + node.type, + ts.factory.createObjectLiteralExpression(newProperties, true), + ) + } + } + return node +} + +main().catch(console.error) diff --git a/src/hono.ts b/src/hono.ts index ed8b269d1..c4cfc0c01 100644 --- a/src/hono.ts +++ b/src/hono.ts @@ -1,5700 +1,3800 @@ -import * as hono_hono_base from "hono/hono-base" -import { HttpBindings } from "@hono/node-server" -import * as drizzle_orm from "drizzle-orm" -import { InferInsertModel } from "drizzle-orm" -import * as drizzle_orm_pg_core from "drizzle-orm/pg-core" -import * as zod from "zod" -import { z } from "zod" +import * as hono_hono_base from 'hono/hono-base'; +import { HttpBindings } from '@hono/node-server'; +import * as drizzle_orm from 'drizzle-orm'; +import { InferInsertModel } from 'drizzle-orm'; +import * as drizzle_orm_pg_core from 'drizzle-orm/pg-core'; +import * as zod from 'zod'; +import { z } from 'zod'; type Env = { - Bindings: HttpBindings -} + Bindings: HttpBindings; +}; -declare const languageSchema: z.ZodEnum<["en", "ja", "zh-CN", "zh-TW"]> -declare const conditionFieldSchema: z.ZodEnum<["view", "title", "site_url", "feed_url", "category"]> -declare const conditionOperatorSchema: z.ZodEnum< - ["contains", "not_contains", "eq", "not_eq", "gt", "lt", "regex"] -> -declare const ruleFieldSchema: z.ZodEnum<["all", "title", "content", "author", "url", "order"]> -declare const ruleOperatorSchema: z.ZodEnum< - ["contains", "not_contains", "eq", "not_eq", "gt", "lt", "regex"] -> +declare const languageSchema: z.ZodEnum<["en", "ja", "zh-CN", "zh-TW"]>; +declare const conditionFieldSchema: z.ZodEnum<["view", "title", "site_url", "feed_url", "category"]>; +declare const conditionOperatorSchema: z.ZodEnum<["contains", "not_contains", "eq", "not_eq", "gt", "lt", "regex"]>; +declare const ruleFieldSchema: z.ZodEnum<["all", "title", "content", "author", "url", "order"]>; +declare const ruleOperatorSchema: z.ZodEnum<["contains", "not_contains", "eq", "not_eq", "gt", "lt", "regex"]>; declare const actions: drizzle_orm_pg_core.PgTableWithColumns<{ - name: "actions" - schema: undefined - columns: { - userId: drizzle_orm_pg_core.PgColumn< - { - name: "user_id" - tableName: "actions" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: true - hasDefault: false - isPrimaryKey: true - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - rules: drizzle_orm_pg_core.PgColumn< - { - name: "rules" - tableName: "actions" - dataType: "json" - columnType: "PgJsonb" - data: { - name: string - condition: { - field: z.infer - operator: z.infer - value: string - }[] - result: { - translation?: z.infer - summary?: boolean + name: "actions"; + schema: undefined; + columns: { + userId: drizzle_orm_pg_core.PgColumn<{ + name: "user_id"; + tableName: "actions"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: false; + isPrimaryKey: true; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + rules: drizzle_orm_pg_core.PgColumn<{ + name: "rules"; + tableName: "actions"; + dataType: "json"; + columnType: "PgJsonb"; + data: { + name: string; + condition: { + field: z.infer; + operator: z.infer; + value: string; + }[]; + result: { + translation?: z.infer; + summary?: boolean; + readability?: boolean; + rewriteRules?: { + from: string; + to: string; + }[]; + blockRules?: { + field: z.infer; + operator: z.infer; + value: string | number; + }[]; + }; + }[]; + driverParam: unknown; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + generated: undefined; + }, {}, {}>; + }; + dialect: "pg"; +}>; +declare const actionsItemOpenAPISchema: z.ZodObject<{ + name: z.ZodString; + condition: z.ZodArray; + operator: z.ZodEnum<["contains", "not_contains", "eq", "not_eq", "gt", "lt", "regex"]>; + value: z.ZodString; + }, "strip", z.ZodTypeAny, { + value: string; + field: "title" | "view" | "site_url" | "feed_url" | "category"; + operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; + }, { + value: string; + field: "title" | "view" | "site_url" | "feed_url" | "category"; + operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; + }>, "many">; + result: z.ZodObject<{ + translation: z.ZodOptional>; + summary: z.ZodOptional; + readability: z.ZodOptional; + rewriteRules: z.ZodOptional, "many">>; + blockRules: z.ZodOptional; + operator: z.ZodEnum<["contains", "not_contains", "eq", "not_eq", "gt", "lt", "regex"]>; + value: z.ZodUnion<[z.ZodString, z.ZodNumber]>; + }, "strip", z.ZodTypeAny, { + value: string | number; + field: "title" | "content" | "all" | "author" | "url" | "order"; + operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; + }, { + value: string | number; + field: "title" | "content" | "all" | "author" | "url" | "order"; + operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; + }>, "many">>; + }, "strip", z.ZodTypeAny, { + summary?: boolean | undefined; + translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined; + readability?: boolean | undefined; + rewriteRules?: { + from: string; + to: string; + }[] | undefined; + blockRules?: { + value: string | number; + field: "title" | "content" | "all" | "author" | "url" | "order"; + operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; + }[] | undefined; + }, { + summary?: boolean | undefined; + translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined; + readability?: boolean | undefined; + rewriteRules?: { + from: string; + to: string; + }[] | undefined; + blockRules?: { + value: string | number; + field: "title" | "content" | "all" | "author" | "url" | "order"; + operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; + }[] | undefined; + }>; +}, "strip", z.ZodTypeAny, { + name: string; + condition: { + value: string; + field: "title" | "view" | "site_url" | "feed_url" | "category"; + operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; + }[]; + result: { + summary?: boolean | undefined; + translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined; + readability?: boolean | undefined; + rewriteRules?: { + from: string; + to: string; + }[] | undefined; + blockRules?: { + value: string | number; + field: "title" | "content" | "all" | "author" | "url" | "order"; + operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; + }[] | undefined; + }; +}, { + name: string; + condition: { + value: string; + field: "title" | "view" | "site_url" | "feed_url" | "category"; + operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; + }[]; + result: { + summary?: boolean | undefined; + translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined; + readability?: boolean | undefined; + rewriteRules?: { + from: string; + to: string; + }[] | undefined; + blockRules?: { + value: string | number; + field: "title" | "content" | "all" | "author" | "url" | "order"; + operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; + }[] | undefined; + }; +}>; +declare const actionsOpenAPISchema: z.ZodObject>; +}, "rules">, { + rules: z.ZodNullable; + operator: z.ZodEnum<["contains", "not_contains", "eq", "not_eq", "gt", "lt", "regex"]>; + value: z.ZodString; + }, "strip", z.ZodTypeAny, { + value: string; + field: "title" | "view" | "site_url" | "feed_url" | "category"; + operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; + }, { + value: string; + field: "title" | "view" | "site_url" | "feed_url" | "category"; + operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; + }>, "many">; + result: z.ZodObject<{ + translation: z.ZodOptional>; + summary: z.ZodOptional; + readability: z.ZodOptional; + rewriteRules: z.ZodOptional, "many">>; + blockRules: z.ZodOptional; + operator: z.ZodEnum<["contains", "not_contains", "eq", "not_eq", "gt", "lt", "regex"]>; + value: z.ZodUnion<[z.ZodString, z.ZodNumber]>; + }, "strip", z.ZodTypeAny, { + value: string | number; + field: "title" | "content" | "all" | "author" | "url" | "order"; + operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; + }, { + value: string | number; + field: "title" | "content" | "all" | "author" | "url" | "order"; + operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; + }>, "many">>; + }, "strip", z.ZodTypeAny, { + summary?: boolean | undefined; + translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined; + readability?: boolean | undefined; rewriteRules?: { - from: string - to: string - }[] + from: string; + to: string; + }[] | undefined; blockRules?: { - field: z.infer - operator: z.infer - value: string | number - }[] - } - }[] - driverParam: unknown - notNull: false - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: undefined - baseColumn: never - generated: undefined - }, - {}, - {} - > - } - dialect: "pg" -}> -declare const actionsItemOpenAPISchema: z.ZodObject< - { - name: z.ZodString - condition: z.ZodArray< - z.ZodObject< - { - field: z.ZodEnum<["view", "title", "site_url", "feed_url", "category"]> - operator: z.ZodEnum<["contains", "not_contains", "eq", "not_eq", "gt", "lt", "regex"]> - value: z.ZodString - }, - "strip", - z.ZodTypeAny, - { - value: string - field: "title" | "view" | "site_url" | "feed_url" | "category" - operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex" - }, - { - value: string - field: "title" | "view" | "site_url" | "feed_url" | "category" - operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex" - } - >, - "many" - > - result: z.ZodObject< - { - translation: z.ZodOptional> - summary: z.ZodOptional - rewriteRules: z.ZodOptional< - z.ZodArray< - z.ZodObject< - { - from: z.ZodString - to: z.ZodString - }, - "strip", - z.ZodTypeAny, - { - from: string - to: string - }, - { - from: string - to: string - } - >, - "many" - > - > - blockRules: z.ZodOptional< - z.ZodArray< - z.ZodObject< - { - field: z.ZodEnum<["all", "title", "content", "author", "url", "order"]> - operator: z.ZodEnum< - ["contains", "not_contains", "eq", "not_eq", "gt", "lt", "regex"] - > - value: z.ZodUnion<[z.ZodString, z.ZodNumber]> - }, - "strip", - z.ZodTypeAny, - { - value: string | number - field: "title" | "content" | "all" | "author" | "url" | "order" - operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex" - }, - { - value: string | number - field: "title" | "content" | "all" | "author" | "url" | "order" - operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex" - } - >, - "many" - > - > - }, - "strip", - z.ZodTypeAny, - { - summary?: boolean | undefined - translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined - rewriteRules?: - | { - from: string - to: string - }[] - | undefined - blockRules?: - | { - value: string | number - field: "title" | "content" | "all" | "author" | "url" | "order" - operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex" - }[] - | undefined - }, - { - summary?: boolean | undefined - translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined - rewriteRules?: - | { - from: string - to: string - }[] - | undefined - blockRules?: - | { - value: string | number - field: "title" | "content" | "all" | "author" | "url" | "order" - operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex" - }[] - | undefined - } - > - }, - "strip", - z.ZodTypeAny, - { - name: string - condition: { - value: string - field: "title" | "view" | "site_url" | "feed_url" | "category" - operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex" - }[] - result: { - summary?: boolean | undefined - translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined - rewriteRules?: - | { - from: string - to: string - }[] - | undefined - blockRules?: - | { - value: string | number - field: "title" | "content" | "all" | "author" | "url" | "order" - operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex" - }[] - | undefined - } - }, - { - name: string - condition: { - value: string - field: "title" | "view" | "site_url" | "feed_url" | "category" - operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex" - }[] - result: { - summary?: boolean | undefined - translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined - rewriteRules?: - | { - from: string - to: string - }[] - | undefined - blockRules?: - | { - value: string | number - field: "title" | "content" | "all" | "author" | "url" | "order" - operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex" - }[] - | undefined - } - } -> -declare const actionsOpenAPISchema: z.ZodObject< - z.objectUtil.extendShape< - Omit< - { - userId: z.ZodString - rules: z.ZodNullable< - z.ZodType< - | string - | number - | boolean - | { - [key: string]: - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | any - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - } - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | any - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null, - z.ZodTypeDef, - | string - | number - | boolean - | { - [key: string]: - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | any - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - } - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | any - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - > - > - }, - "rules" - >, - { - rules: z.ZodNullable< - z.ZodOptional< - z.ZodArray< - z.ZodObject< - { - name: z.ZodString - condition: z.ZodArray< - z.ZodObject< - { - field: z.ZodEnum<["view", "title", "site_url", "feed_url", "category"]> - operator: z.ZodEnum< - ["contains", "not_contains", "eq", "not_eq", "gt", "lt", "regex"] - > - value: z.ZodString - }, - "strip", - z.ZodTypeAny, - { - value: string - field: "title" | "view" | "site_url" | "feed_url" | "category" - operator: - | "contains" - | "not_contains" - | "eq" - | "not_eq" - | "gt" - | "lt" - | "regex" - }, - { - value: string - field: "title" | "view" | "site_url" | "feed_url" | "category" - operator: - | "contains" - | "not_contains" - | "eq" - | "not_eq" - | "gt" - | "lt" - | "regex" - } - >, - "many" - > - result: z.ZodObject< - { - translation: z.ZodOptional> - summary: z.ZodOptional - rewriteRules: z.ZodOptional< - z.ZodArray< - z.ZodObject< - { - from: z.ZodString - to: z.ZodString - }, - "strip", - z.ZodTypeAny, - { - from: string - to: string - }, - { - from: string - to: string - } - >, - "many" - > - > - blockRules: z.ZodOptional< - z.ZodArray< - z.ZodObject< - { - field: z.ZodEnum<["all", "title", "content", "author", "url", "order"]> - operator: z.ZodEnum< - ["contains", "not_contains", "eq", "not_eq", "gt", "lt", "regex"] - > - value: z.ZodUnion<[z.ZodString, z.ZodNumber]> - }, - "strip", - z.ZodTypeAny, - { - value: string | number - field: "title" | "content" | "all" | "author" | "url" | "order" - operator: - | "contains" - | "not_contains" - | "eq" - | "not_eq" - | "gt" - | "lt" - | "regex" - }, - { - value: string | number - field: "title" | "content" | "all" | "author" | "url" | "order" - operator: - | "contains" - | "not_contains" - | "eq" - | "not_eq" - | "gt" - | "lt" - | "regex" - } - >, - "many" - > - > - }, - "strip", - z.ZodTypeAny, - { - summary?: boolean | undefined - translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined - rewriteRules?: - | { - from: string - to: string - }[] - | undefined - blockRules?: - | { - value: string | number - field: "title" | "content" | "all" | "author" | "url" | "order" - operator: - | "contains" - | "not_contains" - | "eq" - | "not_eq" - | "gt" - | "lt" - | "regex" - }[] - | undefined - }, - { - summary?: boolean | undefined - translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined - rewriteRules?: - | { - from: string - to: string - }[] - | undefined - blockRules?: - | { - value: string | number - field: "title" | "content" | "all" | "author" | "url" | "order" - operator: - | "contains" - | "not_contains" - | "eq" - | "not_eq" - | "gt" - | "lt" - | "regex" - }[] - | undefined - } - > - }, - "strip", - z.ZodTypeAny, - { - name: string - condition: { - value: string - field: "title" | "view" | "site_url" | "feed_url" | "category" - operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex" - }[] - result: { - summary?: boolean | undefined - translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined - rewriteRules?: - | { - from: string - to: string - }[] - | undefined - blockRules?: - | { - value: string | number - field: "title" | "content" | "all" | "author" | "url" | "order" - operator: - | "contains" - | "not_contains" - | "eq" - | "not_eq" - | "gt" - | "lt" - | "regex" - }[] - | undefined - } - }, - { - name: string - condition: { - value: string - field: "title" | "view" | "site_url" | "feed_url" | "category" - operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex" - }[] - result: { - summary?: boolean | undefined - translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined - rewriteRules?: - | { - from: string - to: string - }[] - | undefined - blockRules?: - | { - value: string | number - field: "title" | "content" | "all" | "author" | "url" | "order" - operator: - | "contains" - | "not_contains" - | "eq" - | "not_eq" - | "gt" - | "lt" - | "regex" - }[] - | undefined - } - } - >, - "many" - > - > - > - } - >, - "strip", - z.ZodTypeAny, - { - userId: string - rules?: - | { - name: string - condition: { - value: string - field: "title" | "view" | "site_url" | "feed_url" | "category" - operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex" - }[] - result: { - summary?: boolean | undefined - translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined - rewriteRules?: - | { - from: string - to: string - }[] - | undefined - blockRules?: - | { - value: string | number - field: "title" | "content" | "all" | "author" | "url" | "order" - operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex" - }[] - | undefined - } - }[] - | null - | undefined - }, - { - userId: string - rules?: - | { - name: string - condition: { - value: string - field: "title" | "view" | "site_url" | "feed_url" | "category" - operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex" - }[] - result: { - summary?: boolean | undefined - translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined - rewriteRules?: - | { - from: string - to: string - }[] - | undefined - blockRules?: - | { - value: string | number - field: "title" | "content" | "all" | "author" | "url" | "order" - operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex" - }[] - | undefined - } - }[] - | null - | undefined - } -> -declare const actionsRelations: drizzle_orm.Relations< - "actions", - { - users: drizzle_orm.One<"user", true> - } -> -type ActionsModel = z.infer -type SettingsModel = Exclude["result"], undefined> + value: string | number; + field: "title" | "content" | "all" | "author" | "url" | "order"; + operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; + }[] | undefined; + }, { + summary?: boolean | undefined; + translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined; + readability?: boolean | undefined; + rewriteRules?: { + from: string; + to: string; + }[] | undefined; + blockRules?: { + value: string | number; + field: "title" | "content" | "all" | "author" | "url" | "order"; + operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; + }[] | undefined; + }>; + }, "strip", z.ZodTypeAny, { + name: string; + condition: { + value: string; + field: "title" | "view" | "site_url" | "feed_url" | "category"; + operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; + }[]; + result: { + summary?: boolean | undefined; + translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined; + readability?: boolean | undefined; + rewriteRules?: { + from: string; + to: string; + }[] | undefined; + blockRules?: { + value: string | number; + field: "title" | "content" | "all" | "author" | "url" | "order"; + operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; + }[] | undefined; + }; + }, { + name: string; + condition: { + value: string; + field: "title" | "view" | "site_url" | "feed_url" | "category"; + operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; + }[]; + result: { + summary?: boolean | undefined; + translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined; + readability?: boolean | undefined; + rewriteRules?: { + from: string; + to: string; + }[] | undefined; + blockRules?: { + value: string | number; + field: "title" | "content" | "all" | "author" | "url" | "order"; + operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; + }[] | undefined; + }; + }>, "many">>>; +}>, "strip", z.ZodTypeAny, { + userId: string; + rules?: { + name: string; + condition: { + value: string; + field: "title" | "view" | "site_url" | "feed_url" | "category"; + operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; + }[]; + result: { + summary?: boolean | undefined; + translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined; + readability?: boolean | undefined; + rewriteRules?: { + from: string; + to: string; + }[] | undefined; + blockRules?: { + value: string | number; + field: "title" | "content" | "all" | "author" | "url" | "order"; + operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; + }[] | undefined; + }; + }[] | null | undefined; +}, { + userId: string; + rules?: { + name: string; + condition: { + value: string; + field: "title" | "view" | "site_url" | "feed_url" | "category"; + operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; + }[]; + result: { + summary?: boolean | undefined; + translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined; + readability?: boolean | undefined; + rewriteRules?: { + from: string; + to: string; + }[] | undefined; + blockRules?: { + value: string | number; + field: "title" | "content" | "all" | "author" | "url" | "order"; + operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; + }[] | undefined; + }; + }[] | null | undefined; +}>; +declare const actionsRelations: drizzle_orm.Relations<"actions", { + users: drizzle_orm.One<"user", true>; +}>; +type ActionsModel = z.infer; +type SettingsModel = Exclude["result"], undefined>; declare const collections: drizzle_orm_pg_core.PgTableWithColumns<{ - name: "collections" - schema: undefined - columns: { - userId: drizzle_orm_pg_core.PgColumn< - { - name: "user_id" - tableName: "collections" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: true - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - feedId: drizzle_orm_pg_core.PgColumn< - { - name: "feedId" - tableName: "collections" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: true - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - entryId: drizzle_orm_pg_core.PgColumn< - { - name: "entry_id" - tableName: "collections" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: true - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - createdAt: drizzle_orm_pg_core.PgColumn< - { - name: "created_at" - tableName: "collections" - dataType: "date" - columnType: "PgTimestamp" - data: Date - driverParam: string - notNull: true - hasDefault: true - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: undefined - baseColumn: never - generated: undefined - }, - {}, - {} - > - view: drizzle_orm_pg_core.PgColumn< - { - name: "view" - tableName: "collections" - dataType: "number" - columnType: "PgSmallInt" - data: number - driverParam: string | number - notNull: true - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: undefined - baseColumn: never - generated: undefined - }, - {}, - {} - > - } - dialect: "pg" -}> -declare const collectionsOpenAPISchema: zod.ZodObject< - { - userId: zod.ZodString - feedId: zod.ZodString - entryId: zod.ZodString - createdAt: zod.ZodString - view: zod.ZodNumber - }, - zod.UnknownKeysParam, - zod.ZodTypeAny, - { - createdAt: string - userId: string - view: number - feedId: string - entryId: string - }, - { - createdAt: string - userId: string - view: number - feedId: string - entryId: string - } -> -declare const collectionsRelations: drizzle_orm.Relations< - "collections", - { - users: drizzle_orm.One<"user", true> - entries: drizzle_orm.One<"entries", true> - feeds: drizzle_orm.One<"feeds", true> - } -> + name: "collections"; + schema: undefined; + columns: { + userId: drizzle_orm_pg_core.PgColumn<{ + name: "user_id"; + tableName: "collections"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + feedId: drizzle_orm_pg_core.PgColumn<{ + name: "feedId"; + tableName: "collections"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + entryId: drizzle_orm_pg_core.PgColumn<{ + name: "entry_id"; + tableName: "collections"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + createdAt: drizzle_orm_pg_core.PgColumn<{ + name: "created_at"; + tableName: "collections"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: true; + hasDefault: true; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + generated: undefined; + }, {}, {}>; + view: drizzle_orm_pg_core.PgColumn<{ + name: "view"; + tableName: "collections"; + dataType: "number"; + columnType: "PgSmallInt"; + data: number; + driverParam: string | number; + notNull: true; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + generated: undefined; + }, {}, {}>; + }; + dialect: "pg"; +}>; +declare const collectionsOpenAPISchema: zod.ZodObject<{ + userId: zod.ZodString; + feedId: zod.ZodString; + entryId: zod.ZodString; + createdAt: zod.ZodString; + view: zod.ZodNumber; +}, zod.UnknownKeysParam, zod.ZodTypeAny, { + createdAt: string; + userId: string; + view: number; + feedId: string; + entryId: string; +}, { + createdAt: string; + userId: string; + view: number; + feedId: string; + entryId: string; +}>; +declare const collectionsRelations: drizzle_orm.Relations<"collections", { + users: drizzle_orm.One<"user", true>; + entries: drizzle_orm.One<"entries", true>; + feeds: drizzle_orm.One<"feeds", true>; +}>; type MediaModel = { - url: string - type: "photo" | "video" - preview_image_url?: string - width?: number - height?: number -} + url: string; + type: "photo" | "video"; + preview_image_url?: string; + width?: number; + height?: number; +}; type AttachmentsModel = { - url: string - duration_in_seconds?: number - mime_type?: string - size_in_bytes?: number - title?: string -} + url: string; + duration_in_seconds?: number; + mime_type?: string; + size_in_bytes?: number; + title?: string; +}; declare const entries: drizzle_orm_pg_core.PgTableWithColumns<{ - name: "entries" - schema: undefined - columns: { - id: drizzle_orm_pg_core.PgColumn< - { - name: "id" - tableName: "entries" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: true - hasDefault: true - isPrimaryKey: true - isAutoincrement: false - hasRuntimeDefault: true - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - feedId: drizzle_orm_pg_core.PgColumn< - { - name: "feed_id" - tableName: "entries" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: true - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - title: drizzle_orm_pg_core.PgColumn< - { - name: "title" - tableName: "entries" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: false - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - url: drizzle_orm_pg_core.PgColumn< - { - name: "url" - tableName: "entries" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: false - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - content: drizzle_orm_pg_core.PgColumn< - { - name: "content" - tableName: "entries" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: false - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - description: drizzle_orm_pg_core.PgColumn< - { - name: "description" - tableName: "entries" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: false - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - guid: drizzle_orm_pg_core.PgColumn< - { - name: "guid" - tableName: "entries" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: true - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - author: drizzle_orm_pg_core.PgColumn< - { - name: "author" - tableName: "entries" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: false - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - authorUrl: drizzle_orm_pg_core.PgColumn< - { - name: "author_url" - tableName: "entries" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: false - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - authorAvatar: drizzle_orm_pg_core.PgColumn< - { - name: "author_avatar" - tableName: "entries" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: false - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - insertedAt: drizzle_orm_pg_core.PgColumn< - { - name: "inserted_at" - tableName: "entries" - dataType: "date" - columnType: "PgTimestamp" - data: Date - driverParam: string - notNull: true - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: undefined - baseColumn: never - generated: undefined - }, - {}, - {} - > - publishedAt: drizzle_orm_pg_core.PgColumn< - { - name: "published_at" - tableName: "entries" - dataType: "date" - columnType: "PgTimestamp" - data: Date - driverParam: string - notNull: true - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: undefined - baseColumn: never - generated: undefined - }, - {}, - {} - > - media: drizzle_orm_pg_core.PgColumn< - { - name: "media" - tableName: "entries" - dataType: "json" - columnType: "PgJsonb" - data: MediaModel[] - driverParam: unknown - notNull: false - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: undefined - baseColumn: never - generated: undefined - }, - {}, - {} - > - categories: drizzle_orm_pg_core.PgColumn< - { - name: "categories" - tableName: "entries" - dataType: "array" - columnType: "PgArray" - data: string[] - driverParam: string | string[] - notNull: false - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: drizzle_orm.Column< - { - name: "categories" - tableName: "entries" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: false - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - object, - object - > - generated: undefined - }, - {}, - {} - > - attachments: drizzle_orm_pg_core.PgColumn< - { - name: "attachments" - tableName: "entries" - dataType: "json" - columnType: "PgJsonb" - data: AttachmentsModel[] - driverParam: unknown - notNull: false - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: undefined - baseColumn: never - generated: undefined - }, - {}, - {} - > - } - dialect: "pg" -}> -declare const entriesOpenAPISchema: z.ZodObject< - z.objectUtil.extendShape< - Omit< - { - id: z.ZodString - feedId: z.ZodString - title: z.ZodNullable - url: z.ZodNullable - content: z.ZodNullable - description: z.ZodNullable - guid: z.ZodString - author: z.ZodNullable - authorUrl: z.ZodNullable - authorAvatar: z.ZodNullable - insertedAt: z.ZodString - publishedAt: z.ZodString - media: z.ZodNullable< - z.ZodType< - | string - | number - | boolean - | { - [key: string]: - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | any - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - } - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | any - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null, - z.ZodTypeDef, - | string - | number - | boolean - | { - [key: string]: - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | any - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - } - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | any - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - > - > - categories: z.ZodNullable> - attachments: z.ZodNullable< - z.ZodType< - | string - | number - | boolean - | { - [key: string]: - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | any - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - } - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | any - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null, - z.ZodTypeDef, - | string - | number - | boolean - | { - [key: string]: - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | any - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - } - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | ( - | string - | number - | boolean - | any - | any - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - )[] - | null - > - > - }, - "media" | "attachments" - >, - { - attachments: z.ZodNullable< - z.ZodOptional< - z.ZodArray< - z.ZodObject< - { - url: z.ZodString - duration_in_seconds: z.ZodOptional - mime_type: z.ZodOptional - size_in_bytes: z.ZodOptional - title: z.ZodOptional - }, - "strip", - z.ZodTypeAny, - { - url: string - title?: string | undefined - duration_in_seconds?: number | undefined - mime_type?: string | undefined - size_in_bytes?: number | undefined - }, - { - url: string - title?: string | undefined - duration_in_seconds?: number | undefined - mime_type?: string | undefined - size_in_bytes?: number | undefined - } - >, - "many" - > - > - > - media: z.ZodNullable< - z.ZodOptional< - z.ZodArray< - z.ZodObject< - { - url: z.ZodString - type: z.ZodEnum<["photo", "video"]> - width: z.ZodOptional - height: z.ZodOptional - preview_image_url: z.ZodOptional - }, - "strip", - z.ZodTypeAny, - { - type: "photo" | "video" - url: string - width?: number | undefined - height?: number | undefined - preview_image_url?: string | undefined - }, - { - type: "photo" | "video" - url: string - width?: number | undefined - height?: number | undefined - preview_image_url?: string | undefined - } - >, - "many" - > - > - > - } - >, - "strip", - z.ZodTypeAny, - { - description: string | null - title: string | null - content: string | null - id: string - author: string | null - url: string | null - feedId: string - guid: string - authorUrl: string | null - authorAvatar: string | null - insertedAt: string - publishedAt: string - categories: string[] | null - media?: - | { - type: "photo" | "video" - url: string - width?: number | undefined - height?: number | undefined - preview_image_url?: string | undefined - }[] - | null - | undefined - attachments?: - | { - url: string - title?: string | undefined - duration_in_seconds?: number | undefined - mime_type?: string | undefined - size_in_bytes?: number | undefined - }[] - | null - | undefined - }, - { - description: string | null - title: string | null - content: string | null - id: string - author: string | null - url: string | null - feedId: string - guid: string - authorUrl: string | null - authorAvatar: string | null - insertedAt: string - publishedAt: string - categories: string[] | null - media?: - | { - type: "photo" | "video" - url: string - width?: number | undefined - height?: number | undefined - preview_image_url?: string | undefined - }[] - | null - | undefined - attachments?: - | { - url: string - title?: string | undefined - duration_in_seconds?: number | undefined - mime_type?: string | undefined - size_in_bytes?: number | undefined - }[] - | null - | undefined - } -> -declare const entriesRelations: drizzle_orm.Relations< - "entries", - { - feeds: drizzle_orm.One<"feeds", true> - collections: drizzle_orm.Many<"collections"> - feedPowerTokens: drizzle_orm.One<"feedPowerTokens", true> - entryReadHistories: drizzle_orm.One<"entryReadHistories", true> - } -> + name: "entries"; + schema: undefined; + columns: { + id: drizzle_orm_pg_core.PgColumn<{ + name: "id"; + tableName: "entries"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: true; + isPrimaryKey: true; + isAutoincrement: false; + hasRuntimeDefault: true; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + feedId: drizzle_orm_pg_core.PgColumn<{ + name: "feed_id"; + tableName: "entries"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + title: drizzle_orm_pg_core.PgColumn<{ + name: "title"; + tableName: "entries"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + url: drizzle_orm_pg_core.PgColumn<{ + name: "url"; + tableName: "entries"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + content: drizzle_orm_pg_core.PgColumn<{ + name: "content"; + tableName: "entries"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + description: drizzle_orm_pg_core.PgColumn<{ + name: "description"; + tableName: "entries"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + guid: drizzle_orm_pg_core.PgColumn<{ + name: "guid"; + tableName: "entries"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + author: drizzle_orm_pg_core.PgColumn<{ + name: "author"; + tableName: "entries"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + authorUrl: drizzle_orm_pg_core.PgColumn<{ + name: "author_url"; + tableName: "entries"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + authorAvatar: drizzle_orm_pg_core.PgColumn<{ + name: "author_avatar"; + tableName: "entries"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + insertedAt: drizzle_orm_pg_core.PgColumn<{ + name: "inserted_at"; + tableName: "entries"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: true; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + generated: undefined; + }, {}, {}>; + publishedAt: drizzle_orm_pg_core.PgColumn<{ + name: "published_at"; + tableName: "entries"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: true; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + generated: undefined; + }, {}, {}>; + media: drizzle_orm_pg_core.PgColumn<{ + name: "media"; + tableName: "entries"; + dataType: "json"; + columnType: "PgJsonb"; + data: MediaModel[]; + driverParam: unknown; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + generated: undefined; + }, {}, {}>; + categories: drizzle_orm_pg_core.PgColumn<{ + name: "categories"; + tableName: "entries"; + dataType: "array"; + columnType: "PgArray"; + data: string[]; + driverParam: string | string[]; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: drizzle_orm.Column<{ + name: "categories"; + tableName: "entries"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, object, object>; + generated: undefined; + }, {}, {}>; + attachments: drizzle_orm_pg_core.PgColumn<{ + name: "attachments"; + tableName: "entries"; + dataType: "json"; + columnType: "PgJsonb"; + data: AttachmentsModel[]; + driverParam: unknown; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + generated: undefined; + }, {}, {}>; + }; + dialect: "pg"; +}>; +declare const entriesOpenAPISchema: z.ZodObject; + url: z.ZodNullable; + content: z.ZodNullable; + description: z.ZodNullable; + guid: z.ZodString; + author: z.ZodNullable; + authorUrl: z.ZodNullable; + authorAvatar: z.ZodNullable; + insertedAt: z.ZodString; + publishedAt: z.ZodString; + media: z.ZodNullable>; + categories: z.ZodNullable>; + attachments: z.ZodNullable>; +}, "media" | "attachments">, { + attachments: z.ZodNullable; + mime_type: z.ZodOptional; + size_in_bytes: z.ZodOptional; + title: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + url: string; + title?: string | undefined; + duration_in_seconds?: number | undefined; + mime_type?: string | undefined; + size_in_bytes?: number | undefined; + }, { + url: string; + title?: string | undefined; + duration_in_seconds?: number | undefined; + mime_type?: string | undefined; + size_in_bytes?: number | undefined; + }>, "many">>>; + media: z.ZodNullable; + width: z.ZodOptional; + height: z.ZodOptional; + preview_image_url: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + type: "photo" | "video"; + url: string; + width?: number | undefined; + height?: number | undefined; + preview_image_url?: string | undefined; + }, { + type: "photo" | "video"; + url: string; + width?: number | undefined; + height?: number | undefined; + preview_image_url?: string | undefined; + }>, "many">>>; +}>, "strip", z.ZodTypeAny, { + description: string | null; + title: string | null; + content: string | null; + id: string; + author: string | null; + url: string | null; + feedId: string; + guid: string; + authorUrl: string | null; + authorAvatar: string | null; + insertedAt: string; + publishedAt: string; + categories: string[] | null; + media?: { + type: "photo" | "video"; + url: string; + width?: number | undefined; + height?: number | undefined; + preview_image_url?: string | undefined; + }[] | null | undefined; + attachments?: { + url: string; + title?: string | undefined; + duration_in_seconds?: number | undefined; + mime_type?: string | undefined; + size_in_bytes?: number | undefined; + }[] | null | undefined; +}, { + description: string | null; + title: string | null; + content: string | null; + id: string; + author: string | null; + url: string | null; + feedId: string; + guid: string; + authorUrl: string | null; + authorAvatar: string | null; + insertedAt: string; + publishedAt: string; + categories: string[] | null; + media?: { + type: "photo" | "video"; + url: string; + width?: number | undefined; + height?: number | undefined; + preview_image_url?: string | undefined; + }[] | null | undefined; + attachments?: { + url: string; + title?: string | undefined; + duration_in_seconds?: number | undefined; + mime_type?: string | undefined; + size_in_bytes?: number | undefined; + }[] | null | undefined; +}>; +declare const entriesRelations: drizzle_orm.Relations<"entries", { + feeds: drizzle_orm.One<"feeds", true>; + collections: drizzle_orm.Many<"collections">; + feedPowerTokens: drizzle_orm.One<"feedPowerTokens", true>; + entryReadHistories: drizzle_orm.One<"entryReadHistories", true>; +}>; type EntriesModel = InferInsertModel & { - attachments?: AttachmentsModel[] | null - media?: MediaModel[] | null -} + attachments?: AttachmentsModel[] | null; + media?: MediaModel[] | null; +}; declare const entryReadHistories: drizzle_orm_pg_core.PgTableWithColumns<{ - name: "entryReadHistories" - schema: undefined - columns: { - entryId: drizzle_orm_pg_core.PgColumn< - { - name: "entry_id" - tableName: "entryReadHistories" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: true - hasDefault: false - isPrimaryKey: true - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - userIds: drizzle_orm_pg_core.PgColumn< - { - name: "user_ids" - tableName: "entryReadHistories" - dataType: "array" - columnType: "PgArray" - data: string[] - driverParam: string | string[] - notNull: true - hasDefault: true - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: drizzle_orm.Column< - { - name: "user_ids" - tableName: "entryReadHistories" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: false - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - object, - object - > - generated: undefined - }, - {}, - {} - > - readCount: drizzle_orm_pg_core.PgColumn< - { - name: "read_count" - tableName: "entryReadHistories" - dataType: "number" - columnType: "PgInteger" - data: number - driverParam: string | number - notNull: true - hasDefault: true - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: undefined - baseColumn: never - generated: undefined - }, - {}, - {} - > - } - dialect: "pg" -}> -declare const entryReadHistoriesRelations: drizzle_orm.Relations< - "entryReadHistories", - { - entry: drizzle_orm.One<"entries", true> - } -> -type EntryReadHistoriesModel = InferInsertModel -declare const entryReadHistoriesOpenAPISchema: z.ZodObject< - { - entryId: z.ZodString - userIds: z.ZodArray - readCount: z.ZodNumber - }, - z.UnknownKeysParam, - z.ZodTypeAny, - { - entryId: string - userIds: string[] - readCount: number - }, - { - entryId: string - userIds: string[] - readCount: number - } -> + name: "entryReadHistories"; + schema: undefined; + columns: { + entryId: drizzle_orm_pg_core.PgColumn<{ + name: "entry_id"; + tableName: "entryReadHistories"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: false; + isPrimaryKey: true; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + userIds: drizzle_orm_pg_core.PgColumn<{ + name: "user_ids"; + tableName: "entryReadHistories"; + dataType: "array"; + columnType: "PgArray"; + data: string[]; + driverParam: string | string[]; + notNull: true; + hasDefault: true; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: drizzle_orm.Column<{ + name: "user_ids"; + tableName: "entryReadHistories"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, object, object>; + generated: undefined; + }, {}, {}>; + readCount: drizzle_orm_pg_core.PgColumn<{ + name: "read_count"; + tableName: "entryReadHistories"; + dataType: "number"; + columnType: "PgInteger"; + data: number; + driverParam: string | number; + notNull: true; + hasDefault: true; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + generated: undefined; + }, {}, {}>; + }; + dialect: "pg"; +}>; +declare const entryReadHistoriesRelations: drizzle_orm.Relations<"entryReadHistories", { + entry: drizzle_orm.One<"entries", true>; +}>; +type EntryReadHistoriesModel = InferInsertModel; +declare const entryReadHistoriesOpenAPISchema: z.ZodObject<{ + entryId: z.ZodString; + userIds: z.ZodArray; + readCount: z.ZodNumber; +}, z.UnknownKeysParam, z.ZodTypeAny, { + entryId: string; + userIds: string[]; + readCount: number; +}, { + entryId: string; + userIds: string[]; + readCount: number; +}>; declare const feeds: drizzle_orm_pg_core.PgTableWithColumns<{ - name: "feeds" - schema: undefined - columns: { - id: drizzle_orm_pg_core.PgColumn< - { - name: "id" - tableName: "feeds" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: true - hasDefault: true - isPrimaryKey: true - isAutoincrement: false - hasRuntimeDefault: true - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - url: drizzle_orm_pg_core.PgColumn< - { - name: "url" - tableName: "feeds" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: true - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - title: drizzle_orm_pg_core.PgColumn< - { - name: "title" - tableName: "feeds" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: false - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - description: drizzle_orm_pg_core.PgColumn< - { - name: "description" - tableName: "feeds" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: false - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - siteUrl: drizzle_orm_pg_core.PgColumn< - { - name: "site_url" - tableName: "feeds" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: false - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - image: drizzle_orm_pg_core.PgColumn< - { - name: "image" - tableName: "feeds" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: false - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - checkedAt: drizzle_orm_pg_core.PgColumn< - { - name: "checked_at" - tableName: "feeds" - dataType: "date" - columnType: "PgTimestamp" - data: Date - driverParam: string - notNull: true - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: undefined - baseColumn: never - generated: undefined - }, - {}, - {} - > - lastModifiedHeader: drizzle_orm_pg_core.PgColumn< - { - name: "last_modified_header" - tableName: "feeds" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: false - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - etagHeader: drizzle_orm_pg_core.PgColumn< - { - name: "etag_header" - tableName: "feeds" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: false - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - ttl: drizzle_orm_pg_core.PgColumn< - { - name: "ttl" - tableName: "feeds" - dataType: "number" - columnType: "PgInteger" - data: number - driverParam: string | number - notNull: false - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: undefined - baseColumn: never - generated: undefined - }, - {}, - {} - > - errorMessage: drizzle_orm_pg_core.PgColumn< - { - name: "error_message" - tableName: "feeds" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: false - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - errorAt: drizzle_orm_pg_core.PgColumn< - { - name: "error_at" - tableName: "feeds" - dataType: "date" - columnType: "PgTimestamp" - data: Date - driverParam: string - notNull: false - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: undefined - baseColumn: never - generated: undefined - }, - {}, - {} - > - ownerUserId: drizzle_orm_pg_core.PgColumn< - { - name: "owner_user_id" - tableName: "feeds" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: false - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - } - dialect: "pg" -}> -declare const feedsOpenAPISchema: zod.ZodObject< - { - id: zod.ZodString - url: zod.ZodString - title: zod.ZodNullable - description: zod.ZodNullable - siteUrl: zod.ZodNullable - image: zod.ZodNullable - checkedAt: zod.ZodString - lastModifiedHeader: zod.ZodNullable - etagHeader: zod.ZodNullable - ttl: zod.ZodNullable - errorMessage: zod.ZodNullable - errorAt: zod.ZodNullable - ownerUserId: zod.ZodNullable - }, - zod.UnknownKeysParam, - zod.ZodTypeAny, - { - description: string | null - title: string | null - id: string - image: string | null - url: string - siteUrl: string | null - checkedAt: string - lastModifiedHeader: string | null - etagHeader: string | null - ttl: number | null - errorMessage: string | null - errorAt: string | null - ownerUserId: string | null - }, - { - description: string | null - title: string | null - id: string - image: string | null - url: string - siteUrl: string | null - checkedAt: string - lastModifiedHeader: string | null - etagHeader: string | null - ttl: number | null - errorMessage: string | null - errorAt: string | null - ownerUserId: string | null - } -> -declare const feedsInputSchema: zod.ZodObject< - { - description: zod.ZodOptional> - title: zod.ZodOptional> - id: zod.ZodOptional - image: zod.ZodOptional> - url: zod.ZodString - siteUrl: zod.ZodOptional> - checkedAt: zod.ZodString - lastModifiedHeader: zod.ZodOptional> - etagHeader: zod.ZodOptional> - ttl: zod.ZodOptional> - errorMessage: zod.ZodOptional> - errorAt: zod.ZodOptional> - ownerUserId: zod.ZodOptional> - }, - zod.UnknownKeysParam, - zod.ZodTypeAny, - { - url: string - checkedAt: string - description?: string | null | undefined - title?: string | null | undefined - id?: string | undefined - image?: string | null | undefined - siteUrl?: string | null | undefined - lastModifiedHeader?: string | null | undefined - etagHeader?: string | null | undefined - ttl?: number | null | undefined - errorMessage?: string | null | undefined - errorAt?: string | null | undefined - ownerUserId?: string | null | undefined - }, - { - url: string - checkedAt: string - description?: string | null | undefined - title?: string | null | undefined - id?: string | undefined - image?: string | null | undefined - siteUrl?: string | null | undefined - lastModifiedHeader?: string | null | undefined - etagHeader?: string | null | undefined - ttl?: number | null | undefined - errorMessage?: string | null | undefined - errorAt?: string | null | undefined - ownerUserId?: string | null | undefined - } -> -declare const feedsRelations: drizzle_orm.Relations< - "feeds", - { - subscriptions: drizzle_orm.Many<"subscriptions"> - entries: drizzle_orm.Many<"entries"> - owner: drizzle_orm.One<"user", false> - } -> -type FeedModel = InferInsertModel + name: "feeds"; + schema: undefined; + columns: { + id: drizzle_orm_pg_core.PgColumn<{ + name: "id"; + tableName: "feeds"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: true; + isPrimaryKey: true; + isAutoincrement: false; + hasRuntimeDefault: true; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + url: drizzle_orm_pg_core.PgColumn<{ + name: "url"; + tableName: "feeds"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + title: drizzle_orm_pg_core.PgColumn<{ + name: "title"; + tableName: "feeds"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + description: drizzle_orm_pg_core.PgColumn<{ + name: "description"; + tableName: "feeds"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + siteUrl: drizzle_orm_pg_core.PgColumn<{ + name: "site_url"; + tableName: "feeds"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + image: drizzle_orm_pg_core.PgColumn<{ + name: "image"; + tableName: "feeds"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + checkedAt: drizzle_orm_pg_core.PgColumn<{ + name: "checked_at"; + tableName: "feeds"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: true; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + generated: undefined; + }, {}, {}>; + lastModifiedHeader: drizzle_orm_pg_core.PgColumn<{ + name: "last_modified_header"; + tableName: "feeds"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + etagHeader: drizzle_orm_pg_core.PgColumn<{ + name: "etag_header"; + tableName: "feeds"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + ttl: drizzle_orm_pg_core.PgColumn<{ + name: "ttl"; + tableName: "feeds"; + dataType: "number"; + columnType: "PgInteger"; + data: number; + driverParam: string | number; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + generated: undefined; + }, {}, {}>; + errorMessage: drizzle_orm_pg_core.PgColumn<{ + name: "error_message"; + tableName: "feeds"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + errorAt: drizzle_orm_pg_core.PgColumn<{ + name: "error_at"; + tableName: "feeds"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + generated: undefined; + }, {}, {}>; + ownerUserId: drizzle_orm_pg_core.PgColumn<{ + name: "owner_user_id"; + tableName: "feeds"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + }; + dialect: "pg"; +}>; +declare const feedsOpenAPISchema: zod.ZodObject<{ + id: zod.ZodString; + url: zod.ZodString; + title: zod.ZodNullable; + description: zod.ZodNullable; + siteUrl: zod.ZodNullable; + image: zod.ZodNullable; + checkedAt: zod.ZodString; + lastModifiedHeader: zod.ZodNullable; + etagHeader: zod.ZodNullable; + ttl: zod.ZodNullable; + errorMessage: zod.ZodNullable; + errorAt: zod.ZodNullable; + ownerUserId: zod.ZodNullable; +}, zod.UnknownKeysParam, zod.ZodTypeAny, { + description: string | null; + title: string | null; + id: string; + image: string | null; + url: string; + siteUrl: string | null; + checkedAt: string; + lastModifiedHeader: string | null; + etagHeader: string | null; + ttl: number | null; + errorMessage: string | null; + errorAt: string | null; + ownerUserId: string | null; +}, { + description: string | null; + title: string | null; + id: string; + image: string | null; + url: string; + siteUrl: string | null; + checkedAt: string; + lastModifiedHeader: string | null; + etagHeader: string | null; + ttl: number | null; + errorMessage: string | null; + errorAt: string | null; + ownerUserId: string | null; +}>; +declare const feedsInputSchema: zod.ZodObject<{ + description: zod.ZodOptional>; + title: zod.ZodOptional>; + id: zod.ZodOptional; + image: zod.ZodOptional>; + url: zod.ZodString; + siteUrl: zod.ZodOptional>; + checkedAt: zod.ZodString; + lastModifiedHeader: zod.ZodOptional>; + etagHeader: zod.ZodOptional>; + ttl: zod.ZodOptional>; + errorMessage: zod.ZodOptional>; + errorAt: zod.ZodOptional>; + ownerUserId: zod.ZodOptional>; +}, zod.UnknownKeysParam, zod.ZodTypeAny, { + url: string; + checkedAt: string; + description?: string | null | undefined; + title?: string | null | undefined; + id?: string | undefined; + image?: string | null | undefined; + siteUrl?: string | null | undefined; + lastModifiedHeader?: string | null | undefined; + etagHeader?: string | null | undefined; + ttl?: number | null | undefined; + errorMessage?: string | null | undefined; + errorAt?: string | null | undefined; + ownerUserId?: string | null | undefined; +}, { + url: string; + checkedAt: string; + description?: string | null | undefined; + title?: string | null | undefined; + id?: string | undefined; + image?: string | null | undefined; + siteUrl?: string | null | undefined; + lastModifiedHeader?: string | null | undefined; + etagHeader?: string | null | undefined; + ttl?: number | null | undefined; + errorMessage?: string | null | undefined; + errorAt?: string | null | undefined; + ownerUserId?: string | null | undefined; +}>; +declare const feedsRelations: drizzle_orm.Relations<"feeds", { + subscriptions: drizzle_orm.Many<"subscriptions">; + entries: drizzle_orm.Many<"entries">; + owner: drizzle_orm.One<"user", false>; +}>; +type FeedModel = InferInsertModel; declare const invitations: drizzle_orm_pg_core.PgTableWithColumns<{ - name: "invitations" - schema: undefined - columns: { - code: drizzle_orm_pg_core.PgColumn< - { - name: "code" - tableName: "invitations" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: true - hasDefault: false - isPrimaryKey: true - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - createdAt: drizzle_orm_pg_core.PgColumn< - { - name: "created_at" - tableName: "invitations" - dataType: "date" - columnType: "PgTimestamp" - data: Date - driverParam: string - notNull: false - hasDefault: true - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: undefined - baseColumn: never - generated: undefined - }, - {}, - {} - > - fromUserId: drizzle_orm_pg_core.PgColumn< - { - name: "from_user_id" - tableName: "invitations" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: true - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - toUserId: drizzle_orm_pg_core.PgColumn< - { - name: "to_user_id" - tableName: "invitations" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: false - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - } - dialect: "pg" -}> -declare const invitationsOpenAPISchema: zod.ZodObject< - { - code: zod.ZodString - createdAt: zod.ZodNullable - fromUserId: zod.ZodString - toUserId: zod.ZodNullable - }, - zod.UnknownKeysParam, - zod.ZodTypeAny, - { - code: string - createdAt: string | null - fromUserId: string - toUserId: string | null - }, - { - code: string - createdAt: string | null - fromUserId: string - toUserId: string | null - } -> -declare const invitationsRelations: drizzle_orm.Relations< - "invitations", - { - users: drizzle_orm.One<"user", false> - } -> + name: "invitations"; + schema: undefined; + columns: { + code: drizzle_orm_pg_core.PgColumn<{ + name: "code"; + tableName: "invitations"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: false; + isPrimaryKey: true; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + createdAt: drizzle_orm_pg_core.PgColumn<{ + name: "created_at"; + tableName: "invitations"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: false; + hasDefault: true; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + generated: undefined; + }, {}, {}>; + fromUserId: drizzle_orm_pg_core.PgColumn<{ + name: "from_user_id"; + tableName: "invitations"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + toUserId: drizzle_orm_pg_core.PgColumn<{ + name: "to_user_id"; + tableName: "invitations"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + }; + dialect: "pg"; +}>; +declare const invitationsOpenAPISchema: zod.ZodObject<{ + code: zod.ZodString; + createdAt: zod.ZodNullable; + fromUserId: zod.ZodString; + toUserId: zod.ZodNullable; +}, zod.UnknownKeysParam, zod.ZodTypeAny, { + code: string; + createdAt: string | null; + fromUserId: string; + toUserId: string | null; +}, { + code: string; + createdAt: string | null; + fromUserId: string; + toUserId: string | null; +}>; +declare const invitationsRelations: drizzle_orm.Relations<"invitations", { + users: drizzle_orm.One<"user", false>; +}>; declare const settings: drizzle_orm_pg_core.PgTableWithColumns<{ - name: "settings" - schema: undefined - columns: { - id: drizzle_orm_pg_core.PgColumn< - { - name: "id" - tableName: "settings" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: true - hasDefault: true - isPrimaryKey: true - isAutoincrement: false - hasRuntimeDefault: true - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - userId: drizzle_orm_pg_core.PgColumn< - { - name: "user_id" - tableName: "settings" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: true - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - tab: drizzle_orm_pg_core.PgColumn< - { - name: "tab" - tableName: "settings" - dataType: "string" - columnType: "PgText" - data: "general" | "appearance" | "integration" - driverParam: string - notNull: true - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: ["general", "appearance", "integration"] - baseColumn: never - generated: undefined - }, - {}, - {} - > - payload: drizzle_orm_pg_core.PgColumn< - { - name: "payload" - tableName: "settings" - dataType: "json" - columnType: "PgJsonb" - data: Record - driverParam: unknown - notNull: false - hasDefault: true - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: undefined - baseColumn: never - generated: undefined - }, - {}, - {} - > - updateAt: drizzle_orm_pg_core.PgColumn< - { - name: "update_at" - tableName: "settings" - dataType: "date" - columnType: "PgTimestamp" - data: Date - driverParam: string - notNull: false - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: undefined - baseColumn: never - generated: undefined - }, - {}, - {} - > - version: drizzle_orm_pg_core.PgColumn< - { - name: "version" - tableName: "settings" - dataType: "number" - columnType: "PgInteger" - data: number - driverParam: string | number - notNull: true - hasDefault: true - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: undefined - baseColumn: never - generated: undefined - }, - {}, - {} - > - } - dialect: "pg" -}> + name: "settings"; + schema: undefined; + columns: { + id: drizzle_orm_pg_core.PgColumn<{ + name: "id"; + tableName: "settings"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: true; + isPrimaryKey: true; + isAutoincrement: false; + hasRuntimeDefault: true; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + userId: drizzle_orm_pg_core.PgColumn<{ + name: "user_id"; + tableName: "settings"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + tab: drizzle_orm_pg_core.PgColumn<{ + name: "tab"; + tableName: "settings"; + dataType: "string"; + columnType: "PgText"; + data: "general" | "appearance" | "integration"; + driverParam: string; + notNull: true; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: ["general", "appearance", "integration"]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + payload: drizzle_orm_pg_core.PgColumn<{ + name: "payload"; + tableName: "settings"; + dataType: "json"; + columnType: "PgJsonb"; + data: Record; + driverParam: unknown; + notNull: false; + hasDefault: true; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + generated: undefined; + }, {}, {}>; + updateAt: drizzle_orm_pg_core.PgColumn<{ + name: "update_at"; + tableName: "settings"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + generated: undefined; + }, {}, {}>; + version: drizzle_orm_pg_core.PgColumn<{ + name: "version"; + tableName: "settings"; + dataType: "number"; + columnType: "PgInteger"; + data: number; + driverParam: string | number; + notNull: true; + hasDefault: true; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + generated: undefined; + }, {}, {}>; + }; + dialect: "pg"; +}>; declare const subscriptions: drizzle_orm_pg_core.PgTableWithColumns<{ - name: "subscriptions" - schema: undefined - columns: { - userId: drizzle_orm_pg_core.PgColumn< - { - name: "user_id" - tableName: "subscriptions" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: true - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - feedId: drizzle_orm_pg_core.PgColumn< - { - name: "feed_id" - tableName: "subscriptions" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: true - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - view: drizzle_orm_pg_core.PgColumn< - { - name: "view" - tableName: "subscriptions" - dataType: "number" - columnType: "PgSmallInt" - data: number - driverParam: string | number - notNull: true - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: undefined - baseColumn: never - generated: undefined - }, - {}, - {} - > - category: drizzle_orm_pg_core.PgColumn< - { - name: "category" - tableName: "subscriptions" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: false - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - title: drizzle_orm_pg_core.PgColumn< - { - name: "title" - tableName: "subscriptions" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: false - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - isPrivate: drizzle_orm_pg_core.PgColumn< - { - name: "is_private" - tableName: "subscriptions" - dataType: "boolean" - columnType: "PgBoolean" - data: boolean - driverParam: boolean - notNull: true - hasDefault: true - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: undefined - baseColumn: never - generated: undefined - }, - {}, - {} - > - } - dialect: "pg" -}> -declare const subscriptionsOpenAPISchema: zod.ZodObject< - { - userId: zod.ZodString - feedId: zod.ZodString - view: zod.ZodNumber - category: zod.ZodNullable - title: zod.ZodNullable - isPrivate: zod.ZodBoolean - }, - zod.UnknownKeysParam, - zod.ZodTypeAny, - { - title: string | null - userId: string - view: number - category: string | null - feedId: string - isPrivate: boolean - }, - { - title: string | null - userId: string - view: number - category: string | null - feedId: string - isPrivate: boolean - } -> -declare const subscriptionsRelations: drizzle_orm.Relations< - "subscriptions", - { - users: drizzle_orm.One<"user", true> - feeds: drizzle_orm.One<"feeds", true> - } -> + name: "subscriptions"; + schema: undefined; + columns: { + userId: drizzle_orm_pg_core.PgColumn<{ + name: "user_id"; + tableName: "subscriptions"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + feedId: drizzle_orm_pg_core.PgColumn<{ + name: "feed_id"; + tableName: "subscriptions"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + view: drizzle_orm_pg_core.PgColumn<{ + name: "view"; + tableName: "subscriptions"; + dataType: "number"; + columnType: "PgSmallInt"; + data: number; + driverParam: string | number; + notNull: true; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + generated: undefined; + }, {}, {}>; + category: drizzle_orm_pg_core.PgColumn<{ + name: "category"; + tableName: "subscriptions"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + title: drizzle_orm_pg_core.PgColumn<{ + name: "title"; + tableName: "subscriptions"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + isPrivate: drizzle_orm_pg_core.PgColumn<{ + name: "is_private"; + tableName: "subscriptions"; + dataType: "boolean"; + columnType: "PgBoolean"; + data: boolean; + driverParam: boolean; + notNull: true; + hasDefault: true; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + generated: undefined; + }, {}, {}>; + }; + dialect: "pg"; +}>; +declare const subscriptionsOpenAPISchema: zod.ZodObject<{ + userId: zod.ZodString; + feedId: zod.ZodString; + view: zod.ZodNumber; + category: zod.ZodNullable; + title: zod.ZodNullable; + isPrivate: zod.ZodBoolean; +}, zod.UnknownKeysParam, zod.ZodTypeAny, { + title: string | null; + userId: string; + view: number; + category: string | null; + feedId: string; + isPrivate: boolean; +}, { + title: string | null; + userId: string; + view: number; + category: string | null; + feedId: string; + isPrivate: boolean; +}>; +declare const subscriptionsRelations: drizzle_orm.Relations<"subscriptions", { + users: drizzle_orm.One<"user", true>; + feeds: drizzle_orm.One<"feeds", true>; +}>; declare const timeline: drizzle_orm_pg_core.PgTableWithColumns<{ - name: "timeline" - schema: undefined - columns: { - userId: drizzle_orm_pg_core.PgColumn< - { - name: "user_id" - tableName: "timeline" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: true - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - feedId: drizzle_orm_pg_core.PgColumn< - { - name: "feedId" - tableName: "timeline" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: true - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - entryId: drizzle_orm_pg_core.PgColumn< - { - name: "entry_id" - tableName: "timeline" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: true - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - publishedAt: drizzle_orm_pg_core.PgColumn< - { - name: "published_at" - tableName: "timeline" - dataType: "date" - columnType: "PgTimestamp" - data: Date - driverParam: string - notNull: true - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: undefined - baseColumn: never - generated: undefined - }, - {}, - {} - > - insertedAt: drizzle_orm_pg_core.PgColumn< - { - name: "inserted_at" - tableName: "timeline" - dataType: "date" - columnType: "PgTimestamp" - data: Date - driverParam: string - notNull: true - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: undefined - baseColumn: never - generated: undefined - }, - {}, - {} - > - view: drizzle_orm_pg_core.PgColumn< - { - name: "view" - tableName: "timeline" - dataType: "number" - columnType: "PgSmallInt" - data: number - driverParam: string | number - notNull: true - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: undefined - baseColumn: never - generated: undefined - }, - {}, - {} - > - read: drizzle_orm_pg_core.PgColumn< - { - name: "read" - tableName: "timeline" - dataType: "boolean" - columnType: "PgBoolean" - data: boolean - driverParam: boolean - notNull: false - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: undefined - baseColumn: never - generated: undefined - }, - {}, - {} - > - } - dialect: "pg" -}> -declare const timelineOpenAPISchema: zod.ZodObject< - { - userId: zod.ZodString - feedId: zod.ZodString - entryId: zod.ZodString - publishedAt: zod.ZodString - insertedAt: zod.ZodString - view: zod.ZodNumber - read: zod.ZodNullable - }, - zod.UnknownKeysParam, - zod.ZodTypeAny, - { - userId: string - view: number - feedId: string - insertedAt: string - publishedAt: string - entryId: string - read: boolean | null - }, - { - userId: string - view: number - feedId: string - insertedAt: string - publishedAt: string - entryId: string - read: boolean | null - } -> -declare const timelineRelations: drizzle_orm.Relations< - "timeline", - { - entries: drizzle_orm.One<"entries", true> - feeds: drizzle_orm.One<"feeds", true> - collections: drizzle_orm.One<"collections", true> - } -> + name: "timeline"; + schema: undefined; + columns: { + userId: drizzle_orm_pg_core.PgColumn<{ + name: "user_id"; + tableName: "timeline"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + feedId: drizzle_orm_pg_core.PgColumn<{ + name: "feedId"; + tableName: "timeline"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + entryId: drizzle_orm_pg_core.PgColumn<{ + name: "entry_id"; + tableName: "timeline"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + publishedAt: drizzle_orm_pg_core.PgColumn<{ + name: "published_at"; + tableName: "timeline"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: true; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + generated: undefined; + }, {}, {}>; + insertedAt: drizzle_orm_pg_core.PgColumn<{ + name: "inserted_at"; + tableName: "timeline"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: true; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + generated: undefined; + }, {}, {}>; + view: drizzle_orm_pg_core.PgColumn<{ + name: "view"; + tableName: "timeline"; + dataType: "number"; + columnType: "PgSmallInt"; + data: number; + driverParam: string | number; + notNull: true; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + generated: undefined; + }, {}, {}>; + read: drizzle_orm_pg_core.PgColumn<{ + name: "read"; + tableName: "timeline"; + dataType: "boolean"; + columnType: "PgBoolean"; + data: boolean; + driverParam: boolean; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + generated: undefined; + }, {}, {}>; + }; + dialect: "pg"; +}>; +declare const timelineOpenAPISchema: zod.ZodObject<{ + userId: zod.ZodString; + feedId: zod.ZodString; + entryId: zod.ZodString; + publishedAt: zod.ZodString; + insertedAt: zod.ZodString; + view: zod.ZodNumber; + read: zod.ZodNullable; +}, zod.UnknownKeysParam, zod.ZodTypeAny, { + userId: string; + view: number; + feedId: string; + insertedAt: string; + publishedAt: string; + entryId: string; + read: boolean | null; +}, { + userId: string; + view: number; + feedId: string; + insertedAt: string; + publishedAt: string; + entryId: string; + read: boolean | null; +}>; +declare const timelineRelations: drizzle_orm.Relations<"timeline", { + entries: drizzle_orm.One<"entries", true>; + feeds: drizzle_orm.One<"feeds", true>; + collections: drizzle_orm.One<"collections", true>; +}>; declare const users: drizzle_orm_pg_core.PgTableWithColumns<{ - name: "user" - schema: undefined - columns: { - id: drizzle_orm_pg_core.PgColumn< - { - name: "id" - tableName: "user" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: true - hasDefault: true - isPrimaryKey: true - isAutoincrement: false - hasRuntimeDefault: true - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - name: drizzle_orm_pg_core.PgColumn< - { - name: "name" - tableName: "user" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: false - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - email: drizzle_orm_pg_core.PgColumn< - { - name: "email" - tableName: "user" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: true - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - emailVerified: drizzle_orm_pg_core.PgColumn< - { - name: "emailVerified" - tableName: "user" - dataType: "date" - columnType: "PgTimestamp" - data: Date - driverParam: string - notNull: false - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: undefined - baseColumn: never - generated: undefined - }, - {}, - {} - > - image: drizzle_orm_pg_core.PgColumn< - { - name: "image" - tableName: "user" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: false - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - handle: drizzle_orm_pg_core.PgColumn< - { - name: "handle" - tableName: "user" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: false - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - createdAt: drizzle_orm_pg_core.PgColumn< - { - name: "created_at" - tableName: "user" - dataType: "date" - columnType: "PgTimestamp" - data: Date - driverParam: string - notNull: true - hasDefault: true - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: undefined - baseColumn: never - generated: undefined - }, - {}, - {} - > - } - dialect: "pg" -}> -declare const usersOpenApiSchema: z.ZodObject< - { - id: z.ZodString - name: z.ZodNullable - email: z.ZodString - emailVerified: z.ZodNullable - image: z.ZodNullable - handle: z.ZodNullable - createdAt: z.ZodDate - }, - z.UnknownKeysParam, - z.ZodTypeAny, - { - name: string | null - id: string - email: string - emailVerified: string | null - image: string | null - handle: string | null - createdAt: Date - }, - { - name: string | null - id: string - email: string - emailVerified: string | null - image: string | null - handle: string | null - createdAt: Date - } -> + name: "user"; + schema: undefined; + columns: { + id: drizzle_orm_pg_core.PgColumn<{ + name: "id"; + tableName: "user"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: true; + isPrimaryKey: true; + isAutoincrement: false; + hasRuntimeDefault: true; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + name: drizzle_orm_pg_core.PgColumn<{ + name: "name"; + tableName: "user"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + email: drizzle_orm_pg_core.PgColumn<{ + name: "email"; + tableName: "user"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + emailVerified: drizzle_orm_pg_core.PgColumn<{ + name: "emailVerified"; + tableName: "user"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + generated: undefined; + }, {}, {}>; + image: drizzle_orm_pg_core.PgColumn<{ + name: "image"; + tableName: "user"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + handle: drizzle_orm_pg_core.PgColumn<{ + name: "handle"; + tableName: "user"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + createdAt: drizzle_orm_pg_core.PgColumn<{ + name: "created_at"; + tableName: "user"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: true; + hasDefault: true; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + generated: undefined; + }, {}, {}>; + }; + dialect: "pg"; +}>; +declare const usersOpenApiSchema: z.ZodObject; + email: z.ZodString; + emailVerified: z.ZodNullable; + image: z.ZodNullable; + handle: z.ZodNullable; + createdAt: z.ZodDate; +}, "email">, z.UnknownKeysParam, z.ZodTypeAny, { + name: string | null; + id: string; + emailVerified: string | null; + image: string | null; + handle: string | null; + createdAt: Date; +}, { + name: string | null; + id: string; + emailVerified: string | null; + image: string | null; + handle: string | null; + createdAt: Date; +}>; declare const accounts: drizzle_orm_pg_core.PgTableWithColumns<{ - name: "account" - schema: undefined - columns: { - userId: drizzle_orm_pg_core.PgColumn< - { - name: "userId" - tableName: "account" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: true - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - type: drizzle_orm_pg_core.PgColumn< - { - name: "type" - tableName: "account" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: true - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - provider: drizzle_orm_pg_core.PgColumn< - { - name: "provider" - tableName: "account" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: true - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - providerAccountId: drizzle_orm_pg_core.PgColumn< - { - name: "providerAccountId" - tableName: "account" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: true - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - refresh_token: drizzle_orm_pg_core.PgColumn< - { - name: "refresh_token" - tableName: "account" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: false - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - access_token: drizzle_orm_pg_core.PgColumn< - { - name: "access_token" - tableName: "account" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: false - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - expires_at: drizzle_orm_pg_core.PgColumn< - { - name: "expires_at" - tableName: "account" - dataType: "number" - columnType: "PgInteger" - data: number - driverParam: string | number - notNull: false - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: undefined - baseColumn: never - generated: undefined - }, - {}, - {} - > - token_type: drizzle_orm_pg_core.PgColumn< - { - name: "token_type" - tableName: "account" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: false - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - scope: drizzle_orm_pg_core.PgColumn< - { - name: "scope" - tableName: "account" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: false - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - id_token: drizzle_orm_pg_core.PgColumn< - { - name: "id_token" - tableName: "account" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: false - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - session_state: drizzle_orm_pg_core.PgColumn< - { - name: "session_state" - tableName: "account" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: false - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - } - dialect: "pg" -}> + name: "account"; + schema: undefined; + columns: { + userId: drizzle_orm_pg_core.PgColumn<{ + name: "userId"; + tableName: "account"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + type: drizzle_orm_pg_core.PgColumn<{ + name: "type"; + tableName: "account"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + provider: drizzle_orm_pg_core.PgColumn<{ + name: "provider"; + tableName: "account"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + providerAccountId: drizzle_orm_pg_core.PgColumn<{ + name: "providerAccountId"; + tableName: "account"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + refresh_token: drizzle_orm_pg_core.PgColumn<{ + name: "refresh_token"; + tableName: "account"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + access_token: drizzle_orm_pg_core.PgColumn<{ + name: "access_token"; + tableName: "account"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + expires_at: drizzle_orm_pg_core.PgColumn<{ + name: "expires_at"; + tableName: "account"; + dataType: "number"; + columnType: "PgInteger"; + data: number; + driverParam: string | number; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + generated: undefined; + }, {}, {}>; + token_type: drizzle_orm_pg_core.PgColumn<{ + name: "token_type"; + tableName: "account"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + scope: drizzle_orm_pg_core.PgColumn<{ + name: "scope"; + tableName: "account"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + id_token: drizzle_orm_pg_core.PgColumn<{ + name: "id_token"; + tableName: "account"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + session_state: drizzle_orm_pg_core.PgColumn<{ + name: "session_state"; + tableName: "account"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + }; + dialect: "pg"; +}>; declare const sessions: drizzle_orm_pg_core.PgTableWithColumns<{ - name: "session" - schema: undefined - columns: { - sessionToken: drizzle_orm_pg_core.PgColumn< - { - name: "sessionToken" - tableName: "session" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: true - hasDefault: false - isPrimaryKey: true - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - userId: drizzle_orm_pg_core.PgColumn< - { - name: "userId" - tableName: "session" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: true - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - expires: drizzle_orm_pg_core.PgColumn< - { - name: "expires" - tableName: "session" - dataType: "date" - columnType: "PgTimestamp" - data: Date - driverParam: string - notNull: true - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: undefined - baseColumn: never - generated: undefined - }, - {}, - {} - > - } - dialect: "pg" -}> + name: "session"; + schema: undefined; + columns: { + sessionToken: drizzle_orm_pg_core.PgColumn<{ + name: "sessionToken"; + tableName: "session"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: false; + isPrimaryKey: true; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + userId: drizzle_orm_pg_core.PgColumn<{ + name: "userId"; + tableName: "session"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + expires: drizzle_orm_pg_core.PgColumn<{ + name: "expires"; + tableName: "session"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: true; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + generated: undefined; + }, {}, {}>; + }; + dialect: "pg"; +}>; declare const verificationTokens: drizzle_orm_pg_core.PgTableWithColumns<{ - name: "verificationToken" - schema: undefined - columns: { - identifier: drizzle_orm_pg_core.PgColumn< - { - name: "identifier" - tableName: "verificationToken" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: true - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - token: drizzle_orm_pg_core.PgColumn< - { - name: "token" - tableName: "verificationToken" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: true - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - expires: drizzle_orm_pg_core.PgColumn< - { - name: "expires" - tableName: "verificationToken" - dataType: "date" - columnType: "PgTimestamp" - data: Date - driverParam: string - notNull: true - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: undefined - baseColumn: never - generated: undefined - }, - {}, - {} - > - } - dialect: "pg" -}> -declare const usersRelations: drizzle_orm.Relations< - "user", - { - subscriptions: drizzle_orm.Many<"subscriptions"> - collections: drizzle_orm.Many<"collections"> - actions: drizzle_orm.One<"actions", true> - wallets: drizzle_orm.One<"wallets", true> - feeds: drizzle_orm.Many<"feeds"> - } -> + name: "verificationToken"; + schema: undefined; + columns: { + identifier: drizzle_orm_pg_core.PgColumn<{ + name: "identifier"; + tableName: "verificationToken"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + token: drizzle_orm_pg_core.PgColumn<{ + name: "token"; + tableName: "verificationToken"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + expires: drizzle_orm_pg_core.PgColumn<{ + name: "expires"; + tableName: "verificationToken"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: true; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + generated: undefined; + }, {}, {}>; + }; + dialect: "pg"; +}>; +declare const usersRelations: drizzle_orm.Relations<"user", { + subscriptions: drizzle_orm.Many<"subscriptions">; + collections: drizzle_orm.Many<"collections">; + actions: drizzle_orm.One<"actions", true>; + wallets: drizzle_orm.One<"wallets", true>; + feeds: drizzle_orm.Many<"feeds">; +}>; declare const wallets: drizzle_orm_pg_core.PgTableWithColumns<{ - name: "wallets" - schema: undefined - columns: { - addressIndex: drizzle_orm_pg_core.PgColumn< - { - name: "address_index" - tableName: "wallets" - dataType: "number" - columnType: "PgInteger" - data: number - driverParam: string | number - notNull: true - hasDefault: true - isPrimaryKey: true - isAutoincrement: false - hasRuntimeDefault: false - enumValues: undefined - baseColumn: never - generated: drizzle_orm.GeneratedColumnConfig & { - as: any - type: "always" - } - }, - {}, - {} - > - address: drizzle_orm_pg_core.PgColumn< - { - name: "address" - tableName: "wallets" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: false - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - userId: drizzle_orm_pg_core.PgColumn< - { - name: "userId" - tableName: "wallets" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: true - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - createdAt: drizzle_orm_pg_core.PgColumn< - { - name: "created_at" - tableName: "wallets" - dataType: "date" - columnType: "PgTimestamp" - data: Date - driverParam: string - notNull: true - hasDefault: true - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: undefined - baseColumn: never - generated: undefined - }, - {}, - {} - > - dailyPowerToken: drizzle_orm_pg_core.PgColumn< - { - name: "daily_power_token" - tableName: "wallets" - dataType: "string" - columnType: "PgNumeric" - data: string - driverParam: string - notNull: true - hasDefault: true - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: undefined - baseColumn: never - generated: undefined - }, - {}, - {} - > - cashablePowerToken: drizzle_orm_pg_core.PgColumn< - { - name: "cashable_power_token" - tableName: "wallets" - dataType: "string" - columnType: "PgNumeric" - data: string - driverParam: string - notNull: true - hasDefault: true - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: undefined - baseColumn: never - generated: undefined - }, - {}, - {} - > - } - dialect: "pg" -}> -declare const walletsOpenAPISchema: zod.ZodObject< - { - addressIndex: zod.ZodNumber - address: zod.ZodNullable - userId: zod.ZodString - createdAt: zod.ZodString - dailyPowerToken: zod.ZodString - cashablePowerToken: zod.ZodString - }, - zod.UnknownKeysParam, - zod.ZodTypeAny, - { - createdAt: string - userId: string - address: string | null - addressIndex: number - dailyPowerToken: string - cashablePowerToken: string - }, - { - createdAt: string - userId: string - address: string | null - addressIndex: number - dailyPowerToken: string - cashablePowerToken: string - } -> -declare const walletsRelations: drizzle_orm.Relations< - "wallets", - { - user: drizzle_orm.One<"user", true> - transactionsFrom: drizzle_orm.Many<"transactions"> - transactionTo: drizzle_orm.Many<"transactions"> - } -> -declare const transactionType: drizzle_orm_pg_core.PgEnum< - ["tip", "mint", "burn", "withdraw", "purchase"] -> + name: "wallets"; + schema: undefined; + columns: { + addressIndex: drizzle_orm_pg_core.PgColumn<{ + name: "address_index"; + tableName: "wallets"; + dataType: "number"; + columnType: "PgInteger"; + data: number; + driverParam: string | number; + notNull: true; + hasDefault: true; + isPrimaryKey: true; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + generated: drizzle_orm.GeneratedColumnConfig & { + as: any; + type: "always"; + }; + }, {}, {}>; + address: drizzle_orm_pg_core.PgColumn<{ + name: "address"; + tableName: "wallets"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + userId: drizzle_orm_pg_core.PgColumn<{ + name: "userId"; + tableName: "wallets"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + createdAt: drizzle_orm_pg_core.PgColumn<{ + name: "created_at"; + tableName: "wallets"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: true; + hasDefault: true; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + generated: undefined; + }, {}, {}>; + dailyPowerToken: drizzle_orm_pg_core.PgColumn<{ + name: "daily_power_token"; + tableName: "wallets"; + dataType: "string"; + columnType: "PgNumeric"; + data: string; + driverParam: string; + notNull: true; + hasDefault: true; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + generated: undefined; + }, {}, {}>; + cashablePowerToken: drizzle_orm_pg_core.PgColumn<{ + name: "cashable_power_token"; + tableName: "wallets"; + dataType: "string"; + columnType: "PgNumeric"; + data: string; + driverParam: string; + notNull: true; + hasDefault: true; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + generated: undefined; + }, {}, {}>; + }; + dialect: "pg"; +}>; +declare const walletsOpenAPISchema: zod.ZodObject<{ + addressIndex: zod.ZodNumber; + address: zod.ZodNullable; + userId: zod.ZodString; + createdAt: zod.ZodString; + dailyPowerToken: zod.ZodString; + cashablePowerToken: zod.ZodString; +}, zod.UnknownKeysParam, zod.ZodTypeAny, { + createdAt: string; + userId: string; + address: string | null; + addressIndex: number; + dailyPowerToken: string; + cashablePowerToken: string; +}, { + createdAt: string; + userId: string; + address: string | null; + addressIndex: number; + dailyPowerToken: string; + cashablePowerToken: string; +}>; +declare const walletsRelations: drizzle_orm.Relations<"wallets", { + user: drizzle_orm.One<"user", true>; + transactionsFrom: drizzle_orm.Many<"transactions">; + transactionTo: drizzle_orm.Many<"transactions">; +}>; +declare const transactionType: drizzle_orm_pg_core.PgEnum<["tip", "mint", "burn", "withdraw", "purchase"]>; declare const transactions: drizzle_orm_pg_core.PgTableWithColumns<{ - name: "transactions" - schema: undefined - columns: { - hash: drizzle_orm_pg_core.PgColumn< - { - name: "hash" - tableName: "transactions" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: true - hasDefault: false - isPrimaryKey: true - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - type: drizzle_orm_pg_core.PgColumn< - { - name: "type" - tableName: "transactions" - dataType: "string" - columnType: "PgEnumColumn" - data: "tip" | "mint" | "burn" | "withdraw" | "purchase" - driverParam: string - notNull: true - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: ["tip", "mint", "burn", "withdraw", "purchase"] - baseColumn: never - generated: undefined - }, - {}, - {} - > - fromUserId: drizzle_orm_pg_core.PgColumn< - { - name: "from_user_id" - tableName: "transactions" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: false - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - toUserId: drizzle_orm_pg_core.PgColumn< - { - name: "to_user_id" - tableName: "transactions" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: false - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - toFeedId: drizzle_orm_pg_core.PgColumn< - { - name: "to_feed_id" - tableName: "transactions" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: false - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - toEntryId: drizzle_orm_pg_core.PgColumn< - { - name: "to_entry_id" - tableName: "transactions" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: false - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - powerToken: drizzle_orm_pg_core.PgColumn< - { - name: "power_token" - tableName: "transactions" - dataType: "string" - columnType: "PgNumeric" - data: string - driverParam: string - notNull: true - hasDefault: true - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: undefined - baseColumn: never - generated: undefined - }, - {}, - {} - > - createdAt: drizzle_orm_pg_core.PgColumn< - { - name: "created_at" - tableName: "transactions" - dataType: "date" - columnType: "PgTimestamp" - data: Date - driverParam: string - notNull: true - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: undefined - baseColumn: never - generated: undefined - }, - {}, - {} - > - comment: drizzle_orm_pg_core.PgColumn< - { - name: "comment" - tableName: "transactions" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: false - hasDefault: false - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - } - dialect: "pg" -}> -declare const transactionsOpenAPISchema: zod.ZodObject< - { - hash: zod.ZodString - type: zod.ZodEnum<["tip", "mint", "burn", "withdraw", "purchase"]> - fromUserId: zod.ZodNullable - toUserId: zod.ZodNullable - toFeedId: zod.ZodNullable - toEntryId: zod.ZodNullable - powerToken: zod.ZodString - createdAt: zod.ZodString - comment: zod.ZodNullable - }, - zod.UnknownKeysParam, - zod.ZodTypeAny, - { - type: "tip" | "mint" | "burn" | "withdraw" | "purchase" - createdAt: string - fromUserId: string | null - toUserId: string | null - hash: string - toFeedId: string | null - toEntryId: string | null - powerToken: string - comment: string | null - }, - { - type: "tip" | "mint" | "burn" | "withdraw" | "purchase" - createdAt: string - fromUserId: string | null - toUserId: string | null - hash: string - toFeedId: string | null - toEntryId: string | null - powerToken: string - comment: string | null - } -> -declare const transactionsRelations: drizzle_orm.Relations< - "transactions", - { - fromUser: drizzle_orm.One<"user", false> - toUser: drizzle_orm.One<"user", false> - toFeed: drizzle_orm.One<"feeds", false> - fromWallet: drizzle_orm.One<"wallets", false> - toWallet: drizzle_orm.One<"wallets", false> - } -> + name: "transactions"; + schema: undefined; + columns: { + hash: drizzle_orm_pg_core.PgColumn<{ + name: "hash"; + tableName: "transactions"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: false; + isPrimaryKey: true; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + type: drizzle_orm_pg_core.PgColumn<{ + name: "type"; + tableName: "transactions"; + dataType: "string"; + columnType: "PgEnumColumn"; + data: "tip" | "mint" | "burn" | "withdraw" | "purchase"; + driverParam: string; + notNull: true; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: ["tip", "mint", "burn", "withdraw", "purchase"]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + fromUserId: drizzle_orm_pg_core.PgColumn<{ + name: "from_user_id"; + tableName: "transactions"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + toUserId: drizzle_orm_pg_core.PgColumn<{ + name: "to_user_id"; + tableName: "transactions"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + toFeedId: drizzle_orm_pg_core.PgColumn<{ + name: "to_feed_id"; + tableName: "transactions"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + toEntryId: drizzle_orm_pg_core.PgColumn<{ + name: "to_entry_id"; + tableName: "transactions"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + powerToken: drizzle_orm_pg_core.PgColumn<{ + name: "power_token"; + tableName: "transactions"; + dataType: "string"; + columnType: "PgNumeric"; + data: string; + driverParam: string; + notNull: true; + hasDefault: true; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + generated: undefined; + }, {}, {}>; + createdAt: drizzle_orm_pg_core.PgColumn<{ + name: "created_at"; + tableName: "transactions"; + dataType: "date"; + columnType: "PgTimestamp"; + data: Date; + driverParam: string; + notNull: true; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + generated: undefined; + }, {}, {}>; + comment: drizzle_orm_pg_core.PgColumn<{ + name: "comment"; + tableName: "transactions"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: false; + hasDefault: false; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + }; + dialect: "pg"; +}>; +declare const transactionsOpenAPISchema: zod.ZodObject<{ + hash: zod.ZodString; + type: zod.ZodEnum<["tip", "mint", "burn", "withdraw", "purchase"]>; + fromUserId: zod.ZodNullable; + toUserId: zod.ZodNullable; + toFeedId: zod.ZodNullable; + toEntryId: zod.ZodNullable; + powerToken: zod.ZodString; + createdAt: zod.ZodString; + comment: zod.ZodNullable; +}, zod.UnknownKeysParam, zod.ZodTypeAny, { + type: "tip" | "mint" | "burn" | "withdraw" | "purchase"; + createdAt: string; + fromUserId: string | null; + toUserId: string | null; + hash: string; + toFeedId: string | null; + toEntryId: string | null; + powerToken: string; + comment: string | null; +}, { + type: "tip" | "mint" | "burn" | "withdraw" | "purchase"; + createdAt: string; + fromUserId: string | null; + toUserId: string | null; + hash: string; + toFeedId: string | null; + toEntryId: string | null; + powerToken: string; + comment: string | null; +}>; +declare const transactionsRelations: drizzle_orm.Relations<"transactions", { + fromUser: drizzle_orm.One<"user", false>; + toUser: drizzle_orm.One<"user", false>; + toFeed: drizzle_orm.One<"feeds", false>; + fromWallet: drizzle_orm.One<"wallets", false>; + toWallet: drizzle_orm.One<"wallets", false>; +}>; declare const feedPowerTokens: drizzle_orm_pg_core.PgTableWithColumns<{ - name: "feedPowerTokens" - schema: undefined - columns: { - feedId: drizzle_orm_pg_core.PgColumn< - { - name: "feed_id" - tableName: "feedPowerTokens" - dataType: "string" - columnType: "PgText" - data: string - driverParam: string - notNull: true - hasDefault: false - isPrimaryKey: true - isAutoincrement: false - hasRuntimeDefault: false - enumValues: [string, ...string[]] - baseColumn: never - generated: undefined - }, - {}, - {} - > - powerToken: drizzle_orm_pg_core.PgColumn< - { - name: "power_token" - tableName: "feedPowerTokens" - dataType: "string" - columnType: "PgNumeric" - data: string - driverParam: string - notNull: true - hasDefault: true - isPrimaryKey: false - isAutoincrement: false - hasRuntimeDefault: false - enumValues: undefined - baseColumn: never - generated: undefined - }, - {}, - {} - > - } - dialect: "pg" -}> -declare const feedPowerTokensOpenAPISchema: zod.ZodObject< - { - feedId: zod.ZodString - powerToken: zod.ZodString - }, - zod.UnknownKeysParam, - zod.ZodTypeAny, - { - feedId: string - powerToken: string - }, - { - feedId: string - powerToken: string - } -> -declare const feedPowerTokensRelations: drizzle_orm.Relations< - "feedPowerTokens", - { - feed: drizzle_orm.One<"feeds", true> - } -> + name: "feedPowerTokens"; + schema: undefined; + columns: { + feedId: drizzle_orm_pg_core.PgColumn<{ + name: "feed_id"; + tableName: "feedPowerTokens"; + dataType: "string"; + columnType: "PgText"; + data: string; + driverParam: string; + notNull: true; + hasDefault: false; + isPrimaryKey: true; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: [string, ...string[]]; + baseColumn: never; + generated: undefined; + }, {}, {}>; + powerToken: drizzle_orm_pg_core.PgColumn<{ + name: "power_token"; + tableName: "feedPowerTokens"; + dataType: "string"; + columnType: "PgNumeric"; + data: string; + driverParam: string; + notNull: true; + hasDefault: true; + isPrimaryKey: false; + isAutoincrement: false; + hasRuntimeDefault: false; + enumValues: undefined; + baseColumn: never; + generated: undefined; + }, {}, {}>; + }; + dialect: "pg"; +}>; +declare const feedPowerTokensOpenAPISchema: zod.ZodObject<{ + feedId: zod.ZodString; + powerToken: zod.ZodString; +}, zod.UnknownKeysParam, zod.ZodTypeAny, { + feedId: string; + powerToken: string; +}, { + feedId: string; + powerToken: string; +}>; +declare const feedPowerTokensRelations: drizzle_orm.Relations<"feedPowerTokens", { + feed: drizzle_orm.One<"feeds", true>; +}>; -declare const _routes: hono_hono_base.HonoBase< - Env, - { +declare const _routes: hono_hono_base.HonoBase - } - output: { - code: 0 - } - outputFormat: "json" | "text" - status: 200 - } - } - } & { + $patch: { + input: { + param: { + tab: string; + }; + } & { + json: Record; + }; + output: { + code: 0; + }; + outputFormat: "json" | "text"; + status: 200; + }; + }; +} & { "/reads": { - $post: { - input: { - json: { - entryIds: string[] - } - } - output: { - code: 0 - } - outputFormat: "json" | "text" - status: 200 - } - $delete: { - input: { - json: { - entryId: string - } - } - output: { - code: 0 - } - outputFormat: "json" | "text" - status: 200 - } - $get: { - input: { - query: { - view?: string | string[] | undefined - } - } - output: { - code: 0 - data: { - [x: string]: number - } - } - outputFormat: "json" | "text" - status: 200 - } - } + $post: { + input: { + json: { + entryIds: string[]; + }; + }; + output: { + code: 0; + }; + outputFormat: "json" | "text"; + status: 200; + }; + $delete: { + input: { + json: { + entryId: string; + }; + }; + output: { + code: 0; + }; + outputFormat: "json" | "text"; + status: 200; + }; + $get: { + input: { + query: { + view?: string | string[] | undefined; + }; + }; + output: { + code: 0; + data: { + [x: string]: number; + }; + }; + outputFormat: "json" | "text"; + status: 200; + }; + }; "/reads/all": { - $post: { - input: { - json: { - view?: number | undefined - feedIdList?: string[] | undefined - feedId?: string | undefined - startTime?: number | undefined - endTime?: number | undefined - } - } - output: { - code: 0 - } - outputFormat: "json" | "text" - status: 200 - } - } + $post: { + input: { + json: { + view?: number | undefined; + feedIdList?: string[] | undefined; + feedId?: string | undefined; + startTime?: number | undefined; + endTime?: number | undefined; + }; + }; + output: { + code: 0; + }; + outputFormat: "json" | "text"; + status: 200; + }; + }; "/reads/total-count": { - $get: { - input: {} - output: { - code: 0 - data: { - count: number - } - } - outputFormat: "json" | "text" - status: 200 - } - } - } & { + $get: { + input: {}; + output: { + code: 0; + data: { + count: number; + }; + }; + outputFormat: "json" | "text"; + status: 200; + }; + }; +} & { "/profiles": { - $get: { - input: { - query: { - id: string | string[] - } - } - output: { - code: 0 - data: { - name: string | null - id: string - email: string - emailVerified: string | null - image: string | null - handle: string | null - createdAt: string - } - } - outputFormat: "json" | "text" - status: 200 - } - } - } & { + $get: { + input: { + query: { + id: string | string[]; + }; + }; + output: { + code: 0; + data: { + name: string | null; + id: string; + emailVerified: string | null; + image: string | null; + handle: string | null; + createdAt: string; + }; + }; + outputFormat: "json" | "text"; + status: 200; + }; + }; +} & { "/metrics": { - $get: { - input: { - query: { - type?: string | string[] | undefined - } - } - output: { - code: 0 - data: { - data: number[] - meta: { - count: number - prevTS: number - prevCount: number - } - count: number - } - } - outputFormat: "json" | "text" - status: 200 - } - } - } & { + $get: { + input: { + query: { + type?: string | string[] | undefined; + }; + }; + output: { + code: 0; + data: { + data: number[]; + meta: { + count: number; + prevTS: number; + prevCount: number; + }; + count: number; + }; + }; + outputFormat: "json" | "text"; + status: 200; + }; + }; +} & { "/invitations/new": { - $post: { - input: {} - output: { - code: 0 - data: string - } - outputFormat: "json" | "text" - status: 200 - } - } + $post: { + input: {}; + output: { + code: 0; + data: string; + }; + outputFormat: "json" | "text"; + status: 200; + }; + }; "/invitations/use": { - $post: { - input: { - json: { - code: string - } - } - output: { - code: 0 - } - outputFormat: "json" | "text" - status: 200 - } - } + $post: { + input: { + json: { + code: string; + }; + }; + output: { + code: 0; + }; + outputFormat: "json" | "text"; + status: 200; + }; + }; "/invitations": { - $get: { - input: {} - output: { - code: 0 - data: { - code: string - createdAt: string | null - users: { - name: string | null - id: string - image: string | null - } | null - toUserId: string | null - }[] - } - outputFormat: "json" | "text" - status: 200 - } - } - } & { + $get: { + input: {}; + output: { + code: 0; + data: { + code: string; + createdAt: string | null; + users: { + name: string | null; + id: string; + image: string | null; + } | null; + toUserId: string | null; + }[]; + }; + outputFormat: "json" | "text"; + status: 200; + }; + }; + "/invitations/limitation": { + $get: { + input: {}; + output: { + code: 0; + data: number; + }; + outputFormat: "json" | "text"; + status: 200; + }; + }; +} & { "/feeds/claim/message": { - $get: { - input: { - query: { - feedId: string | string[] - } - } - output: { - code: 0 - data: { - json: string - description: string - xml: string - content: string - } - } - outputFormat: "json" | "text" - status: 200 - } - } + $get: { + input: { + query: { + feedId: string | string[]; + }; + }; + output: { + code: 0; + data: { + json: string; + description: string; + xml: string; + content: string; + }; + }; + outputFormat: "json" | "text"; + status: 200; + }; + }; "/feeds/claim/challenge": { - $post: { - input: { - json: { - feedId: string - } - } - output: { - code: 0 - } - outputFormat: "json" | "text" - status: 200 - } - } + $post: { + input: { + json: { + feedId: string; + }; + }; + output: { + code: 0; + }; + outputFormat: "json" | "text"; + status: 200; + }; + }; + "/feeds/claim/list": { + $get: { + input: {}; + output: { + code: 0; + data: { + feed: { + description: string | null; + title: string | null; + id: string; + image: string | null; + url: string; + siteUrl: string | null; + checkedAt: string; + lastModifiedHeader: string | null; + etagHeader: string | null; + ttl: number | null; + errorMessage: string | null; + errorAt: string | null; + ownerUserId: string | null; + }; + subscriptionCount: number; + tipAmount: number; + entryCount: number; + }[]; + }; + outputFormat: "json" | "text"; + status: 200; + }; + }; "/feeds": { - $get: { - input: { - query: { - id?: string | string[] | undefined - url?: string | string[] | undefined - } - } - output: { - code: 0 - data: { - feed: { - url: string - checkedAt: string - description?: string | null | undefined - title?: string | null | undefined - id?: string | undefined - image?: string | null | undefined - siteUrl?: string | null | undefined - lastModifiedHeader?: string | null | undefined - etagHeader?: string | null | undefined - ttl?: number | null | undefined - errorMessage?: string | null | undefined - errorAt?: string | null | undefined - ownerUserId?: string | null | undefined - } - subscriptionCount: number - readCount: number - subscription?: - | { - title: string | null - userId: string - view: number - category: string | null - feedId: string - isPrivate: boolean - } - | undefined - } - } - outputFormat: "json" | "text" - status: 200 - } - } + $get: { + input: { + query: { + id?: string | string[] | undefined; + url?: string | string[] | undefined; + }; + }; + output: { + code: 0; + data: { + feed: { + url: string; + checkedAt: string; + description?: string | null | undefined; + title?: string | null | undefined; + id?: string | undefined; + image?: string | null | undefined; + siteUrl?: string | null | undefined; + lastModifiedHeader?: string | null | undefined; + etagHeader?: string | null | undefined; + ttl?: number | null | undefined; + errorMessage?: string | null | undefined; + errorAt?: string | null | undefined; + ownerUserId?: string | null | undefined; + }; + subscriptionCount: number; + readCount: number; + subscription?: { + title: string | null; + userId: string; + view: number; + category: string | null; + feedId: string; + isPrivate: boolean; + } | undefined; + }; + }; + outputFormat: "json" | "text"; + status: 200; + }; + }; "/feeds/refresh": { - $get: { - input: { - query: { - id: string | string[] - } - } - output: { - code: 0 - } - outputFormat: "json" | "text" - status: 200 - } - } - } & { + $get: { + input: { + query: { + id: string | string[]; + }; + }; + output: { + code: 0; + }; + outputFormat: "json" | "text"; + status: 200; + }; + }; +} & { "/entries/read-histories/:id": { - $get: { - input: { - param: { - id?: string | undefined - } - } & { - query: { - page?: string | string[] | undefined - size?: string | string[] | undefined - } - } - output: { - code: 0 - data: { - users: { - [x: string]: { - name: string | null - id: string - image: string | null - handle: string | null - } - } - entryReadHistories: { - userIds: string[] - readCount: number - } | null - } - } - outputFormat: "json" | "text" - status: 200 - } - } + $get: { + input: { + param: { + id?: string | undefined; + }; + } & { + query: { + page?: string | string[] | undefined; + size?: string | string[] | undefined; + }; + }; + output: { + code: 0; + data: { + users: { + [x: string]: { + name: string | null; + id: string; + image: string | null; + handle: string | null; + }; + }; + entryReadHistories: { + userIds: string[]; + readCount: number; + } | null; + }; + }; + outputFormat: "json" | "text"; + status: 200; + }; + }; "/entries/check-new": { - $get: { - input: { - query: { - insertedAfter: string | string[] - view?: string | string[] | undefined - feedIdList?: string | string[] | undefined - feedId?: string | string[] | undefined - read?: string | string[] | undefined - } - } - output: { - code: 0 - data: { - has_new: boolean - entry_id?: string | undefined - lastest_at?: string | undefined - } - } - outputFormat: "json" | "text" - status: 200 - } - } + $get: { + input: { + query: { + insertedAfter: string | string[]; + view?: string | string[] | undefined; + feedIdList?: string | string[] | undefined; + feedId?: string | string[] | undefined; + read?: string | string[] | undefined; + }; + }; + output: { + code: 0; + data: { + has_new: boolean; + entry_id?: string | undefined; + lastest_at?: string | undefined; + }; + }; + outputFormat: "json" | "text"; + status: 200; + }; + }; "/entries": { - $post: { - input: { - json: { - view?: number | undefined - feedIdList?: string[] | undefined - feedId?: string | undefined - read?: boolean | undefined - limit?: number | undefined - publishedAfter?: string | undefined - publishedBefore?: string | undefined - collected?: boolean | undefined - isCollection?: boolean | undefined - isArchived?: boolean | undefined - withContent?: boolean | undefined - } - } - output: { - code: 0 - remaining: number - data?: - | { - entries: { - description: string | null - title: string | null - id: string - author: string | null - url: string | null - guid: string - authorUrl: string | null - authorAvatar: string | null - insertedAt: string - publishedAt: string - categories: string[] | null - media?: - | { - type: "photo" | "video" - url: string - width?: number | undefined - height?: number | undefined - preview_image_url?: string | undefined - }[] - | null - | undefined - attachments?: - | { - url: string - title?: string | undefined - duration_in_seconds?: number | undefined - mime_type?: string | undefined - size_in_bytes?: number | undefined - }[] - | null - | undefined - } - feeds: { - description: string | null - title: string | null - id: string - image: string | null - url: string - siteUrl: string | null - checkedAt: string - lastModifiedHeader: string | null - etagHeader: string | null - ttl: number | null - errorMessage: string | null - errorAt: string | null - ownerUserId: string | null - } - read: boolean | null - collections?: - | { - createdAt: string - } - | undefined - settings?: - | { - summary?: boolean | undefined - translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined - rewriteRules?: - | { - from: string - to: string - }[] - | undefined - } - | undefined - }[] - | undefined - total?: number | undefined - } - outputFormat: "json" | "text" - status: 200 - } - $get: { - input: { - query: { - id: string | string[] - } - } - output: { - code: 0 - data?: - | { - entries: { - description: string | null - title: string | null - content: string | null - id: string - author: string | null - url: string | null - guid: string - authorUrl: string | null - authorAvatar: string | null - insertedAt: string - publishedAt: string - categories: string[] | null - media?: - | { - type: "photo" | "video" - url: string - width?: number | undefined - height?: number | undefined - preview_image_url?: string | undefined - }[] - | null - | undefined - attachments?: - | { - url: string - title?: string | undefined - duration_in_seconds?: number | undefined - mime_type?: string | undefined - size_in_bytes?: number | undefined - }[] - | null - | undefined - } - feeds: { - description: string | null - title: string | null - id: string - image: string | null - url: string - siteUrl: string | null - checkedAt: string - lastModifiedHeader: string | null - etagHeader: string | null - ttl: number | null - errorMessage: string | null - errorAt: string | null - ownerUserId: string | null - } - users: { - [x: string]: { - name: string | null - id: string - image: string | null - handle: string | null - } - } - entryReadHistories: { - userIds: string[] - readCount: number - } | null - } - | undefined - } - outputFormat: "json" | "text" - status: 200 - } - } + $post: { + input: { + json: { + view?: number | undefined; + feedIdList?: string[] | undefined; + feedId?: string | undefined; + read?: boolean | undefined; + limit?: number | undefined; + publishedAfter?: string | undefined; + publishedBefore?: string | undefined; + collected?: boolean | undefined; + isCollection?: boolean | undefined; + isArchived?: boolean | undefined; + withContent?: boolean | undefined; + }; + }; + output: { + code: 0; + remaining: number; + data?: { + entries: { + description: string | null; + title: string | null; + id: string; + author: string | null; + url: string | null; + guid: string; + authorUrl: string | null; + authorAvatar: string | null; + insertedAt: string; + publishedAt: string; + categories: string[] | null; + media?: { + type: "photo" | "video"; + url: string; + width?: number | undefined; + height?: number | undefined; + preview_image_url?: string | undefined; + }[] | null | undefined; + attachments?: { + url: string; + title?: string | undefined; + duration_in_seconds?: number | undefined; + mime_type?: string | undefined; + size_in_bytes?: number | undefined; + }[] | null | undefined; + }; + feeds: { + description: string | null; + title: string | null; + id: string; + image: string | null; + url: string; + siteUrl: string | null; + checkedAt: string; + lastModifiedHeader: string | null; + etagHeader: string | null; + ttl: number | null; + errorMessage: string | null; + errorAt: string | null; + ownerUserId: string | null; + }; + read: boolean | null; + collections?: { + createdAt: string; + } | undefined; + settings?: { + summary?: boolean | undefined; + translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined; + readability?: boolean | undefined; + rewriteRules?: { + from: string; + to: string; + }[] | undefined; + } | undefined; + }[] | undefined; + total?: number | undefined; + }; + outputFormat: "json" | "text"; + status: 200; + }; + $get: { + input: { + query: { + id: string | string[]; + }; + }; + output: { + code: 0; + data?: { + entries: { + description: string | null; + title: string | null; + content: string | null; + id: string; + author: string | null; + url: string | null; + guid: string; + authorUrl: string | null; + authorAvatar: string | null; + insertedAt: string; + publishedAt: string; + categories: string[] | null; + media?: { + type: "photo" | "video"; + url: string; + width?: number | undefined; + height?: number | undefined; + preview_image_url?: string | undefined; + }[] | null | undefined; + attachments?: { + url: string; + title?: string | undefined; + duration_in_seconds?: number | undefined; + mime_type?: string | undefined; + size_in_bytes?: number | undefined; + }[] | null | undefined; + }; + feeds: { + description: string | null; + title: string | null; + id: string; + image: string | null; + url: string; + siteUrl: string | null; + checkedAt: string; + lastModifiedHeader: string | null; + etagHeader: string | null; + ttl: number | null; + errorMessage: string | null; + errorAt: string | null; + ownerUserId: string | null; + tipUsers: { + name: string | null; + id: string; + image: string | null; + handle: string | null; + }[]; + }; + users: { + [x: string]: { + name: string | null; + id: string; + image: string | null; + handle: string | null; + }; + }; + entryReadHistories: { + userIds: string[]; + readCount: number; + } | null; + } | undefined; + }; + outputFormat: "json" | "text"; + status: 200; + }; + }; "/entries/preview": { - $get: { - input: { - query: { - id: string | string[] - } - } - output: { - code: 0 - data: { - description: string | null - title: string | null - content: string | null - id: string - author: string | null - url: string | null - feedId: string - guid: string - authorUrl: string | null - authorAvatar: string | null - insertedAt: string - publishedAt: string - categories: string[] | null - media?: - | { - type: "photo" | "video" - url: string - width?: number | undefined - height?: number | undefined - preview_image_url?: string | undefined - }[] - | null - | undefined - attachments?: - | { - url: string - title?: string | undefined - duration_in_seconds?: number | undefined - mime_type?: string | undefined - size_in_bytes?: number | undefined - }[] - | null - | undefined - }[] - } - outputFormat: "json" | "text" - status: 200 - } - } - } & { + $get: { + input: { + query: { + id: string | string[]; + }; + }; + output: { + code: 0; + data: { + description: string | null; + title: string | null; + content: string | null; + id: string; + author: string | null; + url: string | null; + feedId: string; + guid: string; + authorUrl: string | null; + authorAvatar: string | null; + insertedAt: string; + publishedAt: string; + categories: string[] | null; + media?: { + type: "photo" | "video"; + url: string; + width?: number | undefined; + height?: number | undefined; + preview_image_url?: string | undefined; + }[] | null | undefined; + attachments?: { + url: string; + title?: string | undefined; + duration_in_seconds?: number | undefined; + mime_type?: string | undefined; + size_in_bytes?: number | undefined; + }[] | null | undefined; + }[]; + }; + outputFormat: "json" | "text"; + status: 200; + }; + }; +} & { "/discover": { - $post: { - input: { - json: { - keyword: string - } - } - output: { - data: { - feed: { - description: string | null - title: string | null - id: string - image: string | null - url: string - siteUrl: string | null - checkedAt: string - lastModifiedHeader: string | null - etagHeader: string | null - ttl: number | null - errorMessage: string | null - errorAt: string | null - ownerUserId: string | null - } - entries?: - | { - description: string | null - title: string | null - content: string | null - id: string - author: string | null - url: string | null - feedId: string - guid: string - authorUrl: string | null - authorAvatar: string | null - insertedAt: string - publishedAt: string - categories: string[] | null - media?: - | { - type: "photo" | "video" - url: string - width?: number | undefined - height?: number | undefined - preview_image_url?: string | undefined - }[] - | null - | undefined - attachments?: - | { - url: string - title?: string | undefined - duration_in_seconds?: number | undefined - mime_type?: string | undefined - size_in_bytes?: number | undefined - }[] - | null - | undefined - }[] - | undefined - docs?: string | undefined - isSubscribed?: boolean | undefined - subscriptionCount?: number | undefined - }[] - } - outputFormat: "json" | "text" - status: 200 - } - } + $post: { + input: { + json: { + keyword: string; + }; + }; + output: { + data: { + feed: { + description: string | null; + title: string | null; + id: string; + image: string | null; + url: string; + siteUrl: string | null; + checkedAt: string; + lastModifiedHeader: string | null; + etagHeader: string | null; + ttl: number | null; + errorMessage: string | null; + errorAt: string | null; + ownerUserId: string | null; + owner: { + name: string | null; + id: string; + emailVerified: string | null; + image: string | null; + handle: string | null; + createdAt: string; + } | null; + }; + entries?: { + description: string | null; + title: string | null; + content: string | null; + id: string; + author: string | null; + url: string | null; + feedId: string; + guid: string; + authorUrl: string | null; + authorAvatar: string | null; + insertedAt: string; + publishedAt: string; + categories: string[] | null; + media?: { + type: "photo" | "video"; + url: string; + width?: number | undefined; + height?: number | undefined; + preview_image_url?: string | undefined; + }[] | null | undefined; + attachments?: { + url: string; + title?: string | undefined; + duration_in_seconds?: number | undefined; + mime_type?: string | undefined; + size_in_bytes?: number | undefined; + }[] | null | undefined; + }[] | undefined; + docs?: string | undefined; + isSubscribed?: boolean | undefined; + subscriptionCount?: number | undefined; + }[]; + }; + outputFormat: "json" | "text"; + status: 200; + }; + }; "/discover/rsshub": { - $get: { - input: { - query: { - category?: string | string[] | undefined - namespace?: string | string[] | undefined - } - } - output: { - data: { - [x: string]: { - description: string - name: string - url: string - routes: { - [x: string]: { - description: string - parameters: { - [x: string]: string - } - path: string - example: string - name: string - categories: string[] - maintainers: string[] - location: string - view?: number | undefined - } - } - } - } - } - outputFormat: "json" | "text" - status: 200 - } - } - } & { + $get: { + input: { + query: { + category?: string | string[] | undefined; + namespace?: string | string[] | undefined; + }; + }; + output: { + data: { + [x: string]: { + description: string; + name: string; + url: string; + routes: { + [x: string]: { + description: string; + parameters: { + [x: string]: string; + }; + path: string; + example: string; + name: string; + categories: string[]; + maintainers: string[]; + location: string; + view?: number | undefined; + }; + }; + }; + }; + }; + outputFormat: "json" | "text"; + status: 200; + }; + }; +} & { "/collections": { - $get: { - input: { - query: { - entryId: string | string[] - } - } - output: { - code: 0 - data: boolean - } - outputFormat: "json" | "text" - status: 200 - } - $post: { - input: { - json: { - entryId: string - } - } - output: { - code: 0 - } - outputFormat: "json" | "text" - status: 200 - } - $delete: { - input: { - json: { - entryId: string - } - } - output: { - code: 0 - } - outputFormat: "json" | "text" - status: 200 - } - } - } & { + $get: { + input: { + query: { + entryId: string | string[]; + }; + }; + output: { + code: 0; + data: boolean; + }; + outputFormat: "json" | "text"; + status: 200; + }; + $post: { + input: { + json: { + entryId: string; + }; + }; + output: { + code: 0; + }; + outputFormat: "json" | "text"; + status: 200; + }; + $delete: { + input: { + json: { + entryId: string; + }; + }; + output: { + code: 0; + }; + outputFormat: "json" | "text"; + status: 200; + }; + }; +} & { "/categories": { - $get: { - input: { - query: { - view?: string | string[] | undefined - } - } - output: { - data?: string[] | undefined - } - outputFormat: "json" | "text" - status: 200 - } - $delete: { - input: { - json: { - feedIdList: string[] - deleteSubscriptions: boolean - } - } - output: { - code: 0 - } - outputFormat: "json" | "text" - status: 200 - } - $patch: { - input: { - json: { - category: string - feedIdList: string[] - } - } - output: { - code: 0 - } - outputFormat: "json" | "text" - status: 200 - } - } - } & { + $get: { + input: { + query: { + view?: string | string[] | undefined; + }; + }; + output: { + data?: string[] | undefined; + }; + outputFormat: "json" | "text"; + status: 200; + }; + $delete: { + input: { + json: { + feedIdList: string[]; + deleteSubscriptions: boolean; + }; + }; + output: { + code: 0; + }; + outputFormat: "json" | "text"; + status: 200; + }; + $patch: { + input: { + json: { + category: string; + feedIdList: string[]; + }; + }; + output: { + code: 0; + }; + outputFormat: "json" | "text"; + status: 200; + }; + }; +} & { "/auth-app/new-session": { - $post: { - input: {} - output: { - code: 0 - data: { - userId: string - sessionToken: string - expires: string - } - } - outputFormat: "json" | "text" - status: 200 - } - } + $post: { + input: {}; + output: { + code: 0; + data: { + userId: string; + sessionToken: string; + expires: string; + }; + }; + outputFormat: "json" | "text"; + status: 200; + }; + }; "/auth-app/update-account": { - $patch: { - input: { - json: { - name?: string | null | undefined - image?: string | null | undefined - handle?: string | null | undefined - } - } - output: { - code: 0 - } - outputFormat: "json" | "text" - status: 200 - } - } - } & { + $patch: { + input: { + json: { + name?: string | null | undefined; + image?: string | null | undefined; + handle?: string | null | undefined; + }; + }; + output: { + code: 0; + }; + outputFormat: "json" | "text"; + status: 200; + }; + }; +} & { "/ai/translation": { - $get: { - input: { - query: { - id: string | string[] - language: string | string[] - fields: string | string[] - } - } - output: { - code: 0 - data?: - | { - description?: string | undefined - title?: string | undefined - content?: string | undefined - } - | undefined - } - outputFormat: "json" | "text" - status: 200 - } - } + $get: { + input: { + query: { + id: string | string[]; + language: string | string[]; + fields: string | string[]; + }; + }; + output: { + code: 0; + data?: { + description?: string | undefined; + title?: string | undefined; + content?: string | undefined; + } | undefined; + }; + outputFormat: "json" | "text"; + status: 200; + }; + }; "/ai/summary": { - $get: { - input: { - query: { - id: string | string[] - language?: string | string[] | undefined - } - } - output: { - code: 0 - data?: string | undefined - } - outputFormat: "json" | "text" - status: 200 - } - } + $get: { + input: { + query: { + id: string | string[]; + language?: string | string[] | undefined; + }; + }; + output: { + code: 0; + data?: string | undefined; + }; + outputFormat: "json" | "text"; + status: 200; + }; + }; "/ai/daily": { - $get: { - input: { - query: { - view: string | string[] - startDate: string | string[] - } - } - output: { - code: 0 - data: string - } - outputFormat: "json" | "text" - status: 200 - } - } - } & { + $get: { + input: { + query: { + view: string | string[]; + startDate: string | string[]; + }; + }; + output: { + code: 0; + data: string; + }; + outputFormat: "json" | "text"; + status: 200; + }; + }; +} & { "/actions": { - $get: { - input: {} - output: { - code: 0 - data?: - | { - userId: string - rules?: - | { - name: string - condition: { - value: string - field: "title" | "view" | "site_url" | "feed_url" | "category" - operator: - | "contains" - | "not_contains" - | "eq" - | "not_eq" - | "gt" - | "lt" - | "regex" - }[] - result: { - summary?: boolean | undefined - translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined - rewriteRules?: - | { - from: string - to: string - }[] - | undefined - blockRules?: - | { - value: string | number - field: "title" | "content" | "all" | "author" | "url" | "order" - operator: - | "contains" - | "not_contains" - | "eq" - | "not_eq" - | "gt" - | "lt" - | "regex" - }[] - | undefined - } - }[] - | null - | undefined - } - | undefined - } - outputFormat: "json" | "text" - status: 200 - } - $put: { - input: { - json: { - rules?: - | { - name: string - condition: { - value: string - field: "title" | "view" | "site_url" | "feed_url" | "category" - operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex" - }[] - result: { - summary?: boolean | undefined - translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined - rewriteRules?: - | { - from: string - to: string - }[] - | undefined - blockRules?: - | { - value: string | number - field: "title" | "content" | "all" | "author" | "url" | "order" - operator: - | "contains" - | "not_contains" - | "eq" - | "not_eq" - | "gt" - | "lt" - | "regex" - }[] - | undefined - } - }[] - | null - | undefined - } - } - output: { - code: 0 - } - outputFormat: "json" | "text" - status: 200 - } - } - }, - "/" -> -type AppType = typeof _routes + $get: { + input: {}; + output: { + code: 0; + data?: { + userId: string; + rules?: { + name: string; + condition: { + value: string; + field: "title" | "view" | "site_url" | "feed_url" | "category"; + operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; + }[]; + result: { + summary?: boolean | undefined; + translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined; + readability?: boolean | undefined; + rewriteRules?: { + from: string; + to: string; + }[] | undefined; + blockRules?: { + value: string | number; + field: "title" | "content" | "all" | "author" | "url" | "order"; + operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; + }[] | undefined; + }; + }[] | null | undefined; + } | undefined; + }; + outputFormat: "json" | "text"; + status: 200; + }; + $put: { + input: { + json: { + rules?: { + name: string; + condition: { + value: string; + field: "title" | "view" | "site_url" | "feed_url" | "category"; + operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; + }[]; + result: { + summary?: boolean | undefined; + translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined; + readability?: boolean | undefined; + rewriteRules?: { + from: string; + to: string; + }[] | undefined; + blockRules?: { + value: string | number; + field: "title" | "content" | "all" | "author" | "url" | "order"; + operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex"; + }[] | undefined; + }; + }[] | null | undefined; + }; + }; + output: { + code: 0; + }; + outputFormat: "json" | "text"; + status: 200; + }; + }; +}, "/">; +type AppType = typeof _routes; -export { - type ActionsModel, - type AppType, - type AttachmentsModel, - type EntriesModel, - type EntryReadHistoriesModel, - type FeedModel, - type MediaModel, - type SettingsModel, - accounts, - actions, - actionsItemOpenAPISchema, - actionsOpenAPISchema, - actionsRelations, - collections, - collectionsOpenAPISchema, - collectionsRelations, - entries, - entriesOpenAPISchema, - entriesRelations, - entryReadHistories, - entryReadHistoriesOpenAPISchema, - entryReadHistoriesRelations, - feedPowerTokens, - feedPowerTokensOpenAPISchema, - feedPowerTokensRelations, - feeds, - feedsInputSchema, - feedsOpenAPISchema, - feedsRelations, - invitations, - invitationsOpenAPISchema, - invitationsRelations, - languageSchema, - sessions, - settings, - subscriptions, - subscriptionsOpenAPISchema, - subscriptionsRelations, - timeline, - timelineOpenAPISchema, - timelineRelations, - transactionType, - transactions, - transactionsOpenAPISchema, - transactionsRelations, - users, - usersOpenApiSchema, - usersRelations, - verificationTokens, - wallets, - walletsOpenAPISchema, - walletsRelations, -} +export { type ActionsModel, type AppType, type AttachmentsModel, type EntriesModel, type EntryReadHistoriesModel, type FeedModel, type MediaModel, type SettingsModel, accounts, actions, actionsItemOpenAPISchema, actionsOpenAPISchema, actionsRelations, collections, collectionsOpenAPISchema, collectionsRelations, entries, entriesOpenAPISchema, entriesRelations, entryReadHistories, entryReadHistoriesOpenAPISchema, entryReadHistoriesRelations, feedPowerTokens, feedPowerTokensOpenAPISchema, feedPowerTokensRelations, feeds, feedsInputSchema, feedsOpenAPISchema, feedsRelations, invitations, invitationsOpenAPISchema, invitationsRelations, languageSchema, sessions, settings, subscriptions, subscriptionsOpenAPISchema, subscriptionsRelations, timeline, timelineOpenAPISchema, timelineRelations, transactionType, transactions, transactionsOpenAPISchema, transactionsRelations, users, usersOpenApiSchema, usersRelations, verificationTokens, wallets, walletsOpenAPISchema, walletsRelations }; diff --git a/src/renderer/src/@types/constants.ts b/src/renderer/src/@types/constants.ts index 9bce16a9d..4747c6e4e 100644 --- a/src/renderer/src/@types/constants.ts +++ b/src/renderer/src/@types/constants.ts @@ -1,14 +1,12 @@ -export const currentSupportedLanguages = (() => { - const langsFiles = import.meta.glob("../../../../locales/app/*.json") - - const langs = [] as string[] - for (const key in langsFiles) { - langs.push(key.split("/").pop()?.replace(".json", "") as string) - } - return langs -})() - +const langs = ["en", "ja", "zh-CN", "zh-TW", "pt", "fr"] +export const currentSupportedLanguages = langs.sort() export const dayjsLocaleImportMap = { en: ["en", () => import("dayjs/locale/en")], - zh_CN: ["zh-cn", () => import("dayjs/locale/zh-cn")], + ["zh-CN"]: ["zh-cn", () => import("dayjs/locale/zh-cn")], + ["ja"]: ["ja", () => import("dayjs/locale/ja")], + ["fr"]: ["fr", () => import("dayjs/locale/fr")], + ["pt"]: ["pt", () => import("dayjs/locale/pt")], + ["zh-TW"]: ["zh-tw", () => import("dayjs/locale/zh-tw")], } +export const ns = ["app", "common", "lang", "settings", "shortcuts"] as const +export const defaultNS = "app" as const diff --git a/src/renderer/src/@types/default-resource.ts b/src/renderer/src/@types/default-resource.ts index bec83d526..118cf751a 100644 --- a/src/renderer/src/@types/default-resource.ts +++ b/src/renderer/src/@types/default-resource.ts @@ -1,9 +1,19 @@ import en from "../../../../locales/app/en.json" import common_en from "../../../../locales/common/en.json" -import common_zhCN from "../../../../locales/common/zh_CN.json" +import common_fr from "../../../../locales/common/fr.json" +import common_ja from "../../../../locales/common/ja.json" +import common_pt from "../../../../locales/common/pt.json" +import common_zhCN from "../../../../locales/common/zh-CN.json" +import common_zhTW from "../../../../locales/common/zh-TW.json" import external_en from "../../../../locales/external/en.json" import lang_en from "../../../../locales/lang/en.json" - +import lang_fr from "../../../../locales/lang/fr.json" +import lang_ja from "../../../../locales/lang/ja.json" +import lang_pt from "../../../../locales/lang/pt.json" +import lang_zhCN from "../../../../locales/lang/zh-CN.json" +import lang_zhTW from "../../../../locales/lang/zh-TW.json" +import settings_en from "../../../../locales/settings/en.json" +import shortcuts_en from "../../../../locales/shortcuts/en.json" /** * This file is the language resource that is loaded in full when the app is initialized. * When switching languages, the app will automatically download the required language resources, @@ -11,16 +21,24 @@ import lang_en from "../../../../locales/lang/en.json" * Generally, we only load english resources synchronously by default. * In addition, we attach common resources for other languages, and the size of the common resources must be controlled. */ - export const defaultResources = { en: { app: en, lang: lang_en, common: common_en, external: external_en, + settings: settings_en, + shortcuts: shortcuts_en, }, - - zh_CN: { + "zh-CN": { + lang: lang_zhCN, common: common_zhCN, }, + "zh-tw": { lang: lang_zhTW, common: common_zhTW }, + ja: { + lang: lang_ja, + common: common_ja, + }, + fr: { lang: lang_fr, common: common_fr }, + pt: { lang: lang_pt, common: common_pt }, } diff --git a/src/renderer/src/@types/i18next.d.ts b/src/renderer/src/@types/i18next.d.ts index 1e5c1be34..e8afee158 100644 --- a/src/renderer/src/@types/i18next.d.ts +++ b/src/renderer/src/@types/i18next.d.ts @@ -1,9 +1,12 @@ +import type { defaultNS, ns } from "./constants" import type { defaultResources as resources } from "./default-resource" declare module "i18next" { interface CustomTypeOptions { + // ns: ["app", "common", "external", "lang", "settings", "shortcuts"] + ns: typeof ns resources: (typeof resources)["en"] - defaultNS: "app" + defaultNS: typeof defaultNS // if you see an error like: "Argument of type 'DefaultTFuncReturn' is not assignable to parameter of type xyz" // set returnNull to false (and also in the i18next init options) // returnNull: false; diff --git a/src/renderer/src/atoms/settings/ui.ts b/src/renderer/src/atoms/settings/ui.ts index 8a14b5d1e..dd4f7ac0e 100644 --- a/src/renderer/src/atoms/settings/ui.ts +++ b/src/renderer/src/atoms/settings/ui.ts @@ -30,6 +30,7 @@ export const createDefaultSettings = (): UISettings => ({ // View pictureViewMasonry: true, + pictureViewFilterNoImage: false, // TTS voice: "en-US-AndrewMultilingualNeural", diff --git a/src/renderer/src/components/common/ErrorElement.tsx b/src/renderer/src/components/common/ErrorElement.tsx index af8e30662..9574c99ac 100644 --- a/src/renderer/src/components/common/ErrorElement.tsx +++ b/src/renderer/src/components/common/ErrorElement.tsx @@ -77,7 +77,7 @@ export function ErrorElement() { - +
@@ -85,7 +85,7 @@ export function ErrorElement() { ) } -export const FallbackIssue = ({ +export const FeedbackIssue = ({ message, stack, }: { diff --git a/src/renderer/src/components/errors/ModalError.tsx b/src/renderer/src/components/errors/ModalError.tsx index 73e372ff8..5cb07d7b1 100644 --- a/src/renderer/src/components/errors/ModalError.tsx +++ b/src/renderer/src/components/errors/ModalError.tsx @@ -2,7 +2,7 @@ import { attachOpenInEditor } from "@renderer/lib/dev" import type { FC } from "react" import type { AppErrorFallbackProps } from "../common/AppErrorBoundary" -import { FallbackIssue } from "../common/ErrorElement" +import { FeedbackIssue } from "../common/ErrorElement" import { m } from "../common/Motion" import { Button } from "../ui/button" import { useCurrentModal } from "../ui/modal" @@ -44,7 +44,7 @@ export const ModalErrorFallback: FC = (props) => {
- + ) diff --git a/src/renderer/src/components/errors/PageError.tsx b/src/renderer/src/components/errors/PageError.tsx index 4870cb973..7bb339809 100644 --- a/src/renderer/src/components/errors/PageError.tsx +++ b/src/renderer/src/components/errors/PageError.tsx @@ -2,7 +2,7 @@ import { attachOpenInEditor } from "@renderer/lib/dev" import type { FC } from "react" import type { AppErrorFallbackProps } from "../common/AppErrorBoundary" -import { FallbackIssue } from "../common/ErrorElement" +import { FeedbackIssue } from "../common/ErrorElement" import { Button } from "../ui/button" import { parseError, useResetErrorWhenRouteChange } from "./helper" @@ -37,7 +37,7 @@ export const PageErrorFallback: FC = (props) => { - + ) diff --git a/src/renderer/src/components/feed-certification.tsx b/src/renderer/src/components/feed-certification.tsx new file mode 100644 index 000000000..a2d8b04ac --- /dev/null +++ b/src/renderer/src/components/feed-certification.tsx @@ -0,0 +1,73 @@ +import { useWhoami } from "@renderer/atoms/user" +import { Avatar, AvatarFallback, AvatarImage } from "@renderer/components/ui/avatar" +import { + Tooltip, + TooltipContent, + TooltipPortal, + TooltipTrigger, +} from "@renderer/components/ui/tooltip" +import { cn } from "@renderer/lib/utils" +import type { FeedModel } from "@renderer/models" +import { usePresentUserProfileModal } from "@renderer/modules/profile/hooks" +import { useTranslation } from "react-i18next" + +export const FeedCertification = ({ feed, className }: { feed: FeedModel; className?: string }) => { + const me = useWhoami() + const presentUserProfile = usePresentUserProfileModal("drawer") + const { t } = useTranslation() + + return ( + feed.ownerUserId && + (feed.ownerUserId === me?.id ? ( + + + + + + + +
+ + {t("feed_item.claimed_feed")} +
+
{t("feed_item.claimed_by_you")}
+
+
+
+ ) : ( + + + + + + + +
+ + {t("feed_item.claimed_feed")} +
+
+ {t("feed_item.claimed_by_owner")} + {feed.owner ? ( + { + e.stopPropagation() + presentUserProfile(feed.owner!.id) + }} + > + + {feed.owner.name?.slice(0, 2)} + + ) : ( + {t("feed_item.claimed_by_unknown")} + )} +
+
+
+
+ )) + ) +} diff --git a/src/renderer/src/components/feed-summary.tsx b/src/renderer/src/components/feed-summary.tsx index b7477bf94..3c628733b 100644 --- a/src/renderer/src/components/feed-summary.tsx +++ b/src/renderer/src/components/feed-summary.tsx @@ -2,6 +2,7 @@ import { FeedIcon } from "@renderer/components/feed-icon" import { cn } from "@renderer/lib/utils" import type { FeedModel } from "@renderer/models" +import { FeedCertification } from "./feed-certification" import { EllipsisHorizontalTextWithTooltip } from "./ui/typography" export function FollowSummary({ @@ -28,7 +29,10 @@ export function FollowSummary({ size={32} />
- {feed.title} +
+ {feed.title} + +
{feed.description} diff --git a/src/renderer/src/components/header.tsx b/src/renderer/src/components/header.tsx index 785f2f07d..56f8904ea 100644 --- a/src/renderer/src/components/header.tsx +++ b/src/renderer/src/components/header.tsx @@ -5,6 +5,7 @@ import type { MotionValue } from "framer-motion" import { useMotionValueEvent, useScroll } from "framer-motion" import type { FC } from "react" import { cloneElement, useState } from "react" +import { useTranslation } from "react-i18next" import { Link } from "react-router-dom" import { FollowIcon } from "./icons/follow" @@ -19,6 +20,7 @@ const useMotionValueToState = (value: MotionValue) => { export function Header() { const present = usePresentUserProfileModal() + const { t } = useTranslation("external") const { scrollY } = useScroll() const scrollYState = useMotionValueToState(scrollY) @@ -40,12 +42,16 @@ export function Header() {
- } label="App" /> + } + label={t("header.app")} + /> } - label="Download" + label={t("header.download")} />
@@ -75,7 +81,9 @@ const HoverableLink: FC<{ target={href.startsWith("http") ? "_blank" : undefined} className={cn("group center flex gap-3 duration-200 hover:text-accent", className)} > - {cloneElement(icon, { className: `size-3 ${icon.props.className}` })} + + {cloneElement(icon, { className: `size-4 ${icon.props.className}` })} + {label} diff --git a/src/renderer/src/components/icons/Language.tsx b/src/renderer/src/components/icons/Language.tsx new file mode 100644 index 000000000..eaac9048b --- /dev/null +++ b/src/renderer/src/components/icons/Language.tsx @@ -0,0 +1,78 @@ +import type { SVGProps } from "react" + +export function MdiLanguageTypescript(props: SVGProps) { + return ( + + + + ) +} + +export function UilReact(props: SVGProps) { + return ( + + + + ) +} + +export function MdiLanguageJavascript(props: SVGProps) { + return ( + + + + ) +} + +export function MdiBash(props: SVGProps) { + return ( + + + + ) +} + +export function MdiLanguageCss3(props: SVGProps) { + return ( + + + + ) +} + +export function MdiLanguageHtml5(props: SVGProps) { + return ( + + + + ) +} + +export function RiMarkdownFill(props: SVGProps) { + return ( + + + + ) +} diff --git a/src/renderer/src/components/icons/PhCloudWarning.tsx b/src/renderer/src/components/icons/PhCloudWarning.tsx new file mode 100644 index 000000000..070953991 --- /dev/null +++ b/src/renderer/src/components/icons/PhCloudWarning.tsx @@ -0,0 +1,18 @@ +import type { SVGProps } from "react" + +export function PhCloudWarning(props: SVGProps) { + return ( + + + + ) +} diff --git a/src/renderer/src/components/ui/code-highlighter/constants/index.tsx b/src/renderer/src/components/ui/code-highlighter/constants/index.tsx new file mode 100644 index 000000000..f9ebcc57f --- /dev/null +++ b/src/renderer/src/components/ui/code-highlighter/constants/index.tsx @@ -0,0 +1,84 @@ +import { + MdiLanguageCss3, + MdiLanguageHtml5, + MdiLanguageJavascript, + MdiLanguageTypescript, + RiMarkdownFill, + UilReact, +} from "@renderer/components/icons/Language" + +const LanguageAlias = { + ts: "typescript", + js: "javascript", + + tsx: "typescriptreact", + jsx: "javascriptreact", + md: "markdown", +} +const LanguageToColorMap = { + typescript: "#2b7489", + javascript: "#f1e05a", + javascriptreact: "#f1e05a", + typescriptreact: "#2b7489", + html: "#e34c26", + java: "#b07219", + go: "#00add8", + vue: "#2c3e50", + css: "#563d7c", + yaml: "#cb171e", + json: "#292929", + markdown: "#083fa1", + csharp: "#178600", + "c#": "#178600", + c: "#555555", + cpp: "#f34b7d", + "c++": "#f34b7d", + python: "#3572a5", + lua: "#000080", + vimscript: "#199f4b", + shell: "#89e051", + dockerfile: "#384d54", + ruby: "#701516", + php: "#4f5d95", + lisp: "#3fb68b", + kotlin: "#F18E33", + rust: "#dea584", + dart: "#00B4AB", + swift: "#ffac45", + "objective-c": "#438eff", + "objective-c++": "#6866fb", + r: "#198ce7", + matlab: "#e16737", + scala: "#c22d40", + sql: "#e38c00", + perl: "#0298c3", +} +const languageToIconMap = { + javascriptreact: , + typescriptreact: , + javascript: , + typescript: , + html: , + css: , + markdown: , +} +export const getLanguageColor = (language?: string) => { + if (!language) return + + const alias = LanguageAlias[language] + if (alias) { + return LanguageToColorMap[alias] + } + return LanguageToColorMap[language] +} + +export const getLanguageIcon = (language?: string) => { + if (!language) return null + + const alias = LanguageAlias[language] + if (alias) { + return languageToIconMap[alias] + } + + return languageToIconMap[language] +} diff --git a/src/renderer/src/components/ui/code-highlighter/copy-button.tsx b/src/renderer/src/components/ui/code-highlighter/copy-button.tsx index ef42c4ea4..4575e0047 100644 --- a/src/renderer/src/components/ui/code-highlighter/copy-button.tsx +++ b/src/renderer/src/components/ui/code-highlighter/copy-button.tsx @@ -23,7 +23,8 @@ const copyIconVariants: Variants = { export const CopyButton: Component<{ value: string -}> = ({ value, className }) => { + style?: React.CSSProperties +}> = ({ value, className, style }) => { const [copied, setCopied] = useState(false) const copiedTimerRef = useRef() const handleCopy = useCallback(() => { @@ -45,6 +46,7 @@ export const CopyButton: Component<{ className, )} + style={style} > {copied ? ( diff --git a/src/renderer/src/components/ui/code-highlighter/shiki/Shiki.tsx b/src/renderer/src/components/ui/code-highlighter/shiki/Shiki.tsx index 4f71379bd..3c661b23c 100644 --- a/src/renderer/src/components/ui/code-highlighter/shiki/Shiki.tsx +++ b/src/renderer/src/components/ui/code-highlighter/shiki/Shiki.tsx @@ -10,21 +10,13 @@ import type { BundledTheme, DynamicImportLanguageRegistration, DynamicImportThemeRegistration, - HighlighterCore, } from "shiki" -import { createHighlighterCoreSync, createJavaScriptRegexEngine } from "shiki/core" +import { getLanguageColor, getLanguageIcon } from "../constants" import { CopyButton } from "../copy-button" -import { shikiTransformers } from "./shared" +import { shiki, shikiTransformers } from "./shared" import styles from "./shiki.module.css" -const js = createJavaScriptRegexEngine() -const shiki = createHighlighterCoreSync({ - themes: [], - langs: [], - engine: js, -}) - export interface ShikiProps { language: string | undefined code: string @@ -42,24 +34,7 @@ let themeModule: Record | null = n let bundledLanguagesKeysSet: Set | null = null export const ShikiHighLighter: FC = (props) => { - if (!shiki) { - const { code, className } = props - return ( -
-        {code}
-      
- ) - } - - return -} - -const ShikiHighLighterRender: FC< - ShikiProps & { - shiki: HighlighterCore - } -> = (props) => { - const { code, language, className, theme: overrideTheme, shiki } = props + const { code, language, className, theme: overrideTheme } = props const [currentLanguage, setCurrentLanguage] = useState(language || "plaintext") const guessCodeLanguage = useUISettingKey("guessCodeLanguage") @@ -179,9 +154,8 @@ const ShikiHighLighterRender: FC< const ShikiCode: FC< ShikiProps & { codeTheme: string - shiki: HighlighterCore } -> = ({ code, language, codeTheme, className, transparent, shiki }) => { +> = ({ code, language, codeTheme, className, transparent }) => { const rendered = useMemo(() => { try { return shiki.codeToHtml(code, { @@ -193,10 +167,9 @@ const ShikiCode: FC< transformers: shikiTransformers, }) } catch { - // console.error(err) return null } - }, [shiki, code, language, codeTheme]) + }, [code, language, codeTheme]) if (!rendered) { return ( @@ -205,6 +178,7 @@ const ShikiCode: FC< ) } + return (
+ {language !== "plaintext" && ( + + {getLanguageIcon(language)} + {language} + + )}
) } diff --git a/src/renderer/src/components/ui/code-highlighter/shiki/shared.ts b/src/renderer/src/components/ui/code-highlighter/shiki/shared.ts index a70e7cec9..254cdd98f 100644 --- a/src/renderer/src/components/ui/code-highlighter/shiki/shared.ts +++ b/src/renderer/src/components/ui/code-highlighter/shiki/shared.ts @@ -4,9 +4,17 @@ import { transformerNotationHighlight, } from "@shikijs/transformers" import type { ShikiTransformer } from "shiki" +import { createHighlighterCoreSync, createJavaScriptRegexEngine } from "shiki" export const shikiTransformers: ShikiTransformer[] = [ transformerMetaHighlight(), transformerNotationDiff(), transformerNotationHighlight(), ] + +const js = createJavaScriptRegexEngine() +export const shiki = createHighlighterCoreSync({ + themes: [], + langs: [], + engine: js, +}) diff --git a/src/renderer/src/components/ui/code-highlighter/shiki/shiki.module.css b/src/renderer/src/components/ui/code-highlighter/shiki/shiki.module.css index 5d72811f8..203552b06 100644 --- a/src/renderer/src/components/ui/code-highlighter/shiki/shiki.module.css +++ b/src/renderer/src/components/ui/code-highlighter/shiki/shiki.module.css @@ -11,6 +11,10 @@ } :global { + .shiki { + @apply !m-0 !px-0; + } + pre { @apply !m-0 overflow-auto p-4; @@ -22,7 +26,7 @@ } .line { - @apply block; + @apply block px-5; & > span:last-child { @apply mr-5; diff --git a/src/renderer/src/components/ui/datetime/index.tsx b/src/renderer/src/components/ui/datetime/index.tsx index 7c941650d..17593368c 100644 --- a/src/renderer/src/components/ui/datetime/index.tsx +++ b/src/renderer/src/components/ui/datetime/index.tsx @@ -1,7 +1,9 @@ +import { useGeneralSettingSelector } from "@renderer/atoms/settings/general" import { stopPropagation } from "@renderer/lib/dom" import dayjs from "dayjs" import type { FC } from "react" import { useEffect, useRef, useState } from "react" +import { useTranslation } from "react-i18next" import { Tooltip, TooltipContent, TooltipPortal, TooltipTrigger } from "../tooltip" @@ -84,6 +86,9 @@ export const RelativeTime: FC<{ } export const RelativeDay = ({ date }: { date: Date }) => { + const { t } = useTranslation("common") + const language = useGeneralSettingSelector((s) => s.language) + const formatDateString = (date: Date) => { const now = new Date() @@ -95,11 +100,18 @@ export const RelativeDay = ({ date }: { date: Date }) => { const diffDays = diffTime / (1000 * 3600 * 24) if (diffDays === 0) { - return "Today" + return t("time.today") } else if (diffDays === 1) { - return "Yesterday" + return t("time.yesterday") } else { - return date.toLocaleDateString("en-US", { + let locale: Intl.Locale + + try { + locale = new Intl.Locale(language.replace("_", "-")) + } catch { + locale = new Intl.Locale("en-US") + } + return date.toLocaleDateString(locale, { weekday: "long", month: "short", day: "numeric", @@ -121,7 +133,7 @@ export const RelativeDay = ({ date }: { date: Date }) => { return () => { clearTimeout(timerRef.current) } - }, [date]) + }, [date, language]) const formated = dayjs(date).format(formatTemplateString) if (formated === dateString) { diff --git a/src/renderer/src/components/ui/kbd/Kbd.tsx b/src/renderer/src/components/ui/kbd/Kbd.tsx index ae6704f5c..9d9593b5b 100644 --- a/src/renderer/src/components/ui/kbd/Kbd.tsx +++ b/src/renderer/src/components/ui/kbd/Kbd.tsx @@ -175,7 +175,7 @@ export const Kbd: FC<{ children: string; className?: string }> = memo(({ childre } case SharedKeys.backspace: { - return + return } case SpecialKeys.macOS.meta: { return @@ -271,13 +271,14 @@ function MaterialSymbolsSpaceBarRounded(props: React.SVGProps) { ) } -function MaterialSymbolsBackspace(props: React.SVGProps) { + +function MaterialSymbolsBackspaceOutlineSharp(props: React.SVGProps) { return ( + d="M7.95 19L3 12l4.95-7H21v14zM9 17h10V7H9l-3.55 5zm2.4-1l2.6-2.6l2.6 2.6l1.4-1.4l-2.6-2.6L18 9.4L16.6 8L14 10.6L11.4 8L10 9.4l2.6 2.6l-2.6 2.6zm7.6 1V7z" + /> ) } diff --git a/src/renderer/src/components/ui/markdown/components/TimeStamp.tsx b/src/renderer/src/components/ui/markdown/components/TimeStamp.tsx index cfa1818ee..2509d1d25 100644 --- a/src/renderer/src/components/ui/markdown/components/TimeStamp.tsx +++ b/src/renderer/src/components/ui/markdown/components/TimeStamp.tsx @@ -21,7 +21,7 @@ export const TimeStamp = (props: { time: string }) => { nextFrame(() => AudioPlayer.seek(timeStringToSeconds(props.time) || 0)) }} > - + {props.time}
) diff --git a/src/renderer/src/components/ui/media/VideoPlayer.tsx b/src/renderer/src/components/ui/media/VideoPlayer.tsx index bbabc9996..4d80fd5fc 100644 --- a/src/renderer/src/components/ui/media/VideoPlayer.tsx +++ b/src/renderer/src/components/ui/media/VideoPlayer.tsx @@ -20,6 +20,7 @@ import { useState, } from "react" import { useHotkeys } from "react-hotkeys-hook" +import { useTranslation } from "react-i18next" import { createContext, useContext, useContextSelector } from "use-context-selector" import { useEventCallback } from "usehooks-ts" @@ -208,6 +209,7 @@ const FloatMutedButton = () => { } const ControlBar = memo(() => { + const { t } = useTranslation() const controls = useContextSelector(VideoPlayerContext, (v) => v.controls) const isPaused = useContextSelector(VideoPlayerContext, (v) => v.state.paused) const dragControls = useDragControls() @@ -235,7 +237,7 @@ const ControlBar = memo(() => { { if (isPaused) { @@ -268,6 +270,7 @@ const ControlBar = memo(() => { }) const FullScreenControl = () => { + const { t } = useTranslation() const ref = useContextSelector(VideoPlayerContext, (v) => v.wrapperRef) const [isFullScreen, setIsFullScreen] = useState(!!document.fullscreenElement) @@ -283,7 +286,7 @@ const FullScreenControl = () => { return ( { @@ -306,6 +309,7 @@ const FullScreenControl = () => { } const DownloadVideo = () => { + const { t } = useTranslation() const src = useContextSelector(VideoPlayerContext, (v) => v.src) const [isDownloading, setIsDownloading] = useState(false) const download = useEventCallback(() => { @@ -324,7 +328,7 @@ const DownloadVideo = () => { }) return ( - + {isDownloading ? ( ) : ( @@ -334,6 +338,7 @@ const DownloadVideo = () => { ) } const VolumeControl = () => { + const { t } = useTranslation() const hasAudio = useContextSelector(VideoPlayerContext, (v) => v.state.hasAudio) const controls = useContextSelector(VideoPlayerContext, (v) => v.controls) @@ -352,7 +357,11 @@ const VolumeControl = () => { }} labelDelayDuration={1} > - {muted ? : } + {muted ? ( + + ) : ( + + )} ) } @@ -446,7 +455,7 @@ const ActionIcon = ({ {children || } - + {label} {shortcut && {shortcut}} diff --git a/src/renderer/src/components/ui/modal/stacked/modal.tsx b/src/renderer/src/components/ui/modal/stacked/modal.tsx index 9458efb3d..fc1ff77c1 100644 --- a/src/renderer/src/components/ui/modal/stacked/modal.tsx +++ b/src/renderer/src/components/ui/modal/stacked/modal.tsx @@ -6,6 +6,7 @@ import { m } from "@renderer/components/common/Motion" import { ErrorComponentType } from "@renderer/components/errors/enum" import { isElectronBuild } from "@renderer/constants" import { useSwitchHotKeyScope } from "@renderer/hooks/common" +import { debugStack } from "@renderer/lib/dev" import { nextFrame, stopPropagation } from "@renderer/lib/dom" import { cn } from "@renderer/lib/utils" import { useAnimationControls, useDragControls } from "framer-motion" @@ -83,6 +84,7 @@ export const ModalInternal = memo( const onClose = useCallback( (open: boolean): void => { + debugStack() if (!open) { close() } @@ -113,7 +115,7 @@ export const ModalInternal = memo( }) const animateController = useAnimationControls() useEffect(() => { - requestAnimationFrame(() => { + nextFrame(() => { animateController.start(modalMontionConfig.animate) }) }, [animateController]) @@ -259,6 +261,7 @@ export const ModalInternal = memo( )} onPointerUp={handleDetectSelectEnd} onClick={handleClickOutsideToDismiss} + onFocus={stopPropagation} style={zIndexStyle} > {DragBar} @@ -296,6 +299,7 @@ export const ModalInternal = memo( modalContainerClassName, !isResizeable && "center", )} + onFocus={stopPropagation} onPointerUp={handleDetectSelectEnd} onClick={handleClickOutsideToDismiss} > diff --git a/src/renderer/src/components/ui/platform-icon/utils.tsx b/src/renderer/src/components/ui/platform-icon/utils.tsx index 1e8175634..8277000d4 100644 --- a/src/renderer/src/components/ui/platform-icon/utils.tsx +++ b/src/renderer/src/components/ui/platform-icon/utils.tsx @@ -19,7 +19,7 @@ export const getSupportedPlatformIconName = (url: string) => { ) } -const parseSafeUrl = (url: string) => { +export const parseSafeUrl = (url: string) => { try { return new URL(url) } catch { diff --git a/src/renderer/src/components/ui/radio-group/RadioCard.tsx b/src/renderer/src/components/ui/radio-group/RadioCard.tsx index 2f628066b..dfa17ce1b 100644 --- a/src/renderer/src/components/ui/radio-group/RadioCard.tsx +++ b/src/renderer/src/components/ui/radio-group/RadioCard.tsx @@ -27,6 +27,7 @@ export const RadioCard: FC< return ( diff --git a/src/renderer/src/modules/discover/DiscoverFeedForm.tsx b/src/renderer/src/modules/discover/DiscoverFeedForm.tsx index 804bc9fa2..264626989 100644 --- a/src/renderer/src/modules/discover/DiscoverFeedForm.tsx +++ b/src/renderer/src/modules/discover/DiscoverFeedForm.tsx @@ -26,6 +26,7 @@ import type { FC } from "react" import { useCallback, useEffect, useLayoutEffect, useMemo, useRef } from "react" import type { UseFormReturn } from "react-hook-form" import { useForm } from "react-hook-form" +import { Trans, useTranslation } from "react-i18next" import { toast } from "sonner" import { z } from "zod" @@ -40,36 +41,40 @@ const FeedMaintainers = ({ maintainers }: { maintainers?: string[] }) => { return ( ) } const FeedDescription = ({ description }: { description?: string }) => { + const { t } = useTranslation() if (!description) { return null } return ( <> -

- The description of this feed is as follows, and you can fill out the parameter form with the - relevant information. -

+

{t("discover.feed_description")}

{description} @@ -88,6 +93,7 @@ export const DiscoverFeedForm = ({ noDescription?: boolean submitButtonClassName?: string }) => { + const { t } = useTranslation() const keys = useMemo( () => parseRegexpPathParams(route.path, { @@ -207,13 +213,13 @@ export const DiscoverFeedForm = ({ > {/* Select focused ref on `SelectTrigger` or `Select` */} - + {parameters.options.map((option) => ( {option.label} - {parameters.default === option.value && " (default)"} + {parameters.default === option.value && t("discover.default_option")} ))} @@ -246,7 +252,7 @@ export const DiscoverFeedForm = ({ submitButtonClassName, )} > - + diff --git a/src/renderer/src/modules/discover/feed-form.tsx b/src/renderer/src/modules/discover/feed-form.tsx index 156d31ee0..47d0718f0 100644 --- a/src/renderer/src/modules/discover/feed-form.tsx +++ b/src/renderer/src/modules/discover/feed-form.tsx @@ -34,6 +34,7 @@ import { feedUnreadActions } from "@renderer/store/unread" import { useMutation } from "@tanstack/react-query" import { useEffect, useRef } from "react" import { useForm } from "react-hook-form" +import { useTranslation } from "react-i18next" import { toast } from "sonner" import { z } from "zod" @@ -67,6 +68,8 @@ export const FeedForm: Component<{ const hasSub = useSubscriptionByFeedId(feed?.id || "") const isSubscribed = !!feedQuery.data?.subscription || hasSub + const { t } = useTranslation() + return (
- {isSubscribed ? "Update" : "Add"} follow + {isSubscribed ? t("feed_form.update_follow") : t("feed_form.add_follow")}
)} @@ -90,7 +93,7 @@ export const FeedForm: Component<{ ) : feedQuery.error ? (
-

Error in fetching feed.

+

{t("feed_form.error_fetching_feed")}

{getFetchErrorMessage(feedQuery.error)}

@@ -102,7 +105,7 @@ export const FeedForm: Component<{ feedQuery.refetch() }} > - Retry + {t("feed_form.retry")}
) : (
-

Feed not found.

+

{t("feed_form.feed_not_found")}

{url}

)} @@ -214,7 +217,7 @@ const FeedInnerForm = ({ feedQuery.byId({ id: feedId }).invalidate() tipcClient?.invalidateQuery(feedQuery.byId({ id: feedId }).key) } - toast(isSubscribed ? "🎉 Updated." : "🎉 Followed.", { + toast(isSubscribed ? t("feed_form.updated") : t("feed_form.followed"), { duration: 1000, }) @@ -243,7 +246,9 @@ const FeedInnerForm = ({ followMutation.mutate(values) } - const categories = useAuthQuery(subscriptionQuery.categories(Number.parseInt(form.watch("view")))) + const { t } = useTranslation() + + const categories = useAuthQuery(subscriptionQuery.categories()) // useEffect(() => { // if (feed.isSuccess) nextFrame(() => buttonRef.current?.focus()); @@ -263,7 +268,7 @@ const FeedInnerForm = ({ name="view" render={() => ( - View + {t("feed_form.view")} {views.map((view) => ( @@ -283,7 +288,7 @@ const FeedInnerForm = ({ )} > {view.icon} - {view.name} + {t(view.name)} ))} @@ -299,10 +304,8 @@ const FeedInnerForm = ({ render={({ field }) => (
- Tile - - Custom title for this Feed. Leave empty to use the default. - + {t("feed_form.title")} + {t("feed_form.title_description")}
@@ -317,10 +320,8 @@ const FeedInnerForm = ({ render={({ field }) => (
- Category - - By default, your follows will be grouped by website. - + {t("feed_form.category")} + {t("feed_form.category_description")}
@@ -351,10 +352,8 @@ const FeedInnerForm = ({
- Private Follow - - Whether this follow is publicly visible on your profile page. - + {t("feed_form.private_follow")} + {t("feed_form.private_follow_description")}
- Unfollow + {t("feed_form.unfollow")} )}
diff --git a/src/renderer/src/modules/discover/form.tsx b/src/renderer/src/modules/discover/form.tsx index 0715d7ed1..83994410f 100644 --- a/src/renderer/src/modules/discover/form.tsx +++ b/src/renderer/src/modules/discover/form.tsx @@ -18,6 +18,7 @@ import type { FeedViewType } from "@renderer/lib/enum" import { useMutation } from "@tanstack/react-query" import { useEffect } from "react" import { useForm } from "react-hook-form" +import { useTranslation } from "react-i18next" import { z } from "zod" import { FollowSummary } from "../../components/feed-summary" @@ -30,23 +31,23 @@ const formSchema = z.object({ const info: Record< string, { - label: string + label: I18nKeys prefix?: string[] showModal?: boolean default?: string } > = { search: { - label: "Any URL or Keyword", + label: "discover.any_url_or_keyword", }, rss: { - label: "RSS URL", + label: "discover.rss_url", default: "https://", prefix: ["https://", "http://"], showModal: true, }, rsshub: { - label: "RSSHub Route", + label: "discover.rss_hub_route", prefix: ["rsshub://"], default: "rsshub://", showModal: true, @@ -61,6 +62,7 @@ export function DiscoverForm({ type }: { type: string }) { keyword: defaultValue || "", }, }) + const { t } = useTranslation() const mutation = useMutation({ mutationFn: async (keyword: string) => { const { data } = await apiClient.discover.$post({ @@ -120,7 +122,7 @@ export function DiscoverForm({ type }: { type: string }) { name="keyword" render={({ field }) => ( - {info[type]?.label} + {t(info[type]?.label)} @@ -130,7 +132,7 @@ export function DiscoverForm({ type }: { type: string }) { />
@@ -142,7 +144,7 @@ export function DiscoverForm({ type }: { type: string }) { {mutation.data?.length > 1 && "s"}
- {mutation.data?.map((item) => ( + {mutation.data.map((item) => ( ) { mutation.mutate(values.file) } + const { t } = useTranslation() return ( <> @@ -113,7 +115,9 @@ export function DiscoverImport() { - Click to upload OPML file + + {t("discover.import.click_to_upload")} + )} @@ -136,7 +140,7 @@ export function DiscoverImport() { disabled={!form.formState.dirtyFields.file} isLoading={mutation.isPending} > - Import + {t("words.import")}
diff --git a/src/renderer/src/modules/discover/recommendations.tsx b/src/renderer/src/modules/discover/recommendations.tsx index 0bbe35b7a..78c9be230 100644 --- a/src/renderer/src/modules/discover/recommendations.tsx +++ b/src/renderer/src/modules/discover/recommendations.tsx @@ -2,6 +2,7 @@ import { useAuthQuery } from "@renderer/hooks/common" import { isASCII } from "@renderer/lib/utils" import { Queries } from "@renderer/queries" import { useMemo } from "react" +import { useTranslation } from "react-i18next" import { RecommendationCard } from "./recommendations-card" @@ -44,6 +45,7 @@ export function Recommendations() { } }, [data]) + const { t } = useTranslation() if (rsshubPopular.isLoading) { return null } @@ -54,7 +56,7 @@ export function Recommendations() { return (
-
Popular
+
{t("discover.popular")}
{keys.map((key) => ( diff --git a/src/renderer/src/modules/entry-column/Items/picture-item.tsx b/src/renderer/src/modules/entry-column/Items/picture-item.tsx index b66c845a7..7fe38da14 100644 --- a/src/renderer/src/modules/entry-column/Items/picture-item.tsx +++ b/src/renderer/src/modules/entry-column/Items/picture-item.tsx @@ -8,6 +8,7 @@ import { useEntry } from "@renderer/store/entry/hooks" import { useImageDimensions } from "@renderer/store/image" import type { PropsWithChildren } from "react" import { memo, useEffect, useState } from "react" +import { useTranslation } from "react-i18next" import { usePreviewMedia } from "../../../components/ui/media/hooks" import { EntryItemWrapper } from "../layouts/EntryItemWrapper" @@ -24,6 +25,7 @@ export function PictureItem({ entryId, entryPreview, translation }: UniversalIte const isActive = useRouteParamsSelector(({ entryId }) => entryId === entry?.entries.id) + const { t } = useTranslation() const previewMedia = usePreviewMedia() if (!entry) return return ( @@ -46,7 +48,7 @@ export function PictureItem({ entryId, entryPreview, translation }: UniversalIte ) : (
- No media available + {t("entry_content.no_content")}
)}
@@ -97,7 +99,7 @@ export const PictureWaterFallItem = memo(function PictureWaterFallItem({ /> ) : ( -
+
No media available
diff --git a/src/renderer/src/modules/entry-column/components/mark-all-button.tsx b/src/renderer/src/modules/entry-column/components/mark-all-button.tsx index 8ae0fcd03..1917030b2 100644 --- a/src/renderer/src/modules/entry-column/components/mark-all-button.tsx +++ b/src/renderer/src/modules/entry-column/components/mark-all-button.tsx @@ -1,15 +1,15 @@ -import { PopoverPortal } from "@radix-ui/react-popover" import { ActionButton, Button, IconButton } from "@renderer/components/ui/button" import { Kbd, KbdCombined } from "@renderer/components/ui/kbd/Kbd" -import { Popover, PopoverContent, PopoverTrigger } from "@renderer/components/ui/popover" import { RootPortal } from "@renderer/components/ui/portal" import { HotKeyScopeMap } from "@renderer/constants" import { shortcuts } from "@renderer/constants/shortcuts" +import { useI18n } from "@renderer/hooks/common" import { cn } from "@renderer/lib/utils" import { AnimatePresence, m } from "framer-motion" import type { FC, ReactNode } from "react" import { forwardRef, Fragment, useState } from "react" import { useHotkeys } from "react-hotkeys-hook" +import { Trans, useTranslation } from "react-i18next" import { toast } from "sonner" import { useOnClickOutside } from "usehooks-ts" @@ -30,6 +30,9 @@ export const MarkAllReadWithOverlay = forwardRef< containerRef: React.RefObject } >(({ filter, className, which = "all", shortcut, containerRef }, ref) => { + const { t } = useTranslation() + const { t: commonT } = useTranslation("common") + const [show, setShow] = useState(false) const handleMarkAllAsRead = useMarkAllByRoute(filter) @@ -61,11 +64,12 @@ export const MarkAllReadWithOverlay = forwardRef< - Mark - - {which} - - as read? +
@@ -76,7 +80,7 @@ export const MarkAllReadWithOverlay = forwardRef< setShow(false) }} > - Confirm + {t("words.confirm")}
@@ -125,13 +129,14 @@ export const MarkAllReadWithOverlay = forwardRef< - - Mark - - {which} - - as read - + {shortcut && (
@@ -156,75 +161,22 @@ export const MarkAllReadWithOverlay = forwardRef< }) const ConfirmMarkAllReadInfo = ({ undo }: { undo: () => any }) => { + const { t } = useTranslation() useHotkeys("ctrl+z,meta+z", undo, { scopes: HotKeyScopeMap.Home, preventDefault: true, }) return (
-

Confirm mark all as read?

- Will confirmed automatically after 3s. +

{t("mark_all_read_button.confirm_mark_all_info")}

+ {t("mark_all_read_button.auto_confirm_info")}
) } -/** - * @deprecated - */ -export const MarkAllReadPopover = forwardRef( - ({ filter, className, which = "all", shortcut }, ref) => { - const [markPopoverOpen, setMarkPopoverOpen] = useState(false) - - const handleMarkAllAsRead = useMarkAllByRoute(filter) - - return ( - - - - Mark - - {which} - - as read - - } - className={className} - ref={ref} - > - - - - - -
- Mark - - {which} - - as read? -
-
- } - onClick={() => { - handleMarkAllAsRead() - setMarkPopoverOpen(false) - }} - > - Confirm - -
-
-
-
- ) - }, -) - export const FlatMarkAllReadButton: FC = (props) => { + const t = useI18n() + const { className, filter, which } = props const [status, setStatus] = useState<"initial" | "confirm" | "done">("initial") const handleMarkAll = useMarkAllByRoute(filter) @@ -263,8 +215,12 @@ export const FlatMarkAllReadButton: FC = (props) => { )} - Mark - {which} as read + = (props) => { "duration-200", )} > - Confirm? + {t("mark_all_read_button.confirm")} ) diff --git a/src/renderer/src/modules/entry-column/hooks.ts b/src/renderer/src/modules/entry-column/hooks.ts index 964720725..fc0fc70a7 100644 --- a/src/renderer/src/modules/entry-column/hooks.ts +++ b/src/renderer/src/modules/entry-column/hooks.ts @@ -139,6 +139,10 @@ export const useEntriesByView = ({ const [mergedEntries, setMergedEntries] = useState([]) const entryIdsAsDeps = entryIds.toString() + + useEffect(() => { + prevEntryIdsRef.current = [] + }, [feedId]) useEffect(() => { if (!prevEntryIdsRef.current) { prevEntryIdsRef.current = entryIds diff --git a/src/renderer/src/modules/entry-column/index.tsx b/src/renderer/src/modules/entry-column/index.tsx index 8c4382b2b..798bd6e90 100644 --- a/src/renderer/src/modules/entry-column/index.tsx +++ b/src/renderer/src/modules/entry-column/index.tsx @@ -1,5 +1,5 @@ import { useGeneralSettingKey } from "@renderer/atoms/settings/general" -import { useUISettingKey } from "@renderer/atoms/settings/ui" +import { setUISetting, useUISettingKey } from "@renderer/atoms/settings/ui" import { m } from "@renderer/components/common/Motion" import { FeedFoundCanBeFollowError } from "@renderer/components/errors/FeedFoundCanBeFollowErrorFallback" import { FeedNotFound } from "@renderer/components/errors/FeedNotFound" @@ -15,10 +15,11 @@ import { useTitle, useTypeScriptHappyCallback } from "@renderer/hooks/common" import { FeedViewType } from "@renderer/lib/enum" import { cn, isBizId } from "@renderer/lib/utils" import { useFeed } from "@renderer/queries/feed" -import { entryActions, useEntry } from "@renderer/store/entry" +import { entryActions, getEntry, useEntry } from "@renderer/store/entry" import { useFeedByIdSelector } from "@renderer/store/feed" import { useSubscriptionByFeedId } from "@renderer/store/subscription" -import { memo, useCallback, useEffect, useRef, useState } from "react" +import { memo, useCallback, useEffect, useMemo, useRef, useState } from "react" +import { useTranslation } from "react-i18next" import type { ScrollSeekConfiguration, VirtuosoGridProps, @@ -39,6 +40,7 @@ const scrollSeekConfiguration: ScrollSeekConfiguration = { exit: (velocity) => Math.abs(velocity) < 1000, } function EntryColumnImpl() { + const { t } = useTranslation() const virtuosoRef = useRef(null) const [isArchived, setIsArchived] = useState(false) const unreadOnly = useGeneralSettingKey("unreadOnly") @@ -104,7 +106,7 @@ function EntryColumnImpl() { return (
) @@ -185,7 +187,7 @@ function EntryColumnImpl() { {isRefreshing && (
- Refreshing new entries... + {t("entry_column.refreshing")}
)} @@ -208,7 +210,11 @@ function EntryColumnImpl() { ) ) : view && views[view].gridMode ? ( - + ) : ( , "data" | "endReached"> & { data: string[] endReached: () => Promise } virtuosoRef: React.RefObject + hasNextPage: boolean }) => { const masonry = useUISettingKey("pictureViewMasonry") const view = useRouteParamsSelector((s) => s.view) const feedId = useRouteParamsSelector((s) => s.feedId) - if (masonry && view === FeedViewType.Pictures) { + const filterNoImage = useUISettingKey("pictureViewFilterNoImage") + const nextData = useMemo(() => { + if (filterNoImage) { + return virtuosoOptions.data.filter((entryId) => { + const entry = getEntry(entryId) + return entry?.entries.media?.length && entry.entries.media.length > 0 + }) + } + return virtuosoOptions.data + }, [virtuosoOptions.data, filterNoImage]) + const { t } = useTranslation() + if (nextData.length === 0 && virtuosoOptions.data.length > 0) { return ( - virtuosoOptions.data.length} - endReached={virtuosoOptions.endReached} - data={virtuosoOptions.data} - /> +
+ +
+ {t("entry_column.filtered_content_tip")} +
+ + +
) } - return + + const hasFilteredContent = nextData.length < virtuosoOptions.data.length + + const FilteredContentTip = hasFilteredContent && !hasNextPage && ( +
+ +
{t("entry_column.filtered_content_tip_2")}
+ + +
+ ) + + if (masonry && view === FeedViewType.Pictures) { + return ( + <> + virtuosoOptions.data.length} + endReached={virtuosoOptions.endReached} + data={nextData} + /> + + {FilteredContentTip} + + ) + } + return ( + <> + + {FilteredContentTip} + + ) } const AddFeedHelper = () => { diff --git a/src/renderer/src/modules/entry-column/layouts/EntryItemWrapper.tsx b/src/renderer/src/modules/entry-column/layouts/EntryItemWrapper.tsx index e9b347ebf..65bc378a2 100644 --- a/src/renderer/src/modules/entry-column/layouts/EntryItemWrapper.tsx +++ b/src/renderer/src/modules/entry-column/layouts/EntryItemWrapper.tsx @@ -11,6 +11,7 @@ import type { FlatEntryModel } from "@renderer/store/entry" import { entryActions } from "@renderer/store/entry" import type { FC, PropsWithChildren } from "react" import { useCallback } from "react" +import { useTranslation } from "react-i18next" import { useDebounceCallback } from "usehooks-ts" export const EntryItemWrapper: FC< @@ -33,6 +34,8 @@ export const EntryItemWrapper: FC< type: "entryList", }) + const { t } = useTranslation("common") + const isActive = useRouteParamsSelector(({ entryId }) => entryId === entry.entries.id) const asRead = useAsRead(entry) @@ -91,7 +94,7 @@ export const EntryItemWrapper: FC< }, { type: "text" as const, - label: "Copy Entry ID", + label: `${t("words.copy")}${t("words.space")}${t("words.entry")} ${t("words.id")}`, click: () => { navigator.clipboard.writeText(entry.entries.id) }, @@ -100,7 +103,7 @@ export const EntryItemWrapper: FC< e, ) }, - [items, feedItems, entry.entries.id], + [items, feedItems, t, entry.entries.id], ) return ( diff --git a/src/renderer/src/modules/entry-column/layouts/EntryListHeader.tsx b/src/renderer/src/modules/entry-column/layouts/EntryListHeader.tsx index 957302410..2f26bac50 100644 --- a/src/renderer/src/modules/entry-column/layouts/EntryListHeader.tsx +++ b/src/renderer/src/modules/entry-column/layouts/EntryListHeader.tsx @@ -17,6 +17,7 @@ import { useRefreshFeedMutation } from "@renderer/queries/feed" import { useFeedById, useFeedHeaderTitle } from "@renderer/store/feed" import type { FC } from "react" import * as React from "react" +import { useTranslation } from "react-i18next" import { MarkAllReadWithOverlay } from "../components/mark-all-button" @@ -27,6 +28,7 @@ export const EntryListHeader: FC<{ hasUpdate: boolean }> = ({ totalCount, refetch, isRefreshing, hasUpdate }) => { const routerParams = useRouteParms() + const { t } = useTranslation() const unreadOnly = useGeneralSettingKey("unreadOnly") @@ -46,7 +48,10 @@ export const EntryListHeader: FC<{
- {totalCount || 0} {unreadOnly && !isInCollectionList ? "Unread" : ""} Items + {totalCount || 0} {t("quantifier.piece", { ns: "common" })} + {unreadOnly && !isInCollectionList ? t("words.unread") : ""} + {t("words.space", { ns: "common" })} + {t("words.items", { ns: "common", count: totalCount })}
) @@ -64,7 +69,10 @@ export const EntryListHeader: FC<{ return (
{!titleAtBottom && titleInfo} @@ -88,6 +96,7 @@ export const EntryListHeader: FC<{ {view === FeedViewType.SocialMedia && } {view === FeedViewType.Pictures && } + {view === FeedViewType.Pictures && } {isOnline ? ( @@ -102,7 +111,11 @@ export const EntryListHeader: FC<{ ) : ( { refetch() }} @@ -118,7 +131,11 @@ export const EntryListHeader: FC<{ ) ) : null} setGeneralSetting("unreadOnly", !unreadOnly)} > @@ -138,6 +155,8 @@ export const EntryListHeader: FC<{ const DailyReportButton: FC = () => { const present = useAIDailyReportModal() + const { t } = useTranslation() + return ( { click: 1, }) }} - tooltip="Daily Report" + tooltip={t("entry_list_header.daily_report")} > @@ -155,8 +174,29 @@ const DailyReportButton: FC = () => { ) } +const FilterNoImageButton = () => { + const enabled = useUISettingKey("pictureViewFilterNoImage") + const { t } = useTranslation() + + return ( + { + setUISetting("pictureViewFilterNoImage", !enabled) + }} + tooltip={t( + enabled ? "entry_list_header.show_all_items" : "entry_list_header.hide_no_image_items", + )} + > + + + ) +} + const SwitchToMasonryButton = () => { const isMasonry = useUISettingKey("pictureViewMasonry") + const { t } = useTranslation() + return ( { click: 1, }) }} - tooltip={`Switch to ${isMasonry ? "Grid" : "Masonry"}`} + tooltip={ + !isMasonry + ? t("entry_list_header.switch_to_masonry") + : t("entry_list_header.switch_to_grid") + } > diff --git a/src/renderer/src/modules/entry-column/lists.tsx b/src/renderer/src/modules/entry-column/lists.tsx index 002610c4c..2543a08cb 100644 --- a/src/renderer/src/modules/entry-column/lists.tsx +++ b/src/renderer/src/modules/entry-column/lists.tsx @@ -7,6 +7,7 @@ import { useEntry } from "@renderer/store/entry" import type { HTMLMotionProps } from "framer-motion" import type { DOMAttributes, FC } from "react" import { forwardRef, memo, useCallback } from "react" +import { useTranslation } from "react-i18next" import type { VirtuosoHandle, VirtuosoProps } from "react-virtuoso" import { GroupedVirtuoso, Virtuoso } from "react-virtuoso" @@ -19,6 +20,7 @@ export const EntryListContent = forwardRef((props, ref) => ( export const EntryEmptyList = forwardRef>((props, ref) => { const unreadOnly = useGeneralSettingKey("unreadOnly") + const { t } = useTranslation() return ( > {unreadOnly ? ( <> - Zero Unread + {t("entry_list.zero_unread")} ) : (
- Zero Items + {t("words.zero_items")}
)}
diff --git a/src/renderer/src/modules/entry-content/components/EntryReadHistory.tsx b/src/renderer/src/modules/entry-content/components/EntryReadHistory.tsx index a08aa6c99..be77cd007 100644 --- a/src/renderer/src/modules/entry-content/components/EntryReadHistory.tsx +++ b/src/renderer/src/modules/entry-content/components/EntryReadHistory.tsx @@ -1,10 +1,22 @@ +import { + HoverCard, + HoverCardContent, + HoverCardPortal, + HoverCardTrigger, +} from "@radix-ui/react-hover-card" import { useWhoami } from "@renderer/atoms/user" import { Avatar, AvatarFallback, AvatarImage } from "@renderer/components/ui/avatar" -import { Tooltip, TooltipContent, TooltipTrigger } from "@renderer/components/ui/tooltip" +import { + Tooltip, + TooltipContent, + TooltipPortal, + TooltipTrigger, +} from "@renderer/components/ui/tooltip" import { useAuthQuery } from "@renderer/hooks/common" import { Queries } from "@renderer/queries" import { useEntryReadHistory } from "@renderer/store/entry" import { useUserById } from "@renderer/store/user" +import clsx from "clsx" import { LayoutGroup, m } from "framer-motion" import { memo, useEffect, useState } from "react" @@ -49,27 +61,75 @@ export const EntryReadHistory: Component<{ entryId: string }> = ({ entryId }) => entryHistory.readCount > 10 && entryHistory.userIds && entryHistory.userIds.length >= 10 && ( - - -
+ +
-
- More -
+ + + + + +
    + {entryHistory.userIds + .filter((id) => id !== me?.id) + .slice(10) + .map((userId) => ( + + ))} +
+
+
+ )}
) } +const EntryUserRow: Component<{ userId: string }> = memo(({ userId }) => { + const user = useUserById(userId) + const presentUserProfile = usePresentUserProfileModal("drawer") + if (!user) return null + + return ( +
  • + +
  • + ) +}) + const EntryUser: Component<{ userId: string i: number @@ -101,7 +161,9 @@ const EntryUser: Component<{ - Recent reader: {user.name} + + Recent reader: {user.name} + ) }) diff --git a/src/renderer/src/modules/entry-content/header.tsx b/src/renderer/src/modules/entry-content/header.tsx index dd97852c1..e607b1304 100644 --- a/src/renderer/src/modules/entry-content/header.tsx +++ b/src/renderer/src/modules/entry-content/header.tsx @@ -21,6 +21,7 @@ import { useFeedById } from "@renderer/store/feed" import { noop } from "foxact/noop" import { AnimatePresence, m } from "framer-motion" import { memo, useMemo, useState } from "react" +import { useTranslation } from "react-i18next" import { useEntryContentScrollToTop, useEntryTitleMeta } from "./atoms" import { EntryReadHistory } from "./components/EntryReadHistory" @@ -62,6 +63,7 @@ function EntryHeaderImpl({ "absolute left-5 top-0 flex h-full items-center gap-2 text-[13px] leading-none text-zinc-500", isAtTop ? "visible z-[11]" : "invisible z-[-99]", views[view].wideMode && "static", + shouldShowMeta && "hidden", )} > @@ -124,6 +126,8 @@ const ElectronAdditionActions = window.electron }) => { const entryReadabilityStatus = useEntryInReadabilityStatus(entry?.entries.id) + const { t } = useTranslation() + const feed = useFeedById(entry?.feedId) const populatedEntry = useMemo(() => { @@ -147,7 +151,7 @@ const ElectronAdditionActions = window.electron const items = [ { key: "tts", - name: "Play TTS", + name: t("entry_content.header.play_tts"), shortcut: shortcuts.entry.tts.key, className: ttsLoading ? "i-mgc-loading-3-cute-re animate-spin" : "i-mgc-voice-cute-re", @@ -176,7 +180,7 @@ const ElectronAdditionActions = window.electron }, }, { - name: "Readability", + name: t("entry_content.header.readability"), className: cn( isInReadability(entryReadabilityStatus) ? `i-mgc-sparkles-2-filled` diff --git a/src/renderer/src/modules/entry-content/index.tsx b/src/renderer/src/modules/entry-content/index.tsx index e7d5c1a8e..b0dfb9345 100644 --- a/src/renderer/src/modules/entry-content/index.tsx +++ b/src/renderer/src/modules/entry-content/index.tsx @@ -1,6 +1,7 @@ import { repository } from "@pkg" import { ReadabilityStatus, + setReadabilityStatus, useEntryInReadabilityStatus, useEntryIsInReadability, useEntryReadabilityContent, @@ -10,11 +11,14 @@ import { useWhoami } from "@renderer/atoms/user" import { m } from "@renderer/components/common/Motion" import { ShadowDOM } from "@renderer/components/common/ShadowDOM" import { AutoResizeHeight } from "@renderer/components/ui/auto-resize-height" +import { Button } from "@renderer/components/ui/button" +import { Divider } from "@renderer/components/ui/divider" import { HTML } from "@renderer/components/ui/markdown" import { Toc } from "@renderer/components/ui/markdown/components/Toc" import { useInPeekModal } from "@renderer/components/ui/modal/inspire/PeekModal" import { RootPortal } from "@renderer/components/ui/portal" import { ScrollArea } from "@renderer/components/ui/scroll-area" +import { UserAvatar } from "@renderer/components/user-button" import { isWebBuild, ROUTE_FEED_PENDING } from "@renderer/constants" import { shortcuts } from "@renderer/constants/shortcuts" import { useEntryReadabilityToggle } from "@renderer/hooks/biz/useEntryActions" @@ -38,16 +42,26 @@ import { ErrorBoundary } from "@sentry/react" import type { FC } from "react" import { memo, useEffect, useLayoutEffect, useMemo, useRef } from "react" import { useHotkeys } from "react-hotkeys-hook" +import { useTranslation } from "react-i18next" import { LoadingWithIcon } from "../../components/ui/loading" import { EntryPlaceholderDaily } from "../ai/ai-daily/EntryPlaceholderDaily" import { EntryTranslation } from "../entry-column/translation" +import { useTipModal } from "../wallet/hooks" import { setEntryContentScrollToTop, setEntryTitleMeta } from "./atoms" import { EntryPlaceholderLogo } from "./components/EntryPlaceholderLogo" import { EntryHeader } from "./header" import { EntryContentLoading } from "./loading" import { EntryContentProvider } from "./provider" +const safeUrl = (url: string, baseUrl: string) => { + try { + return new URL(url, baseUrl).href + } catch { + return url + } +} + export const EntryContent = ({ entryId }: { entryId: ActiveEntryId }) => { const title = useFeedHeaderTitle() const { feedId, view } = useRouteParms() @@ -72,6 +86,7 @@ export const EntryContent = ({ entryId }: { entryId: ActiveEntryId }) => { } export const EntryContentRender: Component<{ entryId: string }> = ({ entryId, className }) => { + const { t } = useTranslation() const user = useWhoami() const { error, data, isPending } = useAuthQuery(Queries.entries.byId(entryId), { @@ -150,6 +165,23 @@ export const EntryContentRender: Component<{ entryId: string }> = ({ entryId, cl : undefined, [readerFontFamily], ) + + const populatedFullHref = useMemo(() => { + const href = entry?.entries.url + if (!href) return "#" + + if (href.startsWith("http")) return href + const feedSiteUrl = feed?.siteUrl + if (href.startsWith("/") && feedSiteUrl) return safeUrl(href, feedSiteUrl) + return href + }, [entry?.entries.url, feed?.siteUrl]) + + const openTipModal = useTipModal({ + userId: feed?.ownerUserId ?? undefined, + feedId: entry?.feedId, + entryId, + }) + if (!entry) return null const content = entry?.entries.content ?? data?.entries.content @@ -184,7 +216,7 @@ export const EntryContentRender: Component<{ entryId: string }> = ({ entryId, cl className="relative m-auto min-w-0 max-w-[550px] @3xl:max-w-[70ch]" > = ({ entryId, cl
    - AI summary + {t("entry_content.ai_summary")}
    {summary.isLoading ? SummaryLoadingSkeleton : summary.data} @@ -245,6 +277,10 @@ export const EntryContentRender: Component<{ entryId: string }> = ({ entryId, cl
    + {entry.settings?.readability && ( + + )} + {!content && (
    {isPending ? ( @@ -263,6 +299,45 @@ export const EntryContentRender: Component<{ entryId: string }> = ({ entryId, cl )}
    )} + + {feed?.ownerUserId && ( + <> + + +
    + + + {!!feed.tipUsers?.length && ( + <> +
    + {t("entry_content.support_amount", { amount: feed.tipUsers.length })} +
    +
    + {feed.tipUsers?.map((user) => ( +
    + +
    + ))} +
    + + )} +
    + + )}
    @@ -308,6 +383,7 @@ const TitleMetaHandler: Component<{ } const ReadabilityContent = ({ entryId }: { entryId: string }) => { + const { t } = useTranslation() const result = useEntryReadabilityContent(entryId) return ( @@ -315,13 +391,12 @@ const ReadabilityContent = ({ entryId }: { entryId: string }) => { {result ? (

    - This content is provided by Readability. If you find typographical anomalies, please go to - the source site to view the original content. + {t("entry_content.readability_notice")}

    ) : (
    } /> - Fetching original content and processing... + {t("entry_content.fetching_content")}
    )} @@ -377,6 +452,9 @@ const ReadabilityAutoToggle = ({ url, id }: { url: string; id: string }) => { useEffect(() => { if (!onceRef.current) { onceRef.current = true + setReadabilityStatus({ + [id]: ReadabilityStatus.INITIAL, + }) toggle() } }, [toggle]) @@ -385,11 +463,14 @@ const ReadabilityAutoToggle = ({ url, id }: { url: string; id: string }) => { } const RenderError: FallbackRender = ({ error }) => { + const { t } = useTranslation() const nextError = typeof error === "string" ? new Error(error) : (error as Error) return (
    ) diff --git a/src/renderer/src/modules/feed-column/category-remove-dialog.tsx b/src/renderer/src/modules/feed-column/category-remove-dialog.tsx index 1de5960d7..49041f5a6 100644 --- a/src/renderer/src/modules/feed-column/category-remove-dialog.tsx +++ b/src/renderer/src/modules/feed-column/category-remove-dialog.tsx @@ -1,10 +1,12 @@ import { subscriptionActions } from "@renderer/store/subscription" import { useMutation } from "@tanstack/react-query" +import { Trans,useTranslation } from "react-i18next" import { Button } from "../../components/ui/button" import { useCurrentModal } from "../../components/ui/modal" export function CategoryRemoveDialogContent({ feedIdList }: { feedIdList: string[] }) { + const { t } = useTranslation() const deleteMutation = useMutation({ mutationFn: () => subscriptionActions.deleteCategory(feedIdList), }) @@ -13,20 +15,22 @@ export function CategoryRemoveDialogContent({ feedIdList }: { feedIdList: string return (
    -

    - This operation will delete your category, but the feeds it contains will be retained and - grouped by website. -

    + +

    + This operation will delete your category, but the feeds it contains will be retained and + grouped by website. +

    +
    diff --git a/src/renderer/src/modules/feed-column/category.tsx b/src/renderer/src/modules/feed-column/category.tsx index 86fb8fbaf..7ad22ef25 100644 --- a/src/renderer/src/modules/feed-column/category.tsx +++ b/src/renderer/src/modules/feed-column/category.tsx @@ -8,14 +8,15 @@ import { stopPropagation } from "@renderer/lib/dom" import type { FeedViewType } from "@renderer/lib/enum" import { showNativeMenu } from "@renderer/lib/native-menu" import { cn, sortByAlphabet } from "@renderer/lib/utils" -import { useFeedStore } from "@renderer/store/feed" +import { getPreferredTitle, useFeedStore } from "@renderer/store/feed" import { subscriptionActions, useSubscriptionByFeedId } from "@renderer/store/subscription" import { useFeedUnreadStore } from "@renderer/store/unread" import { useMutation } from "@tanstack/react-query" import { AnimatePresence, m } from "framer-motion" import type { FC } from "react" import { Fragment, memo, useEffect, useRef, useState } from "react" -import { useOnClickOutside } from "usehooks-ts" +import { useTranslation } from "react-i18next" +import { useClickAnyWhere, useOnClickOutside } from "usehooks-ts" import { useModalStack } from "../../components/ui/modal/stacked/hooks" import { useFeedListSortSelector } from "./atom" @@ -37,6 +38,8 @@ function FeedCategoryImpl({ expansion, showUnreadCount = true, }: FeedCategoryProps) { + const { t } = useTranslation() + const sortByUnreadFeedList = useFeedUnreadStore((state) => ids.sort((a, b) => (state.data[b] || 0) - (state.data[a] || 0)), ) @@ -105,6 +108,10 @@ function FeedCategoryImpl({ const [isCategoryEditing, setIsCategoryEditing] = useState(false) + const [isContextMenuOpen, setIsContextMenuOpen] = useState(false) + useClickAnyWhere(() => { + setIsContextMenuOpen(false) + }) const isCategoryIsWaiting = isChangePending return ( @@ -113,7 +120,7 @@ function FeedCategoryImpl({
    { e.stopPropagation() @@ -122,16 +129,18 @@ function FeedCategoryImpl({ } }} onContextMenu={(e) => { + setIsContextMenuOpen(true) showNativeMenu( [ { type: "text", enabled: !!(folderName && typeof view === "number"), - label: "Change to other view", + label: t("sidebar.feed_column.context_menu.change_to_other_view"), submenu: views .filter((v) => v.view !== view) .map((v) => ({ - label: v.name, + // TODO: fix this type error + label: t(v.name), enabled: true, type: "text", shortcut: (v.view + 1).toString(), @@ -143,7 +152,7 @@ function FeedCategoryImpl({ }, { type: "text", - label: "Mark as read", + label: t("sidebar.feed_column.context_menu.mark_as_read"), click: () => { subscriptionActions.markReadByFeedIds(ids) }, @@ -151,18 +160,19 @@ function FeedCategoryImpl({ { type: "separator" }, { type: "text", - label: "Rename category", + label: t("sidebar.feed_column.context_menu.rename_category"), click: () => { setIsCategoryEditing(true) }, }, { type: "text", - label: "Delete category", - + label: t("sidebar.feed_column.context_menu.delete_category"), click: async () => { present({ - title: `Delete category ${folderName}?`, + title: t("sidebar.feed_column.context_menu.delete_category_confirmation", { + folderName, + }), content: () => , }) }, @@ -362,8 +372,8 @@ const SortByAlphabeticalList = (props: SortListProps) => { const isDesc = useFeedListSortSelector((s) => s.order === "desc") const sortedFeedList = useFeedStore((state) => { const res = ids.sort((a, b) => { - const feedTitleA = state.feeds[a]?.title || "" - const feedTitleB = state.feeds[b]?.title || "" + const feedTitleA = getPreferredTitle(state.feeds[a]) || "" + const feedTitleB = getPreferredTitle(state.feeds[b]) || "" return sortByAlphabet(feedTitleA, feedTitleB) }) diff --git a/src/renderer/src/modules/feed-column/corner-player.tsx b/src/renderer/src/modules/feed-column/corner-player.tsx index 11631e17f..e547457d6 100644 --- a/src/renderer/src/modules/feed-column/corner-player.tsx +++ b/src/renderer/src/modules/feed-column/corner-player.tsx @@ -21,6 +21,7 @@ import { AnimatePresence, m } from "framer-motion" import { useEffect, useState } from "react" import Marquee from "react-fast-marquee" import { useHotkeys } from "react-hotkeys-hook" +import { useTranslation } from "react-i18next" const handleClickPlay = () => { AudioPlayer.togglePlayAndPause() @@ -85,6 +86,7 @@ const usePlayerTracker = () => { }, [show]) } const CornerPlayerImpl = () => { + const { t } = useTranslation() const entryId = useAudioPlayerAtomSelector((v) => v.entryId) const status = useAudioPlayerAtomSelector((v) => v.status) const isMute = useAudioPlayerAtomSelector((v) => v.isMute) @@ -156,7 +158,7 @@ const CornerPlayerImpl = () => { AudioPlayer.close()} - label="Close" + label={t("player.close")} /> { view: FeedViewType.Audios, }) } - label="Open Entry" + label={t("player.open_entry")} />
    { window.open(AudioPlayer.get().src, "_blank") }} @@ -193,12 +195,12 @@ const CornerPlayerImpl = () => { AudioPlayer.back(10)} - label="Back 10s" + label={t("player.back_10s")} /> AudioPlayer.forward(10)} - label="Forward 10s" + label={t("player.forward_10s")} tooltipAlign="end" />
    diff --git a/src/renderer/src/modules/feed-column/header.tsx b/src/renderer/src/modules/feed-column/header.tsx index 719ae2689..ff75cc2e1 100644 --- a/src/renderer/src/modules/feed-column/header.tsx +++ b/src/renderer/src/modules/feed-column/header.tsx @@ -6,11 +6,13 @@ import { ActionButton } from "@renderer/components/ui/button" import { Popover, PopoverContent, PopoverTrigger } from "@renderer/components/ui/popover" import { ProfileButton } from "@renderer/components/user-button" import { useNavigateEntry } from "@renderer/hooks/biz/useNavigateEntry" +import { useI18n } from "@renderer/hooks/common" import { stopPropagation } from "@renderer/lib/dom" import { cn } from "@renderer/lib/utils" import { m } from "framer-motion" import type { FC, PropsWithChildren } from "react" import { memo, useCallback, useRef, useState } from "react" +import { useTranslation } from "react-i18next" import { Link } from "react-router-dom" import { toast } from "sonner" @@ -31,7 +33,7 @@ const useBackHome = (active: number) => { export const FeedColumnHeader = memo(() => { const [active] = useSidebarActiveView() - + const { t } = useTranslation() const navigateBackHome = useBackHome(active) const normalStyle = !window.electron || window.electron.process.platform !== "darwin" return ( @@ -52,7 +54,6 @@ export const FeedColumnHeader = memo(() => { }} > - {APP_NAME} @@ -61,7 +62,7 @@ export const FeedColumnHeader = memo(() => { - + @@ -79,10 +80,11 @@ const LayoutActionButton = () => { width: !feedColumnShow ? "auto" : 0, }) + const t = useI18n() return ( { const LogoContextMenu: FC = ({ children }) => { const [open, setOpen] = useState(false) const logoRef = useRef(null) + const t = useI18n() return ( @@ -119,7 +122,7 @@ const LogoContextMenu: FC = ({ children }) => { onClick={() => { navigator.clipboard.writeText(logoRef.current?.outerHTML || "") setOpen(false) - toast.success("Copied to clipboard") + toast.success(t.common("app.copied_to_clipboard")) }} className={cn( "relative flex cursor-default select-none items-center rounded-sm px-1 py-0.5 text-sm outline-none", @@ -128,7 +131,7 @@ const LogoContextMenu: FC = ({ children }) => { )} > - Copy Logo SVG + {t("app.copy_logo_svg")} @@ -137,9 +140,14 @@ const LogoContextMenu: FC = ({ children }) => { const SearchActionButton = () => { const canSearch = useGeneralSettingKey("dataPersist") + const { t } = useTranslation() if (!canSearch) return null return ( - setAppSearchOpen(true)}> + setAppSearchOpen(true)} + > ) diff --git a/src/renderer/src/modules/feed-column/index.tsx b/src/renderer/src/modules/feed-column/index.tsx index 4f55aa694..c83c0a608 100644 --- a/src/renderer/src/modules/feed-column/index.tsx +++ b/src/renderer/src/modules/feed-column/index.tsx @@ -1,4 +1,4 @@ -/* eslint-disable @eslint-react/hooks-extra/no-direct-set-state-in-use-layout-effect */ + import { getReadonlyRoute } from "@renderer/atoms/route" import { useUISettingKey } from "@renderer/atoms/settings/ui" import { useSidebarActiveView } from "@renderer/atoms/sidebar" @@ -22,6 +22,7 @@ import { Lethargy } from "lethargy" import type { FC, PropsWithChildren } from "react" import { useCallback, useLayoutEffect, useRef, useState } from "react" import { isHotkeyPressed, useHotkeys } from "react-hotkeys-hook" +import { useTranslation } from "react-i18next" import { WindowUnderBlur } from "../../components/ui/background" import { FeedColumnHeader } from "./header" @@ -130,6 +131,7 @@ export function FeedColumn({ children, className }: PropsWithChildren<{ classNam ) const unreadByView = useUnreadByView() + const { t } = useTranslation() const showSidebarUnreadCount = useUISettingKey("sidebarShowUnreadCount") @@ -151,7 +153,8 @@ export function FeedColumn({ children, className }: PropsWithChildren<{ classNam {views.map((item, index) => ( { + const { t } = useTranslation() const subscription = useSubscriptionByFeedId(feedId) const navigate = useNavigateEntry() const handleNavigate: React.MouseEventHandler = useCallback( @@ -59,9 +60,11 @@ const FeedItemImpl = ({ view, feedId, className, showUnreadCount = true }: FeedI const feed = useFeedById(feedId) const { items } = useFeedActions({ feedId, view }) - const me = useWhoami() - const presentUserProfile = usePresentUserProfileModal("drawer") + const [isContextMenuOpen, setIsContextMenuOpen] = useState(false) + useClickAnyWhere(() => { + setIsContextMenuOpen(false) + }) if (!feed) return null return ( @@ -70,7 +73,8 @@ const FeedItemImpl = ({ view, feedId, className, showUnreadCount = true }: FeedI data-feed-id={feedId} className={cn( "flex w-full items-center justify-between rounded-md py-[2px] pr-2.5 text-sm font-medium leading-loose", - isActive && "bg-native-active", + (isActive || isContextMenuOpen) && "bg-native-active", + className, )} onClick={handleNavigate} @@ -78,6 +82,7 @@ const FeedItemImpl = ({ view, feedId, className, showUnreadCount = true }: FeedI window.open(`${WEB_URL}/feed/${feedId}?view=${view}`, "_blank") }} onContextMenu={(e) => { + setIsContextMenuOpen(true) const nextItems = items.concat() if (feed.errorAt && feed.errorMessage) { nextItems.push( @@ -120,56 +125,7 @@ const FeedItemImpl = ({ view, feedId, className, showUnreadCount = true }: FeedI > {getPreferredTitle(feed)} - {feed.ownerUserId && - (feed.ownerUserId === me?.id ? ( - - - - - - - -
    - - Claimed feed -
    -
    This feed is claimed by you.
    -
    -
    -
    - ) : ( - - - - - - - -
    - - Claimed feed -
    -
    - This feed is claimed by - {feed.owner ? ( - { - e.stopPropagation() - presentUserProfile(feed.owner!.id) - }} - > - - {feed.owner.name?.slice(0, 2)} - - ) : ( - its owner. - )} -
    -
    -
    -
    - ))} + {feed.errorAt && ( @@ -179,7 +135,7 @@ const FeedItemImpl = ({ view, feedId, className, showUnreadCount = true }: FeedI
    - Error since{" "} + {t("feed_item.error_since")}{" "} {dayjs .duration(dayjs(feed.errorAt).diff(dayjs(), "minute"), "minute") .humanize(true)} @@ -200,7 +156,7 @@ const FeedItemImpl = ({ view, feedId, className, showUnreadCount = true }: FeedI - Not publicly visible on your profile page + {t("feed_item.not_publicly_visible")} )} diff --git a/src/renderer/src/modules/feed-column/list.tsx b/src/renderer/src/modules/feed-column/list.tsx index 53fedddd9..153350302 100644 --- a/src/renderer/src/modules/feed-column/list.tsx +++ b/src/renderer/src/modules/feed-column/list.tsx @@ -10,11 +10,12 @@ import { stopPropagation } from "@renderer/lib/dom" import type { FeedViewType } from "@renderer/lib/enum" import { cn, sortByAlphabet } from "@renderer/lib/utils" import { Queries } from "@renderer/queries" -import { useFeedStore } from "@renderer/store/feed" +import { getPreferredTitle, useFeedStore } from "@renderer/store/feed" import { getSubscriptionByFeedId, useSubscriptionByView } from "@renderer/store/subscription" import { useFeedUnreadStore } from "@renderer/store/unread" import { AnimatePresence, m } from "framer-motion" import { Fragment, memo, useMemo, useState } from "react" +import { useTranslation } from "react-i18next" import { Link } from "react-router-dom" import { @@ -79,6 +80,8 @@ function FeedListImpl({ className, view }: { className?: string; view: number }) const feedId = useRouteFeedId() const navigate = useNavigateEntry() + const { t } = useTranslation() + return (
    - {view !== undefined && views[view].name} + {view !== undefined && t(views[view].name)}
    @@ -128,7 +131,7 @@ function FeedListImpl({ className, view }: { className?: string; view: number }) }} > - Starred + {t("words.starred")}
    {hasData ? ( @@ -151,7 +154,7 @@ function FeedListImpl({ className, view }: { className?: string; view: number }) const SortButton = () => { const { by, order } = useFeedListSort() - + const { t } = useTranslation() const LIST = [ { icon: "i-mgc-sort-ascending-cute-re", by: "count", order: "asc" }, { icon: "i-mgc-sort-descending-cute-re", by: "count", order: "desc" }, @@ -204,7 +207,7 @@ const SortButton = () => { >
    - Select a sorting method + {t("sidebar.select_sort_method")}
    {LIST.map(({ icon, by, order }) => { const current = getFeedListSort() @@ -302,7 +305,7 @@ const SortByAlphabeticalList = ({ view, expansion, data }: FeedListProps) => { if (!isSingle || hascategoryNameNotDefault) { map[categoryName] = categoryName } else { - map[categoryName] = feed.title! + map[categoryName] = getPreferredTitle(feed)! } } return map diff --git a/src/renderer/src/modules/modal/shortcuts.tsx b/src/renderer/src/modules/modal/shortcuts.tsx index 100a8ed9d..877642740 100644 --- a/src/renderer/src/modules/modal/shortcuts.tsx +++ b/src/renderer/src/modules/modal/shortcuts.tsx @@ -10,6 +10,7 @@ import { cn } from "@renderer/lib/utils" import clsx from "clsx" import { m, useDragControls } from "framer-motion" import { useCallback, useEffect } from "react" +import { useTranslation } from "react-i18next" const ShortcutModalContent = () => { const { dismiss } = useCurrentModal() @@ -20,6 +21,7 @@ const ShortcutModalContent = () => { useEffect(() => { switchScope("Home") }, []) + const { t } = useTranslation("shortcuts") return ( { >

    - Shortcuts Guideline + {t("shortcuts.guide.title", { ns: "app" })}

    - + -
    +
    {Object.keys(shortcuts).map((type) => (
    {type}
    @@ -56,11 +58,11 @@ const ShortcutModalContent = () => {
    -
    {shortcuts[type][action].name}
    +
    {t(shortcuts[type][action].name)}
    {`${shortcuts[type][action].key}${shortcuts[type][action].extra ? `, ${shortcuts[type][action].extra}` : ""}`} diff --git a/src/renderer/src/modules/panel/cmdk.tsx b/src/renderer/src/modules/panel/cmdk.tsx index 5c5ba03d9..6d056b271 100644 --- a/src/renderer/src/modules/panel/cmdk.tsx +++ b/src/renderer/src/modules/panel/cmdk.tsx @@ -15,8 +15,9 @@ import { import { Tooltip, TooltipContent, TooltipTrigger } from "@renderer/components/ui/tooltip" import { ROUTE_ENTRY_PENDING } from "@renderer/constants" import { useNavigateEntry } from "@renderer/hooks/biz/useNavigateEntry" +import { useI18n } from "@renderer/hooks/common" import type { FeedViewType } from "@renderer/lib/enum" -import { cn, pluralize } from "@renderer/lib/utils" +import { cn } from "@renderer/lib/utils" import { getFeedById } from "@renderer/store/feed" import { searchActions, useSearchStore } from "@renderer/store/search" import { SearchType } from "@renderer/store/search/constants" @@ -28,11 +29,13 @@ import { Command } from "cmdk" import type { FC } from "react" import * as React from "react" import { memo, useMemo } from "react" +import { useTranslation } from "react-i18next" import styles from "./cmdk.module.css" const SearchCmdKContext = React.createContext | null>(null) export const SearchCmdK: React.FC = () => { + const { t } = useTranslation() const open = useAppSearchOpen() const [searchInstance, setSearchInstance] = React.useState(() => @@ -134,7 +137,7 @@ export const SearchCmdK: React.FC = () => {
    @@ -150,7 +153,12 @@ export const SearchCmdK: React.FC = () => { {renderedEntries.length > 0 && ( } + heading={ + + } className="flex w-full min-w-0 flex-col py-2" > {renderedEntries.map((entry) => { @@ -173,7 +181,10 @@ export const SearchCmdK: React.FC = () => { {renderedFeeds.length > 0 && ( + } className="py-2" > @@ -264,10 +275,11 @@ const SearchGroupHeading: FC<{ icon: string; title: string }> = ({ icon, title } const SearchResultCount: FC<{ count?: number }> = ({ count }) => { + const t = useI18n() const searchInstance = React.useContext(SearchCmdKContext) const hasKeyword = useSearchStore((s) => !!s.keyword) const searchType = useSearchStore((s) => s.searchType) - + const recordCountPromise = useMemo(async () => { let count = 0 const counts = await searchInstance?.then((s) => s.counts) @@ -290,35 +302,37 @@ const SearchResultCount: FC<{ {hasKeyword ? ( - {count} {pluralize("result", count || 0)} + {count} {t.common("words.result", { count })} ) : ( {(count) => ( <> - {count} local {pluralize("record", count)} + {count} {t.common("quantifier.piece")} + {t.common("words.local")} + {t.common("words.space")} + {t.common("words.record", { count })} )} )}{" "} - (Local mode) + {t("search.result_count_local_mode")} - - This search covers locally available data. Try a Refetch to include the latest data. - + {t("search.tooltip.local_search")} ) } const SearchOptions: Component = memo(({ children }) => { + const { t } = useTranslation() const searchType = useSearchStore((s) => s.searchType) const searchInstance = React.useContext(SearchCmdKContext) return (
    - Search Type + {t("search.options.search_type")} @@ -365,13 +379,14 @@ const SearchOptions: Component = memo(({ children }) => { }) const SearchPlaceholder = () => { + const { t } = useTranslation() const hasKeyword = useSearchStore((s) => !!s.keyword) return ( {hasKeyword ? (
    - No results found. + {t("search.empty.no_results")}
    ) : ( diff --git a/src/renderer/src/modules/profile/profile-setting-form.tsx b/src/renderer/src/modules/profile/profile-setting-form.tsx index d42928c8a..9c5af1ce3 100644 --- a/src/renderer/src/modules/profile/profile-setting-form.tsx +++ b/src/renderer/src/modules/profile/profile-setting-form.tsx @@ -15,6 +15,7 @@ import { Input } from "@renderer/components/ui/input" import { apiClient } from "@renderer/lib/api-fetch" import { useMutation } from "@tanstack/react-query" import { useForm } from "react-hook-form" +import { useTranslation } from "react-i18next" import { toast } from "sonner" import { z } from "zod" @@ -25,6 +26,7 @@ const formSchema = z.object({ }) export const ProfileSettingForm = () => { + const { t } = useTranslation("settings") const user = useWhoami() const form = useForm>({ @@ -45,7 +47,7 @@ export const ProfileSettingForm = () => { if (user && variables) { setWhoami({ ...user, ...variables }) } - toast("Profile updated.", { + toast(t("profile.updateSuccess"), { duration: 3000, }) }, @@ -63,11 +65,11 @@ export const ProfileSettingForm = () => { name="handle" render={({ field }) => ( - Handle + {t("profile.handle.label")} - Your unique identifier. + {t("profile.handle.description")} )} @@ -77,11 +79,11 @@ export const ProfileSettingForm = () => { name="name" render={({ field }) => ( - Display Name + {t("profile.name.label")} - Your public display name. + {t("profile.name.description")} )} @@ -93,7 +95,7 @@ export const ProfileSettingForm = () => { render={({ field }) => (
    - Avatar + {t("profile.avatar.label")} @@ -109,7 +111,7 @@ export const ProfileSettingForm = () => {
    diff --git a/src/renderer/src/modules/profile/user-profile-modal.tsx b/src/renderer/src/modules/profile/user-profile-modal.tsx index 7dd46ef2f..0d36ffec5 100644 --- a/src/renderer/src/modules/profile/user-profile-modal.tsx +++ b/src/renderer/src/modules/profile/user-profile-modal.tsx @@ -7,7 +7,7 @@ import { ActionButton, Button } from "@renderer/components/ui/button" import { LoadingCircle, LoadingWithIcon } from "@renderer/components/ui/loading" import { useCurrentModal, useModalStack } from "@renderer/components/ui/modal" import { ScrollArea } from "@renderer/components/ui/scroll-area" -import { useAuthQuery } from "@renderer/hooks/common" +import { useAuthQuery, useI18n } from "@renderer/hooks/common" import { apiClient } from "@renderer/lib/api-fetch" import { defineQuery } from "@renderer/lib/defineQuery" import { nextFrame, stopPropagation } from "@renderer/lib/dom" @@ -23,6 +23,7 @@ import { atomWithStorage } from "jotai/utils" import { throttle } from "lodash-es" import type { FC } from "react" import { Fragment, useEffect, useMemo, useRef, useState } from "react" +import { useTranslation } from "react-i18next" import { FeedForm } from "../discover/feed-form" @@ -40,6 +41,7 @@ export const UserProfileModalContent: FC<{ variant: "drawer" | "dialog" }> = ({ userId, variant }) => { + const { t } = useTranslation() const user = useAuthQuery( defineQuery(["profiles", userId], async () => { const res = await apiClient.profiles.$get({ @@ -171,7 +173,6 @@ export const UserProfileModalContent: FC<{ >
    { const currentVisible = currentVisibleRef.current const topOfCurrent = currentVisible?.values().next().value @@ -213,14 +214,14 @@ export const UserProfileModalContent: FC<{ /> { window.open(`${env.VITE_WEB_URL}/profile/${user.data?.id}`) }} > - +
    @@ -267,7 +268,7 @@ export const UserProfileModalContent: FC<{ @@ -325,6 +326,7 @@ const SubscriptionItem: FC<{ variant: ItemVariant }> = ({ subscription, variant }) => { + const t = useI18n() const isFollowed = !!useSubscriptionStore((state) => state.data[subscription.feedId]) const { present } = useModalStack() const isLoose = variant === "loose" @@ -354,10 +356,11 @@ const SubscriptionItem: FC<{ onClick={(e) => { e.stopPropagation() e.preventDefault() + const defaultView = subscription.view present({ - title: `${isFollowed ? "Edit " : ""}${APP_NAME} - ${subscription.feeds.title}`, + title: `${isFollowed ? `${t.common("words.edit")} ` : ""}${APP_NAME} - ${subscription.feeds.title}`, clickOutsideToDismiss: true, content: ({ dismiss }) => ( {isFollowed ? ( - "Edit" + t("user_profile.edit") ) : ( <> diff --git a/src/renderer/src/modules/settings/action-card.tsx b/src/renderer/src/modules/settings/action-card.tsx index f3a874d76..857ef6a65 100644 --- a/src/renderer/src/modules/settings/action-card.tsx +++ b/src/renderer/src/modules/settings/action-card.tsx @@ -30,6 +30,8 @@ import type { ActionOperation, SupportedLanguages, } from "@renderer/models" +import { useMemo } from "react" +import { useTranslation } from "react-i18next" type ActionsInput = { name: string @@ -41,6 +43,7 @@ type ActionsInput = { result: { translation?: string summary?: boolean + readability?: boolean rewriteRules?: { from: string to: string @@ -53,96 +56,6 @@ type ActionsInput = { } }[] -const OperationOptions = [ - { - name: "contains", - value: "contains", - types: ["text"], - }, - { - name: "does not contain", - value: "not_contains", - types: ["text"], - }, - { - name: "is equal to", - value: "eq", - types: ["number", "text", "view"], - }, - { - name: "is not equal to", - value: "not_eq", - types: ["number", "text", "view"], - }, - { - name: "is greater than", - value: "gt", - types: ["number"], - }, - { - name: "is less than", - value: "lt", - types: ["number"], - }, - { - name: "matches regex", - value: "regex", - types: ["text"], - }, -] - -const EntryOptions = [ - { - name: "All", - value: "all", - }, - { - name: "Title", - value: "title", - }, - { - name: "Content", - value: "content", - }, - { - name: "Author", - value: "author", - }, - { - name: "Url", - value: "url", - }, - { - name: "Order", - value: "order", - type: "number", - }, -] - -const FeedOptions = [ - { - name: "View", - value: "view", - type: "view", - }, - { - name: "Title", - value: "title", - }, - { - name: "Category", - value: "category", - }, - { - name: "Site URL", - value: "site_url", - }, - { - name: "Feed URL", - value: "feed_url", - }, -] - const TransitionOptions: { name: string value: SupportedLanguages @@ -165,16 +78,19 @@ const TransitionOptions: { }, ] -const FieldTableHeader = () => ( - - - - Field - Operator - Value - - -) +const FieldTableHeader = () => { + const { t } = useTranslation("settings") + return ( + + + + {t("actions.action_card.field")} + {t("actions.action_card.operator")} + {t("actions.action_card.value")} + + + ) +} const DeleteTableCell = ({ disabled, onClick }: { disabled?: boolean; onClick?: () => void }) => ( @@ -184,11 +100,19 @@ const DeleteTableCell = ({ disabled, onClick }: { disabled?: boolean; onClick?: ) -const AddTableRow = ({ onClick }: { onClick?: () => void }) => ( - -) +const AddTableRow = ({ onClick }: { onClick?: () => void }) => { + const { t } = useTranslation("settings") + return ( + + ) +} const OperationTableCell = ({ type, @@ -199,6 +123,48 @@ const OperationTableCell = ({ value?: ActionOperation onValueChange?: (value: ActionOperation) => void }) => { + const { t } = useTranslation("settings") + + const OperationOptions = useMemo(() => { + return [ + { + name: t("actions.action_card.operation_options.contains"), + value: "contains", + types: ["text"], + }, + { + name: t("actions.action_card.operation_options.does_not_contain"), + value: "not_contains", + types: ["text"], + }, + { + name: t("actions.action_card.operation_options.is_equal_to"), + value: "eq", + types: ["number", "text", "view"], + }, + { + name: t("actions.action_card.operation_options.is_not_equal_to"), + value: "not_eq", + types: ["number", "text", "view"], + }, + { + name: t("actions.action_card.operation_options.is_greater_than"), + value: "gt", + types: ["number"], + }, + { + name: t("actions.action_card.operation_options.is_less_than"), + value: "lt", + types: ["number"], + }, + { + name: t("actions.action_card.operation_options.matches_regex"), + value: "regex", + types: ["text"], + }, + ] + }, [t]) + const options = OperationOptions.filter((option) => option.types.includes(type)) return ( @@ -257,6 +223,64 @@ export function ActionCard({ data: ActionsInput[number] onChange: (data: ActionsInput[number] | null) => void }) { + const { t } = useTranslation("settings") + + const EntryOptions = useMemo(() => { + return [ + { + name: t("actions.action_card.entry_options.all"), + value: "all", + }, + { + name: t("actions.action_card.entry_options.title"), + value: "title", + }, + { + name: t("actions.action_card.entry_options.content"), + value: "content", + }, + { + name: t("actions.action_card.entry_options.author"), + value: "author", + }, + { + name: t("actions.action_card.entry_options.url"), + value: "url", + }, + { + name: t("actions.action_card.entry_options.order"), + value: "order", + type: "number", + }, + ] + }, [t]) + + const FeedOptions = useMemo(() => { + return [ + { + name: t("actions.action_card.feed_options.view"), + value: "view", + type: "view", + }, + { + name: t("actions.action_card.feed_options.title"), + value: "title", + }, + { + name: t("actions.action_card.feed_options.category"), + value: "category", + }, + { + name: t("actions.action_card.feed_options.site_url"), + value: "site_url", + }, + { + name: t("actions.action_card.feed_options.feed_url"), + value: "feed_url", + }, + ] + }, [t]) + return ( @@ -272,7 +296,7 @@ export function ActionCard({ > -

    Name

    +

    {t("actions.action_card.name")}

    -

    When feeds match


    +

    + {t("actions.action_card.when_feeds_match")} +

    0 ? "filter" : "all"} @@ -302,8 +328,8 @@ export function ActionCard({ onChange(data) }} > - - + +
    @@ -384,10 +410,12 @@ export function ActionCard({ )}
    -

    Then do


    +

    {t("actions.action_card.then_do")}

    - Generate summary using AI + + {t("actions.action_card.generate_summary")} + { @@ -399,7 +427,9 @@ export function ActionCard({
    - Translate into + + {t("actions.action_card.translate_into")} +
    + +
    + + {t("actions.action_card.enable_readability")} + + { + data.result.readability = checked + onChange(data) + }} + /> +
    { if (open) { @@ -443,8 +486,8 @@ export function ActionCard({ - From - To + {t("actions.action_card.from")} + {t("actions.action_card.to")} @@ -498,7 +541,7 @@ export function ActionCard({ { if (open) { diff --git a/src/renderer/src/modules/settings/constants.ts b/src/renderer/src/modules/settings/constants.ts index a3f23fbe9..0c9e270e0 100644 --- a/src/renderer/src/modules/settings/constants.ts +++ b/src/renderer/src/modules/settings/constants.ts @@ -4,7 +4,7 @@ function getSettings() { const map = import.meta.glob("../../pages/settings/\\(settings\\)/*", { eager: true }) const settings = [] as { - name: I18nKeys + name: I18nKeysForSettings iconName: string path: string Component: () => JSX.Element diff --git a/src/renderer/src/modules/settings/helper/SyncIndicator.tsx b/src/renderer/src/modules/settings/helper/SyncIndicator.tsx index 0fd68233d..8683ea728 100644 --- a/src/renderer/src/modules/settings/helper/SyncIndicator.tsx +++ b/src/renderer/src/modules/settings/helper/SyncIndicator.tsx @@ -1,14 +1,19 @@ import { PhCloudCheck } from "@renderer/components/icons/PhCloudCheck" +import { PhCloudWarning } from "@renderer/components/icons/PhCloudWarning" import { PhCloudX } from "@renderer/components/icons/PhCloudX" import { Tooltip, TooltipContent, TooltipTrigger } from "@renderer/components/ui/tooltip" import { useAuthQuery, useIsOnline } from "@renderer/hooks/common" import { settings } from "@renderer/queries/settings" -import { useEffect, useRef } from "react" +import { useEffect, useMemo, useRef } from "react" +import { useTranslation } from "react-i18next" +import { useSettingContextSelector } from "../modal/hooks" import { settingSyncQueue } from "./sync-queue" -export const SyncIndicator = () => { +export const SettingSyncIndicator = () => { + const { t } = useTranslation() const { data: remoteSettings, isLoading } = useAuthQuery(settings.get(), {}) + const canSync = useSettingContextSelector((s) => s.canSync) const isOnline = useIsOnline() const onceRef = useRef(false) @@ -24,15 +29,41 @@ export const SyncIndicator = () => { } }, [remoteSettings, isLoading]) + const metaInfo: { + icon: React.FC> + text: string + } = useMemo(() => { + switch (true) { + case !isOnline: { + return { + icon: PhCloudX, + text: t("sync_indicator.offline"), + } + } + case !canSync: { + return { + icon: PhCloudWarning, + text: t("sync_indicator.disabled"), + } + } + default: { + return { + icon: PhCloudCheck, + text: t("sync_indicator.synced"), + } + } + } + }, [isOnline, canSync, t]) + return (
    - {isOnline ? : } +
    -
    {isOnline ? "Synced with server" : "Offline"}
    +
    {metaInfo.text}
    ) diff --git a/src/renderer/src/modules/settings/modal/content.tsx b/src/renderer/src/modules/settings/modal/content.tsx index 59aa6275a..606007e1f 100644 --- a/src/renderer/src/modules/settings/modal/content.tsx +++ b/src/renderer/src/modules/settings/modal/content.tsx @@ -3,8 +3,9 @@ import { MotionButtonBase } from "@renderer/components/ui/button" import { useCurrentModal } from "@renderer/components/ui/modal" import { ScrollArea } from "@renderer/components/ui/scroll-area" import { SettingsTitle } from "@renderer/modules/settings/title" +import i18next from "i18next" import type { FC } from "react" -import { Suspense, useDeferredValue, useLayoutEffect, useState } from "react" +import { Suspense, useDeferredValue, useEffect, useLayoutEffect, useState } from "react" import { settings } from "../constants" import { SettingTabProvider, useSettingTab } from "./context" @@ -24,15 +25,21 @@ const pages = (() => { })() export const SettingModalContent: FC<{ initialTab?: string -}> = ({ initialTab }) => ( - - - - - -) +}> = ({ initialTab }) => { + useEffect(() => { + // load i18n + i18next.loadNamespaces("settings") + }, []) + return ( + + + + + + ) +} const Close = () => { const { dismiss } = useCurrentModal() diff --git a/src/renderer/src/modules/settings/modal/hooks.ts b/src/renderer/src/modules/settings/modal/hooks.ts index 1feadfaae..acab65957 100644 --- a/src/renderer/src/modules/settings/modal/hooks.ts +++ b/src/renderer/src/modules/settings/modal/hooks.ts @@ -1,6 +1,9 @@ import { useModalStack } from "@renderer/components/ui/modal/stacked/hooks" import { NoopChildren } from "@renderer/components/ui/modal/stacked/utils" +import type { ExtractAtomValue, PrimitiveAtom } from "jotai" +import { atom, useAtomValue, useSetAtom } from "jotai" import { createElement, useCallback } from "react" +import { createContext, useContextSelector } from "use-context-selector" import { SettingModalContent } from "./content" @@ -22,3 +25,21 @@ export const useSettingModal = () => { [present], ) } + +interface Ctx { + canSync: PrimitiveAtom +} +export const defaultCtx: Ctx = { + canSync: atom(true), +} +export const SettingContext = createContext(defaultCtx) + +export const useSettingContextSelector = (selector: (state: Ctx) => T) => { + // @ts-expect-error + return useAtomValue(useContextSelector(SettingContext, selector)) as ExtractAtomValue +} + +export const useSetSettingCanSync = () => { + const canSync = useContextSelector(SettingContext, (s) => s.canSync) + return useSetAtom(canSync) +} diff --git a/src/renderer/src/modules/settings/modal/layout.tsx b/src/renderer/src/modules/settings/modal/layout.tsx index 585c35f7b..d16f1f001 100644 --- a/src/renderer/src/modules/settings/modal/layout.tsx +++ b/src/renderer/src/modules/settings/modal/layout.tsx @@ -10,9 +10,10 @@ import type { PointerEventHandler, PropsWithChildren } from "react" import { Suspense, useCallback, useEffect, useRef } from "react" import { settings } from "../constants" -import { SyncIndicator } from "../helper/SyncIndicator" +import { SettingSyncIndicator } from "../helper/SyncIndicator" import { SettingsSidebarTitle } from "../title" import { useSetSettingTab, useSettingTab } from "./context" +import { defaultCtx, SettingContext } from "./hooks" export function SettingModalLayout( props: PropsWithChildren<{ @@ -74,55 +75,57 @@ export function SettingModalLayout( cursor: "grabbing", }} > - - {draggable && ( -
    - )} -
    -
    -
    - - {APP_NAME} -
    - + + + {draggable && ( +
    + )} +
    +
    +
    + + {APP_NAME} +
    + -
    - +
    + +
    +
    +
    + {children}
    -
    - {children} -
    -
    - + +
    ) diff --git a/src/renderer/src/modules/settings/section.tsx b/src/renderer/src/modules/settings/section.tsx index db374179d..3068f5882 100644 --- a/src/renderer/src/modules/settings/section.tsx +++ b/src/renderer/src/modules/settings/section.tsx @@ -15,7 +15,7 @@ export const SettingSectionTitle: FC<{ }> = ({ title, margin }) => (
    diff --git a/src/renderer/src/modules/settings/sections/fonts.tsx b/src/renderer/src/modules/settings/sections/fonts.tsx index a6e31b2f3..158515591 100644 --- a/src/renderer/src/modules/settings/sections/fonts.tsx +++ b/src/renderer/src/modules/settings/sections/fonts.tsx @@ -16,6 +16,7 @@ import { getStorageNS } from "@renderer/lib/ns" import { useQuery } from "@tanstack/react-query" import { useCallback, useEffect, useMemo, useRef } from "react" import * as React from "react" +import { useTranslation } from "react-i18next" const FALLBACK_FONT = "Default (UI Font)" const DEFAULT_FONT = "SN Pro" @@ -48,6 +49,7 @@ const useFontDataWeb = () => [ const useFontData = window.electron ? useFontDataElectron : useFontDataWeb export const ContentFontSelector = () => { + const { t } = useTranslation("settings") const data = useFontData() const readerFontFamily = useUISettingSelector((state) => state.readerFontFamily || DEFAULT_FONT) const setCustom = usePresentCustomFontDialog("readerFontFamily") @@ -61,7 +63,7 @@ export const ContentFontSelector = () => { return (
    - Content Font + {t("appearance.content_font")} { const usePresentCustomFontDialog = (setKey: "uiFontFamily" | "readerFontFamily") => { const HISTORY_KEY = getStorageNS("customFonts") const { present } = useModalStack() + const { t } = useTranslation("settings") return useCallback(() => { present({ - title: "Custom Font", + title: t("appearance.custom_font"), clickOutsideToDismiss: true, content: function Content({ dismiss, setClickOutSideToDismiss }) { const inputRef = useRef(null) @@ -169,11 +173,11 @@ const usePresentCustomFontDialog = (setKey: "uiFontFamily" | "readerFontFamily") />
    - +
    ) }, }) - }, [HISTORY_KEY, present, setKey]) + }, [HISTORY_KEY, present, setKey, t]) } diff --git a/src/renderer/src/modules/settings/tabs/about.tsx b/src/renderer/src/modules/settings/tabs/about.tsx index 1c206dcba..990427758 100644 --- a/src/renderer/src/modules/settings/tabs/about.tsx +++ b/src/renderer/src/modules/settings/tabs/about.tsx @@ -5,92 +5,110 @@ import { styledButtonVariant } from "@renderer/components/ui/button/variants" import { Divider } from "@renderer/components/ui/divider" import { SocialMediaLinks } from "@renderer/constants/social" import { getNewIssueUrl } from "@renderer/lib/issues" +import { Trans, useTranslation } from "react-i18next" import { SettingsTitle } from "../title" -export const SettingAbout = () => ( -
    - -
    -
    - +export const SettingAbout = () => { + const { t } = useTranslation("settings") -
    -
    - {APP_NAME} {!import.meta.env.PROD ? `(${import.meta.env.MODE})` : ""} + return ( +
    + +
    +
    + + +
    +
    + {APP_NAME} {!import.meta.env.PROD ? `(${import.meta.env.MODE})` : ""} +
    +
    + {APP_VERSION} +
    -
    - {APP_VERSION} -
    -
    -
    - -
    -
    - -

    - {APP_NAME} is and will always be a free and open-source project. It is licensed under{" "} - {license}. -

    -

    - The icon library used is copyrighted by{" "} - - https://mgc.mingcute.com/ - - and cannot be redistributed. -

    - -

    - {APP_NAME} ({GIT_COMMIT_SHA.slice(0, 7).toUpperCase()}) is in the early stages of - development. If you have any feedback or suggestions, please feel free to{" "} - - open an issue - - {" "} - on our GitHub. -

    - - - -

    Social Media

    - -
    -
    -) + {t("about.changelog")} + +
    +
    + +

    + {t("about.licenseInfo", { appName: APP_NAME, license })} +

    +

    + + https://mgc.mingcute.com/ + + ), + ExternalLinkIcon: , + }} + /> +

    + +

    + + open an issue + + + ), + ExternalLinkIcon: , + }} + /> +

    + + + +

    {t("about.socialMedia")}

    +
    + {SocialMediaLinks.map((link) => ( + + + + {link.label} + + + ))} +
    +
    +
    + ) +} diff --git a/src/renderer/src/modules/settings/tabs/apperance.tsx b/src/renderer/src/modules/settings/tabs/apperance.tsx index f58e8d793..ca1ecc0f1 100644 --- a/src/renderer/src/modules/settings/tabs/apperance.tsx +++ b/src/renderer/src/modules/settings/tabs/apperance.tsx @@ -15,96 +15,95 @@ import { import { isElectronBuild } from "@renderer/constants" import { useSetTheme, useThemeAtomValue } from "@renderer/hooks/common" import { getOS } from "@renderer/lib/utils" +import { useTranslation } from "react-i18next" import { bundledThemes } from "shiki/themes" import { SettingTabbedSegment } from "../control" import { ContentFontSelector, UIFontSelector } from "../sections/fonts" import { createSettingBuilder } from "../setting-builder" -import { SettingsTitle } from "../title" const SettingBuilder = createSettingBuilder(useUISettingValue) const defineItem = createDefineSettingItem(useUISettingValue, setUISetting) -export const SettingAppearance = () => ( - <> - +export const SettingAppearance = () => { + const { t } = useTranslation("settings") + return (
    - -) + ) +} + const ShikiTheme = () => { + const { t } = useTranslation("settings") const codeHighlightTheme = useUISettingKey("codeHighlightTheme") return (
    - Code highlight theme + {t("appearance.code_highlight_theme")} { } const AppThemeSegment = () => { + const { t } = useTranslation("settings") const theme = useThemeAtomValue() const setTheme = useSetTheme() return ( , }, { value: "light", - label: "Light", + label: t("appearance.theme.light"), icon: , }, { value: "dark", - label: "Dark", + label: t("appearance.theme.dark"), icon: , }, ]} diff --git a/src/renderer/src/modules/settings/tabs/feeds.tsx b/src/renderer/src/modules/settings/tabs/feeds.tsx new file mode 100644 index 000000000..bb97c819c --- /dev/null +++ b/src/renderer/src/modules/settings/tabs/feeds.tsx @@ -0,0 +1,86 @@ +import { FeedIcon } from "@renderer/components/feed-icon" +import { LoadingCircle } from "@renderer/components/ui/loading" +import { ScrollArea } from "@renderer/components/ui/scroll-area" +import { + Table, + TableBody, + TableCell, + TableHead, + TableHeader, + TableRow, +} from "@renderer/components/ui/table" +import { useAuthQuery } from "@renderer/hooks/common" +import { Balance } from "@renderer/modules/wallet/balance" +import { Queries } from "@renderer/queries" +import { WEB_URL } from "@shared/constants" +import { useTranslation } from "react-i18next" + +export const SettingFeeds = () => { + const { t } = useTranslation("settings") + const claimedList = useAuthQuery(Queries.feed.claimedList()) + + return ( +
    +
    +

    {t("feeds.claimTips")}

    +
    +
    + + {claimedList.data?.length ? ( + + + + + {t("feeds.tableHeaders.name")} + + + {t("feeds.tableHeaders.entryCount")} + + + {t("feeds.tableHeaders.subscriptionCount")} + + + {t("feeds.tableHeaders.tipAmount")} + + + + + {claimedList.data?.map((row) => ( + + + + + + {row.feed.title} + + + + + {row.entryCount} + + + {row.subscriptionCount} + + + {BigInt(row.tipAmount || 0n)} + + + ))} + +
    + ) : claimedList.isLoading ? ( + + ) : ( +
    +

    {t("feeds.noFeeds")}

    +
    + )} +
    +
    +
    + ) +} diff --git a/src/renderer/src/modules/settings/tabs/general.tsx b/src/renderer/src/modules/settings/tabs/general.tsx index 5b3f4a29d..e1045a6ea 100644 --- a/src/renderer/src/modules/settings/tabs/general.tsx +++ b/src/renderer/src/modules/settings/tabs/general.tsx @@ -1,3 +1,4 @@ +import { currentSupportedLanguages } from "@renderer/@types/constants" import { setGeneralSetting, useGeneralSettingSelector, @@ -10,6 +11,7 @@ import { useUISettingSelector, } from "@renderer/atoms/settings/ui" import { Button } from "@renderer/components/ui/button" +import { LoadingCircle } from "@renderer/components/ui/loading" import { useModalStack } from "@renderer/components/ui/modal" import { Select, @@ -18,12 +20,16 @@ import { SelectTrigger, SelectValue, } from "@renderer/components/ui/select" -import { currentSupportedLanguages, fallbackLanguage } from "@renderer/i18n" +import { IS_MANUAL_CHANGE_LANGUAGE_KEY } from "@renderer/constants" +import { fallbackLanguage } from "@renderer/i18n" import { initPostHog } from "@renderer/initialize/posthog" import { tipcClient } from "@renderer/lib/client" +import { loadLanguageAndApply } from "@renderer/lib/load-language" +import { cn } from "@renderer/lib/utils" import { clearLocalPersistStoreData } from "@renderer/store/utils/clear" import { useQuery } from "@tanstack/react-query" -import { useCallback, useEffect } from "react" +import i18next from "i18next" +import { useCallback, useEffect, useState } from "react" import { useTranslation } from "react-i18next" import { SettingsTitle } from "../title" @@ -33,7 +39,7 @@ const { defineSettingItem, SettingBuilder } = createSetting( setGeneralSetting, ) export const SettingGeneral = () => { - const { t } = useTranslation() + const { t } = useTranslation("settings") useEffect(() => { tipcClient?.getLoginItemSettings().then((settings) => { setGeneralSetting("appLaunchOnStartup", settings.openAtLogin) @@ -56,11 +62,11 @@ export const SettingGeneral = () => { settings={[ { type: "title", - value: t("settings.general.app"), + value: t("general.app"), }, defineSettingItem("appLaunchOnStartup", { - label: t("settings.general.launch_at_login"), + label: t("general.launch_at_login"), disabled: !tipcClient, onChange(value) { saveLoginSetting(value) @@ -69,30 +75,30 @@ export const SettingGeneral = () => { LanguageSelector, { type: "title", - value: t("settings.general.timeline"), + value: t("general.timeline"), }, defineSettingItem("unreadOnly", { - label: t("settings.general.show_unread_on_launch.label"), - description: t("settings.general.show_unread_on_launch.description"), + label: t("general.show_unread_on_launch.label"), + description: t("general.show_unread_on_launch.description"), }), defineSettingItem("groupByDate", { - label: t("settings.general.group_by_date.label"), - description: t("settings.general.group_by_date.description"), + label: t("general.group_by_date.label"), + description: t("general.group_by_date.description"), }), { type: "title", value: "unread" }, defineSettingItem("scrollMarkUnread", { - label: t("settings.general.mark_as_read.scroll.label"), - description: t("settings.general.mark_as_read.scroll.description"), + label: t("general.mark_as_read.scroll.label"), + description: t("general.mark_as_read.scroll.description"), }), defineSettingItem("hoverMarkUnread", { - label: t("settings.general.mark_as_read.hover.label"), - description: t("settings.general.mark_as_read.hover.description"), + label: t("general.mark_as_read.hover.label"), + description: t("general.mark_as_read.hover.description"), }), defineSettingItem("renderMarkUnread", { - label: t("settings.general.mark_as_read.render.label"), - description: t("settings.general.mark_as_read.render.description"), + label: t("general.mark_as_read.render.label"), + description: t("general.mark_as_read.render.description"), }), { type: "title", value: "TTS", disabled: !window.electron }, @@ -106,17 +112,17 @@ export const SettingGeneral = () => { // }), { type: "title", - value: t("settings.general.privacy_data"), + value: t("general.privacy_data"), }, defineSettingItem("dataPersist", { - label: t("settings.general.data_persist.label"), - description: t("settings.general.data_persist.description"), + label: t("general.data_persist.label"), + description: t("general.data_persist.description"), }), defineSettingItem("sendAnonymousData", { - label: t("settings.general.send_anonymous_data.label"), - description: t("settings.general.send_anonymous_data.description"), + label: t("general.send_anonymous_data.label"), + description: t("general.send_anonymous_data.description"), onChange(value) { setGeneralSetting("sendAnonymousData", value) if (value) { @@ -128,15 +134,15 @@ export const SettingGeneral = () => { }, }), { - label: t("settings.general.rebuild_database.label"), + label: t("general.rebuild_database.label"), action: async () => { present({ - title: t("settings.general.rebuild_database.title"), + title: t("general.rebuild_database.title"), clickOutsideToDismiss: true, content: () => (
    -

    {t("settings.general.rebuild_database.warning.line1")}

    -

    {t("settings.general.rebuild_database.warning.line2")}

    +

    {t("general.rebuild_database.warning.line1")}

    +

    {t("general.rebuild_database.warning.line2")}

    - + {invitations.data?.length ? ( - Code + {t("invitation.tableHeaders.code")} - Creation Time + {t("invitation.tableHeaders.creationTime")} - - Used by + + {t("invitation.tableHeaders.usedBy")} @@ -95,10 +114,10 @@ export const SettingInvitations = () => { {row.users ? ( - + diff --git a/src/renderer/src/modules/settings/tabs/wallet/index.tsx b/src/renderer/src/modules/settings/tabs/wallet/index.tsx index 6f31f62be..188e3ffda 100644 --- a/src/renderer/src/modules/settings/tabs/wallet/index.tsx +++ b/src/renderer/src/modules/settings/tabs/wallet/index.tsx @@ -1,17 +1,13 @@ -import { Divider } from "@renderer/components/ui/divider" - import { SettingsTitle } from "../../title" import { MyWalletSection } from "./my-wallet-section" import { TransactionsSection } from "./transaction-section" export const SettingWallet = () => ( -
    +
    - -
    ) diff --git a/src/renderer/src/modules/settings/tabs/wallet/my-wallet-section/claim-daily-reward.tsx b/src/renderer/src/modules/settings/tabs/wallet/my-wallet-section/claim-daily-reward.tsx index b6bf7e3ba..50ce9e871 100644 --- a/src/renderer/src/modules/settings/tabs/wallet/my-wallet-section/claim-daily-reward.tsx +++ b/src/renderer/src/modules/settings/tabs/wallet/my-wallet-section/claim-daily-reward.tsx @@ -3,9 +3,11 @@ import { Button } from "@renderer/components/ui/button" import { Tooltip, TooltipContent } from "@renderer/components/ui/tooltip" import { DAILY_CLAIM_AMOUNT } from "@renderer/constants" import { useClaimCheck, useClaimWalletDailyRewardMutation } from "@renderer/queries/wallet" +import { Trans, useTranslation } from "react-i18next" export const ClaimDailyReward = () => { const mutation = useClaimWalletDailyRewardMutation() + const { t } = useTranslation("settings") const check = useClaimCheck() const canClaim = check.data?.data @@ -19,13 +21,19 @@ export const ClaimDailyReward = () => { onClick={() => mutation.mutate()} disabled={!canClaim} > - {canClaim ? "Claim Daily Power" : "Claimed today"} + {canClaim ? t("wallet.claim.button.claim") : t("wallet.claim.button.claimed")} - {canClaim - ? `Claim your ${DAILY_CLAIM_AMOUNT} Daily Power now!` - : `You have already claimed today.`} + {canClaim ? ( + + ) : ( + t("wallet.claim.tooltip.alreadyClaimed") + )} ) diff --git a/src/renderer/src/modules/settings/tabs/wallet/my-wallet-section/create-wallet.tsx b/src/renderer/src/modules/settings/tabs/wallet/my-wallet-section/create-wallet.tsx index a4f288f6c..a2afaf7d4 100644 --- a/src/renderer/src/modules/settings/tabs/wallet/my-wallet-section/create-wallet.tsx +++ b/src/renderer/src/modules/settings/tabs/wallet/my-wallet-section/create-wallet.tsx @@ -1,22 +1,26 @@ import { Button } from "@renderer/components/ui/button" import { useCreateWalletMutation } from "@renderer/queries/wallet" +import { Trans, useTranslation } from "react-i18next" export const CreateWallet = () => { const mutation = useCreateWalletMutation() + const { t } = useTranslation("settings") return (

    - Create a free wallet to receive{" "} - - - Power - - , which can be used to reward creators and also get rewarded for your content contributions. + , + strong: , + }} + />

    diff --git a/src/renderer/src/modules/settings/tabs/wallet/my-wallet-section/index.tsx b/src/renderer/src/modules/settings/tabs/wallet/my-wallet-section/index.tsx index ede5624ed..2ab1be710 100644 --- a/src/renderer/src/modules/settings/tabs/wallet/my-wallet-section/index.tsx +++ b/src/renderer/src/modules/settings/tabs/wallet/my-wallet-section/index.tsx @@ -1,6 +1,7 @@ import { useWhoami } from "@renderer/atoms/user" import { Button } from "@renderer/components/ui/button" import { CopyButton } from "@renderer/components/ui/code-highlighter" +import { Divider } from "@renderer/components/ui/divider" import { LoadingWithIcon } from "@renderer/components/ui/loading" import { Tooltip, @@ -15,12 +16,14 @@ import { SettingSectionTitle } from "@renderer/modules/settings/section" import { Balance } from "@renderer/modules/wallet/balance" import { useWallet, wallet as walletActions } from "@renderer/queries/wallet" import { useMutation } from "@tanstack/react-query" +import { Trans, useTranslation } from "react-i18next" import { ClaimDailyReward } from "./claim-daily-reward" import { CreateWallet } from "./create-wallet" import { WithdrawButton } from "./withdraw" export const MyWalletSection = () => { + const { t } = useTranslation("settings") const user = useWhoami() const wallet = useWallet({ userId: user?.id }) const myWallet = wallet.data?.[0] @@ -50,81 +53,81 @@ export const MyWalletSection = () => { return } return ( -
    -
    -
    -

    - Power is an ERC-20 token on the{" "} + <> +

    +
    +
    + + ), + }} + /> +

    {t("wallet.power.dailyClaim", { amount: DAILY_CLAIM_AMOUNT })}

    +
    + +
    - VSL blockchain + {myWallet.address} - . -

    -

    - You can claim {DAILY_CLAIM_AMOUNT} free Power daily, which can be used to tip RSS - entries on Follow. -

    -
    - - - -
    -
    - - {BigInt(myWallet.dailyPowerToken || 0n) + BigInt(myWallet.cashablePowerToken || 0n)} - - +
    -
    - - -
    -
    - - -
    - - Withdrawable - - - {myWallet.cashablePowerToken} + +
    +
    + + {BigInt(myWallet.dailyPowerToken || 0n) + BigInt(myWallet.cashablePowerToken || 0n)} + +
    - - - -

    - Withdrawable Power includes both the tips you've received and the Power you've - recharged. -

    -
    -
    - +
    + + +
    +
    + + +
    + + {t("wallet.balance.withdrawable")} + + + {myWallet.cashablePowerToken} +
    +
    + + +

    {t("wallet.balance.withdrawableTooltip")}

    +
    +
    +
    +
    -
    + + ) } diff --git a/src/renderer/src/modules/settings/tabs/wallet/my-wallet-section/withdraw.tsx b/src/renderer/src/modules/settings/tabs/wallet/my-wallet-section/withdraw.tsx index f38ca64a8..3cb255d1d 100644 --- a/src/renderer/src/modules/settings/tabs/wallet/my-wallet-section/withdraw.tsx +++ b/src/renderer/src/modules/settings/tabs/wallet/my-wallet-section/withdraw.tsx @@ -19,27 +19,30 @@ import { useMutation } from "@tanstack/react-query" import { from, toNumber } from "dnum" import { useEffect } from "react" import { useForm } from "react-hook-form" +import { Trans, useTranslation } from "react-i18next" import { toast } from "sonner" import { z } from "zod" export const WithdrawButton = () => { + const { t } = useTranslation("settings") const { present } = useModalStack() const onClick = () => { present({ - title: "Withdraw Power", + title: t("wallet.withdraw.modalTitle"), content: ({ dismiss }) => , }) } return ( ) } const WithdrawModalContent = ({ dismiss }: { dismiss: () => void }) => { + const { t } = useTranslation("settings") const user = useWhoami() const wallet = useWallet({ userId: user?.id }) const cashablePowerTokenBigInt = [BigInt(wallet.data?.[0].cashablePowerToken || 0n), 18] as const @@ -72,25 +75,35 @@ const WithdrawModalContent = ({ dismiss }: { dismiss: () => void }) => { useEffect(() => { if (mutation.isError) { - toast.error(`Withdrawal failed: ${mutation.error?.message}`) + toast.error(t("wallet.withdraw.error", { error: mutation.error?.message })) } - }, [mutation.isError]) + }, [mutation.isError, t]) useEffect(() => { if (mutation.isSuccess) { - toast.success("Withdrawal successful!") + toast.success(t("wallet.withdraw.success")) walletActions.get().invalidate() walletActions.transactions.get().invalidate() dismiss() } - }, [mutation.isSuccess]) + }, [mutation.isSuccess, t, dismiss]) return ( <>
    - You have{" "} - {wallet.data?.[0].cashablePowerToken || "0"}{" "} - withdrawable Power in your wallet. + + {wallet.data?.[0].cashablePowerToken || "0"} + + ), + }} + ns="settings" + > + {wallet.data?.[0].cashablePowerToken || "0"} +
    @@ -99,7 +112,7 @@ const WithdrawModalContent = ({ dismiss }: { dismiss: () => void }) => { name="address" render={({ field }) => ( - Your Ethereum Address + {t("wallet.withdraw.addressLabel")} @@ -112,7 +125,7 @@ const WithdrawModalContent = ({ dismiss }: { dismiss: () => void }) => { name="amount" render={({ field }) => ( - Amount + {t("wallet.withdraw.amountLabel")} void }) => { />
    diff --git a/src/renderer/src/modules/settings/tabs/wallet/transaction-section/index.tsx b/src/renderer/src/modules/settings/tabs/wallet/transaction-section/index.tsx index aa758c19c..b8e16ef62 100644 --- a/src/renderer/src/modules/settings/tabs/wallet/transaction-section/index.tsx +++ b/src/renderer/src/modules/settings/tabs/wallet/transaction-section/index.tsx @@ -24,8 +24,10 @@ import { usePresentUserProfileModal } from "@renderer/modules/profile/hooks" import { SettingSectionTitle } from "@renderer/modules/settings/section" import { Balance } from "@renderer/modules/wallet/balance" import { useWallet, useWalletTransactions } from "@renderer/queries/wallet" +import { useTranslation } from "react-i18next" export const TransactionsSection = () => { + const { t } = useTranslation("settings") const user = useWhoami() const wallet = useWallet({ userId: user?.id }) const myWallet = wallet.data?.[0] @@ -42,33 +44,31 @@ export const TransactionsSection = () => { ) } - // if (transactions.data?.length === 0) return
    No transactions
    - return ( -
    - +
    + - +
    - Type + {t("wallet.transactions.type")} - Amount + {t("wallet.transactions.amount")} - From + {t("wallet.transactions.from")} - To + {t("wallet.transactions.to")} - Date + {t("wallet.transactions.date")} - Tx + {t("wallet.transactions.tx")} @@ -111,7 +111,9 @@ export const TransactionsSection = () => {
    {!transactions.data?.length && ( -
    No transactions
    +
    + {t("wallet.transactions.noTransactions")} +
    )}
    @@ -122,19 +124,22 @@ const TypeRenderer = ({ type, }: { type: NonNullable["data"]>[number]["type"] -}) => ( -
    - {type} -
    -) +}) => { + const { t } = useTranslation("settings") + return ( +
    + {t(`wallet.transactions.types.${type}`)} +
    + ) +} const BalanceRenderer = ({ sign, @@ -161,10 +166,11 @@ const UserRenderer = ({ | "fromUser" | "toUser"] }) => { + const { t } = useTranslation("settings") const me = useWhoami() const isMe = user?.id === me?.id - const name = isMe ? "You" : user?.name || APP_NAME + const name = isMe ? t("wallet.transactions.you") : user?.name || APP_NAME const presentUserModal = usePresentUserProfileModal("drawer") return ( @@ -183,7 +189,9 @@ const UserRenderer = ({ )} -
    {isMe ? You : name}
    +
    + {isMe ? {t("wallet.transactions.you")} : name} +
    ) } diff --git a/src/renderer/src/modules/settings/title.tsx b/src/renderer/src/modules/settings/title.tsx index eb15f66f9..7c6269583 100644 --- a/src/renderer/src/modules/settings/title.tsx +++ b/src/renderer/src/modules/settings/title.tsx @@ -6,16 +6,16 @@ import { settings } from "./constants" import type { SettingPageConfig } from "./utils" export const SettingsSidebarTitle = ({ path, className }: { path: string; className?: string }) => { + const { t } = useTranslation("settings") const tab = settings.find((t) => t.path === path) - const { t } = useTranslation() if (!tab) { return null } return (
    - + {t(tab.name as any)}
    ) @@ -28,13 +28,13 @@ export const SettingsTitle = ({ className?: string loader?: () => SettingPageConfig }) => { + const { t } = useTranslation("settings") const { iconName, name: title, headerIcon, } = (useLoaderData() || loader?.() || {}) as SettingPageConfig - const { t } = useTranslation() if (!title) { return null } diff --git a/src/renderer/src/modules/settings/utils.ts b/src/renderer/src/modules/settings/utils.ts index 4e8ce319b..221c1c35f 100644 --- a/src/renderer/src/modules/settings/utils.ts +++ b/src/renderer/src/modules/settings/utils.ts @@ -1,7 +1,6 @@ - export interface SettingPageConfig { iconName: string - name: I18nKeys + name: I18nKeysForSettings priority: number headerIcon?: string } diff --git a/src/renderer/src/modules/wallet/balance.tsx b/src/renderer/src/modules/wallet/balance.tsx index 3fbcd9684..e08c1ef54 100644 --- a/src/renderer/src/modules/wallet/balance.tsx +++ b/src/renderer/src/modules/wallet/balance.tsx @@ -23,7 +23,12 @@ export const Balance = ({ const Content = (
    - {formatted} {withSuffix && Power} + {formatted}{" "} + {withSuffix && ( + + Power + + )}
    ) diff --git a/src/renderer/src/modules/wallet/tip-modal.tsx b/src/renderer/src/modules/wallet/tip-modal.tsx index d20fcf5f6..e23d0a99c 100644 --- a/src/renderer/src/modules/wallet/tip-modal.tsx +++ b/src/renderer/src/modules/wallet/tip-modal.tsx @@ -6,6 +6,7 @@ import { useCurrentModal } from "@renderer/components/ui/modal" import { RadioGroup } from "@renderer/components/ui/radio-group" import { RadioCard } from "@renderer/components/ui/radio-group/RadioCard" import { UserAvatar } from "@renderer/components/user-button" +import { useI18n } from "@renderer/hooks/common" import { nextFrame } from "@renderer/lib/dom" import { useWallet, useWalletTipMutation } from "@renderer/queries/wallet" import { from } from "dnum" @@ -47,6 +48,7 @@ const TipModalContent_: FC<{ feedId: string entryId: string }> = ({ userId, feedId, entryId }) => { + const t = useI18n() const myWallet = useMyWallet() const myWalletData = myWallet.data?.[0] @@ -77,38 +79,30 @@ const TipModalContent_: FC<{ if (!myWalletData) { return (
    -

    - You don't have a wallet yet. Please create a wallet to tip. -

    +

    {t("tip_modal.no_wallet")}

    ) } - // if (transactionsQuery.error) { - // return
    Failed to load transactions history.
    - // } - if (tipMutation.isSuccess) { return (
    -

    - Tip sent successfully! Thank you for your support. -

    +

    {t("tip_modal.tip_sent")}

    {amountBigInt} {" "} - has been sent to the author. + {t("tip_modal.tip_amount_sent")}

    @@ -119,37 +113,56 @@ const TipModalContent_: FC<{
    {userId ? ( <> -

    Feed Owner

    - +

    {t("tip_modal.feed_owner")}

    + ) : ( <>

    - No one has claimed this feed yet. The received Power will be securely held in the - blockchain contract until it is claimed. + {t("tip_modal.unclaimed_feed")}

    )} -

    ⭐ Tip to show your support!

    +

    {t("tip_modal.tip_support")}

    - Amount + {t("tip_modal.amount")}
    setAmount(Number(value))}>
    - - + + 10 + + } + value="10" + /> + + 20 + + } + value="20" + />
    @@ -158,7 +171,7 @@ const TipModalContent_: FC<{ <>
    - Your balance is not enough to cover this tip. Please adjust the amount. + {t("tip_modal.low_balance")}
    )} @@ -178,7 +191,7 @@ const TipModalContent_: FC<{ variant={tipMutation.isSuccess ? "outline" : "primary"} > {tipMutation.isSuccess && } - Tip Now + {t("tip_modal.tip_now")}
    diff --git a/src/renderer/src/pages/(external)/(with-layout)/feed/[id]/index.tsx b/src/renderer/src/pages/(external)/(with-layout)/feed/[id]/index.tsx index 803d529c5..c44c83ad4 100644 --- a/src/renderer/src/pages/(external)/(with-layout)/feed/[id]/index.tsx +++ b/src/renderer/src/pages/(external)/(with-layout)/feed/[id]/index.tsx @@ -4,9 +4,10 @@ import { Button } from "@renderer/components/ui/button" import { ListItemHoverOverlay } from "@renderer/components/ui/list-item-hover-overlay" import { LoadingCircle } from "@renderer/components/ui/loading" import { views } from "@renderer/constants" +import { usePresentFeedFormModal } from "@renderer/hooks/biz/useFeedFormModal" import { useTitle } from "@renderer/hooks/common" import { FeedViewType } from "@renderer/lib/enum" -import { cn, pluralize } from "@renderer/lib/utils" +import { cn } from "@renderer/lib/utils" import { ArticleItem } from "@renderer/modules/entry-column/Items/article-item" import { NotificationItem } from "@renderer/modules/entry-column/Items/notification-item" import { PictureItem } from "@renderer/modules/entry-column/Items/picture-item" @@ -15,9 +16,10 @@ import { VideoItem } from "@renderer/modules/entry-column/Items/video-item" import type { UniversalItemProps } from "@renderer/modules/entry-column/types" import { useEntriesPreview } from "@renderer/queries/entries" import { useFeed } from "@renderer/queries/feed" -import { DEEPLINK_SCHEME } from "@shared/constants" import type { FC } from "react" +import { useTranslation } from "react-i18next" import { useParams, useSearchParams } from "react-router-dom" +import { toast } from "sonner" export function Component() { const { id } = useParams() @@ -57,7 +59,9 @@ export function Component() { Item = ArticleItem } } + const { t } = useTranslation("external") useTitle(feed.data?.feed.title) + const presentFeedFormModal = usePresentFeedFormModal() return ( <> {feed.isLoading ? ( @@ -78,17 +82,44 @@ export function Component() {
    {feed.data.feed.description}
    - {feed.data.subscriptionCount}{" "} - {pluralize("follow", feed.data.subscriptionCount)} with{" "} - {feed.data.readCount} {pluralize("read", feed.data.readCount)} on{" "} - {APP_NAME} + {t("feed.followsAndReads", { + subscriptionCount: feed.data.subscriptionCount, + subscriptionNoun: t("feed.follower", { count: feed.data.subscriptionCount }), + readCount: feed.data.readCount, + readNoun: t("feed.read", { count: feed.data.readCount }), + appName: APP_NAME, + })}
    - - + ) : ( + + )} + - +
    @@ -66,26 +70,40 @@ export function Component() { target="_blank" > -
    +
    {subscription.feeds?.title}
    -
    - {subscription.feeds?.description} -
    + {subscription.feeds?.description && ( +
    + {subscription.feeds.description} +
    + )}
    - - - - + + +
    ))}
    diff --git a/src/renderer/src/pages/(external)/invitation.tsx b/src/renderer/src/pages/(external)/invitation.tsx index dfd169f40..55ff9f0cd 100644 --- a/src/renderer/src/pages/(external)/invitation.tsx +++ b/src/renderer/src/pages/(external)/invitation.tsx @@ -16,6 +16,7 @@ import { getFetchErrorMessage } from "@renderer/lib/error-parser" import { useInvitationMutation } from "@renderer/queries/invitations" import { useEffect } from "react" import { useForm } from "react-hook-form" +import { useTranslation } from "react-i18next" import { useNavigate } from "react-router-dom" import { z } from "zod" @@ -24,6 +25,7 @@ const formSchema = z.object({ }) export function Component() { + const { t } = useTranslation("external") const navigate = useNavigate() const form = useForm>({ resolver: zodResolver(formSchema), @@ -55,7 +57,7 @@ export function Component() { name="code" render={({ field }) => ( - Invitation Code + {t("invitation.title")} @@ -71,21 +73,18 @@ export function Component() { disabled={!form.formState.isValid} isLoading={invitationMutation.isPending} > - Activate + {t("invitation.activate")}
    +

    {t("invitation.earlyAccessMessage")}

    +

    {t("invitation.getCodeMessage")}

    - 😰 Sorry, Follow is currently in early access and requires an invitation - code to use. -

    -

    You can get an invitation code in the following ways:

    -

    -

    1. Looking for any alpha test user to invite you.

    -

    2. Join our Discord server for occasional giveaways.

    -

    3. Follow our X account for occasional giveaways.

    +

    1. {t("invitation.codeOptions.1")}

    +

    2. {t("invitation.codeOptions.2")}

    +

    3. {t("invitation.codeOptions.3")}

    diff --git a/src/renderer/src/pages/(external)/login.tsx b/src/renderer/src/pages/(external)/login.tsx index e5f04fa4d..b1c4a4967 100644 --- a/src/renderer/src/pages/(external)/login.tsx +++ b/src/renderer/src/pages/(external)/login.tsx @@ -5,6 +5,7 @@ import { UserAvatar } from "@renderer/components/user-button" import { useSignOut } from "@renderer/hooks/biz/useSignOut" import { LOGIN_CALLBACK_URL, loginHandler } from "@renderer/lib/auth" import { useEffect, useState } from "react" +import { useTranslation } from "react-i18next" import { useLocation, useNavigate } from "react-router-dom" export function Component() { @@ -30,6 +31,8 @@ function Login() { } } + const { t } = useTranslation("external") + useEffect(() => { if (!window.electron && provider) { if (status === "authenticated") { @@ -49,17 +52,17 @@ function Login() { {!isAuthenticated ? (

    - Log in to + {t("login.logInTo")} {` ${APP_NAME}`}

    ) : (

    - Welcome to + {t("login.welcomeTo")} {` ${APP_NAME}`}

    )} {redirecting ? ( -
    Redirecting
    +
    {t("login.redirecting")}
    ) : (
    {isAuthenticated ? ( @@ -72,7 +75,7 @@ function Login() {
    @@ -92,7 +95,7 @@ function Login() { loginHandler("github") }} > - Continue with GitHub + {t("login.continueWithGitHub")} )} diff --git a/src/renderer/src/pages/(main)/(layer)/(subview)/discover/index.tsx b/src/renderer/src/pages/(main)/(layer)/(subview)/discover/index.tsx index 43b58efe4..d1fa1fa92 100644 --- a/src/renderer/src/pages/(main)/(layer)/(subview)/discover/index.tsx +++ b/src/renderer/src/pages/(main)/(layer)/(subview)/discover/index.tsx @@ -10,34 +10,38 @@ import { useSearchParams } from "react-router-dom" import { useSubViewTitle } from "../hooks" -const tabs = [ +const tabs: { + name: I18nKeys + value: string + disabled?: boolean +}[] = [ { - name: "Search", + name: "words.search", value: "search", }, { - name: "RSS", + name: "words.rss", value: "rss", }, { - name: "RSSHub", + name: "words.rsshub", value: "rsshub", }, { - name: "RSS3", + name: "words.rss3", value: "rss3", }, { - name: "User", + name: "words.user", value: "user", }, { - name: "Email", + name: "words.email", value: "email", disabled: true, }, { - name: "Import", + name: "words.import", value: "import", }, ] @@ -45,7 +49,7 @@ const tabs = [ export function Component() { const [search, setSearch] = useSearchParams() const { t } = useTranslation() - useSubViewTitle("Discover") + useSubViewTitle("words.discover") return ( <> @@ -62,7 +66,7 @@ export function Component() { {tabs.map((tab) => ( - {tab.name} + {t(tab.name)} ))} diff --git a/src/renderer/src/pages/(main)/(layer)/(subview)/hooks.ts b/src/renderer/src/pages/(main)/(layer)/(subview)/hooks.ts index 5b6637ee5..6723d915b 100644 --- a/src/renderer/src/pages/(main)/(layer)/(subview)/hooks.ts +++ b/src/renderer/src/pages/(main)/(layer)/(subview)/hooks.ts @@ -2,8 +2,8 @@ import { useTitle } from "@renderer/hooks/common" import { atom, useAtomValue } from "jotai" import { useHydrateAtoms } from "jotai/utils" -const titleAtom = atom(null) -export const useSubViewTitle = (title: string) => { +const titleAtom = atom(null) +export const useSubViewTitle = (title: I18nKeys) => { useTitle(title) useHydrateAtoms([[titleAtom, title]]) } diff --git a/src/renderer/src/pages/(main)/(layer)/(subview)/layout.tsx b/src/renderer/src/pages/(main)/(layer)/(subview)/layout.tsx index a9f3d44f2..2da06acc1 100644 --- a/src/renderer/src/pages/(main)/(layer)/(subview)/layout.tsx +++ b/src/renderer/src/pages/(main)/(layer)/(subview)/layout.tsx @@ -6,6 +6,7 @@ import { ScrollArea } from "@renderer/components/ui/scroll-area" import { springScrollTo } from "@renderer/lib/scroller" import { cn } from "@renderer/lib/utils" import { useEffect, useRef, useState } from "react" +import { useTranslation } from "react-i18next" import { Outlet, useNavigate } from "react-router-dom" import { useSubViewTitleValue } from "./hooks" @@ -33,6 +34,7 @@ export function Component() { } }, [scrollRef, title]) + const { t } = useTranslation() return (
    - Back + {t("words.back", { ns: "common" })}
    -
    {title}
    +
    + {title && t(title)} +
    diff --git a/src/renderer/src/pages/(main)/(layer)/feeds/[feedId]/layout.tsx b/src/renderer/src/pages/(main)/(layer)/feeds/[feedId]/layout.tsx index 4f1f289d6..d54c90b5a 100644 --- a/src/renderer/src/pages/(main)/(layer)/feeds/[feedId]/layout.tsx +++ b/src/renderer/src/pages/(main)/(layer)/feeds/[feedId]/layout.tsx @@ -14,7 +14,7 @@ export function Component() { // Memo this initial value to avoid re-render const entryColWidth = useMemo(() => getUISettings().entryColWidth, []) - const { feedId, view } = useRouteParms() + const { view } = useRouteParms() const inWideMode = view ? views[view].wideMode : false const { position, separatorProps, isDragging, separatorCursor } = useResizable({ axis: "x", @@ -36,7 +36,7 @@ export function Component() { width: position, }} > - +
    {!inWideMode && ( diff --git a/src/renderer/src/pages/(main)/layout.tsx b/src/renderer/src/pages/(main)/layout.tsx index 869891aad..06b477d0d 100644 --- a/src/renderer/src/pages/(main)/layout.tsx +++ b/src/renderer/src/pages/(main)/layout.tsx @@ -29,33 +29,38 @@ import { throttle } from "lodash-es" import type { PropsWithChildren } from "react" import React, { useEffect, useRef, useState } from "react" import { useHotkeys } from "react-hotkeys-hook" +import { useTranslation } from "react-i18next" import { useResizable } from "react-resizable-layout" import { Outlet } from "react-router-dom" -const FooterInfo = () => ( -
    - {APP_VERSION?.[0] === "0" && ( -
    - Early Access {GIT_COMMIT_SHA ? `(${GIT_COMMIT_SHA.slice(0, 7).toUpperCase()})` : ""} -
    - )} +const FooterInfo = () => { + const { t } = useTranslation() + return ( +
    + {APP_VERSION?.[0] === "0" && ( +
    + {t("early_access")}{" "} + {GIT_COMMIT_SHA ? `(${GIT_COMMIT_SHA.slice(0, 7).toUpperCase()})` : ""} +
    + )} - {!ELECTRON && ( -
    - -
    - )} -
    -) + {!ELECTRON && ( +
    + +
    + )} +
    + ) +} const errorTypes = [ ErrorComponentType.Page, diff --git a/src/renderer/src/pages/settings/(settings)/about.tsx b/src/renderer/src/pages/settings/(settings)/about.tsx index cac930c73..6ab5a5feb 100644 --- a/src/renderer/src/pages/settings/(settings)/about.tsx +++ b/src/renderer/src/pages/settings/(settings)/about.tsx @@ -3,7 +3,7 @@ import { defineSettingPageData } from "@renderer/modules/settings/utils" export const loader = defineSettingPageData({ iconName: "i-mgc-information-cute-re", - name: "settings.titles.about", + name: "titles.about", priority: 9999, }) export const Component = () => diff --git a/src/renderer/src/pages/settings/(settings)/actions.tsx b/src/renderer/src/pages/settings/(settings)/actions.tsx index 1966897d4..d4e50d588 100644 --- a/src/renderer/src/pages/settings/(settings)/actions.tsx +++ b/src/renderer/src/pages/settings/(settings)/actions.tsx @@ -14,15 +14,15 @@ import { defineSettingPageData } from "@renderer/modules/settings/utils" import { Queries } from "@renderer/queries" import { useMutation } from "@tanstack/react-query" import { useEffect, useState } from "react" +import { useTranslation } from "react-i18next" import { toast } from "sonner" const iconName = "i-mgc-magic-2-cute-re" - const priority = 1020 export const loader = defineSettingPageData({ iconName, - name: "settings.titles.actions", + name: "titles.actions", priority, }) @@ -49,6 +49,7 @@ type ActionsInput = { }[] export function Component() { + const { t } = useTranslation("settings") const actions = useAuthQuery(Queries.action.getAll()) const [actionsData, setActionsData] = useState([]) @@ -75,7 +76,7 @@ export function Component() { }, onSuccess: () => { Queries.action.getAll().invalidate() - toast("🎉 Actions saved.") + toast(t("actions.saveSuccess")) }, onError: (error) => { toastFetchError(error) @@ -106,7 +107,7 @@ export function Component() { setActionsData([ ...actionsData, { - name: `Action ${actionsData.length + 1}`, + name: t("actions.actionName", { number: actionsData.length + 1 }), condition: [], result: {}, }, @@ -114,7 +115,7 @@ export function Component() { }} > - New Rule + {t("actions.newRule")}
    diff --git a/src/renderer/src/pages/settings/(settings)/appearance.tsx b/src/renderer/src/pages/settings/(settings)/appearance.tsx index fad4c4c5d..51fdccda3 100644 --- a/src/renderer/src/pages/settings/(settings)/appearance.tsx +++ b/src/renderer/src/pages/settings/(settings)/appearance.tsx @@ -1,16 +1,21 @@ import { SettingAppearance } from "@renderer/modules/settings/tabs/apperance" +import { SettingsTitle } from "@renderer/modules/settings/title" import { defineSettingPageData } from "@renderer/modules/settings/utils" const iconName = "i-mgc-palette-cute-re" - const priority = 1010 export const loader = defineSettingPageData({ iconName, - name: "settings.titles.appearance", + name: "titles.appearance", priority, }) export function Component() { - return + return ( + <> + + + + ) } diff --git a/src/renderer/src/pages/settings/(settings)/feeds.tsx b/src/renderer/src/pages/settings/(settings)/feeds.tsx new file mode 100644 index 000000000..a7f3e2517 --- /dev/null +++ b/src/renderer/src/pages/settings/(settings)/feeds.tsx @@ -0,0 +1,21 @@ +import { SettingFeeds } from "@renderer/modules/settings/tabs/feeds" +import { SettingsTitle } from "@renderer/modules/settings/title" +import { defineSettingPageData } from "@renderer/modules/settings/utils" + +const iconName = "i-mgc-certificate-cute-re" +const priority = 1053 + +export const loader = defineSettingPageData({ + iconName, + name: "titles.feeds", + priority, +}) + +export function Component() { + return ( + <> + + + + ) +} diff --git a/src/renderer/src/pages/settings/(settings)/general.tsx b/src/renderer/src/pages/settings/(settings)/general.tsx index dd5c208ec..b7d839de6 100644 --- a/src/renderer/src/pages/settings/(settings)/general.tsx +++ b/src/renderer/src/pages/settings/(settings)/general.tsx @@ -2,12 +2,11 @@ import { SettingGeneral } from "@renderer/modules/settings/tabs/general" import { defineSettingPageData } from "@renderer/modules/settings/utils" const iconName = "i-mgc-settings-7-cute-re" - const priority = 1000 export const loader = defineSettingPageData({ iconName, - name: "settings.titles.general", + name: "titles.general", priority, }) diff --git a/src/renderer/src/pages/settings/(settings)/integration.tsx b/src/renderer/src/pages/settings/(settings)/integration.tsx index 9a67c8b25..da51e866a 100644 --- a/src/renderer/src/pages/settings/(settings)/integration.tsx +++ b/src/renderer/src/pages/settings/(settings)/integration.tsx @@ -1,16 +1,21 @@ import { SettingIntegration } from "@renderer/modules/settings/tabs/integration" +import { SettingsTitle } from "@renderer/modules/settings/title" import { defineSettingPageData } from "@renderer/modules/settings/utils" const iconName = "i-mgc-department-cute-re" - const priority = 1025 export const loader = defineSettingPageData({ iconName, - name: "settings.titles.integration", + name: "titles.integration", priority, }) export function Component() { - return + return ( + <> + + + + ) } diff --git a/src/renderer/src/pages/settings/(settings)/invitations.tsx b/src/renderer/src/pages/settings/(settings)/invitations.tsx index c2a8d82b6..2f80a7aa8 100644 --- a/src/renderer/src/pages/settings/(settings)/invitations.tsx +++ b/src/renderer/src/pages/settings/(settings)/invitations.tsx @@ -3,12 +3,11 @@ import { SettingsTitle } from "@renderer/modules/settings/title" import { defineSettingPageData } from "@renderer/modules/settings/utils" const iconName = "i-mgc-heart-hand-cute-re" - const priority = 1055 export const loader = defineSettingPageData({ iconName, - name: "settings.titles.invitations", + name: "titles.invitations", priority, }) diff --git a/src/renderer/src/pages/settings/(settings)/profile.tsx b/src/renderer/src/pages/settings/(settings)/profile.tsx index e181629f1..54edd12e3 100644 --- a/src/renderer/src/pages/settings/(settings)/profile.tsx +++ b/src/renderer/src/pages/settings/(settings)/profile.tsx @@ -3,11 +3,10 @@ import { SettingsTitle } from "@renderer/modules/settings/title" import { defineSettingPageData } from "@renderer/modules/settings/utils" const iconName = "i-mgc-user-setting-cute-re" - const priority = 1030 export const loader = defineSettingPageData({ iconName, - name: "settings.titles.profile", + name: "titles.profile", priority, }) diff --git a/src/renderer/src/pages/settings/(settings)/shortcuts.tsx b/src/renderer/src/pages/settings/(settings)/shortcuts.tsx index d10bf27fb..1477ae5e7 100644 --- a/src/renderer/src/pages/settings/(settings)/shortcuts.tsx +++ b/src/renderer/src/pages/settings/(settings)/shortcuts.tsx @@ -3,17 +3,18 @@ import { shortcuts } from "@renderer/constants/shortcuts" import { cn } from "@renderer/lib/utils" import { SettingsTitle } from "@renderer/modules/settings/title" import { defineSettingPageData } from "@renderer/modules/settings/utils" +import { useTranslation } from "react-i18next" const iconName = "i-mgc-hotkey-cute-re" - const priority = 1040 export const loader = defineSettingPageData({ iconName, - name: "settings.titles.shortcuts", + name: "titles.shortcuts", priority, }) export function Component() { + const { t } = useTranslation("shortcuts") return ( <> @@ -27,11 +28,11 @@ export function Component() {
    -
    {shortcuts[type][action].name}
    +
    {t(shortcuts[type][action].name)}
    {`${shortcuts[type][action].key}${shortcuts[type][action].extra ? `, ${shortcuts[type][action].extra}` : ""}`} diff --git a/src/renderer/src/pages/settings/(settings)/wallet.tsx b/src/renderer/src/pages/settings/(settings)/wallet.tsx index 26d10a299..fa79afe74 100644 --- a/src/renderer/src/pages/settings/(settings)/wallet.tsx +++ b/src/renderer/src/pages/settings/(settings)/wallet.tsx @@ -2,12 +2,11 @@ import { SettingWallet } from "@renderer/modules/settings/tabs/wallet" import { defineSettingPageData } from "@renderer/modules/settings/utils" const iconName = `i-mgc-power-outline` - const priority = 1050 export const loader = defineSettingPageData({ iconName, - name: "settings.titles.power", + name: "titles.power", priority, headerIcon: `i-mgc-power text-accent`, }) diff --git a/src/renderer/src/providers/i18n-provider.tsx b/src/renderer/src/providers/i18n-provider.tsx index d02b24d16..c833072d9 100644 --- a/src/renderer/src/providers/i18n-provider.tsx +++ b/src/renderer/src/providers/i18n-provider.tsx @@ -1,84 +1,16 @@ -import { dayjsLocaleImportMap } from "@renderer/@types/constants" -import { defaultResources } from "@renderer/@types/default-resource" -import { getGeneralSettings } from "@renderer/atoms/settings/general" -import { currentSupportedLanguages, defaultNS, i18nAtom } from "@renderer/i18n" -import { nextFrame } from "@renderer/lib/dom" +import { currentSupportedLanguages } from "@renderer/@types/constants" +import { getGeneralSettings, setGeneralSetting } from "@renderer/atoms/settings/general" +import { IS_MANUAL_CHANGE_LANGUAGE_KEY } from "@renderer/constants" +import { i18nAtom } from "@renderer/i18n" import { EventBus } from "@renderer/lib/event-bus" -import { jotaiStore } from "@renderer/lib/jotai" -import dayjs from "dayjs" +import { loadLanguageAndApply } from "@renderer/lib/load-language" import i18next from "i18next" +import LanguageDetector from "i18next-browser-languagedetector" import { useAtom } from "jotai" import type { FC, PropsWithChildren } from "react" import { useEffect, useLayoutEffect, useRef } from "react" import { I18nextProvider } from "react-i18next" -import { toast } from "sonner" -const loadingLangLock = new Set() - -const langChangedHandler = async (lang: string) => { - const dayjsImport = dayjsLocaleImportMap[lang] - - if (dayjsImport) { - const [locale, loader] = dayjsImport - loader().then(() => { - dayjs.locale(locale) - }) - } - - const { t } = jotaiStore.get(i18nAtom) - if (loadingLangLock.has(lang)) return - const isSupport = currentSupportedLanguages.includes(lang) - if (!isSupport) { - return - } - const loaded = i18next.getResourceBundle(lang, defaultNS) - - if (loaded) { - return - } - - loadingLangLock.add(lang) - - const nsGlobbyMap = import.meta.glob("@locales/*/*.json") - - // const rootGlobbyMap = import.meta.glob("@locales/*.json") - // const rootResources = await rootGlobbyMap[`../../locales/${lang}.json`]() - // .then((m: any) => m.default) - // .catch(() => { - // toast.error(`${t("common:tips.load-lng-error")}: ${lang}`) - // }) - // i18next.addResourceBundle(lang, defaultNS, rootResources, true, true) - - const namespaces = Object.keys(defaultResources.en) - - const res = await Promise.allSettled( - namespaces.map(async (ns) => { - // if (ns === defaultNS) return - - const loader = nsGlobbyMap[`../../locales/${ns}/${lang}.json`] - - if (!loader) return - const nsResources = await loader().then((m: any) => m.default) - - i18next.addResourceBundle(lang, ns, nsResources, true, true) - }), - ) - - for (const r of res) { - if (r.status === "rejected") { - toast.error(`${t("common:tips.load-lng-error")}: ${lang}`) - loadingLangLock.delete(lang) - - return - } - } - - await i18next.reloadResources() - await i18next.changeLanguage(lang) - loadingLangLock.delete(lang) -} - -langChangedHandler(getGeneralSettings().language) export const I18nProvider: FC = ({ children }) => { const [currentI18NInstance, update] = useAtom(i18nAtom) @@ -87,25 +19,41 @@ export const I18nProvider: FC = ({ children }) => { useEffect( () => EventBus.subscribe("I18N_UPDATE", () => { - nextFrame(() => { - update(i18next.cloneInstance()) + const lang = getGeneralSettings().language + const nextI18n = i18next.cloneInstance({ + lng: lang, }) + update(nextI18n) }), [update], ) const callOnce = useRef(false) + const detectOnce = useRef(false) useLayoutEffect(() => { const i18next = currentI18NInstance - i18next.on("languageChanged", langChangedHandler) + i18next.on("languageChanged", loadLanguageAndApply) return () => { i18next.off("languageChanged") } }, [currentI18NInstance]) + useLayoutEffect(() => { + if (localStorage.getItem(IS_MANUAL_CHANGE_LANGUAGE_KEY)) return + if (detectOnce.current) return + const languageDetector = new LanguageDetector() + const userLang = languageDetector.detect() + if (!userLang) return + const firstUserLang = Array.isArray(userLang) ? userLang[0] : userLang + if (currentSupportedLanguages.includes(firstUserLang)) { + setGeneralSetting("language", firstUserLang) + } + detectOnce.current = true + }, []) + useLayoutEffect(() => { if (callOnce.current) return const { language } = getGeneralSettings() diff --git a/src/renderer/src/queries/feed.ts b/src/renderer/src/queries/feed.ts index 358eba1fd..aa34ae88d 100644 --- a/src/renderer/src/queries/feed.ts +++ b/src/renderer/src/queries/feed.ts @@ -32,6 +32,11 @@ export const feed = { return res }), ), + claimedList: () => + defineQuery(["feed", "claimedList"], async () => { + const res = await apiClient.feeds.claim.list.$get() + return res.data + }), } export const useFeed = ({ id, url }: FeedQueryParams) => diff --git a/src/renderer/src/queries/invitations.ts b/src/renderer/src/queries/invitations.ts index e468a8079..efe381dda 100644 --- a/src/renderer/src/queries/invitations.ts +++ b/src/renderer/src/queries/invitations.ts @@ -19,4 +19,10 @@ export const invitations = { const res = await apiClient.invitations.$get() return res.data }), + + limitation: () => + defineQuery(["invitations", "limitation"], async () => { + const res = await apiClient.invitations.limitation.$get() + return res.data + }), } diff --git a/src/renderer/src/queries/subscriptions.ts b/src/renderer/src/queries/subscriptions.ts index 6218d6d9d..81d708b1f 100644 --- a/src/renderer/src/queries/subscriptions.ts +++ b/src/renderer/src/queries/subscriptions.ts @@ -12,7 +12,7 @@ export const subscription = { categories: (view?: number) => defineQuery(["subscription-categories", view], async () => { const res = await apiClient.categories.$get({ - query: { view: String(view) }, + query: { view: view ? String(view) : undefined }, }) return res.data diff --git a/src/renderer/src/store/feed/hooks.ts b/src/renderer/src/store/feed/hooks.ts index 2494ba583..2ce07a868 100644 --- a/src/renderer/src/store/feed/hooks.ts +++ b/src/renderer/src/store/feed/hooks.ts @@ -7,6 +7,7 @@ import { import { useRouteParms } from "@renderer/hooks/biz/useRouteParams" import type { FeedModel } from "@renderer/models" import { useMemo } from "react" +import { useTranslation } from "react-i18next" import { useShallow } from "zustand/react/shallow" import { getSubscriptionByFeedId } from "../subscription" @@ -36,6 +37,8 @@ export const useFeedByIdSelector = ( ) export const useFeedHeaderTitle = () => { + const { t } = useTranslation() + const { feedId: currentFeedId, view } = useRouteParms() const feedTitle = useFeedByIdSelector(currentFeedId, (feed) => feed.title) @@ -46,10 +49,11 @@ export const useFeedHeaderTitle = () => { switch (currentFeedId) { case ROUTE_FEED_PENDING: { - return views[view].name + // TODO: fix this type error + return t(views[view].name) } case FEED_COLLECTION_LIST: { - return "Starred" + return t("words.starred") } default: { if (currentFeedId?.startsWith(ROUTE_FEED_IN_FOLDER)) { diff --git a/src/renderer/src/store/feed/store.ts b/src/renderer/src/store/feed/store.ts index 22bcf13d5..c31cd70db 100644 --- a/src/renderer/src/store/feed/store.ts +++ b/src/renderer/src/store/feed/store.ts @@ -1,12 +1,13 @@ import { whoami } from "@renderer/atoms/user" import { runTransactionInScope } from "@renderer/database" import { apiClient } from "@renderer/lib/api-fetch" -import type { FeedModel } from "@renderer/models" +import type { FeedModel, UserModel } from "@renderer/models" import { FeedService } from "@renderer/services" import { produce } from "immer" import { nanoid } from "nanoid" import { getSubscriptionByFeedId } from "../subscription" +import { userActions } from "../user" import { createZustandStore } from "../utils/helper" import type { FeedQueryParams, FeedState } from "./types" @@ -32,10 +33,20 @@ class FeedActions { feed.errorAt = null } if (feed.id) { - // Not all API return the owner, so merging is needed here. - if (state.feeds[feed.id]?.owner && !feed.owner) { - feed.owner = state.feeds[feed.id]?.owner + if (feed.owner) { + userActions.upsert(feed.owner as UserModel) } + if (feed.tipUsers) { + userActions.upsert(feed.tipUsers) + } + + // Not all API return these fields, so merging is needed here. + const optionalFields = ["owner", "tipUsers"] as const + optionalFields.forEach((field) => { + if (state.feeds[feed.id!]?.[field] && !(field in feed)) { + ;(feed as any)[field] = state.feeds[feed.id!]?.[field] + } + }) state.feeds[feed.id] = feed } else { diff --git a/src/renderer/src/store/user/store.ts b/src/renderer/src/store/user/store.ts index abde637ca..6bcbd5ae8 100644 --- a/src/renderer/src/store/user/store.ts +++ b/src/renderer/src/store/user/store.ts @@ -17,7 +17,9 @@ class UserActions { set((state) => produce(state, (state) => { for (const u of user) { - state.users[u.id] = u + if (u?.id) { + state.users[u.id] = u + } } }), ) diff --git a/src/shared/src/interface/settings.ts b/src/shared/src/interface/settings.ts index fff15fb4d..567a12ddf 100644 --- a/src/shared/src/interface/settings.ts +++ b/src/shared/src/interface/settings.ts @@ -30,6 +30,7 @@ export interface UISettings { // view pictureViewMasonry: boolean + pictureViewFilterNoImage: boolean // tts voice: string diff --git a/tsconfig.node.json b/tsconfig.node.json index 30a7f1684..35ccca4e3 100644 --- a/tsconfig.node.json +++ b/tsconfig.node.json @@ -9,7 +9,7 @@ "src/env.ts", "./src/hono.ts", "src/shared/src/global.d.ts", - "configs/vite.render.config.ts", + "configs/*", "./scripts/**/*" ], "compilerOptions": { @@ -17,6 +17,8 @@ "types": ["electron-vite/node"], "moduleResolution": "Bundler", "noImplicitReturns": false, + "noUnusedLocals": false, + "noUnusedParameters": false, "baseUrl": ".", "paths": { "@shared/*": ["src/shared/src/*"], diff --git a/vite.config.ts b/vite.config.ts index 4186f4194..cd6ace689 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -79,7 +79,8 @@ export default ({ mode }) => { __debug_proxy: resolve(ROOT, "/__debug_proxy.html"), }, output: { - experimentalMinChunkSize: 500_000, + // 10KB + experimentalMinChunkSize: 10_000, }, }, }, @@ -97,7 +98,6 @@ export default ({ mode }) => { }), htmlPlugin(typedEnv), mkcert(), - devPrint(), process.env.ANALYZER && analyzer(), diff --git a/wiki/contribute-i18n.md b/wiki/contribute-i18n.md new file mode 100644 index 000000000..1ef07c4a9 --- /dev/null +++ b/wiki/contribute-i18n.md @@ -0,0 +1,58 @@ +# Contributing to Internationalization (i18n) + +We welcome contributions to our internationalization efforts! This guide will help you get started with adding or updating translations for our project. + +## Pay Attention + +If it's a new language, please check for [existing issues](https://github.com/RSSNext/Follow/issues?q=sort%3Aupdated-desc+is%3Aissue+is%3Aopen+label%3Ai18n) before starting. If none exist, submit a new issue to avoid duplicating efforts. + +## Adding a New Language + +To add support for a new language: + +1. Run the following command in the project root: + + ```bash + npm run generator:i18n-template + ``` + +2. Select the desired locale from the list. + +3. The script will: + - Create new resource files for the selected locale + - Update the necessary configuration files + +4. Open your editor and navigate to the `locales/` directory. You'll find new JSON files for the selected locale. + +5. Translate the keys in these JSON files to the target language. + +## Updating Existing Translations + +To update or improve existing translations: + +1. Navigate to the `locales/` directory. +2. Find the JSON files for the language you want to update. +3. Edit the translations as needed. + +## Translation Guidelines + +- Maintain the same structure and keys as the original English version. +- Ensure translations are culturally appropriate and context-aware. +- Use gender-neutral language where possible. +- Keep special placeholders (e.g., `{{variable}}`) intact. + +## Testing Your Translations + +After making changes: + +1. Run the application locally. +2. Switch to the language you've edited. +3. Navigate through the app to verify your translations in context. + +## Submitting Your Contribution + +1. Create a new branch for your changes. +2. Commit your changes with a clear, descriptive message. +3. Open a pull request with details about the languages and sections you've updated. + +Thank you for helping make our project more accessible to users worldwide!
    @@ -91,26 +96,17 @@ export const ProfileButton: FC = memo((props) => { }} icon={} > - Profile + {t("user_button.profile")} - {/* - - - - */} - { - // Here we need to delay one frame, so it's two raf, - // in order to have `point-event: none` recorded by RadixOverlay after modal is invoked in a certain scenario, - // and the page freezes after modal is turned off. nextFrame(() => settingModalPresent("wallet")) }} icon={} > - Power + {t("user_button.power")} { @@ -118,7 +114,7 @@ export const ProfileButton: FC = memo((props) => { }} icon={} > - Preferences + {t("user_button.preferences")} {!window.electron && ( @@ -129,13 +125,13 @@ export const ProfileButton: FC = memo((props) => { }} icon={} > - Download Desktop app + {t("user_button.download_desktop_app")} )} }> - Log out + {t("user_button.log_out")} @@ -145,17 +141,22 @@ ProfileButton.displayName = "ProfileButton" export function UserAvatar({ className, + avatarClassName, hideName, userId, + enableModal, ...props }: { className?: string + avatarClassName?: string hideName?: boolean userId?: string + enableModal?: boolean } & LoginProps) { const { session, status } = useSession({ enabled: !userId, }) + const presentUserProfile = usePresentUserProfileModal("drawer") const profile = useAuthQuery( defineQuery(["profiles", userId], async () => { @@ -179,8 +180,14 @@ export function UserAvatar({ "flex h-20 items-center justify-center gap-2 px-5 py-2 font-medium text-zinc-600 dark:text-zinc-300", className, )} + onClick={enableModal ? () => presentUserProfile(userId) : undefined} > - + ( - - {views.map((view, index) => ( - -
    - {view.icon} - {view.name} -
    -
    - ))} -
    -) +export const ViewSelectContent = () => { + const { t } = useTranslation() + + return ( + + {views.map((view, index) => ( + +
    + {view.icon} + {t(view.name)} +
    +
    + ))} +
    + ) +} diff --git a/src/renderer/src/constants/app.tsx b/src/renderer/src/constants/app.tsx index 341eee264..188a3b946 100644 --- a/src/renderer/src/constants/app.tsx +++ b/src/renderer/src/constants/app.tsx @@ -12,3 +12,6 @@ export const ROUTE_FEED_IN_FOLDER = "folder-" export const DAILY_CLAIM_AMOUNT = "20" export const INVITATION_PRICE = "100" + +// NS key +export const IS_MANUAL_CHANGE_LANGUAGE_KEY = getStorageNS("isManualChangeLanguage") diff --git a/src/renderer/src/constants/copy.ts b/src/renderer/src/constants/copy.ts index 90d4c621a..460594473 100644 --- a/src/renderer/src/constants/copy.ts +++ b/src/renderer/src/constants/copy.ts @@ -1,4 +1,5 @@ -const OpenInBrowser = (_t?: any) => (window.electron ? "Open in browser" : "Open in new tab") +const OpenInBrowser = (_t?: any) => + window.electron ? "keys.entry.openInBrowser" : "keys.entry.openInNewTab" export const COPY_MAP = { OpenInBrowser, diff --git a/src/renderer/src/constants/shortcuts.ts b/src/renderer/src/constants/shortcuts.ts index 3edc3affd..8df4fee4d 100644 --- a/src/renderer/src/constants/shortcuts.ts +++ b/src/renderer/src/constants/shortcuts.ts @@ -3,57 +3,57 @@ import { COPY_MAP } from "@renderer/constants" export const shortcuts = { feeds: { add: { - name: "Add Subscription", + name: "keys.feeds.add", key: "Meta+T", }, switchToView: { - name: "Switch to View", + name: "keys.feeds.switchToView", key: "1, 2, 3, 4, 5, 6", }, switchBetweenViews: { - name: "Switch Between Views", + name: "keys.feeds.switchBetweenViews", key: "Tab, Left, Right", }, }, layout: { toggleSidebar: { - name: "Show/Hide Feed Sidebar", + name: "keys.layout.toggleSidebar", key: "Meta+B", }, showShortcuts: { - name: "Show Shortcuts", + name: "keys.layout.showShortcuts", key: "H", }, }, entries: { refetch: { - name: "Refetch", + name: "keys.entries.refetch", key: "R", }, previous: { - name: "Previous Entry", + name: "keys.entries.previous", key: "K, Up", }, next: { - name: "Next Entry", + name: "keys.entries.next", key: "J, Down", }, markAllAsRead: { - name: "Mark All as Read", + name: "keys.entries.markAllAsRead", key: "Shift+Meta+A", }, toggleUnreadOnly: { - name: "Toggle Unread Only", + name: "keys.entries.toggleUnreadOnly", key: "U", }, }, entry: { toggleRead: { - name: "Toggle Read", + name: "keys.entry.toggleRead", key: "M", }, toggleStarred: { - name: "Toggle Starred", + name: "keys.entry.toggleStarred", key: "S", }, openInBrowser: { @@ -62,34 +62,33 @@ export const shortcuts = { extra: "Double Click", }, tts: { - name: "Play TTS", + name: "keys.entry.tts", key: "Shift+Meta+V", }, copyLink: { - name: "Copy Link", + name: "keys.entry.copyLink", key: "Shift+Meta+C", }, tip: { - name: "Tip Power", + name: "keys.entry.tip", key: "Shift+Meta+T", }, share: { - name: "Share", + name: "keys.entry.share", key: "Meta+Alt+S", }, scrollUp: { - name: "Scroll Up", + name: "keys.entry.scrollUp", key: "PageUp", }, scrollDown: { - name: "Scroll Down", + name: "keys.entry.scrollDown", key: "PageDown", }, }, - audio: { "play/pause": { - name: "Play/Pause (When the audio player is open)", + name: "keys.audio.playPause", key: "Space", }, }, diff --git a/src/renderer/src/constants/tabs.tsx b/src/renderer/src/constants/tabs.tsx index a280867a1..5c0c4fc8b 100644 --- a/src/renderer/src/constants/tabs.tsx +++ b/src/renderer/src/constants/tabs.tsx @@ -1,8 +1,19 @@ import { FeedViewType } from "@renderer/lib/enum" +import type React from "react" -export const views = [ +interface ViewDefinition { + name: I18nKeys + icon: React.JSX.Element + className: string + peerClassName: string + translation: string + view: FeedViewType + wideMode?: boolean + gridMode?: boolean +} +export const views: ViewDefinition[] = [ { - name: "Articles", + name: "feed_view_type.articles", icon: , className: "text-accent", peerClassName: "peer-checked:text-accent", @@ -10,7 +21,7 @@ export const views = [ view: FeedViewType.Articles, }, { - name: "Social Media", + name: "feed_view_type.social_media", icon: , className: "text-sky-600 dark:text-sky-500", peerClassName: "peer-checked:text-sky-600 peer-checked:dark:text-sky-500", @@ -19,7 +30,7 @@ export const views = [ view: FeedViewType.SocialMedia, }, { - name: "Pictures", + name: "feed_view_type.pictures", icon: , className: "text-green-600 dark:text-green-500", peerClassName: "peer-checked:text-green-600 peer-checked:dark:text-green-500", @@ -29,7 +40,7 @@ export const views = [ view: FeedViewType.Pictures, }, { - name: "Videos", + name: "feed_view_type.videos", icon: , className: "text-red-600 dark:text-red-500", peerClassName: "peer-checked:text-red-600 peer-checked:dark:text-red-500", @@ -39,7 +50,7 @@ export const views = [ view: FeedViewType.Videos, }, { - name: "Audios", + name: "feed_view_type.audios", icon: , className: "text-purple-600 dark:text-purple-500", peerClassName: "peer-checked:text-purple-600 peer-checked:dark:text-purple-500", @@ -47,7 +58,7 @@ export const views = [ view: FeedViewType.Audios, }, { - name: "Notifications", + name: "feed_view_type.notifications", icon: , className: "text-yellow-600 dark:text-yellow-500", peerClassName: "peer-checked:text-yellow-600 peer-checked:dark:text-yellow-500", diff --git a/src/renderer/src/env.d.ts b/src/renderer/src/env.d.ts index 6db251e83..06142aad0 100644 --- a/src/renderer/src/env.d.ts +++ b/src/renderer/src/env.d.ts @@ -2,3 +2,4 @@ declare const APP_VERSION: string declare const APP_NAME: string declare const RELEASE_CHANNEL: string +declare const I18N_COMPLETENESS_MAP: Record diff --git a/src/renderer/src/global.d.ts b/src/renderer/src/global.d.ts index ac3a35caf..5f7b127b1 100644 --- a/src/renderer/src/global.d.ts +++ b/src/renderer/src/global.d.ts @@ -1,6 +1,9 @@ -import type { t } from "i18next" import type { FC, PropsWithChildren } from "react" - +import type { useTranslation } from "react-i18next" +// eslint-disable-next-line react-hooks/rules-of-hooks, unused-imports/no-unused-vars +const { t } = useTranslation() +// eslint-disable-next-line react-hooks/rules-of-hooks, unused-imports/no-unused-vars +const { t: settingsT } = useTranslation("settings") declare global { export type Component

    = FC @@ -28,9 +31,13 @@ declare global { WINDOW_UNDER_BLUR: boolean } + /** + * This function is a macro, will replace in the build stage. + */ export function tw(strings: TemplateStringsArray, ...values: any[]): string export type I18nKeys = OmitStringType[0]> + export type I18nKeysForSettings = OmitStringType[0]> type IsLiteralString = T extends string ? (string extends T ? never : T) : never diff --git a/src/renderer/src/hooks/biz/useEntryActions.tsx b/src/renderer/src/hooks/biz/useEntryActions.tsx index d8b4e269a..f6f8485d4 100644 --- a/src/renderer/src/hooks/biz/useEntryActions.tsx +++ b/src/renderer/src/hooks/biz/useEntryActions.tsx @@ -11,7 +11,6 @@ import { SimpleIconsInstapaper, SimpleIconsReadwise, } from "@renderer/components/ui/platform-icon/icons" -import { COPY_MAP } from "@renderer/constants" import { shortcuts } from "@renderer/constants/shortcuts" import { tipcClient } from "@renderer/lib/client" import { nextFrame } from "@renderer/lib/dom" @@ -26,6 +25,7 @@ import type { FetchError } from "ofetch" import { ofetch } from "ofetch" import type { ReactNode } from "react" import { useCallback, useMemo } from "react" +import { useTranslation } from "react-i18next" import { toast } from "sonner" export const useEntryReadabilityToggle = ({ id, url }: { id: string; url: string }) => @@ -63,27 +63,31 @@ export const useEntryReadabilityToggle = ({ id, url }: { id: string; url: string }) } }, [id, url]) -export const useCollect = (entry: Nullable) => - useMutation({ +export const useCollect = (entry: Nullable) => { + const { t } = useTranslation() + return useMutation({ mutationFn: async () => entry && entryActions.markStar(entry.entries.id, true), onSuccess: () => { - toast.success("Starred.", { + toast.success(t("entry_actions.starred"), { duration: 1000, }) }, }) +} -export const useUnCollect = (entry: Nullable) => - useMutation({ +export const useUnCollect = (entry: Nullable) => { + const { t } = useTranslation() + return useMutation({ mutationFn: async () => entry && entryActions.markStar(entry.entries.id, false), onSuccess: () => { - toast.success("Unstarred.", { + toast.success(t("entry_actions.unstarred"), { duration: 1000, }) }, }) +} export const useRead = () => useMutation({ @@ -104,6 +108,8 @@ export const useEntryActions = ({ entry?: FlatEntryModel | null type?: "toolbar" | "entryList" }) => { + const { t } = useTranslation() + const checkEagle = useQuery({ queryKey: ["check-eagle"], enabled: !!entry?.entries.url && view !== undefined, @@ -161,7 +167,7 @@ export const useEntryActions = ({ onClick: () => void }[] = [ { - name: "Save media to Eagle", + name: t("entry_actions.save_media_to_eagle"), icon: , key: "saveToEagle", hide: @@ -177,18 +183,18 @@ export const useEntryActions = ({ mediaUrls: populatedEntry.entries.media.map((m) => m.url), }) if (response?.status === "success") { - toast.success("Saved to Eagle.", { + toast.success(t("entry_actions.saved_to_eagle"), { duration: 3000, }) } else { - toast.error("Failed to save to Eagle.", { + toast.error(t("entry_actions.failed_to_save_to_eagle"), { duration: 3000, }) } }, }, { - name: "Save to Readwise", + name: t("entry_actions.save_to_readwise"), icon: , key: "saveToReadwise", hide: !enableReadwise || !readwiseToken || !populatedEntry.entries.url, @@ -212,7 +218,7 @@ export const useEntryActions = ({ }) toast.success( <> - Saved to Readwise,{" "} + {t("entry_actions.saved_to_readwise")},{" "} view @@ -222,14 +228,14 @@ export const useEntryActions = ({ }, ) } catch { - toast.error("Failed to save to Readwise.", { + toast.error(t("entry_actions.failed_to_save_to_readwise"), { duration: 3000, }) } }, }, { - name: "Save to Instapaper", + name: t("entry_actions.save_to_instapaper"), icon: , key: "saveToInstapaper", hide: @@ -252,7 +258,7 @@ export const useEntryActions = ({ }) toast.success( <> - Saved to Instapaper,{" "} + {t("entry_actions.saved_to_instapaper")},{" "} { @@ -285,7 +291,7 @@ export const useEntryActions = ({ { key: "star", shortcut: shortcuts.entry.toggleStarred.key, - name: `Star`, + name: t("entry_actions.star"), className: "i-mgc-star-cute-re", hide: !!populatedEntry.collections, onClick: () => { @@ -294,7 +300,7 @@ export const useEntryActions = ({ }, { key: "unstar", - name: `Unstar`, + name: t("entry_actions.unstar"), shortcut: shortcuts.entry.toggleStarred.key, className: "i-mgc-star-cute-fi text-orange-500", hide: !populatedEntry.collections, @@ -304,21 +310,21 @@ export const useEntryActions = ({ }, { key: "copyLink", - name: "Copy link", + name: t("entry_actions.copy_link"), className: "i-mgc-link-cute-re", hide: !populatedEntry.entries.url, shortcut: shortcuts.entry.copyLink.key, onClick: () => { if (!populatedEntry.entries.url) return navigator.clipboard.writeText(populatedEntry.entries.url) - toast("Link copied to clipboard.", { + toast(t("entry_actions.link_copied"), { duration: 1000, }) }, }, { key: "openInBrowser", - name: COPY_MAP.OpenInBrowser(), + name: t("entry_actions.open_in_browser"), shortcut: shortcuts.entry.openInBrowser.key, className: "i-mgc-world-2-cute-re", hide: !populatedEntry.entries.url, @@ -328,7 +334,7 @@ export const useEntryActions = ({ }, }, { - name: "Share", + name: t("entry_actions.share"), key: "share", className: getOS() === "macOS" ? `i-mgc-share-3-cute-re` : "i-mgc-share-forward-cute-re", shortcut: shortcuts.entry.share.key, @@ -349,7 +355,7 @@ export const useEntryActions = ({ }, { key: "read", - name: `Mark as read`, + name: t("entry_actions.mark_as_read"), shortcut: shortcuts.entry.toggleRead.key, className: "i-mgc-round-cute-fi", hide: !!(!!populatedEntry.read || populatedEntry.collections), @@ -359,7 +365,7 @@ export const useEntryActions = ({ }, { key: "unread", - name: `Mark as unread`, + name: t("entry_actions.mark_as_unread"), shortcut: shortcuts.entry.toggleRead.key, className: "i-mgc-round-cute-re", hide: !!(!populatedEntry.read || populatedEntry.collections), @@ -373,14 +379,21 @@ export const useEntryActions = ({ }, [ populatedEntry, view, + t, + enableEagle, checkEagle.isLoading, checkEagle.data, + enableReadwise, + readwiseToken, + enableInstapaper, + instapaperPassword, + instapaperUsername, + feed?.ownerUserId, openTipModal, collect, uncollect, read, unread, - feed?.ownerUserId, ]) return { diff --git a/src/renderer/src/hooks/biz/useFeedActions.tsx b/src/renderer/src/hooks/biz/useFeedActions.tsx index a9a37e3ca..5051141a6 100644 --- a/src/renderer/src/hooks/biz/useFeedActions.tsx +++ b/src/renderer/src/hooks/biz/useFeedActions.tsx @@ -7,6 +7,7 @@ import { getFeedById, useFeedById } from "@renderer/store/feed" import { subscriptionActions, useSubscriptionByFeedId } from "@renderer/store/subscription" import { WEB_URL } from "@shared/constants" import { useMemo } from "react" +import { useTranslation } from "react-i18next" import { useNavigateEntry } from "./useNavigateEntry" import { getRouteParams } from "./useRouteParams" @@ -21,6 +22,7 @@ export const useFeedActions = ({ view?: number type?: "feedList" | "entryList" }) => { + const { t } = useTranslation() const feed = useFeedById(feedId) const subscription = useSubscriptionByFeedId(feedId) @@ -38,24 +40,26 @@ export const useFeedActions = ({ const items: NativeMenuItem[] = [ { type: "text" as const, - label: isEntryList ? "Edit feed" : "Edit", + label: isEntryList ? t("sidebar.feed_actions.edit_feed") : t("sidebar.feed_actions.edit"), shortcut: "E", click: () => { present({ - title: "Edit Feed", + title: t("sidebar.feed_actions.edit_feed"), content: ({ dismiss }) => , }) }, }, { type: "text" as const, - label: isEntryList ? "Unfollow feed" : "Unfollow", + label: isEntryList + ? t("sidebar.feed_actions.unfollow_feed") + : t("sidebar.feed_actions.unfollow"), shortcut: "Meta+Backspace", click: () => deleteSubscription.mutate(subscription), }, { type: "text" as const, - label: "Navigate to feed", + label: t("sidebar.feed_actions.navigate_to_feed"), shortcut: "Meta+G", disabled: !isEntryList || getRouteParams().feedId === feedId, click: () => { @@ -68,7 +72,7 @@ export const useFeedActions = ({ }, { type: "text", - label: "Mark all as read", + label: t("sidebar.feed_actions.mark_all_as_read"), shortcut: "Meta+Shift+A", disabled: isEntryList, click: () => subscriptionActions.markReadByFeedIds([feedId]), @@ -77,7 +81,9 @@ export const useFeedActions = ({ ? [ { type: "text" as const, - label: isEntryList ? "Claim Feed" : "Claim", + label: isEntryList + ? t("sidebar.feed_actions.claim_feed") + : t("sidebar.feed_actions.claim"), shortcut: "C", click: () => { claimFeed() @@ -89,7 +95,7 @@ export const useFeedActions = ({ ? [ { type: "text" as const, - label: "This feed is owned by you", + label: t("sidebar.feed_actions.feed_owned_by_you"), }, ] : []), @@ -97,17 +103,16 @@ export const useFeedActions = ({ type: "separator" as const, disabled: isEntryList, }, - { type: "text" as const, - label: "Open feed in browser", + label: t("sidebar.feed_actions.open_feed_in_browser"), disabled: isEntryList, shortcut: "O", click: () => window.open(`${WEB_URL}/feed/${feedId}?view=${view}`, "_blank"), }, { type: "text" as const, - label: "Open site in browser", + label: t("sidebar.feed_actions.open_site_in_browser"), shortcut: "Meta+O", disabled: isEntryList, click: () => { @@ -123,14 +128,14 @@ export const useFeedActions = ({ }, { type: "text" as const, - label: "Copy feed URL", + label: t("sidebar.feed_actions.copy_feed_url"), disabled: isEntryList, shortcut: "Meta+C", click: () => navigator.clipboard.writeText(feed.url), }, { type: "text" as const, - label: "Copy feed ID", + label: t("sidebar.feed_actions.copy_feed_id"), shortcut: "Meta+Shift+C", disabled: isEntryList, click: () => { @@ -141,6 +146,7 @@ export const useFeedActions = ({ return items }, [ + t, claimFeed, deleteSubscription, feed, diff --git a/src/renderer/src/hooks/biz/useFeedFormModal.tsx b/src/renderer/src/hooks/biz/useFeedFormModal.tsx new file mode 100644 index 000000000..50deedfa4 --- /dev/null +++ b/src/renderer/src/hooks/biz/useFeedFormModal.tsx @@ -0,0 +1,26 @@ +import { useWhoami } from "@renderer/atoms/user" +import { useModalStack } from "@renderer/components/ui/modal" +import { FeedForm } from "@renderer/modules/discover/feed-form" +import { DEEPLINK_SCHEME } from "@shared/constants" +import { useCallback } from "react" + +import { useI18n } from "../common" + +export const usePresentFeedFormModal = () => { + const { present } = useModalStack() + const me = useWhoami() + const t = useI18n() + return useCallback( + (feedId: string) => { + if (me) { + present({ + title: t("sidebar.feed_actions.edit_feed"), + content: ({ dismiss }) => , + }) + } else { + window.location.href = `${DEEPLINK_SCHEME}add?id=${feedId}` + } + }, + [me, present, t], + ) +} diff --git a/src/renderer/src/hooks/common/index.ts b/src/renderer/src/hooks/common/index.ts index 24d38568b..5331c8bfb 100644 --- a/src/renderer/src/hooks/common/index.ts +++ b/src/renderer/src/hooks/common/index.ts @@ -1,5 +1,6 @@ export * from "./useBizQuery" export * from "./useDark" +export * from "./useI18n" export * from "./useInputComposition" export * from "./useInterval" export * from "./useIsOnline" diff --git a/src/renderer/src/hooks/common/useI18n.ts b/src/renderer/src/hooks/common/useI18n.ts new file mode 100644 index 000000000..9d8af18bd --- /dev/null +++ b/src/renderer/src/hooks/common/useI18n.ts @@ -0,0 +1,23 @@ +import { ns } from "@renderer/@types/constants" +import { useMemo } from "react" +import type { FallbackNs, UseTranslationResponse } from "react-i18next" +import { useTranslation } from "react-i18next" + +const allNameSpaces = ns + +export function useI18n() { + const { t } = useTranslation() + + return useMemo(() => { + const clonedT = t.bind(t) + + for (const ns of allNameSpaces) { + clonedT[ns] = (key: any, options: Omit[1], "ns"> = {}) => { + return t(key, { ns: ns as any, ...options }) + } + } + return clonedT as typeof t & { + [K in (typeof allNameSpaces)[number]]: UseTranslationResponse, undefined>["t"] + } + }, [t]) +} diff --git a/src/renderer/src/i18n.ts b/src/renderer/src/i18n.ts index 9a352efc6..409345914 100644 --- a/src/renderer/src/i18n.ts +++ b/src/renderer/src/i18n.ts @@ -1,60 +1,84 @@ import { EventBus } from "@renderer/lib/event-bus" -import dayjs from "dayjs" import i18next from "i18next" -import LanguageDetector from "i18next-browser-languagedetector" import { atom } from "jotai" import { initReactI18next } from "react-i18next" +import { defaultNS, ns } from "./@types/constants" import { defaultResources } from "./@types/default-resource" +import { getGeneralSettings } from "./atoms/settings/general" import { jotaiStore } from "./lib/jotai" +import { getStorageNS } from "./lib/ns" export const i18nAtom = atom(i18next) -export const defaultNS = "app" +export class LocaleCache { + static shared = new LocaleCache() + private getKey(lang: string) { + return getStorageNS(`locale-${lang}`) + } + get(lang: string) { + const key = this.getKey(lang) + const cache = localStorage.getItem(key) + if (!cache) return null + return JSON.parse(cache) + } + set(lang: string) { + const key = this.getKey(lang) + const mergedResources = {} as any + for (const nsKey of ns) { + const nsResources = i18next.getResourceBundle(lang, nsKey) + mergedResources[nsKey] = nsResources + } + localStorage.setItem(key, JSON.stringify(mergedResources)) + } +} export const fallbackLanguage = "en" export const initI18n = async () => { const i18next = jotaiStore.get(i18nAtom) - await i18next - .use(initReactI18next) - .use(LanguageDetector) - .init({ - lng: "en", - fallbackLng: fallbackLanguage, - defaultNS, - debug: import.meta.env.DEV, - resources: defaultResources, - }) + const lang = getGeneralSettings().language + const cache = LocaleCache.shared.get(lang) - dayjs.locale("en") + const mergedResources = { + ...defaultResources, + } + + if (cache) { + mergedResources[lang] = cache + } + + await i18next.use(initReactI18next).init({ + ns, + lng: cache ? lang : fallbackLanguage, + fallbackLng: fallbackLanguage, + defaultNS, + debug: import.meta.env.DEV, + + resources: mergedResources, + }) } if (import.meta.hot) { - import.meta.hot.on("i18n-update", ({ file, content }: { file: string; content: string }) => { - const resources = JSON.parse(content) - const i18next = jotaiStore.get(i18nAtom) - // `file` is absolute path e.g. /Users/innei/git/follow/locales/en.json - // Absolute path e.g. /Users/innei/git/follow/locales//en.json + import.meta.hot.on( + "i18n-update", + async ({ file, content }: { file: string; content: string }) => { + const resources = JSON.parse(content) + const i18next = jotaiStore.get(i18nAtom) - // 1. parse root language - if (!file.includes("locales/namespaces")) { - const lang = file.split("/").pop()?.replace(".json", "") - if (!lang) return - i18next.addResourceBundle(lang, defaultNS, resources, true, true) - i18next.reloadResources(lang, defaultNS) - } else { - const nsName = file.match(/locales\/namespaces\/(.+?)\//)?.[1] + const nsName = file.match(/locales\/(.+?)\//)?.[1] if (!nsName) return const lang = file.split("/").pop()?.replace(".json", "") if (!lang) return i18next.addResourceBundle(lang, nsName, resources, true, true) - i18next.reloadResources(lang, nsName) - } - import.meta.env.DEV && EventBus.dispatch("I18N_UPDATE", "") - }) + console.info("reload", lang, nsName) + await i18next.reloadResources(lang, nsName) + + import.meta.env.DEV && EventBus.dispatch("I18N_UPDATE", "") + }, + ) } declare module "@renderer/lib/event-bus" { @@ -62,7 +86,3 @@ declare module "@renderer/lib/event-bus" { I18N_UPDATE: string } } - -export { currentSupportedLanguages } from "./@types/constants" - -window["i18next"] = i18next diff --git a/src/renderer/src/lib/dev.tsx b/src/renderer/src/lib/dev.tsx index d8259aa4a..1f9335378 100644 --- a/src/renderer/src/lib/dev.tsx +++ b/src/renderer/src/lib/dev.tsx @@ -53,3 +53,11 @@ export const attachOpenInEditor = (stack: string) => { const openInEditor = (file: string) => { fetch(`/__open-in-editor?file=${encodeURIComponent(`${file}`)}`) } + +export const debugStack = () => { + try { + throw new Error("debug stack") + } catch (e: any) { + console.error(e.stack) + } +} diff --git a/src/renderer/src/lib/link-parser.ts b/src/renderer/src/lib/link-parser.ts index 0e871d87e..7b613edbd 100644 --- a/src/renderer/src/lib/link-parser.ts +++ b/src/renderer/src/lib/link-parser.ts @@ -1,3 +1,5 @@ +import { parseSafeUrl } from "@renderer/components/ui/platform-icon/utils" + const GITHUB_HOST = "github.com" export type LinkParserOptions = { @@ -6,13 +8,6 @@ export type LinkParserOptions = { icon: string } -const parseSafeUrl = (url: string) => { - try { - return new URL(url) - } catch { - return null - } -} const defineLinkParser = (options: LinkParserOptions) => { const define = (url: URL | string) => { const safeUrl = typeof url === "string" ? parseSafeUrl(url) : url @@ -27,6 +22,7 @@ const defineLinkParser = (options: LinkParserOptions) => { define.icon = options.icon return define } + export const isYoutubeUrl = defineLinkParser({ name: "youtube", validator: (url) => url.hostname.includes("youtube.com"), diff --git a/src/renderer/src/lib/load-language.ts b/src/renderer/src/lib/load-language.ts new file mode 100644 index 000000000..fd4b98bb2 --- /dev/null +++ b/src/renderer/src/lib/load-language.ts @@ -0,0 +1,83 @@ +import { currentSupportedLanguages, dayjsLocaleImportMap } from "@renderer/@types/constants" +import { defaultResources } from "@renderer/@types/default-resource" +import { fallbackLanguage, i18nAtom, LocaleCache } from "@renderer/i18n" +import { jotaiStore } from "@renderer/lib/jotai" +import { isEmptyObject } from "@renderer/lib/utils" +import dayjs from "dayjs" +import i18next from "i18next" +import { toast } from "sonner" + +const loadingLangLock = new Set() +const loadedLangs = new Set([fallbackLanguage]) + +export const loadLanguageAndApply = async (lang: string) => { + const dayjsImport = dayjsLocaleImportMap[lang] + + if (dayjsImport) { + const [locale, loader] = dayjsImport + loader().then(() => { + dayjs.locale(locale) + }) + } + + const { t } = jotaiStore.get(i18nAtom) + if (loadingLangLock.has(lang)) return + const isSupport = currentSupportedLanguages.includes(lang) + if (!isSupport) { + return + } + const loaded = loadedLangs.has(lang) + + if (loaded) { + return + } + + loadingLangLock.add(lang) + + if (import.meta.env.DEV) { + const nsGlobbyMap = import.meta.glob("@locales/*/*.json") + + const namespaces = Object.keys(defaultResources.en) + + const res = await Promise.allSettled( + namespaces.map(async (ns) => { + const loader = nsGlobbyMap[`../../locales/${ns}/${lang}.json`] + + if (!loader) return + const nsResources = await loader().then((m: any) => m.default) + + i18next.addResourceBundle(lang, ns, nsResources, true, true) + }), + ) + + for (const r of res) { + if (r.status === "rejected") { + toast.error(`${t("common:tips.load-lng-error")}: ${lang}`) + loadingLangLock.delete(lang) + + return + } + } + } else { + const res = await eval(`import('/locales/${lang}.js')`) + .then((res: any) => res?.default || res) + .catch(() => { + toast.error(`${t("common:tips.load-lng-error")}: ${lang}`) + loadingLangLock.delete(lang) + return {} + }) + + if (isEmptyObject(res)) { + return + } + for (const namespace in res) { + i18next.addResourceBundle(lang, namespace, res[namespace], true, true) + } + } + + await i18next.reloadResources() + await i18next.changeLanguage(lang) + LocaleCache.shared.set(lang) + loadedLangs.add(lang) + loadingLangLock.delete(lang) +} diff --git a/src/renderer/src/lib/utils.ts b/src/renderer/src/lib/utils.ts index 7eea3e870..5135ba772 100644 --- a/src/renderer/src/lib/utils.ts +++ b/src/renderer/src/lib/utils.ts @@ -145,6 +145,9 @@ export const sleep = (ms: number) => new Promise((resolve) => setTimeout(r export const capitalizeFirstLetter = (string: string) => string.charAt(0).toUpperCase() + string.slice(1) +/** + * @deprecated + */ export const pluralize = ( noun: string, count: number, diff --git a/src/renderer/src/main.tsx b/src/renderer/src/main.tsx index b6512e914..6d18efd77 100644 --- a/src/renderer/src/main.tsx +++ b/src/renderer/src/main.tsx @@ -23,6 +23,6 @@ if (window.electron && getOS() === "Windows") { ReactDOM.createRoot($container).render( - + , ) diff --git a/src/renderer/src/models/types.ts b/src/renderer/src/models/types.ts index a24d21e05..78ac75432 100644 --- a/src/renderer/src/models/types.ts +++ b/src/renderer/src/models/types.ts @@ -2,7 +2,10 @@ import type { apiClient } from "@renderer/lib/api-fetch" import type { languageSchema, users } from "src/hono" import type { z } from "zod" -export type UserModel = Omit +export type UserModel = Omit< + Omit, "email">, + "createdAt" +> export type ExtractBizResponse any> = Exclude< Awaited>, @@ -17,8 +20,13 @@ export type ActiveList = { export type FeedResponse = SubscriptionResponse[number]["feeds"] +export type TransactionModel = ExtractBizResponse< + typeof apiClient.wallets.transactions.$get +>["data"][number] + export type FeedModel = ExtractBizResponse["data"]["feed"] & { - owner?: Omit | null + owner?: UserModel | null + tipUsers?: UserModel[] | null } export type SubscriptionResponse = Array< diff --git a/src/renderer/src/modules/ai/ai-daily/daily.tsx b/src/renderer/src/modules/ai/ai-daily/daily.tsx index bba198adf..cc409d59b 100644 --- a/src/renderer/src/modules/ai/ai-daily/daily.tsx +++ b/src/renderer/src/modules/ai/ai-daily/daily.tsx @@ -35,6 +35,7 @@ import { useFeedById } from "@renderer/store/feed" import { m, useAnimationControls } from "framer-motion" import type { Components } from "hast-util-to-jsx-runtime" import { useEffect, useState } from "react" +import { Trans, useTranslation } from "react-i18next" import { useParseDailyDate } from "./hooks" import type { DailyItemProps, DailyView } from "./types" @@ -60,41 +61,52 @@ export const DailyReportTitle = ({ title: string startDate: number endDate: number -}) => ( -

    -) +}) => { + const { t } = useTranslation() + return ( +
    + +
    {t("ai_daily.title", { title })}
    + + + + + + +
      +
    • + + {new Date(startDate).toLocaleTimeString("en-US", { + weekday: "short", + hour: "numeric", + minute: "numeric", + })} + + ), + To: ( + + {new Date(endDate + 1).toLocaleTimeString("en-US", { + weekday: "short", + hour: "numeric", + minute: "numeric", + })} + + ), + }} + /> +
    • +
    • {t("ai_daily.tooltip.update_schedule")}
    • +
    +
    +
    +
    +
    + ) +} const useQueryData = ({ endDate, diff --git a/src/renderer/src/modules/ai/ai-daily/hooks.tsx b/src/renderer/src/modules/ai/ai-daily/hooks.tsx index 034904f92..3262261c0 100644 --- a/src/renderer/src/modules/ai/ai-daily/hooks.tsx +++ b/src/renderer/src/modules/ai/ai-daily/hooks.tsx @@ -1,11 +1,14 @@ import { useModalStack } from "@renderer/components/ui/modal" import { useCallback, useMemo } from "react" +import { useTranslation } from "react-i18next" import { DayOf } from "./constants" import { FeedDailyModalContent } from "./FeedDailyModalContent" -export const useParseDailyDate = (day: DayOf) => - useMemo(() => { +export const useParseDailyDate = (day: DayOf) => { + const { t } = useTranslation("common") + + return useMemo(() => { const dateObj = new Date() const nowHour = dateObj.getHours() @@ -27,36 +30,37 @@ export const useParseDailyDate = (day: DayOf) => if (isToday) { endDate = today8PM - 1 startDate = today8AM - title = "Today" + title = t("time.today") } else { endDate = today8AM - 1 startDate = yesterday8PM - title = "Last Night" + title = t("time.last_night") } } else if (nowHour >= 8) { if (isToday) { endDate = today8AM - 1 startDate = yesterday8PM - title = "Last Night" + title = t("time.last_night") } else { endDate = yesterday8PM - 1 startDate = yesterday8AM - title = "Yesterday" + title = t("time.yesterday") } } else { if (isToday) { endDate = yesterday8PM - 1 startDate = yesterday8AM - title = "Yesterday" + title = t("time.yesterday") } else { endDate = yesterday8AM - 1 startDate = dayBeforeYesterday8PM - title = "The Night Before Last" + title = t("time.the_night_before_last") } } return { title, startDate, endDate } - }, [day]) + }, [day, t]) +} export const useAIDailyReportModal = () => { const { present } = useModalStack() diff --git a/src/renderer/src/modules/claim/feed-claim-modal.tsx b/src/renderer/src/modules/claim/feed-claim-modal.tsx index 00f00371d..0d15f6275 100644 --- a/src/renderer/src/modules/claim/feed-claim-modal.tsx +++ b/src/renderer/src/modules/claim/feed-claim-modal.tsx @@ -13,10 +13,12 @@ import { useClaimFeedMutation } from "@renderer/queries/feed" import { useFeedById } from "@renderer/store/feed" import type { FC } from "react" import { useEffect } from "react" +import { Trans, useTranslation } from "react-i18next" export const FeedClaimModalContent: FC<{ feedId: string }> = ({ feedId }) => { + const { t } = useTranslation() const feed = useFeedById(feedId) const { data: claimMessage, @@ -46,7 +48,7 @@ export const FeedClaimModalContent: FC<{ } if (error) { - return
    Failed to load claim message
    + return
    {t("feed_claim_modal.failed_to_load")}
    } return ( @@ -56,52 +58,46 @@ export const FeedClaimModalContent: FC<{ -

    To claim this feed as your own, you need to verify ownership.

    -

    There are three ways to choose from, you can choose one of them to verify.

    +

    {t("feed_claim_modal.verify_ownership")}

    +

    {t("feed_claim_modal.choose_verification_method")}

    - Content - Description - RSS Tag + {t("feed_claim_modal.tab_content")} + {t("feed_claim_modal.tab_description")} + {t("feed_claim_modal.tab_rss")} -

    Copy the content below and post it to your latest RSS feed.

    +

    {t("feed_claim_modal.content_instructions")}

    {feed.url.startsWith("rsshub://") && (

    - This feed is provided by RSSHub with a 1 hour cache time. Please allow up to 1 hour - for changes to appear after publishing content. + {t("feed_claim_modal.rsshub_notice")}

    )} - {claimMessage?.data.content || ""}

    - Current description: + {t("feed_claim_modal.description_current")} {feed.description}

    -

    - Copy the following content and paste it into the{" "} - {``} field of your RSS feed. -

    + {""}
    }} + /> {feed.url.startsWith("rsshub://") && (

    - This feed is provided by RSSHub with a 1 hour cache time. Please allow up to 1 hour - for changes to appear after modifying description. + {t("feed_claim_modal.rsshub_notice")}

    )} {claimMessage?.data.description || ""}
    -

    Copy the code below and paste it into your RSS generator.

    +

    {t("feed_claim_modal.rss_instructions")}

    +

    {t("feed_claim_modal.rss_format_choice")}

    - RSS generators generally have two formats to choose from. Please copy the XML and - JSON formats below as needed. -

    -

    - XML Format + {t("feed_claim_modal.rss_xml_format")}

    - JSON Format + {t("feed_claim_modal.rss_json_format")}

    {isSuccess && } - Claim + {t("feed_claim_modal.claim_button")}