19 Commits

Author SHA1 Message Date
DIYgod fb6643dd0e fix(i18n): translate the guest, withdrawal and duplicate RSSHub errors
The errors locales had no entry for 1008 (a guest session tried a change),
4009 (wallet withdrawals disabled) or 13008 (RSSHub instance already
added), so clients showed English text or the bare code. Every errors
locale now has them, and a test checks each code the server can send.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 00:20:05 +08:00
DIYgod a73a8b6407 fix(i18n): translate the server's new list, actions and AI title errors
The server now answers a blank list title with 8005, a rules save over
newer rules with 12001 and a failed AI title with 15006. Without
translations clients showed the bare English text or the number; every
errors locale now has them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 23:20:56 +08:00
DIYgod 9603533ed4 fix(i18n): translate hard-coded UI strings and complete every locale
Move the hard-coded English left in the desktop renderer, the Electron
main process, the mobile app and the shared packages to i18next, with
en, zh-CN, zh-TW, ja and fr-FR translations. SSR share pages are
unchanged.

- Fill every namespace in every language, delete keys no code reads
  (server error codes stay) and update translations left behind by
  later English changes.
- Stop HTML-escaping interpolated values in the desktop renderer.
  React already escapes text, so names with & or quotes showed entities.
- Render error boundary fallbacks as components so they can use hooks.
- Localize zod validation messages with the app language.
- Throw ClipboardError from the clipboard helpers and show translated
  toasts. formatEstimatedMins takes a formatter so callers localize the
  units.
- Use one glossary term per concept in ja, fr-FR and zh-TW.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-01 16:50:23 +08:00
DIYgod 2350884eae fix(mobile): handle RSSHub subscription limit errors 2026-07-26 07:29:14 +08:00
Innei c8b759948f fix(locales): update error messages for subscription limits in multiple languages
Signed-off-by: Innei <tukon479@gmail.com>
2025-11-11 02:08:14 +08:00
Innei cd99ec9179 feat(error-handling): enhance error parsing and localization updates
Updated the error parsing logic in the error-parser.ts file to include additional status handling for FollowAPIError. Improved the toastFetchError function to utilize status codes for payment-related errors. Additionally, localized new error messages in English, Japanese, and Chinese, including updates for trial user limits and AI memory errors.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-04 23:18:35 +08:00
dai 2640f5ea87 chore: multiple updates Japanese language (#4202)
* chore: update ja.json

* chore: update 6 ja.json files

chore: update and bump 6 ja.json files.

* chore: update error/ja.json

fix locale/error/ja.json

* chore: auto-fix linting and formatting issues

* chore: update app/ja.json

* chore: update ja.json

* chore: update ja.json

* chore: update ja.json and tested local.

* chore: update ja.json

update settings/ja.json

* feat(i18n): update Japanese locale files with new error messages and dialog options

* chore(vscode): set default formatter for JSON and JSONC files

* Remove JSON and JSONC formatter settings

so sorry, @hyoban 😢

Perhaps my local settings are in. I have restored it to the original. Thanks for your kindness. 
You have always been a great help.

* chore: auto-fix linting and formatting issues

* chore: update ja.json

sync and update settings/ja.json

* chore: update Japanese translations for clarity and consistency

* chore: update some ja.json

* chore(locales): update Japanese translations with new entry actions and settings

* fix: update Japanese translations for user actions and login prompts

* feat(locales): add Japanese translations for login and registration features

* feat(locales): update Japanese translations for RSSHub and related settings

* chore: auto-fix linting and formatting issues

* feat(i18n): update Japanese locale with new toolbar customization and profile link social fields

* feat(locales): update Japanese translations for search results and two-factor authentication

* feat: 日本語ローカライズの更新

* Add and update Japanese locale translations

Added new Japanese translations for AI features in locales/ai/ja.json. Updated various Japanese locale files with new keys and improved existing translations for app features, error messages, external integrations, mobile UI, settings, and shortcuts. Also fixed typos and enhanced descriptions for better clarity and consistency.

* Update zh-CN.json

---------

Co-authored-by: dai <dai@users.noreply.github.com>
Co-authored-by: Innei <i@innei.in>
Co-authored-by: Innei <Innei@users.noreply.github.com>
2025-07-21 13:29:35 +08:00
Stephen Zhou b95237f22e refactor: move locales folder (#3374)
* chore: move locales out

* fix: correct import

* move generate local script
2025-03-31 18:59:29 +08:00
DIYgod 8b07a9a573 chore: desktop dir (#2924)
* chore: desktop dir

* chore: desktop src and configs

* chore: auto-fix linting and formatting issues

* fix: path

* fix: path

* fix: path

* fix: path

* fix

* fix

* fix

* test

* test

* test

* test

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

---------

Co-authored-by: DIYgod <8266075+DIYgod@users.noreply.github.com>
2025-03-02 17:19:22 +08:00
dai 6fae0189f2 feat(locales): update Japanese translations for search results and two-factor authentication (#2628)
Co-authored-by: dai <dai@users.noreply.github.com>
Co-authored-by: Innei <i@innei.in>
Co-authored-by: Innei <Innei@users.noreply.github.com>
2025-01-22 11:38:49 +08:00
Innei f9d5d7698c feat(rn): feed form and subscribe
- Removed unused code from package.json.
- Simplified description rendering in FormSwitch component.
- Enhanced Follow modal with new subscription logic and improved form handling.
- Updated error messages in locales for better clarity.
- Added new properties to the subscription sync service for better data handling.

This commit improves code readability and enhances the user experience in the subscription process.

Signed-off-by: Innei <tukon479@gmail.com>
2025-01-06 23:32:58 +08:00
DIYgod 9102203956 feat: migrate to better auth (#1951)
* feat: add better-auth

* feat: remove hono/auth-js

* fix: authention check

* fix: signout refetch

* feat: init server auth plugins

* feat: remove types/authjs

* feat: server auth create session plugin

* feat: web login returning

* fix: types

* fix: test env
2024-12-03 12:59:41 +08:00
dai 3b6a6ba703 chore: update ja.json (#1656)
Co-authored-by: dai <dai@users.noreply.github.com>
2024-11-19 12:00:10 +08:00
dai ce56919d6c chore: update ja.json (#1573)
Co-authored-by: dai <dai@users.noreply.github.com>
2024-11-12 15:08:33 +08:00
dai ad60986f4c chore: updated ja.json (#1242)
* chore: update ja.json

Merged from app/en.json to app/ja.json and translated non-translate string.

* chore: update ja.json

Merged from app/en.json to app/ja.json and translated non-translate string.

* chore: Update ja.json

Updated app/ja.json, Translated has been done.

* chore: Update common/ja.json

Updated to common/ja.json done.

* chore: Update error/ja.json

Translate error/ja.json has done

* chore: auto-fix linting and formatting issues

* chore: merge and translated to 3files.

Update to 3 ja.json files are completed.

* chore: auto-fix linting and formatting issues

* chore: sync latest and localize them

sync latest en json (common, settings) and translated to ja them.

* chore: update settings/ja.json

---------

Co-authored-by: dai <dai@users.noreply.github.com>
2024-11-01 16:46:27 +08:00
Innei 65bfe8f13c chore: add eslint plugin for i18n check 2024-09-28 14:10:36 +08:00
Jerry Wong e2b8ec8862 feat: add more words i18n (#516)
* feat: some word i18n

* feat: add object-cover to feed icon, add zh-HK and zh-TW errors lang

* feat: add more words i18n

* update

* resolve merge conflict

* resole

* resolve merge conflict

* resolve merge conflict

* Update apps/renderer/src/modules/claim/hooks.ts

Co-authored-by: Innei <tukon479@gmail.com>

* Update apps/renderer/src/hooks/biz/useSubscriptionActions.tsx

Co-authored-by: Innei <tukon479@gmail.com>

* Update apps/renderer/src/modules/discover/import.tsx

Co-authored-by: Innei <tukon479@gmail.com>

* update

Signed-off-by: Innei <i@innei.in>

* update

Signed-off-by: Innei <i@innei.in>

* update

Signed-off-by: Innei <i@innei.in>

* update

Signed-off-by: Innei <i@innei.in>

* update

Signed-off-by: Innei <i@innei.in>

* update

Signed-off-by: Innei <i@innei.in>

* update

Signed-off-by: Innei <i@innei.in>

* update

Signed-off-by: Innei <i@innei.in>

* update

Signed-off-by: Innei <i@innei.in>

* update

Signed-off-by: Innei <i@innei.in>

* update

Signed-off-by: Innei <i@innei.in>

---------

Signed-off-by: Innei <i@innei.in>
Co-authored-by: Innei <tukon479@gmail.com>
Co-authored-by: Innei <i@innei.in>
2024-09-22 21:05:29 +08:00
Innei 5a81dd6786 fix(eslint): json sort key
Signed-off-by: Innei <i@innei.in>
2024-09-22 19:57:10 +08:00
Innei c26bc5298b feat: i18n for biz error
Signed-off-by: Innei <i@innei.in>
2024-09-19 16:34:12 +08:00