Skip to content

Commit

Permalink
feat: Added Indonesian translation (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
FajarKim authored Oct 14, 2023
1 parent 40fd199 commit a794681
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
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)",
},
}

0 comments on commit a794681

Please sign in to comment.