Skip to content

Feat/cp 32 switch language v2#32

Open
windforce852 wants to merge 1 commit intodevfrom
feat/CP-32-switch-language-v2
Open

Feat/cp 32 switch language v2#32
windforce852 wants to merge 1 commit intodevfrom
feat/CP-32-switch-language-v2

Conversation

@windforce852
Copy link

feat: add i18n switch language

  • added i18n dir to app dir
  • added en.json and zh-cn.json to i18n dir
  • added I18nWrapper to i18n dir
  • nested I18nWrapper into provider.tsx

language can be switched from AppSetting page
i18n can affect sidebarContent and AppSetting page now
further implement to other page will be execute after code review

@windforce852 windforce852 requested a review from Chris-Wang June 8, 2024 05:44
Copy link
Contributor

@Chris-Wang Chris-Wang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs:

  • squash commits
  • fix failed test

@windforce852 windforce852 force-pushed the feat/CP-32-switch-language-v2 branch 2 times, most recently from 2d13228 to 942a07f Compare June 17, 2024 08:46
@windforce852
Copy link
Author

done squash commits
fixed failed test included eslint error, and unit test for i18n

AppSetting page dropdown gloss fix applied here but further UI improvement will and should be done in CP36 (another choice is to combine both ticket into one PR)

Add internationalization
-	Implemented internationalization using next-intl library
-	Implemented language switch between English and Chinese
Add theme switch
-	Implemented theme switch between light and dark in accounting setting page
Refactor account setting page
-	Modularized account setting page

Resolve CP-22

NEED TO BE DONE
-	Unit test for all pages implemented internationalization

NEED TO BE DONE
-	Unit test for all pages implemented internationalization
@SeijaHuang SeijaHuang force-pushed the feat/CP-32-switch-language-v2 branch from c034c34 to eea5dc6 Compare August 15, 2024 02:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants