Skip to content

Add Indonesian (Bahasa Indonesia) translation - #501

Merged
paulocastellano merged 9 commits into
trypostit:mainfrom
wayangm:feat/indonesian-translation
Nov 16, 2026
Merged

paulocastellano merged 9 commits into
trypostit:mainfrom
wayangm:feat/indonesian-translation

Conversation

@wayangm

@wayangm wayangm commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

What

Adds a complete Indonesian (Bahasa Indonesia) UI translation and registers the locale.

  • lang/id/ — all 29 base translation files, matching lang/en 1:1
  • app/Enums/User/Locale.php — case Indonesian = 'id' with native label Bahasa Indonesia, flag ID, english name Indonesian (LTR, default BCP 47 id)
  • public/images/flags/ID.svg — Indonesia flag in the same style as the existing set (viewBox 0 0 513 342, red upper half #ce1126)
  • resources/js/dayjs.ts — imports dayjs/locale/id and adds id to the Monday week-start list (Monday is the conventional first day of the week in Indonesia)
  • tests/Unit/Settings/DeleteAccountCopyTest.php — adds the two per-locale destructive-copy markers for id, same pattern as the other 16 locales
  • tests/Feature/LocalizationParityTest.php — adds id to the existing workspace allowlist of the mcp-authorize test, since Indonesian keeps the product term "workspace" untranslated (same treatment as de/es/it/nl/pt-BR)

Verification

  • Structural diff of lang/id vs lang/en for all 29 files: identical key names, order, :placeholder sets, and {n}/[range] pluralization segments (essentially what LocalizationParityTest asserts), plus the "does not fall back to English" keys and the analytics metric/content-type labels.
  • The repo's locale test suite was used as the acceptance checklist: LocaleTest (dir exists, non-empty label, shipped flag file), DayjsLocaleParityTest (dayjs import + week start), DeleteAccountCopyTest (markers cover every locale), OfferCopyTest, template-library bullets (• ), and the Bluesky email-confirmation string.

Translation notes

  • Casual-professional tone using "kamu" (matching common Indonesian product copy), sentence case for UI strings.
  • Product terms are kept in English, consistent with the app: workspace, channel, post, draft, queue, caption, hashtag, mention, reel, story, feed, preview, analytics, webhook, MCP, OAuth, signing secret, trial reel, and platform names.
  • Numeric copy uses Indonesian formatting (decimal comma, e.g. 2,8 miliar); HTTP reason phrases (OK, Bad Request, …) and brand names stay as-is.
  • PHP edits are minimal (appended enum cases/match arms and array entries, matching sibling style). I couldn't run Pint locally (no PHP in this environment), so CI is the final check.

Happy to adjust terminology wherever the maintainers prefer different wording. 🇮🇩

Ship lang/id covering every base translation file (29 files, key-parity
with lang/en), register the locale in the user Locale enum with the
Indonesia flag, import the dayjs locale and set Monday as week start,
and extend the destructive-copy locale markers and the mcp authorize
same-as-English allowlist (Indonesian keeps the product term
"workspace").
@wayangm

wayangm commented Nov 14, 2026

Copy link
Copy Markdown
Contributor Author

Hi! 👋 Thanks for building TryPost — love that it's fully self-hostable and has native MCP support.

I'm a developer from Indonesia, and Bahasa Indonesia is my native language, so I put together this full translation covering all 29 base language files. I used the repo's locale test suite (parity tests, dayjs imports, destructive-copy markers) as the acceptance checklist, so it should slot straight into CI once the workflow run is approved.

Happy to adjust any terminology where the maintainers prefer different wording, and feedback from other Indonesian-speaking users is very welcome. Terima kasih! 🙏

@paulocastellano

paulocastellano commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

@wayangm thank you man, i will review it on soon!

Paulo Castellano added 8 commits November 16, 2026 18:19
Add the keys main gained (tours, the Board view, the channels list, approval toasts),
drop the ones it removed, shorten the copy that overflowed its one-line slot and
translate the common words left in English.
With 17 languages the sidebar submenu ran past the screen. The search box and
scrolling list of LanguageSelect move into LanguagePicker, which the preferences
picker and the sidebar submenu now share.
Rewrite literal or ungrammatical phrasing, translate the English left in
sentences and use one set of terms across every file: postingan, draf,
antrean, pengikut, jangkauan, interaksi, media sosial, kamu.
Every other locale translates it (Assinaturas, Firmas, İmzalar); tanda tangan is
the word Gmail uses in Indonesian.
Tes reel and nonpengikut (Instagram help center), Saran for the For You feed and
Posting ulang (TikTok), Info terbaru for a Google Business update.
The picker lists each language by its short own name (Português, Español), and
Bahasa already means language: YouTube's Indonesian menu reads 'Bahasa tampilan:
Indonesia'. The category names are the ones YouTube Studio shows in Indonesian.
@paulocastellano
paulocastellano merged commit 7431f51 into trypostit:main Nov 16, 2026
16 of 19 checks passed
obelix58143 pushed a commit to obelix58143/trypost that referenced this pull request Nov 20, 2026
Indonesian arrived with trypostit#501 after this branch last synced; it now carries
the same six OIDC strings as every other locale.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
obelix58143 pushed a commit to obelix58143/trypost that referenced this pull request Nov 20, 2026
Indonesian arrived with trypostit#501 after this branch last synced; it now carries
the same six WebDAV strings as every other locale.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

2 participants