Skip to content
This repository was archived by the owner on Jul 29, 2026. It is now read-only.
This repository was archived by the owner on Jul 29, 2026. It is now read-only.

Filter by Language #7

Open
Open

Description

@samtstern

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

Activity

  1. drraghavendra commented on Sep 23, 2023

    @drraghavendra

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions