Skip to content

Conversation

@Antolius
Copy link

@Antolius Antolius commented Dec 16, 2022

resolves #17

For now this is just a draft for implementing internationalization using the i18next library. Please provide feedback on the structure of the code, organization of translation files or anything else.

This is still far from done. Strings need to be extracted from:

  • Login page
  • Sidebar, Header & ModalLogout
  • Home page
  • SearchBooks page
  • ViewBook page
  • AddBook page
  • EditBook page
  • SearchLoaners page
  • ViewLoaner page
  • AddLoaner page
  • EditLoaner page
  • SearchLibrarians page
  • ViewLibrarian page
  • AddLibrarian page
  • EditLibrarian page
  • ChangePasswordLibrarian page
  • SearchTransactions page
  • ViewTransaction page
  • SelectBorrower page
  • BorrowCart page
  • SelectReturner page
  • ReturnCart page
  • SelectExtender page
  • ExtendCart page
  • Dashboard page
  • BookBatchUpload page
  • LoanerBatchUpload page

And UI for manually choosing the locale needs to be implemented.

Set up internationalization using i18next library and its integration with React.
Extract translation strings from Login and Home pages.
Extract translation strings from SearchBooks page and Footer.
Add namespace and interpolation related init config for i18next.
Extract translation strings from EditBook by reusing those from AddBook
as much as possible.
@Antolius Antolius force-pushed the internationalization branch from 1c02074 to 9f26230 Compare January 20, 2023 23:25
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.

1 participant