feat(i18n): add Simplified Chinese localization#6120
Closed
fadewalk wants to merge 20 commits intokeephq:mainfrom
Closed
feat(i18n): add Simplified Chinese localization#6120fadewalk wants to merge 20 commits intokeephq:mainfrom
fadewalk wants to merge 20 commits intokeephq:mainfrom
Conversation
- Add complete Chinese translations for all main pages - Implement LanguageSwitcher component with cookie-based locale persistence - Configure next-intl with 'en' as default locale - Add useI18n hook for consistent translation usage Supported pages: - Alerts, Incidents, Workflows, Dashboard - Providers, Topology, Rules, Settings - Health, Sign-in, Error pages
|
@fadewalk is attempting to deploy a commit to the KeepHQ Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
|
No linked issues found. Please add the corresponding issues in the pull request description. |
- Replace 提供商 with 集成 for Keep provider terminology - Fix hydration error caused by block elements inside PageSubtitle - Preserve correct 提供商 usage for SSO IdP and AI model providers
- Add missing i18n keys for provider form (pullingEnabled, connectTo, providerDocumentation, etc.) - Translate KeepLoader loading text - Translate provider search/filter placeholders - Translate workflow template empty state - Translate StepEditor provider selection
… workflows and shared UI Translate remaining hardcoded English strings to Chinese in: - Alert components (22 files): menu, sidebar, timeline, dismiss, note, assign ticket, associate incident, create incident AI, error events, enrich, simulate, history, raw alert, severity mapping, theme - Incident components: severity/status selects, report metrics - Workflow components: AI assistant, builder, test run, manual run, unsaved changes, alert payload, metadata form - Shared UI: error component, pagination, workflow YAML editor, trace viewer - Filter facet: filter values placeholder and no results message Also add missing incident status (firing, acknowledged, merged) and severity (warning, info) translation keys to both en.json and zh-CN.json. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- alerts-rules-builder.tsx: Translate CEL input, SQL import modal, query builder modal - workflow-templates.tsx: Translate search placeholder and clear button - ColumnSelection.tsx: Add full i18n support for column selection modal - workflow-graph.tsx: Translate "No data available" text - workflow-builder.tsx: Translate YAML editor and AI assistant button titles - workflow-builder-card.tsx: Translate loading and error messages - AlertsFoundBadge.tsx: Translate correlation rule alert matching messages - AILink.tsx: Translate "AI Plugins" and "AI iterated" text - create-or-update-maintenance-rule.tsx: Fix maintenance form translations Added new translation keys: - presets.* (celPlaceholder, enterToApply, invalidCEL, conditionApplied, etc.) - workflows.builder.* (showYAMLEditor, hideYAMLEditor, showAIAssistant, etc.) - rules.correlation.messages.* (alertsFoundSingle/Plural, noAlertsFound*, gettingYourAlerts) - maintenance.timeCaption - aiPlugins.iterated Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- alert-table-server-side.tsx: Translate no alerts empty state, simulate/connect buttons - SettingsSelection.tsx: Translate settings button and tab labels - Pagination.tsx, alert-pagination.tsx, pagination.tsx: Translate "Showing X of Y" text Added translation keys: - alerts.messages.noAlerts, noAlertsDescription - alerts.actions.simulate, connectDataSource - common.labels.columns, theme, rowStyle, actionTray Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add translations for severity values (critical, high, warning, etc.) in FacetValue component - Add translations for status values (maintenance, pending, etc.) in FacetValue component - Fix hardcoded "Refresh" button tooltip to use i18n translation - Fix missing comma after noAlertsDescription in en.json Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…nTray translations Add missing translation keys for alerts.labels.rowStyle and alerts.labels.actionTray in both en.json and zh-CN.json to resolve IntlError messages. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add renderOptionLabel for Status and Severity facets in incident-list.tsx to use i18n translations. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Translate the preset name 'feed' to use i18n translation in alert-table-server-side.tsx. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Use toLowerCase() for translation keys to match the lowercase keys in translation files. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…lerts table - Translate Severity labels using alerts.severity.* translation keys - Add renderOptionLabel for Status facet to translate status values - Translate Dismissed facet values using alerts.facets.dismissed/notDismissed - Fix facet-value "All"/"Only" buttons to use translations - Add t to useMemo dependencies for proper translation access Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add alerts.status.maintenance translation key to both en.json and zh-CN.json Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Use incidents.table.incident translation key for both Incident and Linked incident facet names to ensure proper translation Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Author
|
Closing this PR. We'll maintain our own forked version with Chinese localization going forward. Thanks for the great project! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
keep-ui/i18n/messages/zh-CN.jsonwith full Chinese translationsREADME.zh.mdChinese documentationTest plan