);
})}
diff --git a/src/features/database/cellPreview.ts b/src/features/database/cellPreview.ts
new file mode 100644
index 00000000..c0a69b4d
--- /dev/null
+++ b/src/features/database/cellPreview.ts
@@ -0,0 +1,10 @@
+export const CELL_PREVIEW_LIMIT = 1000;
+
+/** Bound text layout without changing the underlying value or splitting a surrogate pair. */
+export function cellPreview(value: string): string {
+ if (value.length <= CELL_PREVIEW_LIMIT) return value;
+ let end = CELL_PREVIEW_LIMIT;
+ const last = value.charCodeAt(end - 1);
+ if (last >= 0xd800 && last <= 0xdbff) end--;
+ return value.slice(0, end) + "\u2026";
+}
diff --git a/src/platform/locales/text/zh.json b/src/platform/locales/text/zh.json
index 14586338..c0edc2d5 100644
--- a/src/platform/locales/text/zh.json
+++ b/src/platform/locales/text/zh.json
@@ -1,4 +1,5 @@
{
+ "Edit {name}": "编辑 {name}",
"The language server JDK ({path}) must be a full JDK with jdk.compiler, jdk.jdi and jdk.unsupported for Java language support and debugging. jdtls needs JDK {version} or newer. Download JDK {version}, choose a full JDK in {setting}, or set it to Auto.": "语言服务器 JDK({path})必须是包含 jdk.compiler、jdk.jdi 和 jdk.unsupported 的完整 JDK,才能支持 Java 语言功能和调试。jdtls 需要 JDK {version} 或更高版本。请下载 JDK {version},在 {setting} 中选择完整 JDK,或设为自动。",
"Apple's clangd does not run clang-tidy, so checks from .clang-tidy are not shown. Install clangd (LLVM) to get them.": "Apple 的 clangd 不运行 clang-tidy,因此不会显示 .clang-tidy 中配置的检查。请安装 clangd(LLVM)以启用这些检查。",
"Newer dependency version available": "有更新的依赖版本可用",