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

Filter by Language #7

Open
samtstern opened this issue Apr 29, 2021 · 1 comment
Open

Filter by Language #7

samtstern opened this issue Apr 29, 2021 · 1 comment
Labels

Comments

@samtstern
Copy link
Contributor

A lot of feedback in V1 revolved around how users will sort out by content in specific languages, so in order to incorporate this, we need to:

  • Ask people about the language of their submission
  • Add in the config file
  • Update schema of both blogs and projects to include language
@drraghavendra
Copy link

To incorporate the ability to sort content by language in V1, you will need to:

Ask people about the language of their submission. This can be done in a variety of ways, such as:

Adding a field to the submission form where users can select the language of their submission.
Using a natural language processing (NLP) model to automatically detect the language of the submission.
Asking users to specify the language of their submission in the title or body of the submission.
Add the language of the submission to the config file. This will allow you to easily retrieve the language of a submission later on.

Update the schema of both blogs and projects to include language. This will allow you to store the language of a blog or project in the database.

Once you have completed these steps, you will be able to sort content by language by querying the database for all blogs or projects with a specific language.

Here are some additional tips for implementing this feature:

Use a standard language code, such as those defined in ISO 639-1, to store the language of each submission. This will make it easier to compare languages and sort content.
Consider adding a default language for your application. This will be the language that submissions are sorted by if no language is specified.
Allow users to filter content by multiple languages. This will be useful for users who want to see content in multiple languages.
Provide a way for users to change the language of their submissions after they have been submitted. This will be useful for users who make mistakes or change their minds.
By following these tips, you can implement a language sorting feature that is user-friendly and scalable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants