[PR #2948] [MERGED] Feat/support i18n typescript #5493

Closed
opened 2026-03-23 22:18:59 +00:00 by mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/2948
Author: @qinluhe
Created: 7/6/2023
Status: Merged
Merged: 7/12/2023
Merged by: @LucasXu0

Base: mainHead: feat/support-i18n-typescript


📝 Commits (4)

  • cbff202 feat: support i18n typescript
  • ff3d766 fix: replace popover
  • 562ab6f feat: support generate css and tailwind config by figma-tokens json
  • 02974c8 feat: generate i18n json into appflowy_tauri

📊 Changes

123 files changed (+2455 additions, -937 deletions)

View changed files

📝 frontend/appflowy_tauri/.gitignore (+2 -1)
📝 frontend/appflowy_tauri/package.json (+9 -6)
📝 frontend/appflowy_tauri/pnpm-lock.yaml (+177 -20)
frontend/appflowy_tauri/scripts/i18n/index.cjs (+53 -0)
frontend/appflowy_tauri/src/appflowy_app/@types/i18next.d.ts (+8 -0)
frontend/appflowy_tauri/src/appflowy_app/@types/resources.ts (+7 -0)
📝 frontend/appflowy_tauri/src/appflowy_app/App.tsx (+1 -3)
📝 frontend/appflowy_tauri/src/appflowy_app/AppMain.hooks.ts (+10 -0)
📝 frontend/appflowy_tauri/src/appflowy_app/components/_shared/Button.tsx (+5 -5)
📝 frontend/appflowy_tauri/src/appflowy_app/components/_shared/EditRow/ChangeFieldTypePopup.tsx (+1 -1)
📝 frontend/appflowy_tauri/src/appflowy_app/components/_shared/EditRow/CheckList/CheckListOption.tsx (+1 -1)
📝 frontend/appflowy_tauri/src/appflowy_app/components/_shared/EditRow/CheckList/EditCheckListPopup.tsx (+5 -3)
📝 frontend/appflowy_tauri/src/appflowy_app/components/_shared/EditRow/Date/DateFormatPopup.tsx (+3 -1)
📝 frontend/appflowy_tauri/src/appflowy_app/components/_shared/EditRow/Date/DateTypeOptions.tsx (+11 -5)
📝 frontend/appflowy_tauri/src/appflowy_app/components/_shared/EditRow/Date/NumberFormatPopup.tsx (+3 -1)
📝 frontend/appflowy_tauri/src/appflowy_app/components/_shared/EditRow/Date/TimeFormatPopup.tsx (+6 -2)
📝 frontend/appflowy_tauri/src/appflowy_app/components/_shared/EditRow/EditCellWrapper.tsx (+2 -2)
📝 frontend/appflowy_tauri/src/appflowy_app/components/_shared/EditRow/EditFieldPopup.tsx (+6 -4)
📝 frontend/appflowy_tauri/src/appflowy_app/components/_shared/EditRow/EditRow.tsx (+4 -4)
📝 frontend/appflowy_tauri/src/appflowy_app/components/_shared/EditRow/Options/CellOption.tsx (+2 -2)

...and 80 more files

📄 Description

This PR base on dark mode branch

Feature Preview

  • Support react-i18n typescript
image
  • support generate css and tailwind config by figma-tokens json
    image
    image
    image

PR Checklist

  • My code adheres to the AppFlowy Style Guide
  • I've listed at least one issue that this PR fixes in the description above.
  • I've added a test(s) to validate changes in this PR, or this PR only contains semantic changes.
  • All existing tests are passing.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/AppFlowy-IO/AppFlowy/pull/2948 **Author:** [@qinluhe](https://github.com/qinluhe) **Created:** 7/6/2023 **Status:** ✅ Merged **Merged:** 7/12/2023 **Merged by:** [@LucasXu0](https://github.com/LucasXu0) **Base:** `main` ← **Head:** `feat/support-i18n-typescript` --- ### 📝 Commits (4) - [`cbff202`](https://github.com/AppFlowy-IO/AppFlowy/commit/cbff202d554f4fd22a8693bd4827a8dabd921ff0) feat: support i18n typescript - [`ff3d766`](https://github.com/AppFlowy-IO/AppFlowy/commit/ff3d76603a07e1d8594b3a83ea352472cbb963ea) fix: replace popover - [`562ab6f`](https://github.com/AppFlowy-IO/AppFlowy/commit/562ab6fb9cdb26b1552f27ec3fbc266db6c20ac1) feat: support generate css and tailwind config by figma-tokens json - [`02974c8`](https://github.com/AppFlowy-IO/AppFlowy/commit/02974c8824de9b73d17ae655f480ff798edb5924) feat: generate i18n json into appflowy_tauri ### 📊 Changes **123 files changed** (+2455 additions, -937 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_tauri/.gitignore` (+2 -1) 📝 `frontend/appflowy_tauri/package.json` (+9 -6) 📝 `frontend/appflowy_tauri/pnpm-lock.yaml` (+177 -20) ➕ `frontend/appflowy_tauri/scripts/i18n/index.cjs` (+53 -0) ➕ `frontend/appflowy_tauri/src/appflowy_app/@types/i18next.d.ts` (+8 -0) ➕ `frontend/appflowy_tauri/src/appflowy_app/@types/resources.ts` (+7 -0) 📝 `frontend/appflowy_tauri/src/appflowy_app/App.tsx` (+1 -3) 📝 `frontend/appflowy_tauri/src/appflowy_app/AppMain.hooks.ts` (+10 -0) 📝 `frontend/appflowy_tauri/src/appflowy_app/components/_shared/Button.tsx` (+5 -5) 📝 `frontend/appflowy_tauri/src/appflowy_app/components/_shared/EditRow/ChangeFieldTypePopup.tsx` (+1 -1) 📝 `frontend/appflowy_tauri/src/appflowy_app/components/_shared/EditRow/CheckList/CheckListOption.tsx` (+1 -1) 📝 `frontend/appflowy_tauri/src/appflowy_app/components/_shared/EditRow/CheckList/EditCheckListPopup.tsx` (+5 -3) 📝 `frontend/appflowy_tauri/src/appflowy_app/components/_shared/EditRow/Date/DateFormatPopup.tsx` (+3 -1) 📝 `frontend/appflowy_tauri/src/appflowy_app/components/_shared/EditRow/Date/DateTypeOptions.tsx` (+11 -5) 📝 `frontend/appflowy_tauri/src/appflowy_app/components/_shared/EditRow/Date/NumberFormatPopup.tsx` (+3 -1) 📝 `frontend/appflowy_tauri/src/appflowy_app/components/_shared/EditRow/Date/TimeFormatPopup.tsx` (+6 -2) 📝 `frontend/appflowy_tauri/src/appflowy_app/components/_shared/EditRow/EditCellWrapper.tsx` (+2 -2) 📝 `frontend/appflowy_tauri/src/appflowy_app/components/_shared/EditRow/EditFieldPopup.tsx` (+6 -4) 📝 `frontend/appflowy_tauri/src/appflowy_app/components/_shared/EditRow/EditRow.tsx` (+4 -4) 📝 `frontend/appflowy_tauri/src/appflowy_app/components/_shared/EditRow/Options/CellOption.tsx` (+2 -2) _...and 80 more files_ </details> ### 📄 Description <!--- Thank you for submitting a pull request to AppFlowy. The team will dedicate their best efforts to reviewing and approving your pull request. If you have any questions about the project or feedback for us, please join our [Discord](https://discord.gg/wdjWUXXhtw). --> This PR base on dark mode branch <!--- If your pull request adds a new feature, please drag and drop a video into this section to showcase what you've done! If not, you may delete this section. --> ### Feature Preview - [x] Support react-i18n typescript <img width="725" alt="image" src="https://github.com/AppFlowy-IO/AppFlowy/assets/108015703/73ab3261-aa7c-4f94-ac21-afe1100944e3"> - [x] support generate css and tailwind config by figma-tokens json <img width="778" alt="image" src="https://github.com/AppFlowy-IO/AppFlowy/assets/108015703/5ef33571-6ebe-4b38-9479-ab9bfc6e8199"> <img width="646" alt="image" src="https://github.com/AppFlowy-IO/AppFlowy/assets/108015703/d8a80a6a-85a9-48b2-bb94-2c347e1e273d"> <img width="678" alt="image" src="https://github.com/AppFlowy-IO/AppFlowy/assets/108015703/50dca7ba-c5c6-4010-aa33-1b05b90367a3"> <!--- List at least one issue here that this PR addresses. If it fixes the issue, please use the [fixes](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests) keyword to close the issue. For example: fixes https://github.com/AppFlowy-IO/AppFlowy/pull/2106 --> --- <!--- Before you mark this PR ready for review, run through this checklist! --> #### PR Checklist - [ ] My code adheres to the [AppFlowy Style Guide](https://appflowy.gitbook.io/docs/essential-documentation/contribute-to-appflowy/software-contributions/submitting-code/style-guides) - [ ] I've listed at least one issue that this PR fixes in the description above. - [ ] I've added a test(s) to validate changes in this PR, or this PR only contains semantic changes. - [ ] All existing tests are passing. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirror 2026-03-23 22:18:59 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#5493
No description provided.