Skip to content

feat(i18n): add Indonesian (id-ID) locale support - #20953

Open
samlehoy wants to merge 4 commits into
bytebase:mainfrom
samlehoy:feat/add-indonesian-locale
Open

samlehoy wants to merge 4 commits into
bytebase:mainfrom
samlehoy:feat/add-indonesian-locale

Conversation

@samlehoy

Copy link
Copy Markdown

Summary

Add Indonesian (id-ID) locale support for Bytebase frontend.

Changes

  • Created \ rontend/src/locales/id-ID.json\ with complete Indonesian translations
  • All 56 namespaces translated with ~2,400+ keys
  • All i18n placeholders preserved ({{name}}, {{count}}, etc.)
  • Valid JSON, matching en-US.json structure exactly

Testing

  • ✅ JSON syntax validated
  • ✅ Same top-level keys as en-US (56 namespaces)
  • ✅ All placeholders preserved

@samlehoy
samlehoy requested a review from a team as a code owner July 23, 2026 02:39
@cla-bot

cla-bot Bot commented Jul 23, 2026

Copy link
Copy Markdown

We require contributors to sign our Contributor License Agreement, and we don't have yours on file. In order for us to review and merge your code, please sign CLA and add your name to contributors list.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5764043340

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread frontend/src/locales/id-ID.json
Comment thread frontend/src/locales/id-ID.json Outdated
Comment on lines +1023 to +1024
"delete-active-confirmation": "Instance ini masih aktif. Hapus tetap?",
"delete-confirmation": "Apakah Anda yakin ingin menghapus instance ini?",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve interpolation tokens in translated strings

These delete-confirmation translations drop both {{name}} and {{id}}, but InstanceDeleteDialog still requires the user to type the exact instance ID before the destructive action is enabled. In Indonesian the dialog no longer tells users which ID to enter or that the named instance is being permanently deleted; the same placeholder mismatch pattern appears elsewhere in this new file, so the translated strings need to keep the original interpolation token names exactly.

Useful? React with 👍 / 👎.

@samlehoy

Copy link
Copy Markdown
Author

I have signed the CLA. Could you please re-trigger the CLA check?

@samlehoy

Copy link
Copy Markdown
Author

The GitHub CLA Bot is rechecking to see that you have signed the CLA

@cla-bot

cla-bot Bot commented Jul 23, 2026

Copy link
Copy Markdown

We require contributors to sign our Contributor License Agreement, and we don't have yours on file. In order for us to review and merge your code, please sign CLA and add your name to contributors list.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d772ccd6e1

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread frontend/src/locales/id-ID.json Outdated
@cla-bot

cla-bot Bot commented Jul 23, 2026

Copy link
Copy Markdown

We require contributors to sign our Contributor License Agreement, and we don't have yours on file. In order for us to review and merge your code, please sign CLA and add your name to contributors list.

1 similar comment
@cla-bot

cla-bot Bot commented Jul 23, 2026

Copy link
Copy Markdown

We require contributors to sign our Contributor License Agreement, and we don't have yours on file. In order for us to review and merge your code, please sign CLA and add your name to contributors list.

@samlehoy
samlehoy force-pushed the feat/add-indonesian-locale branch from 7dd042f to 948e861 Compare July 23, 2026 10:31
@cla-bot

cla-bot Bot commented Jul 23, 2026

Copy link
Copy Markdown

We require contributors to sign our Contributor License Agreement, and we don't have yours on file. In order for us to review and merge your code, please sign CLA and add your name to contributors list.

@sonarqubecloud

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 948e861515

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

subscription: esESSubscription,
}),
},
"id-ID": {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Add id-ID to the i18n checker

Registering id-ID as a runtime locale here leaves the CI locale guard behind: pnpm --dir frontend check runs frontend/scripts/check-react-i18n.mjs, but that script still hard-codes LOCALES = ["en-US", "zh-CN", "es-ES", "ja-JP", "vi-VN"]. As a result, missing/extra keys and interpolation syntax errors in the new Indonesian files won't fail the standard frontend check; I confirmed the new locale already contains unchecked placeholder mismatches such as settings.members.select-account_* using {{n}} while callers pass count. Please include id-ID in the checker alongside registering it in the runtime resources.

Useful? React with 👍 / 👎.

This branch has not been deployed

No deployments
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.

1 participant