Files
MemRelay/projects/d5a7f581-c442-4554-87b9-ee723b8b0258/内网离线约束与 i18n 硬性要求.md
T

20 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: 内网离线约束与 i18n 硬性要求
type: rule
permalink: main/projects/d5a7f581-c442-4554-87b9-ee723b8b0258/内网离线约束与-i18n-硬性要求
stable_id: 0ca7e07e-97b7-496c-96c8-dc712498fc8e
scope: project
project_id: d5a7f581-c442-4554-87b9-ee723b8b0258
memory_type: rule
status: active
revision: 1
restored_from_commit: 6a6a895eafcca6052e81a14fca103a42635dd1c2
created_at: '2026-09-23T15:09:38.828410+00:00'
updated_at: '2026-09-23T15:09:38.828477+00:00'
tags:
- offline
- i18n
- constraint
---
1) 平台运行期无外网:UI 组件/图标/字体/API 文档资源/依赖必须本地化或随构建打包;运行期不得访问外网资源。2) 脚本管理绝不 docker pull 镜像,镜像缺失提示去容器管理导入 tar;Python 库走内网 pypiserver 源或离线 wheel。3) 所有界面文本、权限名、错误信息必须 i18n:模块各自 i18n/zh-CN.json + en-US.json,全局在 web/src/i18n/locales/,新增 key 必须 zh+en 同步,前端 smoke 测试会校验。4) 开发机本身有外网(可 npm/pip/docker pull,Docker Hub 偶尔被代理挡)。