pcottle / learnGitBranching

An interactive git visualization and tutorial. Aspiring students of git can use this app to educate and challenge themselves towards mastery of git!
https://pcottle.github.io/learnGitBranching/
MIT License
30.34k stars 5.73k forks source link

Add Turkish (tr_TR) Translations 🇹🇷 #1096

Closed 0xK3rn3lP4n1c closed 12 months ago

0xK3rn3lP4n1c commented 12 months ago

Hi there,

I hope you're having a fantastic day! I wanted to reach out because I'm really excited about this project and I'd love to help by adding Turkish translations.

Being a native Turkish speaker, I know firsthand how valuable it is to have software and projects available in our native language. It makes things so much more accessible and user-friendly for Turkish-speaking folks.

I'm eager to roll up my sleeves and get started on translating this project into Turkish.

I'm looking forward to working together and making this project even more awesome for Turkish users!

pcottle commented 12 months ago

Hello! Adding a translation is pretty straightforward, you just add a new key with the turkish locale into a level source file, like the ones here: https://github.com/pcottle/learnGitBranching/blob/main/src/levels/intro/commits.js#L1-L4

and then if you just add a mapping here, we should automatically turn on the language based on browser headers: https://github.com/pcottle/learnGitBranching/blob/a7809a8bca16d6bbf3f570586e0d0a02425ab08e/src/js/stores/LocaleStore.js#L11-L14