Skip to content

Add Simplified Chinese localization - #74

Merged
Aidaho12 merged 1 commit into
roxy-wi:release/2.2from
CoooderSan:feat/zh-cn-localization
Sep 3, 2026
Merged

Add Simplified Chinese localization#74
Aidaho12 merged 1 commit into
roxy-wi:release/2.2from
CoooderSan:feat/zh-cn-localization

Conversation

@CoooderSan

@CoooderSan CoooderSan commented Sep 2, 2026

Copy link
Copy Markdown

Problem

IncidentRelay currently supports English, German, French, and Russian, but it does not provide a Simplified Chinese interface. This makes daily use harder for Chinese-speaking on-call and operations teams, especially when multiple Grafana installations feed alerts into one shared on-call workflow.

Change

  • Target the release/2.2 branch and include its Azure Monitor integration strings.
  • Register Simplified Chinese as the zh locale and normalize regional variants such as zh-CN and zh_CN.
  • Add a complete Simplified Chinese catalog matching all 30 English catalog files and all 4,281 keys.
  • Add Chinese locale support to profile OpenAPI schemas, browser language negotiation, offline/PWA messages, calendar formatting, and service-page runtime text.
  • Preserve established SRE abbreviations including SLA, SLI, SLO, MTTA, MTTR, MTBF, RTO, and RPO while translating the surrounding operational terminology.
  • Add regression checks for catalog parity, placeholders, SRE abbreviations, locale persistence, language negotiation, and dynamically composed service-page text.

This PR only adds Simplified Chinese UI support.

Tests

  • pytest -q: 1,691 passed.
  • Chinese i18n, profile, Azure Monitor integration, and registry tests: 39 passed.
  • Template validation passed.
  • Ruff passed.
  • JavaScript syntax validation passed for modified scripts.
  • Catalog validation confirmed 30/30 files, 4,281/4,281 keys, matching placeholders, and no empty translations.

Manual verification

  • Verified that zh, zh-CN, and zh_CN resolve to Simplified Chinese.
  • Verified that a Chinese profile preference is stored as zh and renders <html lang="zh"> with Chinese UI text.
  • Reviewed common alerting, incident response, on-call, escalation, routing, maintenance, and SLO terminology in an SRE/operations context.
  • Verified dynamically composed SLO target, threshold, error-budget, severity, priority, and dependency-path text through the runtime translator.
  • Reviewed the Azure Monitor translations using Microsoft terminology, including Common Alert Schema and Action Group.
  • Confirmed that existing locale fallback behavior is unchanged.

@Aidaho12

Aidaho12 commented Sep 2, 2026

Copy link
Copy Markdown
Member

Great! But could you merge it to relase 2.2 https://github.com/roxy-wi/IncidentRelay/tree/release/2.2

@CoooderSan

Copy link
Copy Markdown
Author

Register zh locale support across browser negotiation, profile preferences, OpenAPI, PWA messages, calendar formatting, and services runtime text.

Add complete Chinese catalogs matching the English file and key contract, with tests for placeholders, SRE abbreviations, locale persistence, and dynamically composed UI strings.
@CoooderSan
CoooderSan force-pushed the feat/zh-cn-localization branch from 8da66e4 to 0ddd136 Compare September 3, 2026 02:05
@CoooderSan
CoooderSan changed the base branch from main to release/2.2 September 3, 2026 02:06
@CoooderSan

Copy link
Copy Markdown
Author

Done — I rebased the localization commit onto release/2.2, changed the PR base to release/2.2, and added Simplified Chinese translations for the four new Azure Monitor strings. The full test suite passes: 1,691 tests.

@Aidaho12

Aidaho12 commented Sep 3, 2026

Copy link
Copy Markdown
Member

Thank you!

@Aidaho12
Aidaho12 merged commit 19ef930 into roxy-wi:release/2.2 Sep 3, 2026
12 checks passed
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