ttytm / wthrr-the-weathercrab

🌞 🦀 🌙 Weather companion for the terminal. Rust app.
https://crates.io/crates/wthrr
MIT License
394 stars 25 forks source link

Right border broken for th_TH and translations a bit weird #357

Closed smacintyre closed 1 month ago

smacintyre commented 2 months ago

The right border is broken when displaying Thai language words.

Steps to reproduce

Run: wthrr กรุงเทพมหานคร -f d -l th_TH

Result

image

Expected Result

The right border is solid

Tested in

OS: macOS 14.5.1 Terminals:

A note on the translations

The intro string "Hey friend. I'm glad you are asking." is translated as "เฮ้เพื่อน. ฉันดีใจที่คุณถาม". This is weird as it lacks a polite particle, the tenses are wrong, it mixes formality levels, and is not a complete sentence. Maybe it should say "สวัสดีเพือน ฉันดีใจที่คุณถามคำถามมาค่ะ". Also note, spaces are used to separate sentences, not periods.

ttytm commented 2 months ago

Thanks for the detailed report @smacintyre, it definitely helps!

smacintyre commented 2 months ago

Thank you for the response @ttytm

For translations, I'd recommend using ChatGPT instead of Google Translate. ChatGPT deals with high context languages much better.

ttytm commented 2 months ago

This is very true in terms of the GPT results. But there would be an additional setup step required for the users to get the translation working as an API key would be required. It would be a nice feature to have the choice.

ttytm commented 1 month ago

The border bug should be fixed. Lets track the enhancement regarding the translation source in a separate issue.

smacintyre commented 1 month ago

Looks great! Thank you 🙏