Skip to content

feat: add Chinese (Simplified) language support#103

Merged
debba merged 1 commit intodebba:mainfrom
GTLOLI:main
Mar 25, 2026
Merged

feat: add Chinese (Simplified) language support#103
debba merged 1 commit intodebba:mainfrom
GTLOLI:main

Conversation

@GTLOLI
Copy link

@GTLOLI GTLOLI commented Mar 25, 2026

Summary

Add Chinese (Simplified) language support for Tabularis.

Changes

  • Add zh.json translation file with complete Chinese translations
  • Register Chinese in i18n config.ts
  • Add language option in settings UI (alongside English, Italian, Spanish)

Motivation

Chinese is widely used globally. Adding Chinese localization will make Tabularis accessible to more users.

Testing

All translation keys have been verified against the English source file structure.

- Add zh.json translation file
- Register Chinese in i18n config
- Add language option in settings UI
@kilo-code-bot
Copy link

kilo-code-bot bot commented Mar 25, 2026

Code Review Summary

Status: 3 Issues Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 2
SUGGESTION 1
Issue Details (click to expand)

WARNING

File Line Issue
src/contexts/SettingsContext.ts 3 Missing 'zh' in AppLanguage type - The type is defined as `"auto"
src/pages/Settings.tsx 1011-1016 Missing Chinese in language selector - The availableLanguages array doesn't include { id: "zh", label: t("settings.chinese") }, so users cannot select Chinese from the settings UI

SUGGESTION

File Line Issue
src/i18n/locales/zh.json 213-215 Missing 'chinese' translation key - Should add "chinese": "中文" to the settings section for consistency with other locale files (en.json has "chinese": "Chinese" pattern)
Other Observations (not in diff)

The PR adds the Chinese locale file and i18n configuration correctly, but the language cannot be selected in the UI because:

  1. AppLanguage type doesn't include "zh"
  2. Settings page language dropdown doesn't list Chinese as an option

These files need to be updated to complete the localization feature.

Files Reviewed (2 files)
  • src/i18n/config.ts - Import and registration look correct
  • src/i18n/locales/zh.json - Comprehensive translation file (879 lines), follows same structure as other locales

Fix these issues in Kilo Cloud


Reviewed by kimi-k2.5-0127 · 417,931 tokens

@debba
Copy link
Owner

debba commented Mar 25, 2026

LGTM, I will merge it.
Feel free to share in chinese socials :)

@debba debba merged commit e90edf7 into debba:main Mar 25, 2026
@debba
Copy link
Owner

debba commented Mar 25, 2026

@GTLOLI needed to change some stuffs, and I cannot review the language (i am italian)
Btw I added a thank to you in https://tabularis.dev/blog/v0911-chinese-postgres-arrays-inline-editing

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