Skip to content

Add i18n support #846

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

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

Robert-Stackflow
Copy link

Hi there! 👋

First of all, I’d like to express my appreciation for the amazing work on the Kutt project. It's an incredibly useful tool, and I’ve really enjoyed using it.

To further improve accessibility and reach a broader audience, I’ve added i18n support to the project. The changes include:

  • Integrated i18n library for managing translations.
  • Implemented a language switcher to allow users to easily change languages.
  • Structured the translation files to simplify adding more languages in the future.
  • Added support for English, Simplified Chinese, and Traditional Chinese.

Please note that form error messages have not yet been localized. I'd be happy to continue working on this if desired.

For reference, you can check out a live example at chewie.top.

I'm excited about the potential for Kutt to support even more languages and would love to collaborate further to improve the multilingual experience. Looking forward to your feedback! 😊

@Robert-Stackflow
Copy link
Author

Here's a preview of the updated interface with the language switcher:

image

image

@poeti8
Copy link
Member

poeti8 commented May 1, 2025

Hello @Robert-Stackflow
Sorry for the late review! I was busy with my other project.

I must say, I'm very happy with the work you did here. I did a few small changes, I moved the language select input to the footer, since I think changing the language isn't really an action that users take frequently so the input can be moved to somewhere less engaging.

image

I also added the ability to set the language from the browser's language when the user visits the page for the first time.

Now, would you be kind enough to add the rest of the translations? Would you please also add translations for the kutt.it homepage—manage links, features, etc?

Thank you.

@trgwii trgwii mentioned this pull request May 1, 2025
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.

5 participants