Skip to content

localize(id): add indonesian translation#123

Open
yumanuralfath wants to merge 10 commits into
zigcc:mainfrom
yumanuralfath:i18n/id
Open

localize(id): add indonesian translation#123
yumanuralfath wants to merge 10 commits into
zigcc:mainfrom
yumanuralfath:i18n/id

Conversation

@yumanuralfath
Copy link
Copy Markdown

Localization indonesian language

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces Indonesian (id-ID) translations for the Zig Cookbook, covering various chapters from file system operations to database connectivity. It also updates the copyright year in the footer and registers the new language in the site configuration. Feedback focuses on correcting several typos, spelling errors, and formatting issues across the new translation files, as well as addressing one file that remained in English.

Comment thread i18n/id-ID.ziggy Outdated
Comment thread src/id-ID/01-01-read-file-line-by-line.smd Outdated
Comment thread src/id-ID/01-04-file-exists.smd Outdated
Comment thread src/id-ID/03-01-elapsed-time.smd Outdated
Comment thread src/id-ID/05-03-http-server-std.smd
Comment thread src/id-ID/index.smd Outdated
Comment thread src/id-ID/toc.smd Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Indonesian (id-ID) localization to the Zig Cookbook site by registering a new locale, adding Indonesian content pages, and updating the site footer year.

Changes:

  • Register id-ID as a supported locale in zine.ziggy.
  • Add Indonesian translations/content pages under src/id-ID plus Indonesian i18n strings.
  • Update footer copyright year to 2026.

Reviewed changes

Copilot reviewed 42 out of 42 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
zine.ziggy Registers the new id-ID locale and points it at src/id-ID.
layouts/section.shtml Bumps footer year range to include 2026.
i18n/id-ID.ziggy Adds Indonesian UI strings for navigation / language menu.
src/id-ID/index.smd Indonesian landing page content.
src/id-ID/toc.smd Indonesian table of contents for the cookbook.
src/id-ID/database.smd Indonesian “Database” section intro and data model.
src/id-ID/01-01-read-file-line-by-line.smd Indonesian recipe page for reading files line-by-line.
src/id-ID/01-02-mmap-file.smd Indonesian recipe page for mmap usage.
src/id-ID/01-03-file-modified-24h-ago.smd Indonesian recipe page for finding recently modified files.
src/id-ID/01-04-file-exists.smd Indonesian recipe page for file existence checks.
src/id-ID/01-05-iterate-dir.smd Indonesian recipe page for directory iteration.
src/id-ID/02-01-sha-digest.smd Indonesian recipe page for SHA-256 digest.
src/id-ID/02-02-pbkdf2.smd Indonesian recipe page for PBKDF2 password hashing.
src/id-ID/02-03-argon2.smd Indonesian recipe page for Argon2 password hashing.
src/id-ID/03-01-elapsed-time.smd Indonesian recipe page for measuring elapsed time.
src/id-ID/04-01-tcp-server.smd Indonesian recipe page for a TCP server example.
src/id-ID/04-02-tcp-client.smd Indonesian recipe page for a TCP client example.
src/id-ID/04-03-udp-echo.smd Indonesian recipe page for UDP echo example.
src/id-ID/05-01-http-get.smd Indonesian recipe page for HTTP GET.
src/id-ID/05-02-http-post.smd Indonesian recipe page for HTTP POST.
src/id-ID/05-03-http-server-std.smd Indonesian recipe page for std HTTP server + test notes.
src/id-ID/06-01-rand.smd Indonesian recipe page for random value generation.
src/id-ID/07-01-spawn.smd Indonesian recipe page for spawning threads.
src/id-ID/07-02-shared-data.smd Indonesian recipe page for shared data / mutex usage.
src/id-ID/07-03-threadpool.smd Indonesian recipe page for thread pool usage.
src/id-ID/07-04-run-once.smd Indonesian recipe page for “run once” pattern.
src/id-ID/08-01-cpu-count.smd Indonesian recipe page for CPU core count.
src/id-ID/08-02-external.smd Indonesian recipe page for running external commands.
src/id-ID/09-01-semver.smd Indonesian recipe page for semantic version parsing.
src/id-ID/10-01-json.smd Indonesian recipe page for JSON parse/stringify.
src/id-ID/10-02-zon.smd Indonesian recipe page for ZON serialization/deserialization.
src/id-ID/10-03-base64.smd Indonesian recipe page for base64 encode/decode.
src/id-ID/11-01-complex-numbers.smd Indonesian recipe page for complex numbers.
src/id-ID/12-01-bitfield.smd Indonesian recipe page for bitfields/packed structs.
src/id-ID/12-02-singly-linked-list.smd Indonesian recipe page for singly linked list.
src/id-ID/12-03-doubly-linked-list.smd Indonesian recipe page for doubly linked list.
src/id-ID/13-01-argparse.smd Indonesian recipe page for argument parsing.
src/id-ID/14-01-sqlite.smd Indonesian recipe page for SQLite via C API.
src/id-ID/14-02-postgres.smd Indonesian recipe page for Postgres via libpq.
src/id-ID/14-03-mysql.smd Indonesian recipe page for MySQL via libmysqlclient.
src/id-ID/15-01-regex.smd Indonesian recipe page for POSIX regex via C interop.
src/id-ID/15-02-string.smd Indonesian recipe page for string parsing.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread i18n/id-ID.ziggy
Comment thread src/id-ID/index.smd
Comment on lines +27 to +28
> - Branch Utama mengikuti Zig 0.16.x, dan telah dicoba di Linux dan macOS via Github actions.
> - Dukungan Zig versi sebelumnya dapat ditemukan di [branch lainnya](https://github.com/zigcc/zig-cookbook/branches).
.author = "ZigCC",
.layout = "section.shtml",
---
Salt dan hash sebuh password dengan Argon2
Comment thread src/id-ID/database.smd
Comment on lines +11 to +15
Model data yang di gunakan mengikuti:

1. Buat dua buah tables: `cat_colors`, `cats`, `cats` yang memiliki referensi ke `cat_colors`.
2. Buat persiapan sebuah statement untuk setiap table, lalu isi datanya.
3. Eksekusi sebuah query join untuk mendapatkan `cat_name` dan `color_name` dalam waktu bersamaan.
Comment thread src/id-ID/toc.smd
Comment on lines +66 to +89
- Mathematics

- [Complex Numbers](11-01-complex-numbers)

- Struktur Data

- [Bitfield](12-01-bitfield)
- [Singly Linked List](12-02-singly-linked-list)
- [Doubly Linked List](12-03-doubly-linked-list)

- Command line

- [Argument Parsing](13-01-argparse)
- ANSI Terminal

- [Database](database)

- [SQLite](14-01-sqlite)
- [Postgres](14-02-postgres)
- [MySQL](14-03-mysql)

- Pemrosesan teks
- [Regex Expressions](15-01-regex)
- [String Parsing](15-02-string)
Comment thread src/id-ID/toc.smd
Comment on lines +53 to +54
- [Prosessor](08-01-cpu-count)
- [External Command](08-02-external)
@jiacai2050
Copy link
Copy Markdown
Member

Please fix the copilot review comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants