kutt icon indicating copy to clipboard operation
kutt copied to clipboard

Add i18n support

Open Robert-Stackflow opened this issue 9 months ago • 4 comments

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 avatar Mar 15 '25 09:03 Robert-Stackflow

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

image

image

Robert-Stackflow avatar Mar 15 '25 09:03 Robert-Stackflow

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.

poeti8 avatar May 01 '25 12:05 poeti8

🥺 any chance for a merge?

wsu2059q avatar Aug 31 '25 18:08 wsu2059q

🥺 any chance for a merge?

Waiting for @Robert-Stackflow to add the missing translations. If anyone can and will add the rest, please do.

poeti8 avatar Sep 27 '25 10:09 poeti8