mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-03-02 22:57:00 -05:00
Can I really translate without programming skills? #278
Labels
No labels
A:accessibility
A:api
A:cert-expiry
A:core
A:dashboard
A:deployment
A:documentation
A:domain expiry
A:incidents
A:maintenance
A:metrics
A:monitor
A:notifications
A:reports
A:settings
A:status-page
A:ui/ux
A:user-management
Stale
ai-slop
blocked
blocked-upstream
bug
cannot-reproduce
dependencies
discussion
duplicate
feature-request
feature-request
good first issue
hacktoberfest
help
help wanted
house keeping
invalid
invalid-format
invalid-format
question
releaseblocker 🚨
security
spam
type:enhance-existing
type:new
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/uptime-kuma#278
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @MrEddX on GitHub (Sep 28, 2021).
I would like to translate, but actually can't figure it out: Am I doing it the right way?
Followed the instructions, but after running
npm run update-language-filesall language files insrc/languages/have been processed. Thepackage-lock.jsonfile is also changed. I expected only the new file to be filled with something like a template.So, what I did:
curl -fsSL https://fnm.vercel.app/install | bashfnm install 14git clone https://github.com/louislam/uptime-kuma.git~/uptime-kumatouch src/languages/bg-BG.jsnpm install eslintnpm run update-language-filesfinished without errors:src/languages/bg-BG.jsis now populated with the English templategit statusshows that many files are changed as described abovegit diffshows lots of changes that I think shouldn't be done. The output is endless so the example below is for just one file:I have no idea what is the magic behind
npm run update-language-filesbut it doesn't look like an expected final result on my side. So, the questions are:What am I doing wrong?
What am I missing from the How to translate guide?
But for a guy without programming skills that was my best try.
If you have the time to assist me with this task it will be just GREAT!
@chakflying commented on GitHub (Sep 28, 2021):
The diff that you posted is normal. Running that command fixes all language files by applying the newest update, so all the changes indicate that those languages have not been updated yet.
If the previous single quotes problem is fixed, simply add ONLY your
src/languages/bg-BG.jsfile,src/pages/Settings.vueandsrc/i18n.jsto git, commit, push, and you should be good to go.Looks like we did miss a few steps in the guide, thanks for helping to troubleshoot 🙇🏻♂️
@louislam commented on GitHub (Sep 28, 2021):
Yes, it is required a bit of programming skills in order to translate.
Really appreciate it! You did a very good job already. I honestly don't expect someone who don't have programming skills know how to use git and create pull request.
Let me know if you have finished the translation in https://github.com/louislam/uptime-kuma/pull/494, I can fix the single quotes for you.
@MrEddX commented on GitHub (Sep 28, 2021):
Thank you guys!
What an awesome community!
I think
npm install eslintdid the magic.Really? Don't ask me how many hours I was trying to figure out how to do all that stuff.
Fingers crossed for my the next try.
@louislam commented on GitHub (Sep 29, 2021):
Merged, thanks.