Skip to content
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

feat: Added Indonesian translation #22

Merged
merged 1 commit into from
Oct 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,23 @@ You can use [GitHub's theme context](https://github.blog/changelog/2021-11-24-sp
</details>

#### Available locales
| Code | Locale |
| :----------: | :----------------------------: |
| `en` | English |
| Code | Locale |
| :----------: | :--------------------------------------: |
| `en` | English |
| `id` | Indonesian (Bahasa Indonesia |

The locale code added to file should be a 2-letter abbreviation from [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) or a 4-letter code with a language and country code (eg. `id` or `pt-BR`).

```markdown
![GitHub Stats](https://github-readme-profile-theta.vercel.app/api?username=FajarKim&locale=id)
```

<details>
<summary>Show Example</summary>

[![GitHub Stats](https://github-readme-profile-theta.vercel.app/api?username=FajarKim&locale=id)](https://github.com/FajarKim/github-readme-profile)
</details>

## 📑 License
GitHub Readme Profile is released under the MIT license, which grants the following permissions:
- Commercial use
Expand Down
15 changes: 14 additions & 1 deletion src/src/translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,25 @@ export const locales: Locales = {
followersText: "Followers",
followingText: "Following",
totalReposText: "Total Repository",
starsCountText: "Star's Count"
starsCountText: "Star's Count",
forksCountText: "Fork's Count",
commitsCountText: "Commit's Count",
totalPRText: "Total PRs",
totalPRMergedText: "Total PRs Merged",
totalIssuesText: "Total Issues",
contributedToText: "Contributed to (last year)",
},
id: {
titleCard: "Statistik GitHub {name}",
followersText: "Pengikut",
followingText: "Mengikuti",
totalReposText: "Total Repositori",
starsCountText: "Jumlah Bintang",
forksCountText: "Jumlah Fork",
commitsCountText: "Jumlah Komit",
totalPRText: "Total PR",
totalPRMergedText: "Total PR Digabung",
totalIssuesText: "Total Masalah Dilaporkan",
contributedToText: "Berkontribusi ke (tahun lalu)",
},
}