Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search by target string #4

Open
vicr123 opened this issue Nov 12, 2022 · 4 comments
Open

Search by target string #4

vicr123 opened this issue Nov 12, 2022 · 4 comments
Labels
enhancement New feature or request frontend Issue in the React app good first issue Good for newcomers

Comments

@vicr123
Copy link
Owner

vicr123 commented Nov 12, 2022

No description provided.

@sayeedkhannabil
Copy link

Hi. I want to help you on this. If you can guide me through what I need to do or give me some instructions to get me started, that would be really helpful.

@vicr123
Copy link
Owner Author

vicr123 commented Nov 12, 2022

Hi,

The search algorithm is here: https://github.com/vicr123/Parlance/blob/main/Parlance/ClientApp/src/pages/Projects/Subprojects/Languages/Translation/TranslationEditor/EntryUtils.js#L32

The intention is also for the search algorithm to search within the translated string :)

@sayeedkhannabil
Copy link

Since I am new to this project, if you can elaborate it a bit more to get me started, that would be helpful.

I have some questions.

  1. Which part contains the code for translated string?
  2. Where can I implement the search function?
  3. Where the current search function is located?

Thanks

@vicr123
Copy link
Owner Author

vicr123 commented Nov 14, 2022

Hi there,

The search function is currently implemented as a .filter on an array - you'll be able to find that function here: https://github.com/vicr123/Parlance/blob/main/Parlance/ClientApp/src/pages/Projects/Subprojects/Languages/Translation/TranslationEditor/EntryUtils.js#L32

The entry variable contains an array called translation which represent the plural forms for the language; in each element there is a string called .translationContent where you'll be able to retrieve the translated string.

If you'd like to get an environment quickly set up, you can use Codespaces to do that :)

Let me know if you need any more information!

@vicr123 vicr123 added the frontend Issue in the React app label Nov 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request frontend Issue in the React app good first issue Good for newcomers
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants