From a794681e0a48161793886a7e452473dfd21046f4 Mon Sep 17 00:00:00 2001 From: Rangga Fajar Oktariansyah <86386385+FajarKim@users.noreply.github.com> Date: Sat, 14 Oct 2023 09:12:02 +0700 Subject: [PATCH] feat: Added Indonesian translation (#22) --- README.md | 17 ++++++++++++++--- src/src/translations.ts | 15 ++++++++++++++- 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index dff2b1a..9536c27 100644 --- a/README.md +++ b/README.md @@ -114,12 +114,23 @@ You can use [GitHub's theme context](https://github.blog/changelog/2021-11-24-sp #### 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) +``` + +
+Show Example + +[![GitHub Stats](https://github-readme-profile-theta.vercel.app/api?username=FajarKim&locale=id)](https://github.com/FajarKim/github-readme-profile) +
+ ## 📑 License GitHub Readme Profile is released under the MIT license, which grants the following permissions: - Commercial use diff --git a/src/src/translations.ts b/src/src/translations.ts index bb8809d..27d87c9 100644 --- a/src/src/translations.ts +++ b/src/src/translations.ts @@ -20,7 +20,7 @@ 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", @@ -28,4 +28,17 @@ export const locales: Locales = { 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)", + }, }