-
Notifications
You must be signed in to change notification settings - Fork 187
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
[FEATURE] Internationalization support for multi languages #191
Comments
Anyone wishes to contribute, be free to comment and @DongHuiTiao. Currently, only Thank you for your support and help in making our app accessible to more people around the world! |
Hi @DongHuiTiao, I'm just right away to add support for internationalization. I been thinking of choosing between the following:
I would choose LinguiJS. From my experience, it makes coding painless, but any of them is good enough. What are your thoughts about it? |
My bad, just realized Vue is not fully supported by LinguiJS, looks like that feature is on the way, but for now, let's go with i18n |
I found relatively little information on GitHub when searching for "lingui" and "Vue" as keywords, which is a pity. While Lingui's ability to translate vocabulary by itself is convenient, there is a risk of inaccurate translations. So, how about we try to use vue-i18n? It appears to be very straightforward, If anyone need to add a language, just add a corresponding vocabulary configuration. |
Sorry, I used translation software for English, so my words may look a bit strange. |
Thanks @orangelckc, sorry for the oversight. |
Hi @davidramos-om , I have just extracted all the text variables from the project and updated them in the You can find these variables in the json files under I used the Could you please take some time to review the code and test it? Thank you! |
Thanks @DongHuiTiao I've open a PR from my cloned repo to dev_lang branch |
@davidramos-om Thanks to David's contribution, your pr has been merged and if you have time, you can add REDEME in Spanish! |
@davidramos-om Hi David, I uploaded the Spanish docs in the |
done! @bilibili-ayang , screenshots for English and Spanish added too. |
@davidramos-om Thanks, it's cool, good cooperation |
Hey everyone 👋 Recently Lingui had an official v4 release and the Vue.js support is already here - https://lingui.dev/tutorials/extractor-vue |
That's a wonderful news @andrii-bodnar, thanks for the head up. |
@davidramos-om Hey, it's been a while! We've developed a new app and we're in the process of internationalizing it, would you be interested in contributing in English and other languages? |
@ayangweb Hi there, Thanks for letting me know. Sure, I can help with translations. I tried to install it on an M1 and ran into an issue (the app is damaged) |
Hey, this is normal, just fix it with the following command! sudo xattr -r -d com.apple.quarantine /Applications/EcoPaste.app |
Hey, we have submitted the full English translation of the json file, but we are using machine translation, you can go as short as possible to shorten the sentence, our goal is short, shorter, shortest! 😁 |
实现思路
初始化时的默认语言
第一次打开自动选择系统的语言(已从 rust 获取系统的语言)
语言设置的持久化
当选定一个语言,之后每次打开都应该保持当前选择的语言
TASKS
vue-i18n
globallyjson
file{{ $t("[field]") }}
The text was updated successfully, but these errors were encountered: