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

Add support for other languages #16

Open
d4r1us-drk opened this issue Aug 24, 2024 · 0 comments
Open

Add support for other languages #16

d4r1us-drk opened this issue Aug 24, 2024 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@d4r1us-drk
Copy link
Owner

Description:
To make clido more accessible to a broader audience, we need to add support for multiple languages. This enhancement would involve integrating a translation library or framework that allows the application to display messages, prompts, and UI elements in various languages based on the user's preference.

Proposed Solution:

  1. Integrate a Translation Library/Framework:

    • Research and choose a suitable Go translation library, such as go-i18n, gettext-go, or linguist-go.
    • Implement the chosen library to manage translation files and handle runtime language switching.
  2. Language Configuration:

    • Use the system's language as the default.
    • If getting the default language of the system isn't possible, then default to English.
    • For any yet unsupported/missing language, ensure that the default language is English.
  3. Translation Files:

    • Create translation files (e.g., JSON, TOML, or PO format) for supported languages. These files will map keys to their corresponding translations.
    • Start with a basic set of languages (e.g., English, Spanish, French) and add more as needed.
  4. Update Existing Strings:

    • Refactor all hardcoded strings within the codebase to use the translation framework.
    • Replace strings with translation keys that correspond to the entries in the translation files.
  5. Testing:

    • Implement unit and integration tests to ensure that the correct translations are displayed for each language.
    • Test the application in different languages to validate the translations.

Additional Notes:

  • Contributions for additional language translations are welcome.
  • Consider adding documentation to guide users and contributors on how to add new languages or customize existing translations.

Impact:
Adding multilanguage support will make clido accessible to non-English speaking users, expanding its user base and improving overall usability.

@d4r1us-drk d4r1us-drk added the enhancement New feature or request label Aug 24, 2024
@d4r1us-drk d4r1us-drk added this to the v1.1 milestone Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant