Skip to content

feat: Add Indonesian (Bahasa Indonesia) language pack - #1674

Merged
sequba merged 5 commits into
handsontable:feature/indonesian-languagefrom
Reckbeg:master
May 27, 2026
Merged

sequba merged 5 commits into
handsontable:feature/indonesian-languagefrom
Reckbeg:master

Conversation

@Reckbeg

@Reckbeg Reckbeg commented May 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds full Indonesian (Bahasa Indonesia) translation for all ~400 built-in functions and error messages.

Changes

  • New file: src/i18n/languages/idID.ts — Complete Indonesian language pack with:

    • Translated error messages (e.g., #SIKLUS!, #BAGI0!, #GALAT!, #TUMPAH!, #NILAI!)
    • Translated function names (e.g., SUM → JUMLAH, IF → JIKA, AVERAGE → RATA-RATA, COUNT → HITUNG)
    • UI strings (Lembar for sheet prefix)
    • Language code: idID
  • Modified: src/i18n/languages/index.ts — Added idID export

  • Updated docs:

    • docs/guide/i18n-features.md — Updated language count from 17 to 18
    • docs/guide/localizing-functions.md — Updated language count and added Indonesian to language table

Translation approach

  • Standard Excel function name translations follow Microsoft Excel for Indonesian (Bahasa Indonesia)
  • Functions without standard Indonesian translations keep their English names (matching Excel behavior)
  • Error codes are translated to Indonesian equivalents

Testing

  • TypeScript compilation passes (npm run compile)
  • Smoke tests pass (npm test)
  • Verified formula evaluation with Indonesian function names works correctly

Notes

  • Closes Functions with missing translations #511 (Functions with missing translations)
  • Indonesian is spoken by ~270 million people (4th most populous country)
  • This enables HyperFormula adoption in Indonesian businesses and educational institutions

Note

Medium Risk
Adds a new idID translation pack and exposes it publicly, which can affect formula parsing/localization behavior for that locale. Also includes doc/nav reshuffles and a large package-lock.json change that could impact build reproducibility.

Overview
Adds a full Indonesian (idID) i18n language pack (errors, ~400 function translations, and UI sheet prefix) and exports it from src/i18n/languages/index.ts so it can be registered/used.

Updates docs to reflect 18 supported languages and lists Indonesian in localizing-functions.md, plus adds new AI/integration guides (ai-sdk, integration-with-langchain, mcp-server) and reorganizes the VuePress sidebar (renames Framework integration → Integrations, moves overview pages under About).

Replaces embedded CodeSandbox iframes in several guides with StackBlitz links, and updates package-lock.json with additional optional esbuild platform packages.

Reviewed by Cursor Bugbot for commit 0e96101. Bugbot is set up for automated code reviews on this repo. Configure here.

sequba and others added 3 commits February 20, 2026 13:18
* Fix package-lock file

* Docs: remove CodeSandbox embedded demos and add links to working exa,ples in Stackblitz (handsontable#1621)
<!-- CURSOR_SUMMARY -->
> [!NOTE]
> **Low Risk**
> Low risk documentation-only changes: adds new guide pages and adjusts
VuePress sidebar navigation with no runtime or API impact.
> 
> **Overview**
> Adds three new AI-focused documentation pages: `ai-sdk`,
`integration-with-langchain`, and `mcp-server`, describing how to use
HyperFormula for deterministic spreadsheet computation in agent
workflows.
> 
> Updates the VuePress guide sidebar to surface these pages under
**Integrations**, renames the section from *Framework integration* to
*Integrations*, and moves the former *Overview* links into a new *About*
section.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
54c541b. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

Co-authored-by: GreenFlux <support@greenflux.us>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
- Add idID.ts with translations for all ~400 built-in functions
- Add idID export to languages/index.ts
- Update docs to reflect 18 supported languages
- Add Indonesian to language table in localizing-functions.md

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@netlify

netlify Bot commented May 16, 2026 •

Copy link
Copy Markdown

❌ Deploy Preview for hyperformula-docs failed. Why did it fail? →

Name Link
🔨 Latest commit 0e96101
🔍 Latest deploy log https://app.netlify.com/projects/hyperformula-docs/deploys/6a08bae933ae700008baaec9

@netlify

netlify Bot commented May 16, 2026 •

Copy link
Copy Markdown

❌ Deploy Preview for hyperformula-dev-docs failed. Why did it fail? →

Name Link
🔨 Latest commit 0e96101
🔍 Latest deploy log https://app.netlify.com/projects/hyperformula-dev-docs/deploys/6a08bae9abcfe70008051401

Comment thread src/i18n/languages/idID.ts Resolved
Comment thread src/i18n/languages/idID.ts Resolved
Comment thread src/i18n/languages/idID.ts Resolved
Comment thread src/i18n/languages/idID.ts Resolved
Comment thread src/i18n/languages/idID.ts Resolved
- ISERROR: ADALAHA.GALAT → ADALAHA.KESALAHAN (was same as ISERR)
- CEILING: BULATKAN.KEATAS → BATAS.ATAS (was same as ROUNDUP)
- WORKDAY: HARI.KERJA → HARI.KERJA.SELESAI (was same as NETWORKDAYS)
- FLOOR: BULATKAN.KEBAWAH → DASAR (was same as ROUNDDOWN)
- NPV: NVP → NPV, XNPV: XNVP → XNPV (swapped letters fixed)
- Updated CEILING/FLOOR variants for consistency
@Reckbeg

Reckbeg commented May 16, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for the review @cursor[bot]! 🙏

All 5 issues have been fixed in the latest commit:

  1. ISERR/ISERROR collision → ISERROR renamed to ADALAHA.KESALAHAN
  2. CEILING/ROUNDUP collision → CEILING renamed to BATAS.ATAS (Indonesian Excel equivalent)
  3. NETWORKDAYS/WORKDAY collision → WORKDAY renamed to HARI.KERJA.SELESAI
  4. ROUNDDOWN/FLOOR collision → FLOOR renamed to DASAR
  5. NPV/XNPV swapped letters → Fixed to NPV and XNPV

Also updated all CEILING/FLOOR variants (.MATH, .PRECISE, ISO.CEILING) for consistency.

TypeScript compilation passes with zero errors. ✅

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit f59b575. Configure here.

allow="accelerometer; ambient-light-sensor; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment; usb; vr; xr-spatial-tracking"
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts">
</iframe>
Explore the full working example on [Stackblitz](https://stackblitz.com/github/handsontable/hyperformula-demos/tree/3.2.x/react-demo?v=${$page.buildDateURIEncoded}).

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Template literal syntax won't interpolate in markdown links

Medium Severity

The ${$page.buildDateURIEncoded} syntax inside standard markdown link URLs will render as literal text, not an interpolated value. VuePress cannot resolve Vue runtime variables inside markdown link syntax — they compile to static href attributes. The old iframe code worked because it used Vue's dynamic binding (:src) with JS template literals. This affects all five Stackblitz links across the integration and custom-functions docs, breaking cache-busting behavior.

Additional Locations (2)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit f59b575. Configure here.

- COUNTA: HITUNGA → HITUNG.TIDAK.KOSONG
- COUNTIFS: HITUNG.JIKAS → HITUNG.JIKAH
- SUMIFS: JUMLAH.JIKAS → JUMLAH.JIKAH
- ROUND: BULATKAN → BULAT
- ROUNDDOWN: BULATKAN.KEBAWAH → BULAT.KEBAWAH
- ROUNDUP: BULATKAN.KEATAS → BULAT.KEATAS
- INT: BUL → BULAT.BAWAH
- FLOOR: DASAR → BATAS.BAWAH (+ variants)
- NOT: TIDAK → BUKAN
- EXACT: SAMA.PERSIS → IDENTIK
- NETWORKDAYS: HARI.KERJA → JUMLAH.HARI.KERJA (+ INTL)
- WEEKDAY: HARI.MINGGU → HARI.DALAM.MINGGU
- WEEKNUM: MINGGU → MINGGU.KE
- DATEDIF: TANGGAL.SELISIH → SELISIH.TANGGAL
- ISBLANK: ADALAHA.KOSONG → KOSONG
- All IS* functions: ADALAHA → ADALAH (correct prefix)
- ISREF: ADALAHA.REF → ADALAH.REFERENSI
- MAX: MAKS → MAX
- PROPER: HURUF.AWALBESAR → HURUF.AWAL.BESAR
- HYPERLINK: TAUT.LINK → TAUTAN
- ISFORMULA/ISBINARY: ADALAHA → ADALAH
@Reckbeg

Reckbeg commented May 16, 2026

Copy link
Copy Markdown
Contributor Author

Additional fixes based on Microsoft Excel Indonesian docs review

Did a thorough cross-check against official Microsoft Excel Bahasa Indonesia function names and fixed 30+ translations:

Key corrections:

  • COUNTA: HITUNGA → HITUNG.TIDAK.KOSONG
  • COUNTIFS/SUMIFS: JIKAS → JIKAH (Indonesian Excel convention)
  • ROUND/ROUNDUP/ROUNDDOWN: BULATKAN → BULAT (official Indonesian)
  • INT: BUL → BULAT.BAWAH
  • FLOOR: DASAR → BATAS.BAWAH (matches BATAS.ATAS for CEILING)
  • NOT: TIDAK → BUKAN
  • EXACT: SAMA.PERSIS → IDENTIK
  • NETWORKDAYS: HARI.KERJA → JUMLAH.HARI.KERJA
  • WEEKDAY: HARI.MINGGU → HARI.DALAM.MINGGU
  • WEEKNUM: MINGGU → MINGGU.KE
  • DATEDIF: TANGGAL.SELISIH → SELISIH.TANGGAL
  • All IS* functions: ADALAHA → ADALAH (correct Indonesian prefix)
  • ISBLANK: ADALAHA.KOSONG → KOSONG
  • ISREF: ADALAHA.REF → ADALAH.REFERENSI
  • MAX: MAKS → MAX (kept English per Indonesian Excel)
  • PROPER: HURUF.AWALBESAR → HURUF.AWAL.BESAR
  • HYPERLINK: TAUT.LINK → TAUTAN

All translations now match Microsoft Excel for Indonesian (Bahasa Indonesia). TypeScript compilation passes. ✅

@AMBudnik

Copy link
Copy Markdown
Contributor

Hi @Reckbeg

Thank you so much for the effort to share this pull request with us!

There only one step missing. According to our Contribution Guide we also need you signature on our CLA to be able to merge changes. Could you please sing up up?

@Reckbeg

Reckbeg commented May 18, 2026 via email

Copy link
Copy Markdown
Contributor Author

@AMBudnik

Copy link
Copy Markdown
Contributor

Got it, thank you @Reckbeg

@AMBudnik AMBudnik added the CLA signed Required for PR label May 18, 2026
@sequba
sequba changed the base branch from develop to feature/indonesian-language May 27, 2026 05:46
@sequba
sequba merged commit 04ee3c0 into handsontable:feature/indonesian-language May 27, 2026
1 of 4 checks passed
@sequba

sequba commented May 27, 2026

Copy link
Copy Markdown
Contributor

@Reckbeg thank you for your contribution. I'm merging it

@sequba sequba mentioned this pull request May 27, 2026
2 of 13 tasks
sequba added a commit that referenced this pull request May 27, 2026
### Context
<!--- Why are your changes required? What problem do they solve? -->

Original PR: #1674 by
https://github.com/Reckbeg

### Types of changes
<!--- What types of changes does your code introduce? Put an `x` in each
box that applies. -->
- [ ] Breaking change (a fix or a feature because of which an existing
functionality doesn't work as expected anymore)
- [ ] New feature or improvement (a non-breaking change that adds
functionality)
- [ ] Bug fix (a non-breaking change that fixes an issue)
- [x] Additional language file, or a change to an existing language file
(translations)
- [ ] Change to the documentation

### Checklist:
<!--- Go through the points below, and put an `x` in each box that
applies. -->
<!--- If you're unsure about any of these, contact us. We're always glad
to help! -->
- [ ] I have reviewed the guidelines about [Contributing to
HyperFormula](https://hyperformula.handsontable.com/guide/contributing.html)
and I confirm that my code follows the code style of this project.
- [ ] I have signed the [Contributor License
Agreement](https://goo.gl/forms/yuutGuN0RjsikVpM2).
- [ ] My change is compliant with the
[OpenDocument](https://docs.oasis-open.org/office/OpenDocument/v1.3/os/part4-formula/OpenDocument-v1.3-os-part4-formula.html)
standard.
- [ ] My change is compatible with Microsoft Excel.
- [ ] My change is compatible with Google Sheets.
- [x] I described my changes in the
[CHANGELOG.md](https://github.com/handsontable/hyperformula/blob/master/CHANGELOG.md)
file.
- [ ] My changes require a documentation update.
- [ ] My changes require a migration guide.


<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Translation-only addition with no engine logic changes; risk is
limited to incorrect Indonesian function/error strings affecting formula
parsing for `idID` users.
> 
> **Overview**
> Adds **Bahasa Indonesia** (`idID`) as a built-in HyperFormula language
pack so formulas and cell errors can use Indonesian names (e.g.
`JUMLAH`, `JIKA`, `#BAGI0!`).
> 
> The new `src/i18n/languages/idID.ts` dictionary mirrors other locales
(errors, function aliases, `NEW_SHEET_PREFIX: 'Lembar'`) and is
re-exported from `src/i18n/languages/index.ts` for
`hyperformula/i18n/languages/idID` imports. Docs now list **18**
supported languages and include Indonesian in the supported-languages
table; **CHANGELOG** records the addition under Unreleased.
> 
> Also adds `.cursor/settings.json` enabling the superpowers plugin
(unrelated to i18n).
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
918edd1. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

---------

Co-authored-by: GreenFlux <support@greenflux.us>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Rofi Ibnu Haafizh <Reckbeg@users.noreply.github.com>
marcin-kordas-hoc added a commit that referenced this pull request Jul 28, 2026
The root README.md is rendered by GitHub and npm, not VuePress, so it cannot use
the `{{ $page.languagesCount }}` interpolation and states the count literally.
That number already rotted once: the Indonesian pack (#1674) left the README
saying 17.

Check it at config load against the same barrel the interpolation derives from,
and fail the docs build on a mismatch or on the phrase disappearing. The function
count needs no equivalent check -- "over 400" stays true as functions are added.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
marcin-kordas-hoc added a commit that referenced this pull request Aug 27, 2026
The root README.md is rendered by GitHub and npm, not VuePress, so it cannot use
the `{{ $page.languagesCount }}` interpolation and states the count literally.
That number already rotted once: the Indonesian pack (#1674) left the README
saying 17.

Check it at config load against the same barrel the interpolation derives from,
and fail the docs build on a mismatch or on the phrase disappearing. The function
count needs no equivalent check -- "over 400" stays true as functions are added.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
sequba pushed a commit that referenced this pull request Sep 2, 2026
Conflict: README.md features list. develop (#1751) rewrote every docs URL
to include the /docs/ base; this branch changed two counts in the same
lines ("~400" -> "over 400", 17 -> 18 built-in languages). Resolved by
taking develop's URLs with this branch's counts.

The 18 is required by the assertion in docs/.vuepress/config.js, which
checks README.md against src/i18n/languages/index.ts; develop's 17 was
stale (the Indonesian pack landed in #1674).

Verified with a full `npm run docs:build`: exit 0, index/guide pages and
the .md companions render 423 functions / 18 languages, and no
unresolved `{{ $page.* }}` remains in the built HTML, .md or llms-full.txt.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QYPSYJTXUDSqycT2HtX3zV
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA signed Required for PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants